Stage.scalemode - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

Stage.scaleMode

Availability
Flash Player 6.
Usage
Stage.scaleMode:String
Description
Property; indicates the current scaling of the SWF file within Flash Player. The
property forces the SWF file into a specific scaling mode. By default, the SWF file uses the
HTML parameters set in the Publish Settings dialog box.
The
scaleMode
. Any other value sets the
"noScale"
Example
The following example demonstrates various scale settings for the SWF file. Add a ComboBox
instance to your document with the instance name
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 HelpExamples Folder. The following list
provides typical paths to the HelpExamples Folder:
Windows: \Program Files\Macromedia\Flash MX 2004\Samples\HelpExamples\
Macintosh: HD/Applications/Macromedia Flash MX 2004/Samples/HelpExamples/
property can use the values
scaleMode
,
"exactFit"
"showAll"
property to the default
scaleMode_cb
scaleMode
,
, and
"noBorder"
.
"showAll"
. Add the following
Stage.scaleMode
783

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents