time is a fool with a banjo
time is a fool with a banjo
- Started
- Last post
- 2 Responses
- sheepman
okay, so i'm trying to build this rinky dink timer in flash that starts at zero seconds and minutes and builds up as you spend time on the site. i got it all to work, but i want seconds 0 through 9 to display as 00, 01, 02, 03, etc. insteadd of 0,1,2,3. i think i can fudget this manually, but is there a cool programmer way to do it?
- JamesEngage0
you should have your numbers as variables.. and then displayNumbers as seperate variables, which are the ones you see on screen... so you can do something like
if (seconds<10) {
displaySeconds = "0" + seconds
} else {
displaySeconds = seconds
}
- sheepman0
now why didn't i think of that?
perfect. thank you!