Fix for displaying Flash in IE
The Internet Explorer update in February 2006 requires users to click embedded or “active” content before they interact with it. This update also affects Adobe Flash files. This is one of several workarounds to fix your Flash content work normally.
1. Create and place the external javascript file on your website. In this example, call it RunActiveContent.js. The only function in this file is to document.write the content.
function RunContent(content)
{
document.write(content);
}
2. Add a Javascript include statement that points to the file from step 1 :
<script src="RunActiveContent.js" type="text/javascript"></script>
3. Replace the <object>
and <embed> tags in your pages with a Javascript which declares a string of your <object> and <embed> code. And call the function from step 1. For example :
<script language="'javascript'" type="'text/javascript'">
<!-- var flash_code = "<object classid="'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'" codebase="'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=" width="'770'" height="'120'"><param name="'movie'" value="'foo.swf'"><param name="'quality'" value="'high'"><embed src="'foo.swf'" quality="high" width="'770'" height="'120'" type="'application/x-shockwave-flash'" pluginspace="'http://www.macromedia.com/go/getflashplayer'"><"+"/embed><"+"/object>";
RunContent(flash_code);
//-->
</script>
For users who have disabled JavaScript, you have to insert the standard <object> and <emboed> into the pages within a <noscript> tag.
<noscript>
<object classid="'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'" codebase="'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=" width="'770'" height="'120'"><param name="'movie'" value="'foo.swf'"><param name="'quality'" value="'high'">
<embed src="'foo.swf'" quality="high" width="'770'" height="'120'" type="'application/x-shockwave-flash'" pluginspace="'http://www.macromedia.com/go/getflashplayer'"></embed>
</object></noscript>