# Adding Up Numeric Stepper

**URL:** https://forum.kirupa.com/t/adding-up-numeric-stepper/188194
**Category:** flash
**Created:** [May 5, 2006, 7:12am UTC](https://forum.kirupa.com/t/adding-up-numeric-stepper/188194 "2006-05-05T07:12:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bpdp](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@bpdp](https://forum.kirupa.com/u/bpdp)
#### Post date: [May 5, 2006, 7:12am UTC](https://forum.kirupa.com/t/adding-up-numeric-stepper/188194/1 "2006-05-05T07:12:43Z")

</div>

Hi all,  
I’m making a t-shirt site and I have several numeric steppers that let the user enter a vaule for how many smalls, mediums ect. that they want.

I want to show the total number of shirts in the order in a textField called:

tfTotal

I really thought that something like this would be a common thing that others would do, but i can’t find it anywhere. below is part of the code:

```auto
var aSmall = new Object();
aSmall.change = function() {
	trace(cnsAS.value);
};
cnsAS.addEventListener("change", aSmall);

var aMedium = new Object();
aMedium.change = function() {
	trace(cnsAM.value);
};
cnsAM.addEventListener("change", aMedium);

```

I would love any help you guys could give me. Thanks!
