Re: [Flashcoders] popup blockers and flash
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: 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
Re: [Flashcoders] popup blockers and flash
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: 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
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. On May 10, 2007, at 1:04 AM, Muzak wrote: show us some code. - Original Message - From: "Paul Chang" <[EMAIL PROTECTED]> To: Sent: Thursday, May 10, 2007 6:07 AM Subject: [Flashcoders] popup blockers and flash I've been experiencing some inconsistent behaviors using ExternalInterface (AS2) to call JavaScript to launch a customized popup window. FireFox works seamlessly for both platforms. Safari on Mac and IE on PC are inconsistent. For example, when I call a custom JavaScript function, IE will choke, but it will work calling the window.open command. Mixed in with all of this is the popup blocker issue. Can someone speak to this issue and suggest a dependable approach? Thanks in advance, Paul -- ___ 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
Re: [Flashcoders] popup blockers and flash
show us some code. - Original Message - From: "Paul Chang" <[EMAIL PROTECTED]> To: Sent: Thursday, May 10, 2007 6:07 AM Subject: [Flashcoders] popup blockers and flash > I've been experiencing some inconsistent behaviors using ExternalInterface > (AS2) to call JavaScript to launch a customized popup > window. > > FireFox works seamlessly for both platforms. > > Safari on Mac and IE on PC are inconsistent. > > For example, when I call a custom JavaScript function, IE will choke, but it > will work calling the window.open command. > > Mixed in with all of this is the popup blocker issue. > > Can someone speak to this issue and suggest a dependable approach? > > Thanks in advance, > Paul > > -- ___ 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] popup blockers and flash
I've been experiencing some inconsistent behaviors using ExternalInterface (AS2) to call JavaScript to launch a customized popup window. FireFox works seamlessly for both platforms. Safari on Mac and IE on PC are inconsistent. For example, when I call a custom JavaScript function, IE will choke, but it will work calling the window.open command. Mixed in with all of this is the popup blocker issue. Can someone speak to this issue and suggest a dependable approach? Thanks in advance, Paul -- Paul Chang, Ph.D. [EMAIL PROTECTED] ___ 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