PDA

View Full Version : sequential counter



dr_vroeg
October 13th, 2003, 12:21 AM
okay so it's been nearly a year maybe since I have posted but I know that I will be welcomed back with a big parade and such...maybe not but anyway

I am trying to make a script that will count up to the designated number...if the set number was 50 then you would see all the numbers 0 through 50...and to make things even more fun I also need it to be for currency so I need a decimile point i.e.. $50.00

norie
October 13th, 2003, 02:32 AM
i = 0;
onEnterFrame = function () {
if (i <= 50) {
output = "$" + i + ".00";
trace(output);
i++;
}
};
or
for(i=0;i<=50;i++){
output = "$" + i + ".00";
trace(output);
}