title: Trouble with crossdomain.xml
body: <p>I'm having some difficulty getting my cross domain policy to work.
  I have an swf at <code>http://www.server.com/</code> that loads in XML and other files. I want to be able to embed that swf in other HTML pages (YouTube stylee) that aren't in the same domain. It works fine when access via it's local server <code>http://www.server.com/my.swf</code> or <code>http://www.server.com/swf.html</code> but when I try to embed it won't load the XMLs and/or gives me a <code>Security sandbox violation</code></p>
  
  <p>The published SWF is set to <code>Security.REMOTE</code></p>
  
  <p>crossdomain.xml allows all:</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="*" to-ports="*"/&gt;
  &lt;/cross-domain-policy&gt;
  </code></pre>
  
  <p>Hope you can help</p>
  
  <p>UPDATE 1</p>
  
  <p>An example of the embed code is:</p>
  
  <pre><code>&lt;!-- Embedding --&gt;
  &lt;object width='400' height='300'&gt;
  &lt;param name='movie' value='http://www.server.com/my.swf'&gt;&lt;/param&gt;
  &lt;param name='allowFullScreen' value='true'&gt;&lt;/param&gt;
  &lt;param name='allowscriptaccess' value='always'&gt;&lt;/param&gt;
  &lt;param name='FlashVars' value="stream=1281002679" &gt;&lt;/param&gt;
  &lt;embed src='http://www.server.com/my.swf' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='400' height='300'&gt;&lt;/embed&gt;
  &lt;/object&gt;
  </code></pre>
  
  <p>... which could be added to any webpage on any domain</p>
  
  <p>UPDATE 2</p>
  
  <p>policyfiles.txt (192.168.100.55 is my local testing server containing embedded example):</p>
  
  <pre><code>OK: Root-level SWF loaded: http://www.server.com/my.swf
  OK: Searching for &lt;allow-access-from&gt; in policy files to authorize data loading from resource at http://192.168.100.55/data/configuration.xml?refresh=0.2777715688571334 by requestor from http://www.server.com/my.swf
  Warning: Failed to load policy file from http://192.168.100.55/crossdomain.xml
  Error: Request for resource at http://192.168.100.55/data/configuration.xml?refresh=0.2777715688571334 by requestor from http://www.server.com/my.swf is denied due to lack of policy file permissions.
  </code></pre>
  
  <p>flashlog.txt extract
  <code>Warning: Failed to load policy file from http://192.168.100.55/crossdomain.xml</code></p>
  
  <p>Do I need to load the crossdomain.xml via <code>Security.loadPolicyFile('http://www.server.com/crossdmoain.xml')</code>??</p>