# Loading multiple images dynamically

**URL:** <https://forum.kirupa.com/t/loading-multiple-images-dynamically/318884>\
**Category:** Uncategorized\
**Created:** [February 2, 2011, 6:06pm UTC](https://forum.kirupa.com/t/loading-multiple-images-dynamically/318884 "2011-02-02T18:06:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lemonlemon](https://avatars.discourse-cdn.com/v4/letter/l/db5fbb/32.png) [@lemonlemon](https://forum.kirupa.com/u/lemonlemon)\
**Post date:** [February 2, 2011, 6:06pm UTC](https://forum.kirupa.com/t/loading-multiple-images-dynamically/318884/1 "2011-02-02T18:06:52Z")

</div>

hi,

trying to load several images to timeline keyframes,  
managed to load one, how to load several,  
Here´s the code:

var imageLoader:Loader;

function loadImage(url:String):void {  
// Set properties on my Loader object  
imageLoader = new Loader();  
imageLoader.load(new URLRequest(url));  
imageLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading);  
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);  
}  
loadImage(“Images/pori1.jpg”);

function imageLoaded(e:Event):void {  
// Load Image  
imageArea.addChild(imageLoader);  
}

function imageLoading(e:ProgressEvent):void {  
// Use it to get current download progress  
// Hint: You could tie the values to a preloader 🙂  
}
