gotoAndPlay issues [renamed]

Ok I’m trying to make somthing were you enter a certain number into an input box and click a button and only if you put the right number in it should take you to the next frame. But its not working

this is the code for the button:


on (release) {
    if (numTxt.text == "64") gotoandplay(2);
    
else
    badTxt.text = "Sorry Wrong Number";
}