Creating the Preloader was fairly simple, i decided to use the same layout and fonts as i was to use on the website to keep everything the same, and so make the whole flash file look proffessional.
This is the code snippet i used, to make my preloader work correctly
myLoaded = Math.round(getBytesLoaded());
myTotal = Math.round(getBytesTotal());
myPercent = myLoaded/myTotal;
myBar._width = myPercent*150;
myText = Math.round(myPercent*100)+"%";
if (myLoaded == myTotal) {
gotoAndStop(3);
} else {
gotoAndPlay(1);
}
Wednesday, 16 April 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment