Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Countdown Clock to Specific Date

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi, i'm extremely new to flash but I"m creating a website and I want to countdown to my birthday, or any other date for that matter. I have found some countdown clocks but the problem is that the design is soo ugly.


In my mind I picture big fluorescent pink letters, slightly embossed. Is there some way to create a countdown clock similar to that of like a basketball clock/shot clock for example


50.03 = 50min 03secs

so it would look similar to this but only in big fluorscent pink letters

360.50.20.59

which is hours.minutes.seconds.milliseconds

Thanks in advance!
 
Yes it is possible but it is fairly involved.

It all revolves around an infinite loop (I used a looping 2 frame movie clip) and the Date object.

ex.:

today = new Date();

grabs the local time and date from the computer. You can then break it down with stuff like...

d = today.getDay();
h = today.getHours();
m = today.getMinutes();

etc.

If you are going to do it right, make sure you check for leap year.

I started a birthday countdown .swf a while ago but I left it in an uncompleted state. Maybe I'll dust that project off and get back to it at some point.

HTH,

jaxon





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top