View Full Version : Text text text!
Nial
April 22nd, 2003, 08:23 PM
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:
ahmed
April 22nd, 2003, 08:25 PM
Senocular has posted this file a while ago in a thread that i can't find
Nial
April 22nd, 2003, 08:29 PM
Any chance of just code - cant download on this macine :ninja:
ahmed
April 22nd, 2003, 08:31 PM
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 :)
vdesigns
April 23rd, 2003, 05:56 AM
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
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.