# Using input text to move to a frame

**URL:** <https://forum.kirupa.com/t/using-input-text-to-move-to-a-frame/123996>\
**Category:** Uncategorized\
**Created:** [September 29, 2004, 5:21am UTC](https://forum.kirupa.com/t/using-input-text-to-move-to-a-frame/123996 "2004-09-29T05:21:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![humbleches](https://avatars.discourse-cdn.com/v4/letter/h/6de8d8/32.png) [@humbleches](https://forum.kirupa.com/u/humbleches)\
**Post date:** [September 29, 2004, 5:21am UTC](https://forum.kirupa.com/t/using-input-text-to-move-to-a-frame/123996/1 "2004-09-29T05:21:20Z")

</div>

Hi I’m very new to all this (forum and flash overall) compared to most but I’ve being trying to make a movie that when text is entered in to an input field depending on it’s value (after a click on a button) the movie goes to a certain frame.

For example if the text entered is = 5 then it goes to frame 52  
if no then it goes to frame 2…

Here is the code I’m using which is on a button in frame 1… at the moment no matter what I type in it always goes to frame 52! I’ve named the variable for the input text inputAmount.

on (release) {  
if (inputAmount=5) {  
gotoAndPlay(52);  
} else {  
gotoAndPlay(2);  
}  
}

Any help would be very much appreciated! Sorry if this is a stupid quetion!

Thanks! :love:
