Counting In Flash – Flash Counter


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;

Download Counting Script

Unlimited Counting Up

Same dynamic field but actionscript will be:

First Frame
a=1;
Second Frame
a=a+1;
Third Frame
gotoAndPlay(2);

Download Script

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


1 thought on “Counting In Flash – Flash Counter

  1. Victor Reply

    Nice counting tut!

    Could you please help me with a count up but the counter must stop on a certain date? is that possible?
    thanks

Leave a Reply

Your email address will not be published. Required fields are marked *