Screen.indexInParent

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

myScreen.indexInParent

Description

Property (read-only); contains the zero-based index of myScreen in its parent's list of child screens.

Example

The following example displays the relative position of the screen myScreen in its parent screen's list of child screens.

var numChildren:Number = myScreen._parent.numChildScreens;
var myIndex:Number = myScreen.indexInParent;
trace("I'm child slide # " + myIndex + " out of " + numChildren + " screens.");