View Full Version : TextInput Component: neep Help
puthisorn
05-06-2004, 03:06 PM
I want to know the script that take the word from user input in textinput component and store it in variable name. Anyone know, Please tell me.
Did you manage it? I have the same problem now, can you help me?
remco-v
04-13-2005, 11:50 AM
This works
I put this code in a fresh fla file with 1 instance of TextInput: addAnwserInput and 1 button.
Code on frame 1
stop();
var textListener = new Object();
textListener.handleEvent = function (evt)
{
trace (evt.target.text);
}
addAnwserInput.addEventListener("change", textListener);
addAnwserInput.addEventListener("enter", textListener);
Code on the button
on(click)
{
trace(_root.addAnwserInput.text);
}
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.