Flash client XMLSocket not connecting to server

前端 未结 1 479
既然无缘
既然无缘 2020-12-12 00:20

I have a Flash client that I want to connect to a server. Both are using localhost and port 50000 so there shouldn\'t be any cross-domain problems. I also set Access Netwo

1条回答
  •  没有蜡笔的小新
    2020-12-12 01:01

    This ended up being a security problem. The Flash Player has added security when a XMLSocket is used. The Flash Player now looks for a policy file on port 843. An alternative is to have the swf look for the policy file using the call Security.loadPolicyFile(). If the file exists and all the security settings permit the XMLSocket, then the connection is created.

    Check out the Adobe article on Policy files and more info here. This is another good article about policy files.

    Here is the policy file that finally worked for me. It is not restrictive at all. But, I figured I get things working and then make them right.

    
    
    
    
     
    
       
       
    
    
       
       
       
    
    
    

    0 讨论(0)
提交回复
热议问题