Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / July 2008



Tip: Looking for answers? Try searching our database.

External Interface issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
crisbosch - 09 Jul 2008 18:46 GMT
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".
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.