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 difficult to know what coordinates are actually viewable.

Suppose you want to place a watermark movie clip in the lower-right corner of the Stage (similar to the watermarks many television channels use). The following code would work in all Stage alignments for a movie clip instance watermark. You must have a component on the Stage or in the Library, however, for SystemManager to exist in your movie:

import mx.managers.SystemManager;   

var p1:Number = SystemManager.screen.width + SystemManager.screen.x - watermark._width;   
var p2:Number = SystemManager.screen.height + SystemManager.screen.y - watermark._height;   
  
watermark._x = p1;  
watermark._y = p2;