Skip to content

getOrder()

Return the layer an object sits on within the display.

Parameters

Once an object display has been created, you can use the following function:

display.getOrder(item)
Parameter Type Default Description
item Drawable required The object to look up.

Returns

return order

Value Type Description
order int The object's layer, where 0 is closest to the front; None if the object is not in the display.