title: AS3 Security error #2048 socket connection
body: <p>I'm working in a company which creates a huge strategy game with ActionScript3.</p>
  
  <p>I'm one of the developers here and have some issues with Socket Connections.
  Socket works perfect when I use it in internal flash player or in firefox debug, it shows socket error #2048 when I'm trying to open the project with Google Chrome.</p>
  
  <p>Here is the code which I use at first before trying to make a Socket Connection.</p>
  
  <pre><code>Security.allowDomain("*");
  Security.allowInsecureDomain("*");
  Security.loadPolicyFile("mydomain.com/crossdomain.xml");
  </code></pre>
  
  <p>And here is the content of crossdomain.xml file.</p>
  
  <pre><code>&lt;cross-domain-policy&gt;
  &lt;cross-domain-policy&gt;
  &lt;allow-access-from domain="*"/&gt;
  &lt;site-control permitted-cross-domain-policies="master-only"/&gt;
  &lt;allow-access-from domain="*" to-ports="100-60000" secure="false"/&gt;
  &lt;/cross-domain-policy&gt;
  </code></pre>
  
  <p>Then the connect function works to make a Socket Connection with server.</p>
  
  <pre><code>instance.host = host;
  instance.port = port;
  socket = new Socket(host, port); //Initializing the socket
  </code></pre>
  
  <p>Is there any problems with Server or the problem caused by Chrome?
  If you had the same issue and found something useful please answer to this question.
  I'm searching a solution for a few days, but nothing works.</p>