claire2903
05-07-2008, 01:12 AM
Have built a mini game and used the input box for typing in an answer to a question.
The input box works as i have an if statement. but if there is nothing in the box and the person clicks on the button, the person gets directed to the frame it should not saying Access granted.
I want it to go to the Access denied screen, but it wont.
do i have to include something else, the following is the code i have:
password = inputName
if (password == "the royal absolution" or "royal absolution") {
gotoAndStop (116);
} else {
inputStatus = "Access denied!" ;
}
Can anyone one help?
The input box works as i have an if statement. but if there is nothing in the box and the person clicks on the button, the person gets directed to the frame it should not saying Access granted.
I want it to go to the Access denied screen, but it wont.
do i have to include something else, the following is the code i have:
password = inputName
if (password == "the royal absolution" or "royal absolution") {
gotoAndStop (116);
} else {
inputStatus = "Access denied!" ;
}
Can anyone one help?