I have an input textfield. User types a number to be stored as a variable.
i want to convert the datatype (of this variable)to a number(it is string by default).
Everything I try doesnt change the datatype to a number.
I have tried using
Number(variablename)
but when I trace the typeof variable it is still a string.
I am new to flash so I am probably missing something. Can anyone help?
thanks
Mike
i want to convert the datatype (of this variable)to a number(it is string by default).
Everything I try doesnt change the datatype to a number.
I have tried using
Number(variablename)
but when I trace the typeof variable it is still a string.
I am new to flash so I am probably missing something. Can anyone help?
thanks
Mike