Height (Stage.height Property) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

The following table lists the values for the
the SWF file in Flash player or browser area, which is the default setting.
Value
"T"
"B"
"L"
"R"
"TL"
"TR"
"BL"
"BR"
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example demonstrates different alignments of the SWF file. Add a ComboBox
instance to your document with the instance name
ActionScript to your FLA or AS file:
var stageAlign_cb:mx.controls.ComboBox;
stageAlign_cb.dataProvider = ['T', 'B', 'L', 'R', 'TL', 'TR', 'BL', 'BR'];
var cbListener:Object = new Object();
cbListener.change = function(evt:Object) {
var align:String = evt.target.selectedItem;
Stage.align = align;
};
stageAlign_cb.addEventListener("change", cbListener);
Stage.scaleMode = "noScale";
Select different alignment settings from the ComboBox.

height (Stage.height property)

public static height :
Property (read-only); indicates the current height, in pixels, of the Stage. When the value of
is noScale, the height property represents the height of Flash Player. When
Stage.scaleMode
the value of
Stage.scaleMode
Availability: ActionScript 1.0; Flash Lite 2.0
property. Any value not listed here centers
align
Vertical
top
bottom
center
center
top
top
bottom
bottom
Number
is not noScale, height represents the height of the SWF file.
Horizontal
center
center
left
right
left
right
left
right
. Add the following
stageAlign_cb
Stage
621

Advertisement

Table of Contents
loading

Table of Contents