Hi,
I'm creating a Flash movie which uses an XMLSocket as one of the methods it connects to the server. At the moment I am trying to test this movie and check that the connection works. The problem I'm having is that I cannot establish a connection between the movie and the website via the XMLSocket. I am testing this on my local machine so both the site and the movie are in the same domain.
The error I keep getting is:
* Security Sandbox Violation * Connection to http://127.0.0.1:444 halted - not permitted from http://127.0.0.1/CommsManager/CommsManager.swf
My crossdomain policy file allow access to all domains and the specified ports, it looks like this:
THis is how I'm connecting to the XMLSocket in my ActionScript class:
Security.loadPolicyFile("xmlsocket://127.0.0.0:444"); socket = new XMLTransportSocket(this); socket.connect("http://127.0.0.1", 444); trace("socket.connected " + socket.connected )
The trace statement always returns false.
Does anyone know why I can't connect on localhost?
Thanks
Stephen