ActionScript 2.0 Components Language Reference |
|
|
|
| Form class > Form.getChildForm() | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
myForm.getChildForm(childIndex)
childIndex A number that indicates the zero-based index of the child form to return.
A Form object.
Method; returns the child form of myForm whose index is childIndex.
The following example is displayed in the Output panel the names of all the child Form objects belonging to the root Form object named application.
for (var i:Number = 0; i < _root.application.numChildForms; i++) {
var childForm:mx.screens.Form = _root.application.getChildForm(i);
trace(childForm._name);
}
|
|
|
|