View Full Version : [AS2] TextInput component
Alexaz
12-13-2008, 06:32 PM
How do i get the value of TextField?
I tried testfield.text but it didn't return anything.
CyanBlue
12-13-2008, 08:33 PM
Howdy and Welcome... :)
If you assign an instance name to the TextField, you can access the value by doing this...
textFieldInstanceName.text
Btw, textField is not an component...
Alexaz
12-13-2008, 09:40 PM
Well i did it before just like you said. And TextInput is in COMPONENTS->UI menu, so i think thats component.
EDIT: Fixed it my self :)
CyanBlue
12-13-2008, 10:31 PM
Then you should have said TextInput not TextField... ;)
It'd be nice to share what you have used to help others having the same problem...
caseyctg
12-14-2008, 04:19 PM
for getting the text fields value or string, I would use:
TextFieldInstanceName.toString();
or
TextFieldInstanceName.valueOf();
Not sure if that is what you were wanting or not. If not, provide more info.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.