7/23/2010 2:36:03 AM
Title:
adding two numbers
Hi,
i have two textinputs, in the textinput having numbers, how to add it?
regards,
Ramakrishna
7/23/2010 2:47:10 AM
say you have two textInput fields named as inputText1 and inputText2, following code will convert the value to number and add them.
var sumTotal:Number= Number(inputText1.text)+ Number(inputText2.text);