I'm attempting to connect an xmlsocket to a java server using actionscript 2.
I can get it to work fine in "Test Movie", but in a browser I'm having problems with the cross domain policy file. The server app receives the request for the policy file and responds to it with the XML content of the file, but when debugging it claims the request times out:
Warning: Timeout on xmlsocket://[address]:4041 (at 3 seconds) while waiting for socket policy file. This should not cause any problems, but see http://www.adobe.com/go/strict_policy_files for an explanation.
I am trying to connect to my external address through a no-ip domain service, and the swf is located on the web server on this address.
I'm not 100% sure whether it is a problem with my server program or the flash client. Here is the part which sends the policy file (server app):
else if (line.equals("<policy-file-request/>")) {
out.println("<cross-domain-policy><allow-access-from domain='*' to-ports='*' /></cross-domain-policy>"+EOF);
}
EOF is a null chatacter (0).
Tests show that it matches the if clause, and therefore should be sending the xml file.