title: Loading a picture using AS3 issues
body: <p>I am trying to upload a picture when a user clicks on a button using AS3. I have a button and a progress bar on the stage. This is the relevant code:</p>
  
  <pre><code>var myLoader:Loader = new Loader();
  
  myPB.source = myLoader.contentLoaderInfo;
  
  btn_one.addEventListener(MouseEvent.CLICK, btnImage);
  
  function btnImage(event:MouseEvent):void{
     myLoader.load(new URLRequest("MyPic.jpeg"));
     addCild(myPB);
     removeChild(myPB);
     btn_one = null;
  
  myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, finishImage);
       function finishImage(event:Event):void{
        addChild(myLoader);
        removeChild(myLoader);
        btn_one = null;
  </code></pre>
  
  <p>When I execute the code this error appears  Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found
  Any ideas were I am going wrong?</p>