# Simple calculator

**URL:** <https://forum.kirupa.com/t/simple-calculator/268312>\
**Category:** Uncategorized\
**Created:** [August 12, 2008, 2:30pm UTC](https://forum.kirupa.com/t/simple-calculator/268312 "2008-08-12T14:30:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![babyskiss99](https://avatars.discourse-cdn.com/v4/letter/b/b782af/32.png) [@babyskiss99](https://forum.kirupa.com/u/babyskiss99)\
**Post date:** [August 12, 2008, 2:30pm UTC](https://forum.kirupa.com/t/simple-calculator/268312/1 "2008-08-12T14:30:56Z")

</div>

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)]([http://www.layersmagazine.com/flash-design-calculator.html](http://www.layersmagazine.com/flash-design-calculator.html))
