Flash countdown preloader

this.onEnterFrame = function() {
var amount:Number = this.getBytesLoaded()
/ this.getBytesTotal() *100;
loader.bar._xscale = amount;
loader.loadText.text = 100 – Math.floor(Math.round(amount)/1)+”%”;

if(amount < 85){ loader.alphaTo(0,2,"easeOutSine",0); } if(amount == 100) { gotoAndPlay("fadeout"); delete this.onEnterFrame; } }

Leave a comment