PDA

View Full Version : Time counter!!


Adil
12-28-2005, 10:35 AM
hi everybody

i want make counter,

in everyone minute it will be move to the next number..

it's an example for how many smoker die in a minute at the world

thanks :)

cns
12-28-2005, 01:51 PM
(untested)


function deathes () {
died++
}
setInterval(deathes, 60000)


then put a textbox on your stage with the variable of died
should increase by 1 every minute, set the 60000 to something lower for testing might be a good idea as you don't want to wait a minute everytime you want to test it :)
And just provide it with a starting value if you wish, or this will display the amount of deaths since they started looking at the page.