Should be Number(age.text) for a start
Kenneth Kawamoto
http://www.materiaprima.co.uk/
rlyn ben wrote:
need to capture the input in textfield which is restricted to numbers only...
and convert the string to number...
this is my code but it wont work.. when i trace it.. it displays.. object
[
need to capture the input in textfield which is restricted to numbers only...
and convert the string to number...
this is my code but it wont work.. when i trace it.. it displays.. object
[textfield].. or 0.. or NaN..
//stores age
var userAge:Number = Number(age);
var newAge:String = String(age
2 matches
Mail list logo