开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜