need event:stopPropagation()

if we can have event:stopPropagation(), it will make things so much more easier… [import]uid: 3826 topic_id: 12222 reply_id: 312222[/import]

Can you return true in your event handler to get the same effect? [import]uid: 27183 topic_id: 12222 reply_id: 44504[/import]

yes and no

if there were a series of display objects, layered on top of each other, a touch event is propagated for all, but if there was a way to stop it, it would be so much more easier.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 12222 reply_id: 44505[/import]

But isn’t that what return true does? If you have your touch event handler return true it should stop the event propagation. At least that’s how it works for me. [import]uid: 27183 topic_id: 12222 reply_id: 44506[/import]

From http://developer.anscamobile.com/content/application-programming-guide-event-handling

“Hit events propagate until they are handled. You can stop propagation to the next object (all listeners of the current object still get the event) by telling the system that the event was handled. This boils down to making a listener return true. If at least one of the listeners of the current object returns true, event propagation ends; the next object will not get the event. If the event is still unhandled at the end of this traversal, it is broadcast as a global event to the global Runtime object.” [import]uid: 27183 topic_id: 12222 reply_id: 44508[/import]