We are hosting the swf assets on a media hosting server and can't get a file to the root, anyone know what the code looks like to specify a custom location for crossdomain.xml? Sample code if you have it.
我们在媒体托管服务器上托管swf资产,无法将文件提供给根,任何人都知道为crossdomain.xml指定自定义位置的代码是什么样的?如果有的话,请提供示例代码。
1 个解决方案
#1
3
I hate to answer my own question but I found the code so I thought I'd post here to add to the reference value of this question:
我讨厌回答我自己的问题,但我找到了代码,所以我想我会在这里发帖添加这个问题的参考值:
pulled from: http://www.voiceoftech.com/swhitley/?p=117
来自: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.
在SSL服务器上设置crossdomain.xml文件的问题是我无法访问服务器。它只是指向我服务器上的虚拟根目录,而我无法访问SSL服务器的Web根目录。
flash.system.Security.loadPolicyFile("{Url to my crossdomain.xml file on the SSL virtual root}");
flash.system.Security.loadPolicyFile(“{虚拟根目录上的我的crossdomain.xml文件的Url}”);
With these changes in place, I’m able to easily integrate Google Accounts with my Flash app.
有了这些变化,我就可以轻松地将Google帐户与我的Flash应用程序集成。
#1
3
I hate to answer my own question but I found the code so I thought I'd post here to add to the reference value of this question:
我讨厌回答我自己的问题,但我找到了代码,所以我想我会在这里发帖添加这个问题的参考值:
pulled from: http://www.voiceoftech.com/swhitley/?p=117
来自: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.
在SSL服务器上设置crossdomain.xml文件的问题是我无法访问服务器。它只是指向我服务器上的虚拟根目录,而我无法访问SSL服务器的Web根目录。
flash.system.Security.loadPolicyFile("{Url to my crossdomain.xml file on the SSL virtual root}");
flash.system.Security.loadPolicyFile(“{虚拟根目录上的我的crossdomain.xml文件的Url}”);
With these changes in place, I’m able to easily integrate Google Accounts with my Flash app.
有了这些变化,我就可以轻松地将Google帐户与我的Flash应用程序集成。