title: Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation:
body: <p>I have created a crosdomain policy file, I have added code to my flex app, and I still get security sandbox violation...have I done something wrong? Here are my errors and file snippets:</p>
  
  <pre><code>Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://mysite.com/folder1/folder2/media/swf_demo.swf cannot load data from http://mysite.com/folder1/folder2/media/locXML.xml.
  
  swf_demo.swf is my flex application
  </code></pre>
  
  <p>The following lines have been added to my flex application:</p>
  
  <pre><code>Security.allowDomain("mysite.com");
  Security.allowDomain("www.mysite.com");
  Security.allowDomain("http://mysite.com/folder1/folder2/media/locXML.xml");
  </code></pre>
  
  <p>During my init() function, my first line reads:</p>
  
  <pre><code>Security.loadPolicyFile("http://mysite.com/crossdomain.xml");
  </code></pre>
  
  <p>Here is my crossdomain.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;cross-domain-policy&gt;
  &lt;allow-access-from domain="www.mysite.com" secure="false"/&gt;
  &lt;/cross-domain-policy&gt;
  </code></pre>
  
  <p>why is it throwing this error? I have to be doing something wrong...</p>