I am trying to use the ExternalInterface.call function in my ActionScript(2.0) to get a javascript var value set in the wrapping document. The following seems to work in FireFox and in Chrome but, naturally, it does not work in IE(8). Can anyone suggest another method for getting the value stored at this variable? Thanks!
var linkPath = ExternalInterface.call("function(){return window.customLinkLocation;}", null);
JavaScript:
<head>
<script type="text/javascript">
var customLinkLocation = "http://localhost/file.xml";
</script>
</head>
Could it be the way I am embedding my swf??
<body>
<object width="550" height="400" id="mySwf">
<param name="movie" value="mySwf.swf">
<embed src="mySwf.swf" width="550" height="400">
</embed>
</object>