640 Chapter 12: ActionScript Dictionary
Stage class
Availability
Flash Player 6.
Description
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.
Method summary for the Stage class
Property summary for the Stage class
Event handler summary for the Stage class
Method Description
Stage.addListener() Adds a listener object that detects when a SWF file is resized.
Stage.removeListener() Removes a listener object from the Stage object.
Property Description
Stage.align Alignment of the SWF file in the player or browser.
Stage.height Height of the Stage, in pixels.
Stage.scaleMode The current scaling of the SWF file.
Stage.showMenu Shows or hides the default items in the Flash Player context menu.
Stage.width Width of the Stage, in pixels.
Event handler Description
Stage.onResize Invoked when Stage.scaleMode is set to "noScale" and the SWF file is
resized.