Internet Explorer Flash 8 ExternalInterface Bug
Posted by sky | Tags: Flash, Javascript, Open-Source, Technology
In IE6, ExternalInterface.call method will result in a Javascript error when the flash object is within a html form! (an undefined error) Steve Kamerman had produced a fix for the bug. (Check his blog)IE's implementation of Javascript seems to want to look for "window.yourObject" and not "document.form[x].yourObject", so his script figures out which form you are in and makes an alias. window["yourmoviename"] = document.getElementById("yourmoviename");An example of the fix is (assume we are using swfobject also):
Previous Post Next Post<script type="text/javascript" src="swfobject.js"></script> <script type="text/javascript" src="swfformfix.js"></script> <div id="swfdiv"> This is replaced by the Flash movie. </div> <script type="text/javascript"> var so = new SWFObject("myMovie.swf", "myMovieObjectName", "200", "100", "6.0.0", "#ffffff"); so.addParam("quality", "high"); so.write("swfdiv"); SWFFormFix("myMovieObjectName"); </script>