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.text);

//age field
age.type = TextFieldType.INPUT;
age.border = true;
age.restrict = "0-9";

thanks guys..


      
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to