I’m trying to get my progam to get a value that a user inputs via a text input object. The name of the instance is “txtAge”. I want whatever the user puts into the textinput box to be converted from string to a numeric value and put into the variable “Age”. This is the line of code that keeps erroring out:
var Age:Number = txtAge;
I’ve I’ve tried searching the forums for a thread that explains it but I can’t find anything. I’m very new to Actionscript (1.0, 2.0, and 3.0) and my programing experience is in C# and VB. I don’t know how far off I am from getting this to work but I think I’m kind close.
Thanks in advance.