# Help - load array of jpg into multiple containers?

**URL:** <https://forum.kirupa.com/t/help-load-array-of-jpg-into-multiple-containers/255055>\
**Category:** Uncategorized\
**Created:** [March 18, 2008, 4:59pm UTC](https://forum.kirupa.com/t/help-load-array-of-jpg-into-multiple-containers/255055 "2008-03-18T16:59:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![schammy79](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@schammy79](https://forum.kirupa.com/u/schammy79)\
**Post date:** [March 18, 2008, 4:59pm UTC](https://forum.kirupa.com/t/help-load-array-of-jpg-into-multiple-containers/255055/1 "2008-03-18T16:59:18Z")

</div>

[SIZE=2]I would like to load an array of 5 images into 5 different UILoaders (named picLoader1 -\> picLoader5).[/SIZE]  
[SIZE=2]How do I assign one picture to each picLoader ?[/SIZE]  
[SIZE=2]I have a piece of code below, but I don’t know how to finish it… So if you guys wanna help… THANKS!!![/SIZE]

**var images:Array = [“img1.jpg”, “img2.jpg”, “img3.jpg”, “img4.jpg”, “img5.jpg”];**

**function loadImages(myrequest:URLRequest):void {**  
**var imageLoader:URLLoader = new URLLoader();**  
**imageLoader.addEventListener(Event.COMPLETE, imageReady);**  
**imageLoader.load(myrequest);**  
**}**

**function imageReady(event:Event) {**  
**// this is where I hit a wall…**  
**}**
