SystemManager class
ActionScript Class Name
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
property that allows components to access Stage coordinates.
screen
Property summary for the SystemManager class
The following table lists the property of the SystemManager class.
Property
SystemManager.screen
SystemManager.screen
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
SystemManager.screen
Description
Property; an object with
the Stage.
Example
If
Stage.align
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);
724
Chapter 6: Components Dictionary
mx.managers.SystemManager
,
,
, and
x
y
width
is set to something other than
Components Dictionary
Description
Read-only; an object containing the size and
position of the Stage.
properties that indicate the size and position of
height
, it is very difficult to know what coordinates
"LT"
CHAPTER 6
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers