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.

有帮助吗?

解决方案

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)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top