User Guide
724 Chapter 6: Components Dictionary
SystemManager class
ActionScript Class Name mx.managers.SystemManager
The SystemManager class works automatically with the FocusManager class to handle which top-
level window is activated in an application that contains version 2 components. It also provides a
screen property that allows components to access Stage coordinates.
Property summary for the SystemManager class
The following table lists the property of the SystemManager class.
SystemManager.screen
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
SystemManager.screen
Description
Property; an object with x, y, width, and height properties that indicate the size and position of
the Stage.
Example
If Stage.align is set to something other than "LT", it is very difficult to know what coordinates
are actually viewable.
For example, suppose you want to place a watermark icon in the lower right corner of the Stage
(similar to the watermarks many television channels use). If the Stage is centered and much wider
than the Stage size set up in the FLA file, the following code places the watermark offscreen:
Watermark.move(Stage.width – Watermark.width, Stage.height –
Watermark.height);
However, the following code would work in all Stage alignments:
Watermark.move(SystemManager.screen.width + SystemManager.screen.x -
Watermark.width, SystemManager.screen.height + SystemManager.screen.x –
Watermark.height);
Property Description
SystemManager.screen Read-only; an object containing the size and
position of the Stage.
CHAPTER 6
Components Dictionary