Internet Explorer Flash 8 ExternalInterface Bug

In IE6, 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):

<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.


<script type="text/javascript">

var so = new SWFObject("myMovie.swf", "myMovieObjectName",

"200", "100", "6.0.0", "#ffffff");

so.addParam("quality", "high");





blog comments powered by Disqus