
Stage.height Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
795
When the Player is resized, the .swf document it contains is automatically repositioned
according to
align. To force a custom positioning for elements in a movie at resize time,
use the onResize() listener event.
When a movie is embedded in a web page, the
OBJECT or EMBED tag can also set the value of
align; any assignment in ActionScript overrides the HTML setting.
Usage
ActionScript corrects any imprecise assignments of align to match the closest valid setting.
For example, assigning
"tl" results in "LT", and assigning "jjjt" results in "T". For code
clarity, however, the documented settings should always be used.
Example
The following code pins the movie to the top-left corner of the Player:
Stage.scaleMode = "noScale";
Stage.align = "LT";
See Also
Stage.onResize(), Stage.scaleMode
Stage.height Property
pixel height of the available Flash Player display area or author-time document
Flash 6
read-only
Stage.height
Description
The integer height property indicates the pixel height of the movie, depending on the
setting of
Stage.scaleMode. When scaleMode is set to “noScale”, height reports the size of
the Flash Player’s available display area—either the Standalone Player window’s dimen-
sions or the current size of the
OBJECT/EMBED region in ...