# Preloader - multiple images

**URL:** <https://forum.kirupa.com/t/preloader-multiple-images/249920>\
**Category:** Uncategorized\
**Created:** [January 23, 2008, 7:21pm UTC](https://forum.kirupa.com/t/preloader-multiple-images/249920 "2008-01-23T19:21:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shuga](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@shuga](https://forum.kirupa.com/u/shuga)\
**Post date:** [January 23, 2008, 7:21pm UTC](https://forum.kirupa.com/t/preloader-multiple-images/249920/1 "2008-01-23T19:21:02Z")

</div>

i think my problem has something to do with order of operations. my\_mc and preload only get created once and i think each successive image load is replacing them

```auto

var images = new Array("one", "two", "three", "four", "five");

var curLoad:Number = 0;

function loadIt(){
	my_mc = new MovieClipLoader();
	preload = new Object();
	this.createEmptyMovieClip("container", this.getNextHighestDepth());	
	my_mc.addListener(preload);
	my_mc.loadClip(images[curLoad]+".jpg", "container");
	trace(curLoad);
}

preload.onLoadStart = function(targetMC) {
	// container._visible = true;
};

preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
	circle._rotation += 20;
};

preload.onLoadComplete = function(targetMC) {
	curLoad ++;
	if (curLoad < images.length){
		loadIt();
	}
};

loadIt();

```
