
Stage.scaleMode Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
799
Stage.scaleMode Property
dictates how the movie is sized, relative to the Player
Flash 6; partially available through fscommand() since Flash 3
read/write
Stage.scaleMode
Description
The string scaleMode property governs how the movie scales (resizes) when the Flash
Player’s available space does not match the movie’s Stage dimensions set at authoring time
via Modify
➝ Document ➝ Dimensions. The allowed settings for scaleMode are:
“exactFit” Forces every edge of the movie to the edge of the Player, distorting the
movie’s aspect ratio, if necessary, to fit the available space.
“showAll” Fits the width or height of the movie to the smaller of the width or height of
the Player. The movie will not be cropped or skewed to fit the Player, but
there will be borders around the movie (according to the current setting of
Stage.align). By default, either the top and bottom or right and left of the
movie will have a border.
“noBorder” Fits the height or width of the movie to the larger of the width or height of
the Player. When the aspect ratio of the movie does not match the aspect
ratio of the Player, the movie will be cropped according to the current setting
of
Stage.align. By default, either the top and bottom or both sides will be
cropped. ...