Flash AS2 Count Down Timer

– taterboy | August 5th, 2009

Filed under: ActionScript 2, Flash, Free Components/Classes

Here is a simple countdown timer that is easily configured using flashVars. Below are all the available settings.

On April 12, 2012 our blog will be 4 years old.

Get Adobe Flash player


Target Date/Time ( Default: Current date/time ):
Enter Date/Time as an array [ Year, Month, Day, Hour, Minute, Second]. The year value is required, all others are optional.
tdate=2010,6,29,11,0,0,0

Year = Full Year.
Month = Number of month, 1 – 12.
Day = Date of Month, 1 – 31.
Hour = Number of hours based on 24 hour clock 0 – 23.
Minute = Number of minutes 0 – 59.
Second = Number of seconds 0 – 59.
You can include milliseconds if you need to, but optional 0 – 999.

Time Zone ( Default: 0 ):
You can set your UTC/GMT offset so that not matter what time-zone the timer is viewed in, it will be accurate to your time-zone.
tzone= -5 (eastern standard time)

Use positive or negitive number based on your time-zone. Not sure what your UTC/GMT offset is, try the link below.

http://www.timeanddate.com/library/abbreviations/timezones/

Note: Your UTC offset may need to be adjusted if your target date is effected by daylight savings. Ex: -5 (Eastern Standard Time: Winter) or -4 (Eastern Daylight Time: Summer).

Color ( Default: ffffff – white):
Numbers can be colored using hex colors to match any theme.
hex=00ffff

Blink (Default: false):
Timer can blink every second if the effect is desirable to you.
blink=true

Size (Default: true):
The counter comes in two sizes, 300 x 30 or 156 x 30. The narrower/non-full version has the Days, Hours, Minutes, Seconds labels abbreviated by D, H, M, S.
full=false

Here is a sample using swfObject code.
var flashvars = {};
flashvars.tdate = “2010,4,12,19″; //April 12, 2010 , 8:00 PM
flashvars.tzone = “-4″; //eastern daylight time
flashvars.hex = “00ffff”;
flashvars.blink = “true”;
flashvars.full = “true”; //default

Download Timer Here.
You are free to use as you will, Enjoy.

UPDATE:

Those looking for an FLA, please checkout How To Build Countdown Timer in ActionScript 2

Technorati Tags: , , , , , ,

Other Related Articles:

| 5 Comments » | facebook:

5 Comments »

  1. [...] This post was Twitted by taterboy1 [...]

    Pingback by Twitted by taterboy1 — August 5, 2009 @ 7:48 am

  2. Dont waste your time by visiting this site,,,,,,No link does contain needed files,,,,,,cheating site

    Comment by Arun — February 5, 2010 @ 6:18 am

  3. Not sure what you mean, the files are located here. http://www.taterboy.com/blog/downloads/countDown.zip as linked to by the words above “Download Timer Here.”

    Comment by taterboy — February 5, 2010 @ 7:47 am

  4. There is no FLA file in the zip file.

    Comment by Tara — April 5, 2010 @ 8:28 pm

  5. This version of the timer was intended as a stand-alone swf solution. If you need to build a custom timer, please visit the countdown timer tutorial http://www.taterboy.com/blog/2010/04/how-to-build-countdown-timer-in-actionscript-2/ to download a sample fla.

    Comment by taterboy — April 14, 2010 @ 7:07 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment