Question
Countdown Poker Timer in Flash 5
Yeah, I'm behind with Flash 5. Haven't used it in a long time
but I'm now waiting for CS3 so I can get all the upgrades...
I've been all over the web and found a few tutorials on making timers. Some I've gotten to work, other not so much luck. The problem is all the tutorials I've seen tend to be more in depth than I think I need. I'm trying to make a poker timer for the blinds that I can run on my laptop during tournaments.
I want to be able to launch my SWF onscreen and it should ask me an interval. Typically this will be 15 minutes but could change. When the start button is pressed that variable, I'll call it "TimerInterval", will be passed to the timer movie clip and the blinders movie clip should progress to show the current blinds. After 15 minutes is up it should stop. When the start button is pressed again the timer starts again and the movie progresses to the next blind level. I will also need the ability to pause the timer and skip or go back frames (blind levels).
So what I'll have is a movie with the timer movie clip in it and another movie clip with the blind amounts. Hitting the start button in the main movie starts the timer movie clip and advances the blinds movie clip to the next frame, which will just be a static block of text.
Hopefully, that all makes sense.
So, I think I've got a pretty good grasp on what I need to do with the controls but the timer is still a mystery to me. All I need is minutes:seconds and maybe milliseconds (just 'cause it looks cool) counting down from TimerInterval to 0. I would however like to keep the minutes, seconds, and milliseconds as separate entities so I can keep the numbers from jumping around due to number width (1 is thinner than 8 so the text jumps to the left).
So, like I said, all the tutorials I've found use the Date() function to countdown to another specific date and I don't know how that will work with my situation. I did see one that used a Timer() function but can't seem to locate that bookmark.
I do have some script I used for a different site for a slideshow type of thing where I had:
Frame 1
currently = getTimer();
end = currently + 3000;
Frame 2
currently = getTimer();
Frame 3
if (currently <= end) {
gotoAndPlay ("Timer2");
}
which I might be able to adapt but there is no visual display associated with this script.
Anyone got some ActionScript laying around that will work or an easy way to adapt the above script to output the time counting down backwards?
Thank you,
Mike
I've been all over the web and found a few tutorials on making timers. Some I've gotten to work, other not so much luck. The problem is all the tutorials I've seen tend to be more in depth than I think I need. I'm trying to make a poker timer for the blinds that I can run on my laptop during tournaments.
I want to be able to launch my SWF onscreen and it should ask me an interval. Typically this will be 15 minutes but could change. When the start button is pressed that variable, I'll call it "TimerInterval", will be passed to the timer movie clip and the blinders movie clip should progress to show the current blinds. After 15 minutes is up it should stop. When the start button is pressed again the timer starts again and the movie progresses to the next blind level. I will also need the ability to pause the timer and skip or go back frames (blind levels).
So what I'll have is a movie with the timer movie clip in it and another movie clip with the blind amounts. Hitting the start button in the main movie starts the timer movie clip and advances the blinds movie clip to the next frame, which will just be a static block of text.
Hopefully, that all makes sense.
So, I think I've got a pretty good grasp on what I need to do with the controls but the timer is still a mystery to me. All I need is minutes:seconds and maybe milliseconds (just 'cause it looks cool) counting down from TimerInterval to 0. I would however like to keep the minutes, seconds, and milliseconds as separate entities so I can keep the numbers from jumping around due to number width (1 is thinner than 8 so the text jumps to the left).
So, like I said, all the tutorials I've found use the Date() function to countdown to another specific date and I don't know how that will work with my situation. I did see one that used a Timer() function but can't seem to locate that bookmark.
I do have some script I used for a different site for a slideshow type of thing where I had:
Frame 1
currently = getTimer();
end = currently + 3000;
Frame 2
currently = getTimer();
Frame 3
if (currently <= end) {
gotoAndPlay ("Timer2");
}
which I might be able to adapt but there is no visual display associated with this script.
Anyone got some ActionScript laying around that will work or an easy way to adapt the above script to output the time counting down backwards?
Thank you,
Mike