# Preloader

**URL:** https://forum.kirupa.com/t/preloader/167259
**Category:** Uncategorized
**Created:** [October 26, 2005, 5:48pm UTC](https://forum.kirupa.com/t/preloader/167259 "2005-10-26T17:48:43Z")
**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, 5:48pm UTC](https://forum.kirupa.com/t/preloader/167259/1 "2005-10-26T17:48:43Z")

</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.

i had this in actionscript but no answers, hopefully some other people might see this an be able to help

thank you all in advance.
