In my original message I mentioned that ExternalInterface didn't work with my custom javascript function call. It only worked with the direct call (or execution) to window.open.

--
Paul Chang, Ph.D.
PCD.



On May 10, 2007, at 10:47 AM, Muzak wrote:

You're not "calling" javascript (as in: invoking a Javascript function), you're executing it directly. Have you tried calling a jas function in the browser rather than executing js directly?

regards,
Muzak

----- Original Message -----
From: "Paul Chang" <[EMAIL PROTECTED]>
To: <flashcoders@chattyfig.figleaf.com>
Sent: Thursday, May 10, 2007 5:00 PM
Subject: Re: [Flashcoders] popup blockers and flash


Here are a couple of button actions:

import flash.external.*;

mcEI.onRelease = function() {
if (ExternalInterface.available) {
ExternalInterface.call("window.open", "http:// www.paulchang.com/", "win", "height=600,width=800,toolbar=no,scrollbars=yes");
}
}

mcGetURL.onRelease = function() {
    getURL("javascript:newWindow('http://www.paulchang.com/','Test
Popup','center',800,600,'yes','no','no','no','no','no');","_self");
}

The first is calling window.open directly. The second calls a custom js. I believe the code is correct since FireFox executes
both. But  perhaps there's a nuance that I'm missing.

Thanks,
Paul

--
Paul Chang, Ph.D.
PCD.


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to