Problem about objects overlap in Group

Normally, Objects at the higher index numbers will be displayed on top of objects with lower index numbers (if the objects overlap).

But I have code:

myGroup:insert(myButton)
myGroup:insert(myImage)
–myButton and myImage are overlaped

Every time I touch on myImage, I always get myButton.TapEvent. But I don’t want this.

Someone please help me? [import]uid: 81795 topic_id: 15688 reply_id: 315688[/import]

you can search the forums, this question has been asked nearly by everyone.

the simpler solution, use a return true in the tap handler, which indicates that the event has been handled.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 15688 reply_id: 57910[/import]