Progress indicator

Ok, I am building a preloader for my full flash site. I don’t want to put the standard “growbar” progress indicator… you have to be original :wink:

so I would like to build something based on what I saw on Http://www.highctr.com

They have lights that come on one by one until the movie is fully loaded…very cool and not boring !

Can anybody tell me what the actionScript would look like for this ?

Thanks!

This is for a loader that has your “lights” animation on stage with an instance name of “lights” and within that MC there are four lables (for the four different lights lighting up in sequence) called lightOne, lightTwo, lightThree, lightFour… this is just one basic way of doing it… hope it helps you out:


totalBytes = _root.getBytesTotal();
loadedBytes = _root.getBytesLoaded();
percentDone = int((loadedBytes/totalBytes)*100);
if (percentDone = 25) {
	lights.gotoAndPlay("lightOne");
}
if (percentDone = 50) {
	lights.gotoAndPlay("lightTwo");
}
if (percentDone = 75) {
	lights.gotoAndPlay("lightThree");
}
if (percentDone = 100) {
	lights.gotoAndPlay("lightFour");
}

Also you have to put a second frame after the one I showed that sends it back to the first (to keep executing the code) until everything is loaded.

Peace