AS3 Preloader for UILoader Problem

Hey guys, I am developing a photo gallery using the UILoader to load external (larger resolution) images after the thumbnail is clicked on. It appears everything is working when I test the movie, except I receive this error:

Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

Again the loader shows, and the picture loads when it is done, I’m just not sure about that error message. The action script for clicking on the thumbnail is:


function onBlackClick(evt:MouseEvent):void{
    var myRequest:URLRequest = new URLRequest("pic1.jpg");
    var myLoader:Loader = new Loader();
    myLoader.load(myRequest);
    
myLoader.contentLoaderInfo.addEventListener(Event.OPEN,showPreloader);
myLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,showProgress); myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,showContent);
    
    var myPreloader:Preloader = new Preloader();
    
    function showPreloader(event:Event):void {
        addChild(myPreloader);
        myPreloader.x = stage.stageWidth/2;
        myPreloader.y = stage.stageHeight/2;
    }
    
    function showProgress(event:ProgressEvent):void {
        var percentLoaded:Number = event.bytesLoaded/event.bytesTotal;
        myPreloader.loading_txt.text = "Loading - " + Math.round(percentLoaded * 100) + "%";
        myPreloader.bar_mc.width = 198 * percentLoaded;
    }
    
    function showContent(event:Event):void {
        removeChild(myPreloader);
        ldr.source = "pic1.jpg";
    }
}
black.addEventListener(MouseEvent.CLICK,onBlackClick);

Any help would be greatly appreciated or even suggestions on how to better go about preloading images in the UILoader.

Thanks in advance for any help,
Brian