Finding the group a display object belongs to

Wondering if Corona offers a way of iterating through the hierarchy of display objects, like with jQuery for example?

I.e. say you have a tap event on an object:

myEvent = function(event) end myObject:addEventListener( "tap", myEvent )

Within the tap event you can access the tapped onject with event.target, but can you determine its display group/container, and the other sibling objects of that group?

Hi Richard,

Try use object.parent  This can be useful for you I think. 

A read-only property that returns the object’s parent.

Have a nice day:)

ldurniat

Ah, perfect!

As it happens I’ve gone about this a slightly different way now anyway, but that’s exactly what I was looking for, yes.

Hi Richard,

Try use object.parent  This can be useful for you I think. 

A read-only property that returns the object’s parent.

Have a nice day:)

ldurniat

Ah, perfect!

As it happens I’ve gone about this a slightly different way now anyway, but that’s exactly what I was looking for, yes.