I suspect it's a typo. Your top code asks for sprite("passwrdTF").text while below you refer to sprite("passwordTF").text - do you see the difference?
Try the following modification:
on mouseUp me global usrName,usrSurName, password tUsername = sprite("usrNameTF").text tSurname = sprite("usrSurNameTF").text tPassword = sprite("passwordTF").text if tUsername = "" or tSurname = "" or tPassword = "" then alert("Fill alle fields to continue!") else usrName = tUsername usrSurName = tSurname password = tPassword go to frame "menu" end if end
Thank you Sean!
Your suggestion helped.
But I still do not get the point why
if sprite("passwordTF").text = "" then
should cuase an error in compiling at all??
The exchange between passwrd and password in
was just typing error.
I thought it was a runtime error you were seeing, not a compiler error.