Hey, how can i make a countdown to a day using AS?
So like, it shows how many days, hours, minutes and seconds there are untill a certain day?
I've been trying for about half an hour, can't get anything to work well.
Hey, how can i make a countdown to a day using AS?
So like, it shows how many days, hours, minutes and seconds there are untill a certain day?
I've been trying for about half an hour, can't get anything to work well.
You can use the Date() dataType. Just create a variable and make it a new date object. Then, you'll be able to access time and such.
For the actual countdown, I'm pretty sure that setInterval is the way to go. So in essence:
1) Create a new Date object and attach it to a variable.
2) Use that variable to access the current time.
3) Use setInterval() to count down from the current time.