screen.nextScreen

Availability

Flash MX 2004.

Usage

screen.nextScreen

Description

Read-only property; an object that represents the next peer screen in the parent's childScreens array. That is, screen.nextScreen is found by moving down an array of child screens to the next screen in the array. See screen.prevScreen.

If there isn't a peer screen, the value is null.

Example

The following example first checks to see if the current document is a slide or form, and if it is, retrieves and shows the sequence of screens in the Output panel:

if(fl.getDocumentDOM().allowScreens) {
    var myCurrent = fl.getDocumentDOM().screenOutline.rootScreen.childScreens[0].name;
    var myNext = fl.getDocumentDOM().screenOutline.rootScreen.childScreens[0].nextScreen.name;
    fl.trace(" The next screen to "+myCurrent+" is "+myNext+". ");
}