Hi all,
I have two events
The first event is a global "touch" event
The second event is a targeted "Tap" event for a button
when I tap the screen both events fire. The touch event fires first then the tap event.
Just want to know if it is possible to get the tap event to fire first then the touch event? I have tried changing the code so the Tap event code is below the touch event code and vice versa... no change
thanks
finish your event function you want to fire with 'return true' so it stops the event propagation
Bertybottom is right, it doesn't matter what order the listeners are declared in, display objects will always precede Runtime in the event bubble down. If you return true, Lua knows the event has been handled and will not pass it to any other listeners.
See also http://developer.anscamobile.com/content/application-programming-guide-event-handling