Hello everyone,
I’m using the ExternalInterface.call method to call a javascript method, which loads a page into a frame. It works in every single freakin’ browser except the IE family (IE6,IE7), including MAC browsers. It’s pretty simple. The actionscript is:
var sourceName = ExternalInterface.call("getSource");
this calls the getSource function in javascript, which looks like:
function getSource() {
var sourceName = top.main.document.getElementById('sourceName').innerHTML;
return sourceName;
//no rocket science here!
}
the sourceName variable is then returned (theoretically) to the actionscript and is used in the following:
this.getURL(sourceName+"/somepage.html","main");
,which loads the new page into the ‘main’ frame.
I know here it is a relative URL, and I have tried using absolute URLs to fix this, to no avail. I think that the variable is not getting passed back to the .swf file properly in IE. Does anyone have any experience using the ExternalInterface.call method to communicate with javascript variables? Thanks in advance…