I am using a content loader through AS3 to load some images and then later pushed into an array.
I have pushed my image file paths in to an array (arrayImages).
But when the loader loads the images it doesn’t load the images based on the order they are listed in the arrayImages, instead they were loaded based on their file sizes.
Is there anyway that these can be loaded in the order they were pushed to the array?
Below is the code that i use to load the images.
function funcLoadImages() {
for (var i:uint=0; i<arrayImages.length; i++) {
var ldrImageLoader:Loader=new Loader();
ldrImageLoader.load(new URLRequest(arrayImages*)); ldrImageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,pushLoadedImagetoAnotherArray);
}
}