# MovieClipLoader loading files problem

**URL:** <https://forum.kirupa.com/t/moviecliploader-loading-files-problem/55493>\
**Category:** flash\
**Created:** [June 24, 2004, 2:44pm UTC](https://forum.kirupa.com/t/moviecliploader-loading-files-problem/55493 "2004-06-24T14:44:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lobo\_](https://avatars.discourse-cdn.com/v4/letter/l/bb73d2/32.png) [@Lobo\_](https://forum.kirupa.com/u/Lobo_)\
**Post date:** [June 24, 2004, 2:44pm UTC](https://forum.kirupa.com/t/moviecliploader-loading-files-problem/55493/1 "2004-06-24T14:44:29Z")

</div>

I’m trying to preload a movie inside a MC now how can re-use this code to preload other movies in different MC in someway that i need only to change this line of code:

mcl.loadClip(“movie1.swf”, e1\_mc);  
mcl.loadClip(“movie2.swf”, e2\_mc);  
mcl.loadClip(“movie3.swf”, e3\_mc);  
mcl.loadClip(“movie4.swf”, e4\_mc);

My knowledge of flash and AS is basic so I don’t know how to do it thank you for any help :hangover:

My code:

```php
this.createEmptyMovieClip("e_mc", 2)
//controlar la pocicion
		with(_root.e_mc){
		_x=300
		_y=300};
		
var mcl:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
mcl.addListener(mclListener);
mclListener.onLoadProgress = function(e_mc, bl, bt)
{
	var percentage = Math.round(bl / bt * 100);
	trace(percentage);
};
mclListener.onLoadComplete = function(e_mc)
{
	// do what you want
	trace("finished!");
};
mcl.loadClip("movie2.swf", e_mc);

```
