ThomasJSmart
Programmer
- Sep 16, 2002
- 634
Hi
I have made a PHP socket server that is working fantastic in IE6 but flash cant connect to it in IE7 and FF..
The locations:
Flash: Server and Policy:
As it works fine in IE6 im assuming the server is fine and the problem is with flash or how the policy file is loaded in browsers other than IE6.
Code for loading policy:
I tried this in flash:
Any ideas??
thanks!
Thomas
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
I have made a PHP socket server that is working fantastic in IE6 but flash cant connect to it in IE7 and FF..
The locations:
Flash: Server and Policy:
As it works fine in IE6 im assuming the server is fine and the problem is with flash or how the policy file is loaded in browsers other than IE6.
Code for loading policy:
Code:
if (preg_match("/policy-file-request/i", $buffer) || preg_match("/crossdomain/i", $buffer) || preg_match("/HTTP/i", $buffer) || preg_match("/GET/i", $buffer) || preg_match("/POST/i", $buffer)){
// show policy as shown in link above
}
I tried this in flash:
Code:
System.security.loadPolicyFile('[URL unfurl="true"]http://beinspired.com:61982');[/URL]
System.security.allowDomain('beinspired.com:61982');
System.security.allowDomain('*');
Any ideas??
thanks!
Thomas
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!