Log in submission

Hi,

I have the following problem. I created a very simple log in with two input textfields and a submission button. The problem is that people would type in their log in informations and then hit enter, which results in a page break for the password input textfield. I tried a few things like setting the input textfield to single line which did not make a difference. Then I tried to apply to on enter key action but had to realise that you can only apply this action to a buuton and not a textfield. Any help would be apreciated. I am working with flash 8 on a mac with osx…

on (release) {

if (name.text == “student” && password.text == “student”) {
gotoAndStop(“workPlacements”);

} else if (name.text == “admin” && password.text == “admin”) {
gotoAndStop(“workPlacements”);

} else

false_txt.text = “invalid password or username”

}