# Text text text!

**URL:** <https://forum.kirupa.com/t/text-text-text/18960>\
**Category:** flash\
**Created:** [April 22, 2003, 11:23pm UTC](https://forum.kirupa.com/t/text-text-text/18960 "2003-04-22T23:23:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nial](https://avatars.discourse-cdn.com/v4/letter/n/dbc845/32.png) [@Nial](https://forum.kirupa.com/u/Nial)\
**Post date:** [April 22, 2003, 11:23pm UTC](https://forum.kirupa.com/t/text-text-text/18960/1 "2003-04-22T23:23:47Z")

</div>

I have a flash animation and a text box in the flash. I want it so that when the user enters the correct word the flash animation starts playing. Basically all i need to know is how to make flash check if the textbox has for example “test” in it and if it does act correctly… if not ignore it. I dont want the user to have to click a button just as soon as they enter it :rambo:

---

<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:** [April 22, 2003, 11:25pm UTC](https://forum.kirupa.com/t/text-text-text/18960/2 "2003-04-22T23:25:29Z")

</div>

Senocular has posted this file a while ago in a thread that i can’t find

---

<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:** [April 22, 2003, 11:29pm UTC](https://forum.kirupa.com/t/text-text-text/18960/3 "2003-04-22T23:29:19Z")

</div>

Any chance of just code - cant download on this macine :ninja:

---

<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:** [April 22, 2003, 11:31pm UTC](https://forum.kirupa.com/t/text-text-text/18960/4 "2003-04-22T23:31:54Z")

</div>

k… it’s as simple as:

```auto
on(release) {
if (myVariable == "sesame") {
play();
// any other actions go here
}
}

```

myVariable is the variable name for the textfield 🙂

---

<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:** [April 23, 2003, 8:56am UTC](https://forum.kirupa.com/t/text-text-text/18960/5 "2003-04-23T08:56:38Z")

</div>

The same way as ahmed said

some steps  
1\> make text box and check input box  
2\> name a variable for that box  
3\> some actionscript that checks if the input is same as you assigned and last  
4\> the play action that will make the animation play the text matches.

hint: use the if …else loop
