title: Loading image from URL in actionscript 3 not completing
body: <p>I am attempting to make an app in which you can load an image file from your computer or from a URL. I have the computer file part working fine, but am having an issue when I'm trying to load an image from a URL.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>public function loadNetImage(): void {
   if (urlFile.text != "")
   {
     loader.addEventListener(Event.COMPLETE, loaderComplete);
     loader.addEventListener(IOErrorEvent.IO_ERROR, handleIOError); 
     loader.addEventListener( HTTPStatusEvent.HTTP_STATUS, handleHttpStatus); 
     loader.addEventListener( SecurityErrorEvent.SECURITY_ERROR, handleSecurityError);
     try {
       var request:URLRequest = new URLRequest(urlFile.text);
       loader.load(request);
     }
     catch (e:Error)
    {
       trace(e);
    }
   }
  }
  </code></pre>
  
  <p>The problem: After the load is requested, it doesn't call any of my events. There are no errors and there is no loading. You can see from this code a snippet of things I've tried to see if there is an error.</p>
  
  <p>urlFile.text is a string returning from my flex textInput. I put in a hard coded string instead of the urlFile.text and that did not work. I changed to a URLLoader instead of a base Loader, and that sort of worked (it completed the load) but I couldn't do the image manipulation afterwards that I wanted to do, and I saw in other posts here that a Loader is the correct thing to be using.</p>
  
  <p>Any help would be greatly appreciated. It's probably something small, but I am rather frustrated by it at this point.</p>