1124
ActionScript classes
■
noScale
makes the size of the Flash content fixed, so that it remains unchanged even as
the size of the player window changes. Cropping may occur if the player window is
smaller than the Flash content.
Availability:
ActionScript 1.0; Flash Player 6
Example
The following example demonstrates various scale settings for the SWF file. Add a
ComboBox instance to your document with the instance name
scaleMode_cb
. Add the
following ActionScript to your FLA or AS file:
var scaleMode_cb:mx.controls.ComboBox;
scaleMode_cb.dataProvider = ["showAll", "exactFit", "noBorder", "noScale"];
var cbListener:Object = new Object();
cbListener.change = function(evt:Object) {
var scaleMode_str:String = evt.target.selectedItem;
Stage.scaleMode = scaleMode_str;
};
scaleMode_cb.addEventListener("change", cbListener);
To view another example, see the stagesize.fla file in the ActionScript samples Folder. The
following list provides typical paths to the ActionScript samples Folder:
■
Windows:
boot drive
\Program Files\Macromedia\Flash 8\Samples and
Tutorials\Samples\ActionScript
■
Macintosh:
Macintosh HD
/Applications/Macromedia Flash 8/Samples and Tutorials/
Samples/ActionScript
showMenu (Stage.showMenu property)
public static showMenu : Boolean
Specifies whether to show or hide the default items in the Flash Player context menu. If
showMenu
is set to
true
(the default), all context menu items appear. If
showMenu
is set to
false
, only Settings and About Macromedia Flash Player items appear.
Availability:
ActionScript 1.0; Flash Player 6
NO
T
E
The default setting is
showAll
, except when in test movie mode, where the default setting
is
noScale
.
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...