Example
if (myForm.parentIsForm) {
trace("I have "+myForm._parent.numChildScreens+" sibling screens");
} else {
trace("I am the root form and have no siblings");
}
Form.parentForm
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myForm.parentForm
Description
Property (read-only): a reference to the form's parent form.
Example
The following example code resides on a screen named
screen created when you choose Flash Form Application from the New Document dialog box.
onClipEvent(keyDown){
var parentForm:mx.screens.Form = this.parentForm;
trace(parentForm);
}
// output: _level0.application.form1
Form.rootForm
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myForm.rootForm
Description
Property (read-only); returns the form at the top of the form hierarchy that contains
is contained by an object that is not a form (that is, a slide), this property returns
myForm
that is a child of the default
myForm
Form class (Flash Professional only)
form1
. If
myForm
.
myForm
439
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers