ActionScript 2.0 Components Language Reference |
|
|
|
| Form class > Form.indexInParentForm | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
myForm.indexInParentForm
Property (read-only); contains the zero-based index of myForm in its parent's list of child forms. If the parent object of myForm is a screen but not a form (for example, if it is a slide), indexInParentForm is always 0.
var myIndex:Number = myForm.indexInParent;
if (myForm == myForm._parent.getChildForm(myIndex)) {
trace("I'm where I should be");
}
|
|
|
|