Copy link to clipboard
Copied
I am a novice with flash and actionscript although about 10 years ago i built a website in flash my knowledge has gone. I seem to remember dragging and dropping actions and not getting into actionscript too much. Ive recently got Flash Pro CC and it seems like a very different beast?
My challenge is to create a gameshow countdown similar to the one in the BBC quiz show "Pointless". The basic idea being I want to be able to input a number from 0-100 then make a graphic tick down from 100 to whatever number was inputted. See this link to the show for the simple idea.
http://www.youtube.com/watch?v=cmdAQHzNYF8
Note the woman had a very good answer and the countdown went all the way through to zero, depending on the answer it could have been 6 or 24 etc.
I would love some help as I seem to have become stupid in my old age!
Copy link to clipboard
Copied
If you want to count down from whatever number to another, look into using the Timer class as the basis for the counting. Each cycle of the Timer you will decrement the count value and then check if the count value euqlas the value entered. When it does, process whatever else needs to be processed at the end of the count.
Copy link to clipboard
Copied
Here's a quick example project using a timer and a few TextFields to show you what kind of code you can use. Just input a number.
Note, no validation is included, it expects you to enter a valid number to count down to.. Try adjusting the timers delay, etc to your needed results.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now