Hi, I'm using the following actionscript for my flash preloader, what this does is have the preloader bar fill from the top to the bottom.
this.addEventListener(Event.ENTER_FRAME, loading);
function loading(e:Event):void{
var total:Number = this.stage.loaderInfo.bytesTotal;
var loaded:Number = this.stage.loaderInfo.bytesLoaded;
preloader_mc.bar_mc.scaleY = loaded/total;
preloader_mc.loader_txt.text = Math.floor((loaded/total)*100)+ "%";
if (total == loaded){
play();
this.removeEventListener(Event.ENTER_FRAME, loading);
}
}
How would I alter this so that instead, it starts off full and then decreases in size down to zero (downwards)?
Thanks