Hi I´m attaching my *.rar with the fla.
I´m making a simple login fla wich I+ve done before. Using this code on the button that checks that the right password is used.
[AS]
on (press, keyPress “<Enter>”) {
if ((password == “whatever”)) {
gotoAndStop(“index”, 1);
} else {
gotoAndStop(“wrong”);
}
}
[/AS]
The problem is that when using Enter you won´t get logged in but the cursor just focus to the textbox?
Using the Selection.setFocus command in the first frame
[AS]Selection.setFocus(login_txt);[/AS]
And I think the problem might be there somewhere… but I´m so locked on this problem that I can´t figure out where I´ve gone wrong.
Please help me.