Returns
A Form object.
Description
Method; returns the child form of
Example
The following example displays in the Output panel the names of all the child Form objects
belonging to the root Form object named
for (var i:Number = 0; i < _root.application.numChildForms; i++) {
var childForm:mx.screens.Form = _root.application.getChildForm(i);
trace(childForm._name);
}
See also
Form.numChildForms
Form.indexInParentForm
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myForm.indexInParentForm
Description
Property (read-only); contains the zero-based index of
the parent object of
indexInParentForm
Example
var myIndex:Number = myForm.indexInParent;
if (myForm == myForm._parent.getChildForm(myIndex)) {
trace("I'm where I should be");
}
See also
Form.getChildForm()
myForm
is a screen but not a form (for example, if it is a slide),
myForm
is always 0.
whose index is
childIndex
.
application
in its parent's list of child forms. If
myForm
Form class (Flash Professional only)
.
437
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?