Thks for the code man, but not worked so fine… when I put the log/pass, the movie stucks, and the message “Wait” doesn’t appear. After 5 sec, all fields are clear.
its setInterval that doesnt repeat (like setTimeout for javascript)
Declare the setTimeout function in the first frame of the movie then use
on (release, key press "") {
if (login == "test" && password == "test") {
message = "Wait a moment...";
getURL("http://kirupa.com", "_blank");
setTimeout(function(){message=""}, 5000);
}else message = "Wrong password";
}
NOTE: this is pretty much what KAX’s version does (which should work dandy), just using the setTimeout version of setInterval which is nice to have for future reference in similar situations
NOTE: this is pretty much what KAX’s version does (which should work dandy), just using the setTimeout version of setInterval which is nice to have for future reference in similar situations
yup … thanks sen =)
Creating engaging and entertaining content for designers and developers since 1998.