I want to make a chat app using socket in as3. I have already followed many examples but none of them helped much. Right now i am following this link.
I am running php at localhost using xampp.Also i have already ran policySocketServer.php,socketServer.php as written in page comments.
i am using this to load policy file
Security.loadPolicyFile("xmlsocket:127.0.0.1/chat/crossdomain.xml:843");
and to connecting to ourXMLSocket.connect("http://127.0.0.1/chat/", "9999");
but i am getting these errors
IOErrorEvent error Error #2031: Socket Error. URL: http://127.0.0.1/chat/
security error Error #2048: Security sandbox violation: file:///C|/Users/irfan/Desktop/socket%5Fserver/socket%5Fserver.php/AS3%20Game%20Implementation/TestGame.swf cannot load data from http://127.0.0.1/chat/:9999.