actionscript-3stage3dnavigatetourl

Action Script navigateToURL not working with stage3d


this simple code is not working for me :

stage.addEventListener(MouseEvent.CLICK, OnClick);

protected function OnClick(e:MouseEvent)
{
    navigateToURL(new URLRequest("http://www.stackoverflow.com"), "_blank");
}

later i want url to open from flascc but that can be easily done if this works, if this is because of security reason then is there any other way to do this? i saw in game called decision 2 their urls work even in debug version flash player + in all browsers. so there must be some other way to do this if navigateToURL dosent work.


Solution

  • Add the folder f:\flascc (or all disk f:) to the flash trusted locations in the security panel (you can also open this panel by the right click on any swf opened in the browser)