After reading all the adobe info on this issue, I still cannot make
ExternalInterface.addCallback() function in IE 6, works great in Firefox.
I have tried every suggestion and still cannot get this to work in IE.
Notes:
1. This movie is not embedded in a HTML <form>
2. the js call to flash receive is after the page has loaded.
Any Ideas?
FLASH:
[CODE]
import flash.external.*;
var method:Function = flashReceive;
var instance:Object = null;
ExternalInterface.addCallback('flashReceive', instance, method);
[/CODE]
<object
codebase="
http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab# version=8,0,0,0"
width="700"
height="140"
align="middle"
id="this_movie">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="vuln.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="wmode" value="opaque" />
<embed src="{$rel_url}flash/movie.swf"
swLiveConnect="true"
quality="high"
bgcolor="#ffffff"
width="700"
height="140"
align="middle"
allowScriptAccess="always" type="application/x-shockwave-flash"
pluginspage="
http://www.macromedia.com/go/getflashplayer" wmode="opaque"
name="this_movie"/>
</object>
<script>
function thisMovie(movieName)
{
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName];
} else {
return document[movieName];
}
}
function sendToFlash(flash_data_str)
{
thisMovie("this_movie").flashReceive(flash_data_str);
}
</script>