Layering and Multiple Listeners

I’ve got tap listeners assigned to some display objects that are above other display objects that also have tap listeners assigned, and when I tap the top-most object, it’s listener, as well as the object behind it both receive the events.

This is causing some wacky behavior. Is there a way to avoid this and only have the top-most object receive the tap event?

Thanks! [import]uid: 4621 topic_id: 1826 reply_id: 301826[/import]

I have objects layered because my application is setup with a header bar, a scrolling area, and a nav bar at the bottom, so the scrolling content (longer than the screen, obviously) goes behind the nav bar.

The scrolling content has items inside with listeners assigned.
The nav bar has listeners assigned.

When a nav item is tapped, if an item in the scrolling content behind it intersects with the tap, it’s event is also called.

Any ideas here on a fix? Thanks! [import]uid: 4621 topic_id: 1826 reply_id: 5464[/import]

Hello,

I am really stuck with making an application with a nav bar at the buttom.
Can you tell me how to change the screens and how you can highlight the button that is pressed?

Thanks in advance.
[import]uid: 6873 topic_id: 1826 reply_id: 5466[/import]

Check out the TabBar sample code shipped with the new Corona SDK.

-Tom [import]uid: 7559 topic_id: 1826 reply_id: 6216[/import]