title: Is it possible to inject an external javascript reference into the host page from a SWF?
body: <p>I have a SWF advert that needs to call the Facebook API, for which I need the following single-line reference in the host HTML page:</p>
  
  <pre><code>&lt;script type="text/javascript" src="//connect.facebook.net/en_US/all.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Since I am dealing with an advert, I don't have control over the host page. I understand I can inject functions into a page (there's a good reference for this here: <a href="http://www.actionscript.org/resources/articles/745/4/JavaScript-and-VBScript-Injection-in-ActionScript-3/Page4.html" rel="nofollow">http://www.actionscript.org/resources/articles/745/4/JavaScript-and-VBScript-Injection-in-ActionScript-3/Page1.html</a>), but I haven't found a way to add a reference to an externally-hosted script.</p>
  
  <p>Does anybody know if this can be done, and if so, how?</p>