ActionScript 2.0 Components Language Reference |
|
|
|
| Form class > Form.parentIsForm | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
myForm.parentIsForm
Property (read-only): returns a Boolean value indicating whether the specified form's parent object is also a form (true) or not (false). If this property is false, myForm is at the root of its form hierarchy.
if (myForm.parentIsForm) {
trace("I have "+myForm._parent.numChildScreens+" sibling screens");
} else {
trace("I am the root form and have no siblings");
}
|
|
|
|