Turns out that this necessitates validation, and there doesn't appear to be
a way to access the raw text of a numeric stepper to pass to a
NumberValidator.

I started out with a NumericStepper (minValue 500)  in a form, and the
designer noted that the save button did not get enabled until you change
focus away from the numericstepper.

If I listen for keyDown and update the model, then you can't type "4000"
because stepper.value always returns something valid, so "4" results in 500.

Any ideas? I'm tempted to revert to a regular TextInput.

It seems like there should be a NumericStepper with built-in validation,
that fires valid/invalid events.


On Mon, Nov 9, 2009 at 11:27 PM, Alex Harui <[email protected]> wrote:

>
>
>  Maybe watch for keyDown
>
>
>
> Alex Harui
>
> Flex SDK Developer
>
> Adobe Systems Inc. <http://www.adobe.com/>
>
> Blog: http://blogs.adobe.com/aharui
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Richard Rodseth
> *Sent:* Monday, November 09, 2009 9:19 AM
> *To:* [email protected]
> *Subject:* [flexcoders] NumericStepper and change event
>
>
>
>
>
> Is there any way to get a NumericStepper to fire a change event on each
> keystroke?
>
> I got a bug report that the form save button is not enabled until the
> stepper loses focus.
>
>   
>

Reply via email to