Activating ActiveX Controls
Since Microsoft has released their new security around ActiveX Controls, you may have noticed that Internet Explorer isn’t too friendly torwards Flash anymore. For more detailed information on the new security and how Control Activation works here, Activating ActiveX Controls.
Here is a quick example of how you can load a flash file ‘externally’ so that a user isn’t prompted to activate the control.
First you must create an external script file. In our case, we’ll call it flash.js and the content is below. Basically we have a document.write to ‘write’ what flash file we want.
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="<a href="https://fpdownload.macromedia.com/pub/shockwave/cabs/
flash/swflash.cab#version=8,0,0,0" mce_href="https://fpdownload.macromedia.com/pub/shockwave/
cabs/flash/swflash.cab#version=8,0,0,0"
>https://fpdownload.macromedia.com/pub/shockwave/
cabs/flash/swflash.cab#version=8,0,0,0</a>" width="740" height="500" id="OrgChart" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="OrgChart.swf" />');
document.write('<param name="menu" value="false" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<embed src="OrgChart.swf" mce_src="OrgChart.swf" menu="false" quality="high" bgcolor="#ffffff" width="740" height="500" name="OrgChart" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="<a href="https://www.macromedia.com/go/getflashplayer" mce_href="https://www.macromedia.com/go/getflashplayer">
https://www.macromedia.com/go/getflashplayer\</a>" />');
document.write('</object>');