Using flash cs3, scripting in AS3.
I have a .net application on the localhost listening on port
My "publish -> settings -> local playback security" is
set to "Access network only".
1. When I try to connect I succeed.
2. The listener side immediately receives 23 bytes of data
(although I can't find any Socket.writeXXX() anywhere on the flash
3. As soon as any data is sent from the .net side to the
flash side I get:
Connection to localhost:1090 halted - not permitted from
With a SecurityErrorEvent with the following text
OnSecurityErrorError #2048: Security sandbox violation:
file:///D|/Flash%20Projects/Polar/Games/Games.swf cannot load data
I tried adding Security.allowDomain("localhost"); in my main
script and in my connection class but that did not change anything.
If anyone can please explain what's happening here?
OK, so now I understand a bit more, and I figure I need a
I tried placing an crossdomain.xml file to where my .swf
compiles to. Reagrding that, it failed to get it with:
"Ignoring policy file with incorrect syntax:
I tried calling
crossdomain1.xml has the folllowing content:
It didn't say anything about it nor did it change the errors
I got before.
It appears the 23 bytes I was talking about in the previous
post are the player's attempt to get a policy file from the socket
I connected to itslef.
This is driving me mad, can anyone please shed some