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, 2010 our blog will be 2 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.

Technorati Tags: , , , , , ,

Other Related Articles:

|

3 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

RSS feed for comments on this post. TrackBack URL

Leave a comment