Badcreature / mad-components

Automatically exported from code.google.com/p/mad-components
0 stars 0 forks source link

Patch for /trunk/MadComponentStuff/src/MadComponentsNavigation.as #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Bug demonstration:
set autoBack=false and listen on the backButton for UIButton.CLICKED event. 
firstList function does not get called.

Original issue reported on code.google.com by sanadhus...@gmail.com on 5 Jun 2011 at 4:08

Attachments:

GoogleCodeExporter commented 8 years ago
Not a bug - (just an inconsistency in the way my component work).

The backButton and rightArrow don't dispatch a UIButton.CLICKED event.  They 
dispatch MouseEvents.

(But, The rightButton is a subclass of UIButton, and dispatches 
UIButton.CLICKED)

So change the listener to detect MouseEvent.MOUSE_UP ... and this example works.

Original comment by doc.andr...@gmail.com on 5 Jun 2011 at 6:05