title: How to embed external SWF from file:// protocol
body: <p>I'm trying to embed an external .swf file from an HTA application that consists of HTML content, javascript and vbscript. I load the swf from javascript, using swfobject.</p>
  
  <p>The remote server allows 'localhost' as the originating server, and I could embed it on an HTML page on my webserver, running on <a href="http://localhost" rel="nofollow noreferrer">http://localhost</a>, but I need to make it work from the locally-run HTA, which I suppose uses the file:// protocol, not http://. Right now, when trying this approach, embedded swf signals an error.</p>
  
  <p>I checked crossdomain.xml on the remote site and it says:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;!DOCTYPE cross-domain-policy 
      SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"&gt;
  &lt;cross-domain-policy&gt;
  &lt;allow-access-from domain="localhost" to-ports="*" /&gt;
  ...
  &lt;/cross-domain-policy&gt;
  </code></pre>
  
  <p>Is there a way to make it work from my HTA app without running a webserver?</p>
  
  <p>Thanks.</p>