title: Error #2044: Unhandled IOErrorEvent:. Flash AS3
body: <p>trying to see why I get this error every time I run this small piece of code in Flash!</p>
  
  <p>the error: Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.</p>
  
  <p>the code:</p>
  
  <pre><code>import flash.display.Loader;
  import flash.events.Event;
  import flash.net.URLRequest;
  
  var xmlLoader:URLLoader;
  var xml:XML;
  
  var uRequest = new URLRequest("http://xxxxxxx/app.php");
  xmlLoader = new URLLoader(uRequest);
  xmlLoader.addEventListener(Event.COMPLETE, onXMLLoad);
  var imgLoader:Loader;
  
  function onXMLLoad(e:Event) {
      xml = new XML(e.target.data);
      imgLoader = new Loader();
      imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImgLoaded);
      imgLoader.load(new URLRequest(xml.Data.Image.text()[0]));
  }
  
  function onImgLoaded(e:Event) {
      addChild(imgLoader);
  }
  </code></pre>
  
  <p>The XXXXXXX is the url to my site by the way.</p>
  
  <p>I just can find the reason why this error is getting spat out as I checked the URL a few times and it is correct URL.</p>