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");
}