
capabilities.screenResolutionX Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
488
|
ActionScript Language Reference
Usage
Print designers will recognize the use of the acronym DPI (dots per inch) as a slight
misnomer. Canonically, “DPI” applies to the printed page, while “PPI” (pixels per inch)
applies to the screen. The imprecision, however, is here to stay. Note that it is pixels per
linear inch, not pixels per square inch.
See Also
capabilities.pixelAspectRatio, capabilities.screenResolutionX, capabilities.
screenResolutionY
, Stage.scaleMode
capabilities.screenResolutionX Property
the width of the screen, in pixels
Flash 6
read/write
System.capabilities.screenResolutionX
Description
The integer screenResolutionX property returns the total width, in pixels, of the screen on
which the Flash Player is displayed. It is analogous to JavaScript’s
Screen.width property.
You can use the
screenResolutionX to center a browser pop-up window or inform the user
when their resolution is too small to display a movie, as shown in the Example.
If we know the physical dimensions of a screen, we can use
screenResolutionX and
screenResolutionY in combination with screenDPI to calculate the actual size of an element
in a movie. This is useful for scaling text to appear at the same size on all displays, as
discussed under
capabilities.screenDPI.
To retrieve ...