简体   繁体   English

如何在独立的Flash投影仪上使用AS3在浏览器中打开URL?

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

var request:URLRequest = new URLRequest("http://google.com");
navigateToURL(request, "_blank");

This works fine on web based swfs, it fails on flash player. 这在基于Web的swfs上正常运行,在Flash Player上失败。 can anyone help? 有人可以帮忙吗?

locally played swfs are in different sandbox that forbids opening outsides urls. 本地播放的瑞士法郎位于不同的沙箱中,禁止打开外部URL。
You can make it work if you export it as .exe or try Air. 如果将其导出为.exe或尝试使用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 如果您只想在本地测试瑞士法郎,则可以在此处http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html添加“受信任”目录

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM