
startDrag() Global Function
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
801
Stage.width Property
pixel width of the available Flash Player display area or the author-time document
Flash 6
read-only
Stage.width
Description
The integer width property indicates the pixel width of the movie, depending on the setting
of
Stage.scaleMode. When scaleMode is set to “noScale”, width reports the size of the Flash
Player’s available display area—either the Standalone Player window’s dimensions or the
current size of the
OBJECT/EMBED region in the browser. When scaleMode is not set to
“noScale”,
width reports the size of the Flash movie as specified at authoring time via
Modify
➝ Document ➝ Dimensions.
In Test Movie mode,
scaleMode defaults to “noScale”, so width may not match the dimen-
sions set at authoring time. In a browser or the Standalone Player,
scaleMode defaults to
“showAll”, so
width matches the dimensions set at authoring time unless scaleMode is
explicitly set to “noScale”.
To receive notification when
Stage.width changes, add listeners for the Stage.onResize()
listener event.
Usage
Don’t confuse Stage.width with _root._width. The former is the width of the available
Player space or the specified document dimensions, whereas the latter is the width of all
objects on the main movie timeline.
Bugs
When scaleMode ...