# Have a progress preloader problem

**URL:** https://forum.kirupa.com/t/have-a-progress-preloader-problem/167237
**Category:** Uncategorized
**Created:** [October 26, 2005, 3:00pm UTC](https://forum.kirupa.com/t/have-a-progress-preloader-problem/167237 "2005-10-26T15:00:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pkcidstudio](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@pkcidstudio](https://forum.kirupa.com/u/pkcidstudio)
#### Post date: [October 26, 2005, 3:00pm UTC](https://forum.kirupa.com/t/have-a-progress-preloader-problem/167237/1 "2005-10-26T15:00:49Z")

</div>

here is the script that i am using.

```auto
 
myMCL.loadClip("load.swf", 50);
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
myListener.onLoadProgress = function(target_mc, loadedBytes, totalBytes){
 _level50._visible = true
 var preloadPercent:Number =Math.round((loadedBytes / totalBytes) * 100);
 _level50.load.gotoAndStop(preloadPercent);
}
myListener.onLoadComplete = function (target_mc){
 _level50._visible = false;
} 

```

i have attached the prelaoder. i am wondering what i am doing wrong, because it is not working. could someone make a new fla file drop a pic into it, an then apply this script to see where i am makeing the mistake.

the purpose of this script is that it will load this particular image instead of numbers to display downloaded progress. if this doesnt make sence please ask.

thank you all in advance.
