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

Actionscript language reference
Table of Contents

Advertisement

Stage.height

Availability
Flash Player 6.
Usage
Stage.height:Number
Description
Property (read-only); indicates the current height, in pixels, of the Stage. When the value of
Stage.scaleMode
the value of
Stage.scaleMode
Example
This example creates a new listener object called
and define a function that will be called when
onResize
adds the
myListener
objects to listen for resize notifications.
this.createTextField("stageSize_txt", this.getNextHighestDepth(), 10, 10, 100,
22);
var stageListener:Object = new Object();
stageListener.onResize = function() {
stageSize_txt.text = "w:"+Stage.width+", h:"+Stage.height;
};
Stage.scaleMode = "noScale";
Stage.addListener(stageListener);
See also
Stage.align, Stage.scaleMode,
780
Chapter 2: ActionScript Language Reference
is
, the
noScale
height
is not
noScale
object to the callback list of the Stage object. Listener objects allow multiple
Stage.width
property represents the height of Flash Player. When
,
represents the height of the SWF file.
height
. It then uses
stageListener
onResize
myListener
is triggered. Finally, the code
to call

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents