method getChildAt

box getChildAt(int32 childIndex);

Argumente

Zurückgegebener Wert

This method will retrieve a box object from its child list at the index provided by the caller. If no box is found at the specified index, null is returned.
var box = null;
for (var ix = 0; ix < scene.rootBox.childCount; ix++)
{
    box = scene.rootBox.getChildAt(ix);
    if (box)
        shell.print("Child# " + ix + "  Tag: " + box.tag);
}