Extending Flash |
|
|
|
| Objects > Screen object > screen.prevScreen | |||
Flash MX 2004.
screen.prevScreen
Read-only property; an object that represents the previous peer screen in the parent's childScreens array. If there isn't a peer screen, the value is null. See also screen.nextScreen.
The following example 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[1].name;
var myNext = fl.getDocumentDOM().screenOutline.rootScreen.childScreens[1].prevScreen.name;
fl.trace(" The previous screen to "+myCurrent+" is "+myNext+". ");
}
|
|
|
|