cs4 as2 - changing a string variable to a number

Hi Guys,

I want to add some input fields together and can’t seem to do it… Can someone help?

test_btn.onRelease=function(){
total = Number(input1) + Number(input2);
}

In the total field I get ‘NaN’

Any suggestions?

Cheers