Click to See Complete Forum and Search --> : Shockwave and Validation


BlackDragon1012
07-20-2004, 06:33 PM
I just put a shockwave movie on me strict xhtml valid page and now when i test its validation it get over 30 errors does anyone know how to fix this. Can i just not use strict with shockwave files. I can get rid of all the para crap and get it down to like 13 error, but it doesnt even recgnize <embed> which i think you need for shockwave movies.

David Harrison
07-20-2004, 07:06 PM
Here's the correct way to use flash:<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="x" height="y">
<param name="movie" value="directory/file.swf" />
<param name="bgcolor" value="#012345" />
<param name="quality" value="high" />
<embed src="directory/file.swf" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" bgcolor="#012345" quality="high" width="x" height="y"></embed>
</object>Using object is the standards compliant way, but then the embed is there for backwards compatibility, you probably don't need the embed now though. embed is depreciated and will throw up errors if you use a strict DTD unfortunately.

BlackDragon1012
07-20-2004, 07:20 PM
ya that didnt seem to work doesn anyone know the correct way to do a shockwave movie

David Harrison
07-20-2004, 07:41 PM
Here is a working example, all of the errors in validation are caused by the embed. Just slap an XHTML 1.0 Trans DTD on it and it'll validate.