Hi awesome Kirupa people!
I need some help getting a new window to pop up. I have a flash movie playing on a page ( a music player ) and I want to pop up the same music player in a new window.
Below is the code I’m using. It works in Firefox but not in Safari. Does anyone know anything about getting this to work that I’m missing, or is it just not possible in Safari? Any help is greatly appreciated.
Salud!
Eric
public function openPopup(event:MouseEvent):void {
var address:String = "http://www.google.com";
var jscommand:String = "window.open";
var windowname:String = "NewWindow";
var windowfeatures:String = "height=240,width=325,toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,location=no";
var jsargs:String = "'" + address + "','" + windowname + "','" + windowfeatures + "'";
if(ExternalInterface.available) {
ExternalInterface.call( jscommand , address, windowname, windowfeatures);
} else {
var url:URLRequest = new URLRequest("javascript:" + jscommand + "(" + jsargs + "); void(0);");
navigateToURL(url,"_self");
}
}