View Full Version : XHTML flash embed compliance problem

01-13-2006, 01:10 PM
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" />


Bill Posters
01-13-2006, 01:16 PM

XHTML 1.0 Strict and Flash (http://www.codingforums.com/showthread.php?t=62454)
Flash Validation (http://www.codingforums.com/showthread.php?t=37812)
Flash and XHTML? (http://www.codingforums.com/showthread.php?t=24610)
Flash + XHTML (http://www.codingforums.com/showthread.php?t=13352)

01-13-2006, 02:29 PM
Ok, so I tried the suggestion on this site:


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:


Is there another way to prompt the user to download the latest version of the flash player?

Bill Posters
01-13-2006, 04:37 PM
Two options...

You can nest a message within the object tags that will be used if Flash is not supported. You can use this to provide a message and link to the Flash download page.


<object ...>
<param ... />
<param ... />
<p>The Flash plugin is required to view this content. <a href="...">Get Flash plugin</a></p>

You could use js to add the codebase attribute. This should catch most users.

You could supposedly do both - add the message to the markup as well as using js to add the codebase to the object tag.