# AS2 : NumericStepper Issue

**URL:** https://forum.kirupa.com/t/as2-numericstepper-issue/286388
**Category:** flash
**Created:** [April 14, 2009, 9:10pm UTC](https://forum.kirupa.com/t/as2-numericstepper-issue/286388 "2009-04-14T21:10:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![BuG56](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@BuG56](https://forum.kirupa.com/u/BuG56)
#### Post date: [April 14, 2009, 9:10pm UTC](https://forum.kirupa.com/t/as2-numericstepper-issue/286388/1 "2009-04-14T21:10:02Z")

</div>

Hello all, I have a strange problem with the numeric stepper component…

I have a couple of numeric steppers on the stage, along with a button component that executes a function that uses their values. The only problem is - if I enter the number into the number stepper (not using the up/down keys) and click on the button without losing focus from the numeric stepper - it retains its old value. For example -

I select numstep1 and enter ‘1’  
I select numstep2 and enter ‘2’  
I select numstep1 and enter ‘3’  
Without clicking anywhere else - I press the button  
the function picks up numstep1’s value as ‘1’ and numstep2’s value as ‘2’ when numstep1 should be ‘3’. How can I work around this? ☹
