title: Socket: Security sandbox violation
body: <p>I'm trying to open a socket to my server, but it doesn't work, I'm always getting the famous </p>
  
  <pre><code>Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://zappy.mydomain.fr/ZappyGraphic.swf cannot load data from zappy.mydomain.fr:4242.
  </code></pre>
  
  <p>I have a <code>crossdomain.xml</code> at the root of my domain, looking like that:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"&gt;
  &lt;cross-domain-policy&gt;
      &lt;allow-access-from domain="*" secure="false" /&gt;
      &lt;site-control permitted-cross-domain-policies="master-only"/&gt;
      &lt;allow-http-request-headers-from domain="*" headers="*"/&gt;
  &lt;/cross-domain-policy&gt;
  </code></pre>
  
  <p>And in my actionscript program, here is how I load the crossdomain policies</p>
  
  <pre><code>Security.allowDomain("*");
  Security.allowInsecureDomain("*");
  Security.loadPolicyFile("http://mydomain.fr/crossdomain.xml");
  </code></pre>
  
  <p>The server is located at mydomain.fr on the port 4242 and the <code>swf</code> file is located at <code>http://zappy.mydomain.fr/index.html</code>...</p>
  
  <p>Can someone enlighten me?</p>