Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

simple navigation from input

New Here ,
Jan 08, 2014 Jan 08, 2014

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!

TOPICS
ActionScript
306
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 08, 2014 Jan 08, 2014

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 08, 2014 Jan 08, 2014
LATEST

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.

Example CC Source

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines