# MovieClip Preloader keeps looping movie

**URL:** <https://forum.kirupa.com/t/movieclip-preloader-keeps-looping-movie/324259>\
**Category:** flash\
**Created:** [August 11, 2011, 12:30am UTC](https://forum.kirupa.com/t/movieclip-preloader-keeps-looping-movie/324259 "2011-08-11T00:30:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dulce](https://avatars.discourse-cdn.com/v4/letter/d/ec9cab/32.png) [@Dulce](https://forum.kirupa.com/u/Dulce)\
**Post date:** [August 11, 2011, 12:30am UTC](https://forum.kirupa.com/t/movieclip-preloader-keeps-looping-movie/324259/1 "2011-08-11T00:30:58Z")

</div>

I followed the [MovieClip Preloader tutorial](http://kirupa.com/developer/actionscript/moviecliploader.htm) and everything worked fine. The problem is the movie that I am loading keeps looping. Is there any way to stop this from looping? I used Flash CS5, AS2.

Here is the code that I am using:

\*\*bar.\_visible = false;  
border.\_visible = false;  
this.createEmptyMovieClip(“container”, “100”);  
my\_mc = new MovieClipLoader();  
preload = new Object();  
my\_mc.addListener(preload);  
preload.onLoadStart = function(targetMC) {

trace("started loading "+targetMC);  
container.\_visible = false;  
bar.\_visible = true;  
border.\_visible = true;  
pText.\_visible = true;

};  
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {

bar.\_width = (lBytes/tBytes)\*100;  
pText.text = "% "+Math.round((lBytes/tBytes)\*100);

};  
preload.onLoadComplete = function(targetMC) {

container.\_visible = true;  
border.\_visible = false;  
bar.\_visible = false;  
pText.\_visible = false;  
trace(targetMC+" finished");

};  
//default image  
my\_mc.loadClip(“main.swf”, “container”);\*\*
