PDA

View Full Version : Help with a different kind of preloader plz


bettyswiffin
11-07-2004, 09:10 AM
Hi there

I am trying to create a different kind of preloader but need some help. Basically I don't want a an animated loading bar where you see the bar contiuously grow from 0 - 100 but instead 5 boxes in a row that simply light up when increments of 20% are reached.

Can anyone please help me with this?

Thanks in advance

EtherealChaos
11-08-2004, 06:07 AM
totalbyte = _root.getBytesTotal()
loadbyte = _root.getBytesLoaded()
percentage = Math.round(loadbyte/totalbyte)
if(percentage>20){one.gotoAndStop(2)}
if(percentage>40){two.gotoAndStop(2)}
and so on.

"one" and "two" wud be the instance names of 2 of your boxes.