mmm84
04-09-2008, 04:27 PM
I am trying to open a popup window using javascript... But it ain't working ! LOL
I basically took the code from a tutorial there http://www.flepstudio.org/forum/articoli-e-tutorials/376-aprire-una-popup-con-flash-cs3-e-javascript.html
I saw that most tutorials follow the same structure. I also saw that other people experience the same problem with IE. But most visitors on my website use IE, so I got to make it work!
var js:URLRequest=new URLRequest();
js.url="javascript:window.open('http://www.adobe.com','popper1','width=500,height=400');n ewWindow.focus(); void(0);";
function openPopUp(evt:MouseEvent):void
{
navigateToURL(js,'_blank');
}
When I try it, I get a message from IE saying "Internet Explorer cannot download. Unspecified error"
I tried my luck with ExternalInterface, but then, nothing happens at all... No error, no popup, no msg. Nothing.
Any insight, any help???
I basically took the code from a tutorial there http://www.flepstudio.org/forum/articoli-e-tutorials/376-aprire-una-popup-con-flash-cs3-e-javascript.html
I saw that most tutorials follow the same structure. I also saw that other people experience the same problem with IE. But most visitors on my website use IE, so I got to make it work!
var js:URLRequest=new URLRequest();
js.url="javascript:window.open('http://www.adobe.com','popper1','width=500,height=400');n ewWindow.focus(); void(0);";
function openPopUp(evt:MouseEvent):void
{
navigateToURL(js,'_blank');
}
When I try it, I get a message from IE saying "Internet Explorer cannot download. Unspecified error"
I tried my luck with ExternalInterface, but then, nothing happens at all... No error, no popup, no msg. Nothing.
Any insight, any help???