Object | +-Stage public class Stage extends Object
The Stage class is a top-level class whose methods, properties, and handlers you can access without using a constructor. Use the methods and properties of this class to access and manipulate information about the boundaries of a SWF file.
|
Modifiers |
Property |
Description |
|---|---|---|
|
static |
Indicates the current alignment of the SWF file in the player or browser. |
|
|
static |
Property (read-only); indicates the current height, in pixels, of the Stage. |
|
|
static |
Indicates the current scaling of the SWF file within Flash Player. |
|
|
static |
Property (read-only); indicates the current width, in pixels, of the Stage. |
Properties inherited from class Object
|
constructor (Object.constructor property), __proto__ (Object.__proto__ property), prototype (Object.prototype property), __resolve (Object.__resolve property) |
|
Event |
Description |
|---|---|
|
onResize = function() {} |
Invoked when Stage.scaleMode is set to noScale and the SWF file is resized. |
|
Modifiers |
Signature |
Description |
|---|---|---|
|
static |
addListener(listener:Object) : Void |
Detects when a SWF file is resized (but only if Stage.scaleMode = "noScale"). |
|
static |
removeListener(listener:Object) : Boolean |
Removes a listener object created with addListener(). |
Methods inherited from class Object