Been pulling my hair out for hours today over this. I can't open another website from my already opened flash site.
Here is the code:
GotoFB.addEventListener(MouseEvent.CLICK, gotoFB);
function gotoFB(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.facebook.com"), "_blank");
}
This works from the flash player but not from chrome/ie/firefox..
Had some problems with navigateToUrl in recent chrome-update in my Flex-app. Had to use this workaround:
ExternalInterface.call("window.open", url, target);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With