Adobe Socket Policy File Server Problems

前端 未结 7 885
旧时难觅i
旧时难觅i 2021-01-07 13:27

Has anyone been able to successfully implement a service to serve the required socket policy file to FlashPlayer?

I am running the Python implementation of the servi

7条回答
  •  粉色の甜心
    2021-01-07 14:10

    Assuming you are using AS3...

    You can override crossdomain.xml policy files in your flash like this:

    Security.allowDomain("*");
    Security.allowInsecureDomain("*");
    

    But if you need crossdomain.xml make sure it is in your root of the server you are trying to access. Also try a complely base simple version to make sure it works such as:

    
    
    
    
     
    

    Make sure it is named crossdomain.xml and in your root.

    You can also change the policy file to another server or filename like this:

    Security.loadPolicyFile("http://www.example.com/sub/dir/pf.xml");
    

    If you are using AS2/flash8 (first off I am sorry) then you will need to be sure crossdomain.xml is in the root of the server you are hitting.

提交回复
热议问题