can someone
- Started
- Last post
- 11 Responses
- blakablaka
..point me in the direction to a tutorial or even better, a source file for a preloader that loads exactly like the one at:
http://www.huskycz.cz/index_flas…
(solid color moving downwards or upwards, with percentage)i've seen it many times before, but i can't remember sites and all that.. although i do remember very vaguely one site that used it all over, and it was red. what site was that
so please hi, can you help?
- stewart0
WHAT A GREAT WEBSITE.
- sputnik0
like ziss?
http://www.stationtwelve.com
- blakablaka0
bump please
- unformatted0
sames as any other preloader.
use _yscale or _width of mc.
- blakablaka0
what?
- 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.
- blakablaka0
its kind of going on at
http://www.z3ltd.com/ (when you click on the work)but without percentage
:(
please i need to figure out how to do this
- blakablaka0
fifty50
i apologize sincerely but i don't know what to do with that code
- blakablaka0
its happening again at http://www.fuse-media.co.uk/ !
(in portfolio.. the work)
- fifty500
ok if you make a new movie clip for your preloader, put that code on the root timeline.
the variables "iz", "ttl", "per", and "perc" I just made up for the math, you can make them whatever you want. the "perc" variable should be the Var name for the dynamic text box which would show the percent loaded.
OK so you've got the box on the stage and it's instance name is BAR, and the width of this box is "per*1.5", where "per" is the percentage of the movie clip loaded, multiplied by 1.5, so when the percent loaded is 100, the box will be 150 pixels wide, thus filling my progress bar. since this code is on the root timeline of the preloader movie clip, it tells it to go to the frame labelled as "complete" in my preloader. that frame then has code telling it to go to the next frame in the root timeline. here's that code again if you need it.
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");
}
- raksasa0
sweeeEeeT :P