This content has been marked as final.
Show 13 replies
-
1. Re: Countdown
kglad Oct 22, 2006 10:13 AM (in response to Ackebacke)i think the following will be accurate but only because october and january have the same number of days and we won't have a problem with the fact that feb and nov have a different number of days. (so, the code doesn't generalize..):
-
2. Re: Countdown
Ackebacke Oct 22, 2006 10:15 AM (in response to Ackebacke)Thanks for the quick answer!
How do I implement that into a text? Once again, I suck... Treat me as if I am 5. I really suck at scripting... -
3. Re: Countdown
kglad Oct 22, 2006 10:25 AM (in response to Ackebacke)if you have a dynamic textfield with instance name tf, use:
-
4. Re: Countdown
Ackebacke Oct 22, 2006 10:31 AM (in response to Ackebacke)Works beautifully! Thanks man! -
5. Re: Countdown
kglad Oct 22, 2006 5:28 PM (in response to Ackebacke)you're welcome. is this a school assignment? -
6. Re: Countdown
Ackebacke Oct 23, 2006 12:45 AM (in response to kglad)Nah, this is just an experiment... I love to try stuff out and learn new stuff... I love doing the visuals and then I always get an idea of what the thing is supposed to do, but lack skills in scripting :)
So thanks again!!! -
7. Re: Countdown
kglad Oct 23, 2006 7:15 AM (in response to Ackebacke)there are a lot of questions about countdown and countup timers lately. that's why i thought this may be an assignment.
hope your experiment is working. and good luck! -
8. Re: Countdown
What if you wanted this to "generalize" the date.
What if your date was in 2007, for example April 16 2007. How would get an accurate countdown because of the month February (28) days? -
9. Re: Countdown
kglad Dec 12, 2006 3:34 PM (in response to Ackebacke)just change futureD and the textfield's text property. -
10. Re: Countdown
Thanks.
What if you just wanted to show how many days are left until April 16th, 2007?
I tried to minipulate your code, but it would just say 4 days when it should be 124 days. -
11. Re: Countdown
kglad Dec 13, 2006 12:31 PM (in response to Guest )you can use the following. (you may, or may not, want to round diffDays):
-
12. Re: Countdown
Excellent!
I apreciate your help. Thank you.
P.S. I successfully round up the days. :) -