Button on a button

Hello. I’ve made two buttons, and they both do what they are supposed to do, but one button is on top/in front of a larger button behind it. When I press the larger button everything goes fine, but when I press the little button, that’s on top of the other one, they both act as though they have been pressed.
I only want the little button to do its job, not both. Can anyone help? Thanks

Nathan [import]uid: 39302 topic_id: 18709 reply_id: 318709[/import]

“return true” at the end of your touch functions [import]uid: 16142 topic_id: 18709 reply_id: 71898[/import]

make sure the function that’s handling the event for the small button does a

return true  

before it exits.

The event model used by Corona SDK is based on event bubbling. That is if the thing on top doesn’t handle the event (return false) then the event gets sent to the next object under it. [import]uid: 19626 topic_id: 18709 reply_id: 71899[/import]

Thank guys!

Nathan [import]uid: 39302 topic_id: 18709 reply_id: 71912[/import]