How to open a url in the browser using AS3 on a standalone flash projector?
var request:URLRequest = new URLRequest("h开发者_JAVA百科ttp://google.com");
navigateToURL(request, "_blank");
This works fine on web based swfs, it fails on flash player. can anyone help?
locally played swfs are in different sandbox that forbids opening outsides urls.
You can make it work if you export it as .exe or try Air.
If you just want to test your swfs locally you can add a 'trusted' directory here http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
精彩评论