Timer

Timer

  • Currently 3.3/5 Stars.
Sign In to rate this mediascape!

a Flash-based timer that allows switching between multiple Flash files.


  • Tutorial
  • Portable

blindfish | 23 May 2007
Tags: demo training flash timer

Download Now 125 downloads 11.14 KB

Description

a Flash-based timer that allows switching between multiple Flash files. The elapsed time is stored as a variable in mscape and passed to the timer Flash file when it is open. A little bit of ActionScript is used to calculate and set the correct frame of a tween-based animation. For non-tween animation (i.e. hand-crafted individual frames!) there would be no need for this formula as you'd have an individual frame for each 'tick' of the counter.



BTW - for anyone who's interested, the code for the wavy dots is by Keith Peters and can be found in 'Flash Math Creativity', published by Friends of Ed who also do a neat range of Flash/Actionscript books ;)

Setup instructions

Mediascape.onLoaded:
Set Alarm1.period as appropriate


Tools.Timer.Alarm01:
Set counter limit and end state (i.e. stop or reset)


In Flash counterMax = counter limit



Rather than using buttons to switch between Flash files (that's what the red circle does in my demo ;) you may wish to use mscape events - e.g. entering/exiting a region...

Credits

Coding etc: blindfish

MSIN: ABA0000038

Creative Commons

This work is licensed under a Creative
Commons Attribution-Share Alike 3.0 License
.

Comments

  1. "Nice, I really love the spider legs!" TomMelamed | May 24, 2007 | 03:30 PM