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.

Example

The following example displays the name of the screen that contains the screen myScreen.

var myParent:mx.screens.Screen = myScreen.rootScreen;