what exactly are you trying to do?
I'm trying to make a countdown timer (with a picture backdrop) that has something like
Time till 1st Release
Time till 2nd Release
Time till Guru Status
Time till the end of month
Time till birthday
Something similar to that.
Edit: That has Months, Weeks, Days, Hours, Seconds.
and you want to create several date instances using data from a text file?
Yes. I'm wanting to have set dates in a file (or flash if that's easier.. but currently I have it set in the file Count.txt)
and I want it to read the local computer / server's time and give me a countdown (Month, Weeks, Days, Hours, Seconds)
I have a sample file now.. but they all just use 1 date or 1 line with a date.. I want to have MULTIPLE dates (timers) in 1 flash file.
Countdown till 9-29-2009
Countdown till 10-03-2009
Countdown till 11-03-2009
Countdown till 11-05-2009
Countdown till 04-11-2010
Right now I can have just 1 date.. The 09-29-2009, but I'm wanting to have 4 more dates that it reads and has multiple countdowns.
1 person found this helpful
you don't need multiple timers. you just need one countdown timer that reports that countdown to the various dates:
var date1:Date=new Date(whatever);
var date2:Date=new Date(whatever else);
var date3:Date=new Date(etc);
var currentDate:Date=new Date();
var c:Number = 1000*60*60*24;
daystodate1 = (date1.getTime()-currentDate.getTime())/c;
daystodate2 = (date2.getTime()-currentDate.getTime())/c;
daystodate3 = (date3.getTime()-currentDate.getTime())/c;