Copy link to clipboard
Copied
stop();
enter_btn.addEventListener(MouseEvent.CLICK, subClick);
failed_txt.background = false;
failed_txt.border = false;
var myName:String;
var myPass:String;
function subClick(event:MouseEvent):void{
myName=name_txt.text;
myPass=pass_txt.text;
if(myName=="111111" && myPass =="22222.1"){
gotoAndStop("hidden");
} else {
failed_txt.text = "Graag een geldig passsword.";
}
Copy link to clipboard
Copied
The only thing wrong with what you show is that the function is missing an ending curly brace.
If you are getting some error message include the error message in your posting
Copy link to clipboard
Copied
its working now
Copy link to clipboard
Copied
what's the problem?
if you think myName and myPass should be correct (use the trace function to confirm), make sure the textfield's are single line and NOT html enabled and kerning is disabled. then trace the those variables length.
Copy link to clipboard
Copied
its working now
Find more inspiration, events, and resources on the new Adobe Community
Explore Now