开发者

How to open a url in the browser using AS3 on a standalone flash projector?

开发者 https://www.devze.com 2023-01-04 16:51 出处:网络
var request:URLRequest = new URLRequest(\"h开发者_JAVA百科ttp://google.com\"); navigateToURL(request, \"_blank\");
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

精彩评论

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