1 this.loaderInfo.addEventListener(Event.COMPLETE, FinishFunc); 2 this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, progressFunc); 3 function progressFunc(e:ProgressEvent):void { 4 var p:Number=e.bytesLoaded/e.bytesTotal; 5 var loading:Number=Math.round(p*100); 6 loadingmc.loadText.text = String(loading) + "%"; 7 loadingmc.loadingline.gotoAndStop(loading); 8 } 9 function FinishFunc(e:Event):void { 10 //InLoadOK = true; 11 }