Hi guys.
well heres the deal.
on (release, keyPress “<Enter>”) {
if ((password == “gatetech1”) && (user == “jack”)) {
gotoAndStop(“loading” , 3);
} else if ((password == “please”) && (user == “work”)) {
alert_mc.gotoAndPlay("_appearing")
}
}
that code work absolutly perfect except for one small thing. with the else statement i want it to do the alert_mc line when either the user enters nothing in the password or user text fields and also when they have entered the incorrect user and password,
So what is it that i put where i have written please and work to make it do what i just suggested.
thanks for reading
on (release, keyPress “<Enter>”) {
if ((password == “gatetech1”) && (user == “jack”)) {
gotoAndStop(“loading” , 3);
} else{
alert_mc.gotoAndPlay("_appearing")
}
thanks for the suggestion of that code but it didnt work is there nething else u know i could try.
on (release, keyPress “<Enter>”) {
if ((password != “gatetech1”) || (user != “jack”)) {
alert_mc.gotoAndPlay("_appearing")
gotoAndStop(“loading” , 3);
} else if ((password == “please”) && (user == “work”)) {
alert_mc.gotoAndPlay("_appearing")
} else {
gotoAndStop(“loading” , 3);
}
}
no luck with that either, it just dosent want to work.
on (release, keyPress “<Enter>”) {
if ((password == “1012253”) && (user == “dr elizibeth wier”)) {
correct_mc.gotoAndPlay("_appearing")
} else if ((password == “work”) && (user == “please”)) {
alert_mc.gotoAndPlay("_appearing")
}
}
once again below is the code that does tend to work . a new thing id like to know is with the correct_mc how do i make it goto scene 2 when its finished playing. So what im asking is what do type in last frame of the correct_mc timeline to make it do that.
and isnt there a solution to the other thing where they enter nething else other the the set password does what i have written in the code. isnt there something i can put in the spaces where it says work please to tell it that if they type nething or an incorrect password to do the next code?