我们在媒体托管服务器上托管 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/