How do i load a clip to my page?

Hi everyone,
I used the following code in order to load my Flash clip to my web page:


<object width="550" height="400">
<param name="movie" value="..graphix/myClip.swf">
<embed src="..graphix/myClip.swf" width="550" height="400">
</embed>
</object>

It didn’t load the clip. When i validated the code I recived an error message that says:

The tag “embed” Not found in currently active versions [XHTML 1.0 transitional]

Anyone can tell me what went wrong ?
Thank

:slight_smile: I tell you that: I wouldn’t solve that problem without you. Another perspective at a discussion when one feels helpless, makes him change his way of thinking, becoming hopeful and optimistic.
Thanks again !

Great, thanks for posting your solution. I wasn’t sure if the problem was one of dimensions or not, but glad you’ve got what you need.

It’s not uncommon to find a solution yourself just because others are trying to help. I got a reputation at university for being able to help anyone with their computer problems, when in fact I knew nothing about computers. I just tried to help them fix the problem (mostly with little more resources than sympathy), and usually they fixed it themselves. They always gave me the credit, for some reason. :slight_smile:

To get to a solution but the essential is: I did !
I changed measures within the flash package or within the HTML page and nothing good happaned.
I also changed transparency to make the background transparent but that didn’t change the fact that the flash element was bigger then i wanted.
Finally, from right click menu on the stage (flash’s stage is the drawing area) i selected: "“Documents properties”. There is a “Dimensions” text box where you can assign values and that where i assigne 100 X 40.
Thanks a lot for your assistance. You didn’t resolve my problem but your incentives led me to the right direction.
Thanks again !

I presume the original file’s background is not white, then? You may just need to add in the line shown in red:

<object width="550" height="400">
<param name="movie" value="../graphix/myClip.swf">
<embed src="../graphix/myClip.swf" width="550" height="400">
[COLOR="Red"]<param name="wmode" value="transparent">[/COLOR]
</embed>
</object>

See if that helps. :slight_smile:

Thanks Ralph,
Reducing container only made the animated shape smaller. The background/shape ratio remained the same.
Saying: “clip”, i mean, a shape, circle for example, moving from left to right. If my web page’s background color is red for example, and the shape’s background color - white, i’d like to see, on my web page, a red page with a circle moving from left to right. I dont want a red page within which there is a white page within which there is a circle…
You help me displaying that shape on my page. Now i need help to get rid of that shape’s background.
Thanks

Don’t worry about the warning. The embed element is not an official one in HTML, but all browsers use it and support it.

As for the swf not loading, it’s your file path. It’s not a proper path. I don’t know where your file is located, but try this:

"../graphix/myClip.swf"

(I’ve inserted a / near the start.)

If that doesn’t work, then let us know where the swf is in relation to the page. The above code tells the browser to go up one folder, then find a folder called /graphix/, in which the file will be found.

i.e.

/folder1/
    /folder2/
        file.html
    /graphix/
        myClip.swf

I don’t know a lot about flash, so I don’t know if “My clip is 100 X 40 pixels measures but its’ background is far broader so all i see in my page is white background” would mean more to someone who does. What do you mean by your “clip” and your background? Your container is 500 x 400.

What you wrote is absolutely correct but it seems, my problem is more complicated. My clip is 100 X 40 pixels measures but its’ background is far broader so all i see in my page is white background.
I’ll have to change my question: I want my clip to be of 100 X 40 pixels measures. How do i make the stage have that measurement ?
Thanks again