Countdown timer

Forum to ask for any help
Post Reply
rrehart
Posts: 44
Joined: Thu Sep 06, 2012 12:08 am

Countdown timer

Post by rrehart » Fri Oct 26, 2012 12:12 am

Does anyone have an example of a working countdown timer page?

Thanks.

hengenl
Posts: 26
Joined: Sun Jul 22, 2012 10:52 am

Re: Countdown timer

Post by hengenl » Fri Oct 26, 2012 8:34 am

Yes this is easy to accomplish:

You juste have to use flags. For example if you are using a progress bar you chose an image, for example a gauge. Then you add for example 5 images, where every image represents a small progress bar. You put those progress bars one after the other. You give every bar a flag name, for example 1,2,3,4,5 and check the appear box under Reveal flag. Now when launching an activity you set the page where the countdown or progress bar is to on, and the page appears (a subpage will do just fine) . Then you set the flags 1-5 to on with an delay of 1 second between every flag. The effect being shown is a progress bar where every bar comes up after one second. The progress bar in this example takes 5 seconds to complete. Of course this example can be done using a countdown or whatever effect you want. The solution is to use flags correctly. Don't forget to turn this group of flags to off when the activity is loaded, because if you don't turn the flags to off the bars will be shown again while launching another activity.

trevorst
Posts: 160
Joined: Wed Jul 18, 2012 3:45 pm
Location: Tacoma, WA

Re: Countdown timer

Post by trevorst » Fri Oct 26, 2012 3:44 pm

Would it not be easier to use a number control and just set the number every few seconds just like using a vol control feedback.

User avatar
DemoPad
Site Admin
Posts: 770
Joined: Thu Jun 14, 2012 10:46 am
Contact:

Re: Countdown timer

Post by DemoPad » Fri Oct 26, 2012 4:06 pm

The flag approach is good for animations / timers which are not 'gauge like', eg a rotating egg timer, but the number approach is probably more efficient for simple progress bars, as it only requires 2 images to be uploaded for the gauge.

Either approach works - like most things in DemoPad there are several ways to accomplish the same thing...

Post Reply