MaDMiKe420 wrote
I would be interested in the JavaScript that blocks that annoying IE message in Flash. Can you point me in the right direction for that?
Here's a link: http://www.kirupa.com/developer/flash8/flash_fix.htm - Note that after running through the skin parsing engine you'll need to add the skinpath directive to the "var fo = new FlashObject" line in your .ascx file.
So, your flash embed .ascx code will change from something like this:
<div><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="Header" align="middle" height="190" width="730"> <param name="allowScriptAccess" value="sameDomain"> <param name="movie" value="<%= SkinPath %>Header.swf"> <param name="quality" value="high"> <param name="wmode" value="transparent"> <param name="bgcolor" value="#eeeee6">
<embed src="<%= SkinPath %>Header.swf" quality="high" bgcolor="#eeeee6" name="Header" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" align="center" height="190" width="730"></object></div>
To this:
<script type="text/javascript" src="<%= SkinPath %>flashobject.js"></script>
<div id="flashcontent" style="width: 730px; height: 190px"></div>
<script type="text/javascript">
var fo = new FlashObject("<%= SkinPath %>Header.swf", "animationName", "730", "190", "6", "#EEEEE6");
fo.addParam("allowScriptAccess", "sameDomain");
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("loop", "false");
fo.write("flashcontent");
</script>
Works great.