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?

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,

?:)

views:1639 update:2011/10/17 8:58:49
corona forums © 2003-2011