1. Create your movieclip and textfield. For this recipe, you’ll need a simple rectangle, and a dynamic textfield
b. lpc (Dynamic Txt) – make sure this is embed to character range
c. loadBar (desire length)
import flash.display.*;
this.stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, appleLoader);
function appleLoader(event:ProgressEvent):void {
var pcent:Number=event.bytesLoaded/event.bytesTotal*100;
lbar.scaleX=pcent/100;
lpc.text=int(pcent)+”%”;
if(pcent==100){
this.gotoAndStop(2);
}
}