Patch submisison to reslove several bugs in NumericStepper
GoogleCodeExporter opened this issue · comments
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.
Hope you like it !
Jerome
Original issue reported on code.google.com by jero.deco@gmail.com
on 16 Feb 2011 at 2:15
Attachments:
Original comment by k...@bit-101.com
on 9 Apr 2011 at 3:08
- Changed state: Fixed