John
Visitor
|
Cross Domain Problems - 2008/05/07 07:34
I'm running the swf on hamachi. IP = 5.209.131.8 / Port = 2568 The game is located on http://5.209.131.8/Lawl.swf but you can only see it if you're connected to my hamachi network.
Palabre.conf: alloweddomains = http://5.209.131.8/
Flash: sock.connect("5.209.131.8", 2568); System.security.loadPolicyFile("xmlsocket://5.209.131.8:2568")
I also have tried like the FAQs said but i couldn't get it to work.
| Code: | System.security.loadPolicyFile("xmlsocket://5.209.131.8:2568")
sock.connect("http://5.209.131.8/Lawl.swf",2568)
sock.onConnect = function (success)
{
if (success)
{
login_btn.enabled = true;
res_txt.text = "Connection Established!";
}
else
{
res_txt.text = "Connection failed...";
sock.connect("5.209.131.8", 2568);
}
};
|
I can only login after it fails to connect to web and connects with " sock.connect("5.209.131.8", 2568);"
When i run it on web however it doesnt work at all. Any one can help?
|