Hello
In your Main-constructor, call the function bellow.
PHP Code:
public function loadImages()
{
for (var i = 0; i < _nrOfImages; i++)
{
var loader:Loader = new Loader()
loader.load(new URLRequest("images/image" + i + ".jpg"));
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
}
}
private function imageLoaded(e:Event):void
{
_loadedImages.push(e.target.content);
}
Before this you have to declare _nrOfImages and _loadedImages.
These functions will load your images and store them in an array. You can then reach them with _loadedImages[i].
The order your images are stored in your array will vary. So you have to solve that part yourself.