# Almost done it-----just one more thingi need to do

**URL:** <https://forum.kirupa.com/t/almost-done-it-just-one-more-thingi-need-to-do/186017>\
**Category:** Uncategorized\
**Created:** [April 18, 2006, 1:50pm UTC](https://forum.kirupa.com/t/almost-done-it-just-one-more-thingi-need-to-do/186017 "2006-04-18T13:50:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chevron8653](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@chevron8653](https://forum.kirupa.com/u/chevron8653)\
**Post date:** [April 18, 2006, 1:50pm UTC](https://forum.kirupa.com/t/almost-done-it-just-one-more-thingi-need-to-do/186017/1 "2006-04-18T13:50:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Greggeh](https://avatars.discourse-cdn.com/v4/letter/g/8baadc/32.png) [@Greggeh](https://forum.kirupa.com/u/Greggeh)\
**Post date:** [April 18, 2006, 3:05pm UTC](https://forum.kirupa.com/t/almost-done-it-just-one-more-thingi-need-to-do/186017/2 "2006-04-18T15:05:17Z")

</div>

on (release, keyPress “\<Enter\>”) {  
if ((password == “gatetech1”) && (user == “jack”)) {  
gotoAndStop(“loading” , 3);  
} else{  
alert\_mc.gotoAndPlay("\_appearing")  
}

---

<div class="post-metadata">

**Author:** ![chevron8653](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@chevron8653](https://forum.kirupa.com/u/chevron8653)\
**Post date:** [April 18, 2006, 3:40pm UTC](https://forum.kirupa.com/t/almost-done-it-just-one-more-thingi-need-to-do/186017/3 "2006-04-18T15:40:24Z")

</div>

thanks for the suggestion of that code but it didnt work is there nething else u know i could try.

---

<div class="post-metadata">

**Author:** ![TheMilkman](https://avatars.discourse-cdn.com/v4/letter/t/ea5d25/32.png) [@TheMilkman](https://forum.kirupa.com/u/TheMilkman)\
**Post date:** [April 18, 2006, 9:12pm UTC](https://forum.kirupa.com/t/almost-done-it-just-one-more-thingi-need-to-do/186017/4 "2006-04-18T21:12:26Z")

</div>

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);  
}  
}

---

<div class="post-metadata">

**Author:** ![chevron8653](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@chevron8653](https://forum.kirupa.com/u/chevron8653)\
**Post date:** [April 19, 2006, 1:08am UTC](https://forum.kirupa.com/t/almost-done-it-just-one-more-thingi-need-to-do/186017/5 "2006-04-19T01:08:13Z")

</div>

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?
