Skip to main content
Participant
October 26, 2012
Question

Christmas/Advent Calendar, play movieclip after speciffic date.

  • October 26, 2012
  • 1 reply
  • 589 views

Hello...

I am making an Flash-Advent calendar.

I want to be able to play a movieclip (a new animation/movie per every new date), when the date/button is pressed.. The thing is, that the buttons should only be active, when the date is current or has passed.

Do you have any ideas, to what AS2-code I should use on the button?...

Thanks...

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
October 26, 2012

You need to use the Date class.  Look it up in the help documentation to see the various methods that are available to you to help put it to work for you.

You can use conditional logic with Date information to keep buttons from working, such as comparing if it equal to or greater than a particular date.