HI, I'm trying to get an button in flash to open a pop-under window in the
browser using JavaScript. So far I have had no success. Both functions are
working fine independently but I can't get them to communicate with each other.
Please see attached code.
Thanks!
////// AS 2.0 /////
import flash.external.*;
allowScriptAccess="always";
function gaTracking() {
ExternalInterface.call("conversion");
trace("gaTracking Triggered");
}
////// JavaScript //////
<script language="JavaScript">
function conversion(){
window.open('http://www.solowresidential.com/thank-you.html','','width=500,heig
ht=350,left=200,top=200').blur();
window.focus();
}
</script>
Noelbaland - 10 Jul 2008 06:27 GMT
Hello,
Delete the allowScriptAccess in your AS2 script - it does nothing. After
you've published your Flash movie, you need to edit the HTML page and set the
allowScriptAccess to "always" in the <object> and <param> tags.
The default is allowScriptAccess="sameDomain".