ActionScript 2.0 Components Language Reference |
|
|
|
| Screen class > Screen.getChildScreen() | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
myScreen.getChildScreen(childIndex)
childIndex A number that indicates the zero-based index of the child screen to return.
A Screen object.
Method; returns the child screen of myScreen whose index is childIndex.
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);
}
|
|
|
|