5 Replies Latest reply on Jan 8, 2008 3:07 PM by kglad

    If Statement

    Dave.Hollings
      Hi,

      I was wondering if someone might know the answer to a thing I am trying out in Flash

      I am building a flash site and have a mc of a christmas greeting. My client has asked that this becomes visible every christmas (01-Dec) and then disappears on (05-Jan). I not sure but in previous programming languages I could of used an if statement and the now() function.

      I have looked on the web and in the help files but not entirely sure if flash recognises 'now()'. So basically I will mc both of which are set to visible = false to begin with. When the site initially loads it runs an if statement to see if todays date (user's machine date) is 1st December then it will display the christmas greeting else it will display a generic standard greeting.

      I hope someone can help with this.

      Many thanks