Skip to main content
Known Participant
January 14, 2014
Question

PopUp code issue

  • January 14, 2014
  • 1 reply
  • 830 views

Hoping someone can help with this ongoing issue I have in AS3.  I am using this code

popupBtn.addEventListener(MouseEvent.CLICK, popup);

function popup(e:MouseEvent):void{

          ExternalInterface.call("window.open", "http://youtu.be/iGAHnZ555nI", "win", "width=1000,height=559");

}

to open a popup/popover window on this test site http://villagegreenstudios.com/view10 .  It works like a charm in Chrome (both Mac and PC) and IE on PC.  It works on Safari, Firefox (Mac) but takes a loooooooong time on Safari and even loooooonger time on FF for the new window to load.  While loading in FF I get the spinning wheel of death and have to force quit after waiting over minute.  I'm currently unable to check it on my PC's FF for unrelated reasons.

Help?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
January 14, 2014

your swf embedding code is incorrect.

you should either let flash publish your embedding html or use swfobject, but not both.

in no case should you use dreamweaver to embed your swf.

smaudlinAuthor
Known Participant
January 14, 2014

Thanks kglad but I threw this site up as a down-and-dirty example of my issue without regard to embedding.  I could be mistaken but I don't think embedding-method is causing this problem.  If you navigate directly to the swf http://villagegreenstudios.com/view10/popuptest.swf  the problem still exists.

Correct me if I'm wrong.

kglad
Community Expert
Community Expert
January 14, 2014

i don't see a problem navigating directly to the swf (using the link in message 2) and i see a problem when navigating to the html (using the link in message 1).

i tested using ff.