I have created XML file as the following:
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<allow-access-from domain="localhost" />
And add the following code at the beginning of the actionscript:
The socket connect to the server and ask for the policy file and disconnect.
How can I fix that?