# Preloader not working

**URL:** https://forum.kirupa.com/t/preloader-not-working/218344
**Category:** Uncategorized
**Created:** [March 6, 2007, 11:05pm UTC](https://forum.kirupa.com/t/preloader-not-working/218344 "2007-03-06T23:05:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)
#### Post date: [March 6, 2007, 11:05pm UTC](https://forum.kirupa.com/t/preloader-not-working/218344/1 "2007-03-06T23:05:52Z")

</div>

i’m using movieClipLoader and i want to attach a loadbar graphic instead of text…but my loadbar doesn’t load the text works but not the bar…

anywho here is my code:

[AS]var oListener:Object = new Object();  
oListener.onLoadStart = function (samp1img1\_holder:MovieClip):Void {  
status = (samp1img1 + " Started Loading.");  
};  
oListener.onLoadProgress = function(samp1img1\_holder:MovieClip, nLoaded:Number, nTotal:Number):Void  
{  
getPercent = nLoaded/nTotal;  
this.loadbar.\_width = getPercent\*150;  
if (nLoaded == nTotal) {  
status = “success”  
}  
//status = (samp1img1\_holder + “loaded” + nLoaded + “of” + nTotal + “bytes”);  
};  
oListener.onLoadInit = function(samp1img1\_holder:MovieClip):Void {  
status = (samp1img1\_holder + "initialized “);  
};  
oListener.onLoadComplete = function(samp1img1:MovieClip):Void {  
status = (samp1img1\_holder + " completed loading”);  
};

myimgloader.addListener(oListener);[/AS]

any ideas why it’s not working??

Cheers 🙂
