Kevincosme / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

ScrollableArrowMenu RTE TypeError 322 #55

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

While the menu is scrolling, clicking on an arrow causes a TypeError at
line 322 in stopScrolling event handler.

This is due to the fact that the menu has been removed from the stage, and
the stage property is now null. Since the listeners have been setup in the
createChildren method to the up/down buttons, reassinging the listeners to
the event target (aka button) fixes this issue.

private function stopScrolling(event:Event):void {
stage.removeEventListener(MouseEvent.MOUSE_UP, stopScrolling);

to:
event.target.removeEventListener(MouseEvent.MOUSE_UP, stopScrolling);

Original issue reported on code.google.com by mike.pet...@gmail.com on 14 Sep 2007 at 10:03

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 19 Sep 2007 at 4:36

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 25 Dec 2007 at 4:16

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 26 Dec 2007 at 11:10

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 26 Dec 2007 at 11:31

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 3 Jan 2008 at 8:29