all groups > flash actionscript > may 2004 >
You're in the

flash actionscript

group:

Numeric Stepper Change Event and Focus Managing


Numeric Stepper Change Event and Focus Managing AaRoNBC
5/17/2004 10:28:47 PM
flash actionscript: 1) I have a numeric stepper that i am trying to use to update a value in an
array. it works fine when i add a "change" event listener to the stepper and
use ONLY the up and down arrows. The problem occurs when i manually type a
value into the stepper and then immediately click on a submit button or other
component (the array does not get updated). I added a keyDown function to the
stepper to update the array everytime a key is pressed but i can't seem to get
it working properly. Currently i have to type in the value and press "enter"
or click in an empty area or up/down arrow in order for the array to update
correctly. I want to be able to type a value into a numeric stepper and once
that component loses focus (whether by clicking another component, etc.),
update an array. I tried adding a "focusOut" listener to the stepper but i
obtained the same result as the "keyDown" function. I noticed that if i change
2 numeric steppers, the first one will update the array correctly only after
the second one is changed and so on.

2) Why isn't a change event broadcasted from a numeric stepper when a user
enters a different value manually and the component loses focus?

3) Any suggestions on how to use the focus manager to transfer focus to
different compnents that are nested at varying depths in different movieclips?

any suggestions would be greately appreciated. let me know if i can help
clarify anything.
thx,
AaRoN
Re: Numeric Stepper Change Event and Focus Managing AaRoNBC
5/18/2004 6:09:02 PM
Re: Numeric Stepper Change Event and Focus Managing vayapues1
1/31/2005 2:58:15 PM
Re: Numeric Stepper Change Event and Focus Managing PaulAnka
9/18/2005 7:11:29 PM
AddThis Social Bookmark Button