A quick tutorial i made about “preloaders” using a single frame ( onEnterFrame Event ) .
Mind you , i was @ work while doing this 😀 Enjoy
here is the code used , i know the vid aint that clear , but thats the best i can do for YouTube :
stop();
var initX:Number = _root.mask._x;
onEnterFrame = function() {
var total:Number = this.getBytesLoaded()*100/this.getBytesTotal();
this.mask._x = initX+(total*this.mask._width/100);
this.dynoText.text = Math.floor(total);
if( total == 100 ) {
delete onEnterFrame;
this.gotoAndStop(2);
}
};
if you need the files , lemme know ...