title: AS3 Loading XML from a different domain
body: <p>I am trying to load an xml file from wikipedia into my flash movie.</p>
  
  <pre><code>loader = new URLLoader();
  loader.addEventListener(Event.COMPLETE, tweetLoaded);
  loader.load(new URLRequest("http://en.wikipedia.org/w/api.php?action=query&amp;rvprop=content&amp;format=xml&amp;pageids="+subNum));
  loader.addEventListener(IOErrorEvent.IO_ERROR, onIOErrorFunction);
  </code></pre>
  
  <p>This works fine when the flash file is run locally but when I upload to my domain it does not seem to work. I have read elsewhere that the cross domain rule does not apply to XML files only to images and other media. Is this true? If not is there a work around so that I can load in XML files from domains other than the one the swf is hosted on?</p>
  
  <p>thanks</p>
  
  <p>EDIT: </p>
  
  <p>Okay I am really confused, my program queries both Bing API and the media wiki API. The Bing api call works fine, I can retrieve the XML search results back from it fine. But the wikipedia call does not work (online). I have tried listening for the Security_Error on the wikipedia call but it does not fire.</p>
  
  <p>Does anyone have any ideas? Losing it a bit.</p>