Any one know why I can’t get this to have a set date? It wants to only pull from my current time and date from my computer. I need to set it to a specific date to start from and to count down to…
Any help would be great!
currentDate = new Date();
thisYear = currentDate.getFullYear();
eventDate = new Date(2007, 7, 1, 02 , 10 , 40 , 800);
eventMillisecs = eventDate.getTime();
counter.onEnterFrame = function(){
currentDate = new Date(2007, 6, 1, 02 , 10 , 40 , 800);
currentMillisecs = currentDate.getTime();
this.msecs = eventMillisecs - currentMillisecs;
if (this.msecs <= 0){
play();
return;
}