Counting In Flash – Flash Counter
Oct 26, 2008 Actionscript, Adobe Flash, Basics, Tips, Utilities
What is the point of counting in flash? Well if there is any point, then You can make count downs or count ups and then trigger some action on its completion. Following tutorials will guide you about how to create counters in flash using ActionScript.
Counting Up Till 100
Take a dynamic text field and name it a or txt etc.Here i took a. Its defining a variable. First frame must be empty. At second frame take that dynamic field and at another layer place actionscript sequence in frames as following:
First Frame
a=1;Second Frame
a=a+1; if (a==100) { gotoAndStop(4); }
Third Frame
gotoAndPlay(2);
Fourth Frame
a=100;Unlimited Counting Up
Same dynamic field but actionscript will be:
First Frame
a=1;Second Frame
a=a+1;Third Frame
gotoAndPlay(2);
Counting Down 100 to 1
Same dynamic field but actionscript will be:
First Frame
a=100;Second Frame
a=a-1; if (a==1) { gotoAndStop(4); }
Third Frame
gotoAndPlay(2);
Fourth Frame
a=1;Download Counting Down In Flash
Related Posts
Tags: Actionscript, counting, flash
Try Random Style!
Leave a Reply