Simple calculator

I am very new to actionscript. Please fogive my ignorance. It confuses me to no end!

I need to create to user input boxes and a total box. I created a layer for actions and put in my first frame:

total = Number(box1) + Number(box2);

total was the dynamic text box var and the input boxes were var box1 and var box2. my total was NaN. I know that means not a number but what am I doing wrong.

I also tried this tutorial (below) and I get NaN. I am getting really anoid with NaN…please help:crying:

[[COLOR=#000000][/COLOR]http://www.layersmagazine.com/flash-design-calculator.html](http://www.layersmagazine.com/flash-design-calculator.html)