Progress Preloader 1import flash.events.ProgressEvent;
function loadProgress(my_movie:ProgressEvent):void {
var percent:Number = Math.floor( (my_movie.bytesLoaded*100)/my_movie.bytesTotal );
myLoadText.text = percent+"%";
// We want our load bar to be 200px wide
// so we multiply the dynamic percent by 2
myLoadBar.width = percent * 2;
}
loaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
// On frame two there is a stop action