Screen object
373
screen.parentScreen
Availability
Flash MX 2004.
Usage
screen.parentScreen
Description
Read-only property; an object that represents the parent screen. If
parentScreen
is
null
, the
screen is a top-level screen.
Example
The following example stores the values for the
childScreens
and
parentScreen
properties
in variables and then shows those values and their parent/child relationship in the Output
panel:
if(fl.getDocumentDOM().allowScreens) {
var myCurrent =
fl.getDocumentDOM().screenOutline.rootScreen.childScreens[1].name;
var myParent =
fl.getDocumentDOM().screenOutline.rootScreen.childScreens[1].parentScree
n.name;
fl.trace(" The parent screen to "+my" is "+m". ");
}
screen.prevScreen
Availability
Flash MX 2004.
Usage
screen.prevScreen
Description
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
.
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...