import flash.events.ProgressEvent; stop(); function DL(E:ProgressEvent) { var DOWNLOAD:uint=(E.bytesLoaded/1024); var TOTAL:uint=(E.bytesTotal/1024); var PERCENT:uint=Math.ceil((DOWNLOAD/TOTAL)*100); PERCENT_txt.text = String(PERCENT); TOTALKBS_txt.text = String(TOTAL); LOADKBS_txt.text = String(DOWNLOAD); LOADER_mc.gotoAndStop(PERCENT); } function DLOK(E:Event) { nextScene(); } this.loaderInfo.addEventListener(ProgressEvent.PROGRESS,DL); this.loaderInfo.addEventListener(Event.COMPLETE,DLOK);