Skip to main content
Known Participant
September 10, 2013
Question

AS3 popover code only working in Chrome

  • September 10, 2013
  • 3 replies
  • 890 views

I'm using this AS3 code to open popover window:

//facebook button//

fbBtn.addEventListener(MouseEvent.CLICK, fb);  function fb(Event:MouseEvent):void{

ExternalInterface.call("window.open", "https://www.facebook.com/pages/Voiceguy1-Communications-Voiceovers-by-Chris-Mezzolesta/105793199443085?fref=ts", "win", "height=559,width=1000,toolbar=no,scrollbars=yes", "_blank");  } 

It works great in Chrome.  In Safari it takes a long time (30-60 seconds) to work.  In Firefox it gives me this error message:

Warning: Unresponsive script A  script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.  Script: http://chrisvoiceover.com/:16

but still opens the popover, only it opens behind the browser. 

Help?

This topic has been closed for replies.

3 replies

kglad
Community Expert
Community Expert
September 10, 2013

there's nothing in that code that would cause a problem like that in firefox.

to confirm, create a new fla add that button and that code and test.  any problem?

smaudlinAuthor
Known Participant
September 10, 2013

I tried that and am still having this issue. It is also happening on these,

separate sites:

http://arthur-chu.com/ (click any of the social media links on the ³eraser²)

http://robinrayeller.com/ (click any of the social media links at the

bottom)

http://www.perrynorton.com/ (click any of the social media links at the

bottom)

I could list lots of others with the same code causing the same issue but

only in Firefox.

I just discovered thought that in an AS2 site that I built,

http://adambehr.com that the popover code that I used works fine in Firefox,

Safari and Chrome. That code is:

on (release) {

var jscommand:String =

"window.open('http://www.youtube.com/user/tundramonkey100/videos?view=1','wi

n','height=559,width=1000,toolbar=no,scrollbars=yes');";

getURL("javascript:" + jscommand + " void(0);");

}

Jason

kglad
Community Expert
Community Expert
September 10, 2013

try uninstalling your flash player, http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html

and then installing the latest flash player, http://get.adobe.com/flashplayer/

p.s. untick mcafee