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