coriolanus
Technical User
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 == "secret"
&& (myName.text == "tim"
) {
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).
stop();
e = "December 21, 2004";
function Submit() {
var edt = new Date("November 21, 2004"
var today = new Date();
if ((today < edt) && (myText.text == "secret"
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).