This is the Class I'm using to bypass the popup blocker.
This is the function to call to the class function
function linkHandler(e:MouseEvent):void{
popup.ChangePage(linksURLArray[e.currentTarget.name], "_self");
}
this is the class.
package com.dbd.external {
import flash.external.ExternalInterface;
import flash.net.*;
public class PassPopup {
public function ChangePage(url:*, window:String = "_blank"):void {
var req:URLRequest = url is String ? new URLRequest(url) : url;
if (!ExternalInterface.available) {
navigateToURL(req, window);
} else {
var strUserAgent:String = String(ExternalInterface.call("function() {return navigator.userAgent;}")).toLowerCase();
if (strUserAgent.indexOf("firefox") != -1 || (strUserAgent.indexOf("msie") != -1 && uint(strUserAgent.substr(strUserAgent.indexOf("msie") + 5, 3)) >= 7)) {
ExternalInterface.call("window.open", req.url, window);
} else {
navigateToURL(req, window);
}
}
}
}
}
I'm working locally, http://localhost/ and trying to link externally to another domain.