Patch submisison to reslove several bugs in NumericStepper

8 views
Skip to first unread message

Jerome

unread,
Feb 16, 2011, 9:16:13 AM2/16/11
to MinimalComps
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

Keith Peters

unread,
Feb 16, 2011, 9:18:30 AM2/16/11
to minima...@googlegroups.com
Thanks for all your recent submissions. I really appreciate them. Will try to address them all in the next few days.

Keith
--
---| Keith Peters
Reply all
Reply to author
Forward
0 new messages