Tuesday, February 9, 2010

IE ActiveX Update - activate objects

The new Microsoft IE ActiveX Update (which will be standard for all future updates) makes a little change to all embedded objects in html. You must activate them first. If you have a menu in flash you must click on every item twice in order to go somewhere. Once to activate it, and another click to go to the next page. Before the activation of the object, the object will get a border around whenever you drag your mouse over it, like this:ActiveX activation border

There are several workarounds for this, but most of them have alot of restrictions. The best I found so far uses javascript to print out the code.

First you create a javascript file like flashscript.js which contains the object code:

document.write('<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="304" height="268">');
document.write('<param name="movie" value="topleft.swf">');
document.write('<embed src="topleft.swf" width="304" height="268" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
document.write('</object>');

And in the html you put:

<script type="text/javascript" src="flashscript.js"></script>

Posted 2006-12-16 17:53:27
Flash programming - Trackback

Wintzell blog

This blog is about webdesign, flash programming and various graphic issues. It will present news from Wintzell webdesign and flash programming and other market news.