# Script making movie slow

**URL:** https://forum.kirupa.com/t/script-making-movie-slow/271693
**Category:** Uncategorized
**Created:** [September 26, 2008, 2:46pm UTC](https://forum.kirupa.com/t/script-making-movie-slow/271693 "2008-09-26T14:46:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![CayoHueso](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@CayoHueso](https://forum.kirupa.com/u/CayoHueso)
#### Post date: [September 26, 2008, 2:46pm UTC](https://forum.kirupa.com/t/script-making-movie-slow/271693/1 "2008-09-26T14:46:05Z")

</div>

Hi All,

I have a movie with this script in the first frame:

```auto

//MOVIE CLIP LOADER FOR EXTERNAL MOVIES

var loadListener:Object = new Object ();

loadListener.onLoadStart = function (target_mc:MovieClip):Void {
	trace (_root._currentframe);
	_global.root.caption_txt.htmlText = "";
};

loadListener.onLoadError = function (target_mc:MovieClip, errorCode:String, httpStatus:Number) {};
loadListener.onLoadProgress = function (target_mc:MovieClip, loadedBytes:Number, totalBytes:Number):Void {};
loadListener.onLoadComplete = function (target_mc:MovieClip, httpStatus:Number):Void {};
loadListener.onLoadInit = function (target_mc:MovieClip):Void {
	_root.movieCurrentlyPlaying = target_mc.movieCurrentlyPlaying;
	target_mc.setMask (_root.maskHolder.mask_mc);
	removeMovieClip(_root.currentMovie);
	_root.currentMovie = target_mc;	
};

var mcLoader:MovieClipLoader = new MovieClipLoader ();

mcLoader.addListener (loadListener);

//END OF MOVIE CLIP LOADER FOR EXTERNAL MOVIES

```

Then I have a second frame with this script:

```auto

stop ();

var mc1:MovieClip = this.createEmptyMovieClip ("mc1", 1);

mcLoader.loadClip ("procedure_1.swf", mc1);

```

I am getting a message, when I test the movie, that says:  
“A script in this moving is causing Flash player to run slowly. If it continues to run, your computer may become unresponsive. DO you want to abort this script?”

Could anyone please help me figuring out what is wrong here?

Thanks in advance,
