# MovieClipLoader stuck in onLoadStart

**URL:** <https://forum.kirupa.com/t/moviecliploader-stuck-in-onloadstart/311684>\
**Category:** flash\
**Created:** [July 14, 2010, 6:29am UTC](https://forum.kirupa.com/t/moviecliploader-stuck-in-onloadstart/311684 "2010-07-14T06:29:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aditi\_bluekrill](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@aditi\_bluekrill](https://forum.kirupa.com/u/aditi_bluekrill)\
**Post date:** [July 14, 2010, 6:29am UTC](https://forum.kirupa.com/t/moviecliploader-stuck-in-onloadstart/311684/1 "2010-07-14T06:29:46Z")

</div>

I looked up MovieClipLoader tutorials and finally ended up with the code:  
[COLOR=#008000][FONT=courier new]var myMCL:MovieClipLoader = new MovieClipLoader();[/FONT][/COLOR]

[COLOR=#008000][FONT=courier new]var loadListener:Object = new Object();[/FONT][/COLOR]

[COLOR=#008000][FONT=courier new]myMCL.addListener(loadListener);[/FONT][/COLOR]

[COLOR=#008000][FONT=courier new]loadListener.onLoadProgress = function(target\_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void  
{  
var perc:Number = (bytesLoaded / bytesTotal) \* 100;  
prcnt.text = perc + " %";  
}[/FONT][/COLOR]

[COLOR=#008000][FONT=courier new]loadListener.onLoadInit = function(target\_mc:MovieClip)  
{  
trace( target\_mc + " finished loading so display on screen now. " );

```
prcnt.text = "init";

```

};[/FONT][/COLOR]

[COLOR=#008000][FONT=courier new]loadListener.onLoadError = function(target\_mc:MovieClip, errorCode:String, httpStatus:Number)  
{  
trace( "error loading image : errorCode : " + errorCode );  
}[/FONT][/COLOR]

[COLOR=#008000][FONT=courier new]loadListener.onLoadStart = function(target\_mc:MovieClip)  
{  
trace( target\_mc + " start loading. maybe you want to do something here? " );  
prcnt.text = “onstart”;  
};[/FONT][/COLOR]

[COLOR=#008000][FONT=courier new]myMCL.loadClip(“filename.swf”, mcholder); //mcholder is the movie clip holder placed on stage manually[/FONT][/COLOR]

The problem here is that the file does not move beyond

[COLOR=#008000][FONT=courier new]\_level0.mcholder start loading. maybe you want to do something here?  
\_level0.mcholder start loading. maybe you want to do something here?  
\_level0.mcholder start loading. maybe you want to do something here?  
\_level0.mcholder start loading. maybe you want to do something here?  
\_level0.mcholder start loading. maybe you want to do something here?  
\_level0.mcholder start loading. maybe you want to do something here?  
\_level0.mcholder start loading. maybe you want to do something here? [/FONT][/COLOR]

Why is this happening? The code is directly from the tutorial. I have included all event functions, in case they are something like abstract functions, I don’t know if this is required or not. I know I must be being a pain, but I can’t figure out what is wrong with the code, seems simple enough to me. I am sure I am missing some basic point. Any help will be greatly appreciated…
