Reputation: 66935
How to open a Browser popUp window from Actionscript ( Flash )? ( Any Code sample would be wary appreciated )
Upvotes: 0
Views: 3517
Reputation: 19993
From Adobe's Create pop-up browser windows:
var jscommand:String = "window.open('http://www.adobe.com','win','height=200,width=300,toolbar=no,scrollbars=yes');";
var url:URLRequest = new URLRequest("javascript:" + jscommand + " void(0);");
navigateToURL(url, "_self");
Running this will open the popup. This is for AS3.
Upvotes: 2
Reputation: 31883
The way to call Javascript from Flash is with the ExternalInterface
class.
Upvotes: 1
Reputation: 114347
You need to call a JavaScript function from Flash to do this.
Upvotes: 1