# Help with Loading External Images with AS3

**URL:** <https://forum.kirupa.com/t/help-with-loading-external-images-with-as3/267870>\
**Category:** flash\
**Created:** [August 6, 2008, 4:33pm UTC](https://forum.kirupa.com/t/help-with-loading-external-images-with-as3/267870 "2008-08-06T16:33:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ibanez271](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@Ibanez271](https://forum.kirupa.com/u/Ibanez271)\
**Post date:** [August 6, 2008, 4:33pm UTC](https://forum.kirupa.com/t/help-with-loading-external-images-with-as3/267870/1 "2008-08-06T16:33:50Z")

</div>

I just want to be able to load an image to the stage through actionscript.  
Here is the code I have that I thought would work

```auto

var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
loader.load(new URLRequest("bluelock.gif"));
 
function imageLoaded(event:Event):void
{
   var image:Bitmap = new Bitmap(event.target.content.bitmapData);
   addChild(image);
}

```

Alright so the code does find the image and runs my imageLoaded function. Then on the stage it seems to be loading something on to the stage, but I cannot see anything? There is no image.
