YEA Movie Loader

For anyone with question regaring dynamically loaded movie clips
This is what i have been able to figure out so far:

this.createEmptyMovieClip(“image_mc”, this.getNextHighestDepth());
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
image_mc.onPress = function(){
trace(“yea”);
}
};
var image_mcl:MovieClipLoader = new MovieClipLoader();
image_mcl.addListener(mclListener);
image_mcl.loadClip(“image1.jpg”, image_mc);

This will create a movie clip with image1.jpg that you can call functions from.

my next step is to create a bunch of these using a for loop, i have been able to create the images however i cant call the .onPress.

I am trying to make an image gallery and i noticed the tutorials which use XML files. What are the advantages of using XML? Is it possible to create these images with a loop in flash without XML?

Thanks,
Otis