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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password expiration in Flash?

Status
Not open for further replies.

coriolanus

Technical User
Jun 21, 2002
1
US
I'm trying to build a password expiration into my fla by scripting the following:

stop();
e = "December 21, 2004";
function Submit() {
var edt = new Date("November 21, 2004");
var today = new Date();
if ((today < edt) && (myText.text == &quot;secret&quot;) && (myName.text == &quot;tim&quot;)) {
gotoAndStop(121);
} else {
gotoAndStop(61);
}
}

The password verification works, by the time check always fails. Is there an easier way to expire a password in Flash (I need it to work even as an exe on a CD).
 
I'm no programmer, but I'd try another valid date format...
...
var edt = new Date(2004, 11, 21);
...

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top