# gotoAndPlay issues \[renamed\]

**URL:** <https://forum.kirupa.com/t/gotoandplay-issues-renamed/181652>\
**Category:** Uncategorized\
**Created:** [March 11, 2006, 2:11pm UTC](https://forum.kirupa.com/t/gotoandplay-issues-renamed/181652 "2006-03-11T14:11:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shoo](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@Shoo](https://forum.kirupa.com/u/Shoo)\
**Post date:** [March 11, 2006, 2:11pm UTC](https://forum.kirupa.com/t/gotoandplay-issues-renamed/181652/1 "2006-03-11T14:11:34Z")

</div>

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:

```auto

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

```
