Screen.parentscreen; Screen.rootscreen - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

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
the root screen.
Example
The following example displays the name of the screen that contains the screen
var myParent:mx.screens.Screen = myScreen.rootScreen;

Screen.rootScreen

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myScreen.rootScreen
Description
Property (read-only); returns the screen at the top of the screen hierarchy that contains
.
myScreen
Example
The following example displays the name of the root screen that contains the screen
.
myScreen
var myRoot:mx.screens.Screen = myScreen.rootScreen;
. Returns
myScreen
null
Screen.rootScreen
if
is
myScreen
.
myScreen
1091

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents