ActionScript 2.0 Components Language Reference |
|
|
|
| Form class > Form.numChildForms | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
myForm.numChildForms
Property (read-only); the number of child forms contained by myForm that are derived directly from the class mx.screens.Form. This property does not include any slides that are contained by myForm; it contains only forms.
|
NOTE |
When using a custom ActionScript 2.0 class that extends mx.screens.Form, the form isn't counted in the |
The following code iterates over all the child forms contained in myForm and displays their names in the Output panel.
var howManyKids:Number = myForm.numChildForms;
for(i=0; i<howManyKids; i++) {
var childForm = myForm.getChildForm(i);
trace(childForm._name);
}
|
|
|
|