Text text text!

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:

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

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

k… it’s as simple as:

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

myVariable is the variable name for the textfield :slight_smile:

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