ExternalInterface in flex calling javascript function works for mozilla/chrome but NOT IE
Posted
by Rees
on Stack Overflow
See other posts from Stack Overflow
or by Rees
Published on 2010-04-20T06:00:00Z
Indexed on
2010/04/20
6:03 UTC
Read the original article
Hit count: 783
hello,
i have a flex application that does a simple ExternalInterface.call("shareOptions"), which calls a shareOptions() javascript method and works absolutely fine with Mozilla and chrome, however when I test with IE i get the following error:
Error: [object Error] at flash.external::ExternalInterface$/_toAS() at flash.external::ExternalInterface$/call()
I looked at the adobe livedocs documentation but can't determine what the issue is with IE. is there something i'm missing?? if anyone knows, please let me know ASAP! thanks in advance.
private function shareOptions(event:MouseEvent):void{
ExternalInterface.marshallExceptions = true;
if (ExternalInterface.available){
ExternalInterface.call("shareOptions");
}
}
the javascript
<script language="JavaScript" type="text/javascript">
function shareOptions() {
myWin = window.open('http://www.mysite.shareOptions.php','yeee!','width=640,height=690,toolbar=no,location=0,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes,x=500,y=500');
myWin.moveTo(300,300);
}
</script>
© Stack Overflow or respective owner