17.6.06

Validation and Flash

Working towards totally compliant pages with flash or shockwave can be difficult. Here are some solutions:


html 4.01 flash
----------------------
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/
cabs/flash/swflash.cab#version=6,0,40,0"
width="770" height="170">
<param name="movie" value="clip.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">
<!--[if !IE]> <-->
<object data="clip.swf"
width="770" height="170" type="application/x-shockwave-flash">
<param name="quality" value="high">
<param name="movie" value="clip.swf">
<param name="bgcolor" value="#FFFFFF">
<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">
FAIL (the browser should render some flash content, not this).
</object>
<!--> <![endif]-->
</object>
==============================
html 4.01 shockwave
---------------------------------
<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/
director/sw.cab#version=10,0,0,0"
width="720" height="300">
<param name="src" value="clip.dcr">
<param name="bgcolor" value="#cccccc">
<!--[if !IE]> <-->
<object data="clip.dcr"
width="720" height="300" type="application/x-director">
<param name="quality" value="high">
<param name="bgcolor" value="#cccccc">
<param name="pluginurl" value="http://www.macromedia.com/shockwave/download">
FAIL (the browser should render some shockwave content, so if you can't see
the shockwave, use the link below).
</object>
<!--> <![endif]-->
</object>
===============================
xhtml 1.0
-----------------------
<object type="application/x-shockwave-flash" data="clip.swf"
width="475" height="300" align="right">
<param name="movie" value="clip.swf" />
<param name="wmode" value="transparent" />
</object>

===============================
The main flash codes are from this very useful page:
http://www.ambience.sk/flash-valid.htm

2 Comments:

At 12:16 AM, Anonymous Tsevdos John said...

That's a very interesting post Penny, specially for web-developers ;-) . Keep blogging !!!

 
At 10:56 AM, Blogger bosh said...

cool John. The codes do work too. Check out the page they come from, as there are other methods [for example, Flash Satay] that you can use to achieve this.

 

Post a Comment

<< Home