can someone
can someone
Out of context: Reply #6
- Started
- Last post
- 11 Responses
- fifty500
haven't you made a progress bar before for a preloader?
here's a sample code that I'd use for an expanding box preloader:
iz = _parent.getBytesLoaded();
ttl = _parent.getBytesTotal();
per = Math.floor((iz*100)/ttl);
perc = per+"% Complete";
BAR._width = per*1.5;
if (per >= 100){
gotoAndPlay("Complete");
}where 150 pixels wide is the finished size (note the per=% complete and finished state is per*1.5); BAR is the instance name for the progress bar.
Good luck.