User Guide

666 Chapter 6: Components Dictionary
See also
Screen.getChildScreen()
Screen.parentIsScreen
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myScreen.parentIsScreen
Description
Property (read-only): returns a Boolean value indicating whether the specified screens parent
object is also a screen (
true) or not (false). If this property is false, myScreen is at the root of
its screen hierarchy.
Example
The following code determines if the parent object of the screen myScreen is also a screen. If
myScreen.parentIsScreen is true, a trace() statement displays the number of sibling slides of
myScreen in the Output panel. If the parent screen of myScreen is not also a screen, Flash
assumes that
myScreen is the root (master) slide in the presentation and therefore has no sibling
slides.
if (myScreen.parentIsScreen) {
trace("I have "+myScreen._parent.numChildScreens+" sibling screens");
} else {
trace("I am the root screen and have no siblings");
}
Screen.parentScreen
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myScreen.parentScreen
Description
Property (read-only); returns the screen that contains myScreen. Returns null if myScreen is the
root screen.