# Loading jpg/gif into movieclip

**URL:** <https://forum.kirupa.com/t/loading-jpg-gif-into-movieclip/261063>\
**Category:** flash\
**Created:** [May 22, 2008, 7:02pm UTC](https://forum.kirupa.com/t/loading-jpg-gif-into-movieclip/261063 "2008-05-22T19:02:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackcoma](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@blackcoma](https://forum.kirupa.com/u/blackcoma)\
**Post date:** [May 22, 2008, 7:02pm UTC](https://forum.kirupa.com/t/loading-jpg-gif-into-movieclip/261063/1 "2008-05-22T19:02:57Z")

</div>

Hi,  
I want to create a gallery,  
to do so, I need to create about 10 movieclips 100x100 on the stage  
and load jpg/gif files into them.  
How can I do it in AS3?

Thanks

---

<div class="post-metadata">

**Author:** ![mpelland](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mpelland](https://forum.kirupa.com/u/mpelland)\
**Post date:** [May 22, 2008, 7:29pm UTC](https://forum.kirupa.com/t/loading-jpg-gif-into-movieclip/261063/2 "2008-05-22T19:29:08Z")

</div>

just create a loader and a URLRequest, and have an event handler there for when the image is done loading

var loader:Loader = new Loader();  
var mRequest:URLRequest = new URLRequest(“file”);  
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);  
loader.load(mRequest);
