Quick Flash “Prealoder” tutorial .

6 12 2006

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 ...

Advertisements

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s