03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The Stage class is a top-level class whose methods, properties, <strong>and</strong> h<strong>and</strong>lers you can access<br />

without using a constructor. Use the methods <strong>and</strong> properties of this class to access <strong>and</strong><br />

manipulate information about the boundaries of a SWF file.<br />

Property summary<br />

Modifiers Property Description<br />

static align:String Indicates the current alignment of the SWF file in<br />

the player or browser.<br />

static height:Number Property (read-only); indicates the current height,<br />

in pixels, of the Stage.<br />

static scaleMode:String Indicates the current scaling of the SWF file within<br />

Flash Player.<br />

static width:Number Property (read-only); indicates the current width, in<br />

pixels, of the Stage.<br />

Properties inherited from class Object<br />

constructor (Object.constructor property), __proto__ (Object.__proto__<br />

property), prototype (Object.prototype property), __resolve<br />

(Object.__resolve property)<br />

Event summary<br />

Event Description<br />

onResize =<br />

function() {}<br />

Method summary<br />

Invoked when Stage.scaleMode is set to noScale <strong>and</strong> the SWF file is<br />

resized.<br />

Modifiers Signature Description<br />

static addListener(listener<br />

:Object) : Void<br />

static removeListener(liste<br />

ner:Object) :<br />

Boolean<br />

Detects when a SWF file is resized (but only if<br />

Stage.scaleMode = "noScale").<br />

Removes a listener object created with<br />

addListener().<br />

Stage 585

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!