# Navigation via a textfield

**URL:** <https://forum.kirupa.com/t/navigation-via-a-textfield/14400>\
**Category:** Uncategorized\
**Created:** [February 25, 2003, 9:12pm UTC](https://forum.kirupa.com/t/navigation-via-a-textfield/14400 "2003-02-25T21:12:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Caligldnbears](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/caligldnbears/32/143_2.png) [@Caligldnbears](https://forum.kirupa.com/u/Caligldnbears)\
**Post date:** [February 25, 2003, 9:12pm UTC](https://forum.kirupa.com/t/navigation-via-a-textfield/14400/1 "2003-02-25T21:12:26Z")

</div>

Hi folks,  
Im trying to setup an Artificial intellegence sorta thing in Flash and I want to know if it possible to navigate by way of what is typed in a text input field. I tried something like this:

if (textinput==“hi”){  
gotoAndStop(25);  
}

I tried putting an else after it but it acted as if the first condition isnt met. I need to be able to do this based on key strokes. The user can’t click click a button or anything.

Any ideas anyone?

Thanks,  
Michael

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 25, 2003, 9:29pm UTC](https://forum.kirupa.com/t/navigation-via-a-textfield/14400/2 "2003-02-25T21:29:20Z")

</div>

Howdy…

Use onChanged handler to check if the text field’s data has been changed… That should do the work… 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 25, 2003, 9:41pm UTC](https://forum.kirupa.com/t/navigation-via-a-textfield/14400/3 "2003-02-25T21:41:13Z")

</div>

I looked that up in the Actionscript Reference and didnt see anything for it.

Could you possibly give me a quick sample or point me to reference for this.

Thanks,  
Michael

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 25, 2003, 9:46pm UTC](https://forum.kirupa.com/t/navigation-via-a-textfield/14400/4 "2003-02-25T21:46:27Z")

</div>

works for me, but instead of an else, I put a frame after it that said “gotoandplay(1)” so that once the condition was met, I said goto 3 instead of 25.

hope this helps…-RH

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 25, 2003, 9:46pm UTC](https://forum.kirupa.com/t/navigation-via-a-textfield/14400/5 "2003-02-25T21:46:39Z")

</div>

I looked that up in the Actionscript Reference and didnt see anything for it.

Could you possibly give me a quick sample or point me to reference for this.

Thanks,  
Michael

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 25, 2003, 9:56pm UTC](https://forum.kirupa.com/t/navigation-via-a-textfield/14400/6 "2003-02-25T21:56:18Z")

</div>

RH,  
Can you post the fla please or the AS that you used? I can not get this to work. This is driving me insane…this should any easy one…sigh.

Thanks,  
Michael
