Timer
a Flash-based timer that allows switching between multiple Flash files.
- Tutorial
- Portable
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
This work is licensed under a Creative
Commons Attribution-Share Alike 3.0 License.
Comments