User Guide
708 Chapter 7: ActionScript for Flash
Parameters
myListener
An object added to an object’s callback list with addListener().
Returns
A Boolean value.
Description
Method; removes a listener object created with addListener().
See also
Stage.addListener()
Stage.scaleMode
Availability
Flash Player 6.
Usage
Stage.scaleMode:String
Description
Property; indicates the current scaling of the SWF file within Flash Player. The scaleMode
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 property can use the values "exactFit", "showAll", "noBorder", and
"noScale". Any other value sets the scaleMode property to the default "showAll".
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);
Stage.showMenu
Availability
Flash Player 6.
Usage
Stage.showMenu:Boolean