Is it possible to apply a preloader with a progress bar and the percentage display on the transition effect instead of just having a animation and “loading”.
I’m using a modified version a tutorial i found here, here’s the code of the preloader :
[AS]bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercentthis.loadBarBorder._width;
this.loadText = Math.round(getPercent100)+"%";
this.loadingClip.gotoAndStop(Math.round(getPercent*19)+1);
if (getPercent == 1) {
this.gotoAndStop(3);
}
[/AS]
My question is where to put this script and the preloader animation
Here’s the two files (i’ll put them into file) :