Use AS to tell a dynamic textbox to display text based on the date

Ok, so here’s what I’d like to do. I’d like to create an action that, when it’s a specific day, a dynamic textbox displays a specific text.

In other words, if today is th 24th of December then I’d like the dynamic textbox to say “merry christmas” or something like that…HOWEVER I need to set this actionscript up so that it reads 8 different days and the dynamic textbox holds 8 different values.

How do I do this? I’m having a LOT of trouble with this…and I’m on a deadline, so if anyone has advice PLEASE let me know!

Thanks a billion!

Just use getDate() and a few switch/case statements and you should be golden. :wink:

Hey I tried an if/else statement instead and it works perfectly!

Thanks for the advice though :slight_smile: