Hello,
There is a dispatch bug in the NumericStepper. You can test it with
this small code :
var ns:NumericStepper = new NumericStepper(this, 0, 0, onChange);
private function onChange(event:Event):void
{
trace("onChange:", event.target);
}
Change value with + button the change value by focusin the textfield
and enter a numeric value.
The NumericStepper dispatch 3 times :
onChange: [object NumericStepper]
onChange: [object NumericStepper]
onChange: [object TextField]
You can add the line in the onValueTextChange method :
protected function onValueTextChange(event:Event):void
{
// prevent from TextField dispatch
event.stopImmediatePropagation();
There is also several bug possibilities/tweaks that I change in the
joined file. All is commented in the file.
The file is located here:
http://code.google.com/p/minimalcomps/issues/detail?id=132
Hope you like it !
Jerome