Screen.parentisscreen - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

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 screen's parent
object is also a screen (
of its screen hierarchy.
Example
The following code determines if the parent object of the screen
myScreen.parentIsScreen
slides of
in the Output panel. If the parent screen of
myScreen
Flash assumes that
myScreen
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");
}
1090 Screen class (Flash Professional only)
) or not (
). If this property is
true
false
is
, a
true
trace()
is the root (master) slide in the presentation and therefore has
,
false
myScreen
statement displays the number of sibling
myScreen
is at the root
myScreen
is also a screen. If
is not also a screen,

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents