# Countdown to date, loading date from txt

**URL:** <https://forum.kirupa.com/t/countdown-to-date-loading-date-from-txt/36557>\
**Category:** flash\
**Created:** [November 28, 2003, 3:54am UTC](https://forum.kirupa.com/t/countdown-to-date-loading-date-from-txt/36557 "2003-11-28T03:54:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick\_g](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@nick\_g](https://forum.kirupa.com/u/nick_g)\
**Post date:** [November 28, 2003, 3:54am UTC](https://forum.kirupa.com/t/countdown-to-date-loading-date-from-txt/36557/1 "2003-11-28T03:54:07Z")

</div>

Hey everyone,

I’m working on a Flash movie to countdown to a certain date, and I am wanting to assign that date in a .txt file so it is easy to change the date without modifying the FLA.

Here’s the ActionScript I have for finding the date it’s counting down to from the .txt file:

loadText = new loadVars();  
loadText.load(“date.txt”);  
loadText.onLoad = function() {  
eventDate = new Date(this.year, this.month, this.day);  
};

And the date.txt file has this in it:

year=2003&month=12&day=25

It doesn’t seem to be working :-\ .

Any help would be awesome 🙂 .

-Nick
