# Preloader "sticks" using MX 2004

**URL:** <https://forum.kirupa.com/t/preloader-sticks-using-mx-2004/70399>\
**Category:** flash\
**Created:** [November 13, 2004, 4:47pm UTC](https://forum.kirupa.com/t/preloader-sticks-using-mx-2004/70399 "2004-11-13T16:47:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbeas](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dbeas](https://forum.kirupa.com/u/dbeas)\
**Post date:** [November 13, 2004, 4:47pm UTC](https://forum.kirupa.com/t/preloader-sticks-using-mx-2004/70399/1 "2004-11-13T16:47:56Z")

</div>

Can anyone see a problem with my preloader, can’t get it to work. The preloader comes up an just sticks on the page. This actionscript is on the first frame of my “master” movie. It calls in main.swf, and preloader .swf. It does call them both in, but I want the preloader to preload main.swf, and then leave! Not just sit there and act stupid… :sigh:

```auto
stop();
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();

myMCL.addListener(myListener);

myListener.onLoadProgress = function (target_mc, loadBytes, totalBytes) {
	_level50._visible = true;
	var preloadPercent:Number = Math.round((loadedBytes / totalBytes) * 100);
	_level50.preloader.gotoAndStop(preloadPercent);
	_level50.preloadInfo1.text = preloadPercent + " % loaded";
	_level50.preloadInfo2.text = Math.round(loadedBytes/1000) + " k loaded / " + Math.round(totalBytes/1000) + " k total";
}

myListener.onLoadComplete = function (target_mc) {
	_level50._visible = false;
}

myMCL.loadClip("preloader.swf",50);
myMCL.loadClip("main.swf", 5);

```
