Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please help me create a date-activated effect?

Status
Not open for further replies.

TigerGirl7

Programmer
Apr 8, 2003
152
US
Hi,

I need to create a file where the user's behavior is governed by date. So for instance...

I have a flash file with fourteen boxes saved as movie clips positioned in a row. Each box represents a new day.

Let's say the start date is January 1st: If the user rolls over box 1, a message is displayed (the box's timeline plays). If the user rolls over any other box, nothing happens.

On 01/02, the user can roll over boxes 1 and 2 and read a message. On 01/03, three messages and so on.

Any thoughts on how I can do this?

Cheers! ;)
Jen
 
use flash to get the system date

today = new Date()
todaysDate = (today.getMonth() + 1) + "/" + today.getDate() + "/" + today.getFullYear() ;

returns

10/13/2006

when the movieclip is rollover check todays date against a pre defined date for that clip and play it or not

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top