Count Down Timers (Please Help)
February 20, 2014 12:00 AM
I have been reading the threads on count down timers and have been getting confused. I created a variable called CountDown and set the value to 30.
I created an action that is as follows:
1st Variable: At the page level: OnTimed Interval ---> 1 second, Modify Variable: CountDown, Set Equal to, 30, if: CountDown is Greater than 0.
2nd Variable: At the page leve: OnTimed Interval ---> 1 second, Change Contents: Target(Textbox) Count Down Clock, Value: Set Text, Text: 29.
Will someone help me out with filling in the gaps in lamans terms? Also, I have read in the threads something about New Content. What is that and where do I find it within the actions?
Thanks!
Discussion (4)
...another way in v11 would be to just insert a "countdown object"
Insert -> Add more -> Timer
May be easier.
Tim
You can set the timer object (my 2nd post) to whatever interval you like. Use "On: Done playing" on the timer to trigger actions when the time is up.
Tim
To do that, you'll need your Variable...
CountDown, initial value = 30
...and a textfield, e.g. Text Block 1 and enter "30" into it.
Add two actions on page level:
1.
On: Timed interval
Interval: 1 sec
Action: Modify variable
Target: CountDown
Type: Subtract from variable
Value: 1
-> Once every second "1" is subtracted from the current value of CountDown
Add a condition:
If CountDown is greater 0.
-> The last time 1 is subtracted is when the value of CountDown equals 1 so the countdown stops when CountDown is equal to 0.
2.
On: Timed interval
Interval: 1 sec
Action: Change content
Target: Text Block 1
Value: CountDown
-> After each second the content of the textfield is updated
Tim
Awesome! I was close, thank you very much!
What about if I wanted to start it at 30 min and count down?
Discussions have been disabled for this post