flash - 如何在 actionscript 中为 crossdomain.xml 指定自定义位置?

标签 flash actionscript crossdomain.xml

我们在媒体托管服务器上托管 swf Assets ,无法将文件获取到根目录,有人知道为 crossdomain.xml 指定自定义位置的代码是什么样的吗?示例代码(如果有)。

最佳答案

我不想回答我自己的问题,但我找到了代码,所以我想我会在这里发布以增加这个问题的引用值(value):

pulled from: http://www.voiceoftech.com/swhitley/?p=117

The problem with setting up a crossdomain.xml file on the SSL server is that I don’t have access to the server. It’s just pointing to a virtual root on my server and I don’t have access to the SSL server’s web root.

flash.system.Security.loadPolicyFile("{Url to my crossdomain.xml file on the SSL virtual root}");

With these changes in place, I’m able to easily integrate Google Accounts with my Flash app.

关于flash - 如何在 actionscript 中为 crossdomain.xml 指定自定义位置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/213655/

相关文章:

python - 从 GAE 数据存储区删除数据时出现错误 : AttributeError: 'list' object has no attribute 'fetch'

javascript - html5/css/js 制作复杂的基于模块的软件平台(逃离 Adob​​e Flash)

actionscript-3 - Flash CS6错误1120 : Access of undefined property (AS3)

Flash 安全沙箱 : crossDomain. xml 不起作用

flash - 带有Flash的YouTube浏览器上传(安全错误#2049)

wcf - Silverlight WCF + SSL 安全错误 - 从未请求过 crossdomain.xml

javascript - node.js swf提取definebitslossless2不正确的像素

javascript - 如何在 AS3 中制作类似 Gridster.js 的 Tile/Grid 布局?

actionscript-3 - AS3 |从 URL 加载图像并开始拖动问题

apache-flex - Linux下ActionScript3字体编译转码错误