Screen.getChildScreen()

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

myScreen.getChildScreen(childIndex)

Parameters

childIndex A number that indicates the zero-based index of the child screen to return.

Returns

A Screen object.

Description

Method; returns the child screen of myScreen whose index is childIndex.

Example

The following example sends the names of all the child screens belonging to the root screen named Presentation to the Output panel.

for (var i:Number = 0; i < _root.Presentation.numChildScreens; i++) {
    var childScreen:mx.screens.Screen = _root.Presentation.getChildScreen(i);
    trace(childScreen._name);
}