getChildIndex method

int getChildIndex(
  1. GDisplayObject child
)

Returns the index of a child in the list of children of this container, or -1 if the child is not found.

Implementation

int getChildIndex(GDisplayObject child) {
  return children.indexOf(child);
}