Click to See Complete Forum and Search --> : XHTML flash embed compliance problem
Brad_Armitage
01-13-2006, 07:10 AM
Can anyone tell me the proper way to embed a flash movie in an xhtml 1.0 transitional page so that it still meets w3c xhtml compliance while also loading in netscape or mozilla? My page loads great in IE, opera, and safari but it won't load in those other 2. Here's an example of what my code looks like now:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0" width="100" height="100">
<param name="movie" value="flash/movie.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
</object>
:confused:
LiLcRaZyFuZzY
01-13-2006, 07:58 AM
http://www.alistapart.com/articles/flashsatay/
johneva
01-13-2006, 08:07 AM
This must come up quite often then I have only been using the forum for a week now and this was the first post I made too.
And it was LilCrazyFuzzy that answered it for me too. :)
Brad_Armitage
01-13-2006, 08:31 AM
Ok, so I tried the suggestion on this site:
http://www.alistapart.com/articles/flashsatay/
It worked, except one question it didn't answer was if I don't want to embed a small flash file on my page and include the:
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0"
Is there another way to prompt the user to download the latest version of the flash player?
johneva
01-13-2006, 09:14 AM
It still works with that bit left in.
The most important bit to get it to work is to get rid of the embed tag and insert it data attribute to the object tag.
Brad_Armitage
01-13-2006, 09:17 AM
It didn't work in firefox :rolleyes:
johneva
01-13-2006, 09:21 AM
Oh right.
Dont know then mate I never though of the problem you did about it prompting to download the player till you mentioned it.
One of the other will probley be able to tell ya.
LiLcRaZyFuZzY
01-13-2006, 09:25 AM
ok so what is your whole code now?
Brad_Armitage
01-13-2006, 10:32 AM
<object type="application/x-shockwave-flash" data="flash/movie.swf" width="100" height="100">
<param name="movie" value="flash/movie.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
</object>
zingmatter
01-13-2006, 10:46 AM
I use this method:
<object type="application/x-shockwave-flash"
data="c.swf?path=horiz_bg.swf"
width="604" height="225">
<param name="movie"
value="c.swf?path=horiz_bg.swf" />
<img src="alternative_image.jpg"
width="603" height="225" alt="" />
</object>
Where "c.swf" is a blank movie which the main movie "horiz_bg.swf" loaded into it. To do that just have a single frame movie with the action
_root.loadMovie(_root.path, 0);
placed in this frame.
This works on Firefox.
LiLcRaZyFuZzY
01-13-2006, 10:51 AM
yep, that's the ALA article method
zingmatter
01-13-2006, 11:15 AM
ALA are just great aren't they
LiLcRaZyFuZzY
01-13-2006, 11:17 AM
indeed ;)