# YEA Movie Loader

**URL:** https://forum.kirupa.com/t/yea-movie-loader/189458
**Category:** flash
**Created:** [June 2, 2006, 6:56pm UTC](https://forum.kirupa.com/t/yea-movie-loader/189458 "2006-06-02T18:56:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![otis](https://avatars.discourse-cdn.com/v4/letter/o/e47774/32.png) [@otis](https://forum.kirupa.com/u/otis)
#### Post date: [June 2, 2006, 6:56pm UTC](https://forum.kirupa.com/t/yea-movie-loader/189458/1 "2006-06-02T18:56:11Z")

</div>

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
