Useful Hints

VALIDATING FLASH

I came across the challenge of trying to validate flash in XHTML. The problem with trying to validate the code that Macromedia Flash spits out is that the <embed> tag is not valid HTML. Upon removing the <embed> tag, however, I found that this worked fine in Firefox but not in IE. In IE the flash wouldn't load.

I eventually came across a website that provided the solution by specifying which code to show depending on which browser was being used and this worked like a charm. Not only did the flash code validate but it also worked perfectly in both Firefox and IE.

[cick here] to view the webpage that provided the flash validation solution.

Below is the sample code for the flash validation solution:

<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="300" height="120">
<param name="movie" value="http://www.macromedia.com/shockwave/download/triggerpages_mmcom/flash.swf"> 
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">
			
<!--[if !IE]> <-->			
<object data="http://www.macromedia.com/shockwave/download/triggerpages_mmcom/flash.swf"
width="300" height="120" type="application/x-shockwave-flash">
<param name="quality" value="high">
<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>
					
to top