Stage.onResize
Availability
Flash Player 6.
Usage
myListener.onResize = function(){
// your statements here
}
Parameters
None.
Returns
Nothing.
Description
Listener; invoked when
use this event handler to write a function that lays out the objects on the Stage when a SWF file is
resized.
Example
The following example displays a message in the Output panel when the Stage is resized:
Stage.scaleMode = "noScale"
var myListener:Object = new Object();
myListener.onResize = function () {
trace("Stage size is now " + Stage.width + " by " + Stage.height);
}
Stage.addListener(myListener);
// later, call Stage.removeListener(myListener)
See also
Stage.addListener(),
is set to
Stage.scaleMode
Stage.removeListener()
and the SWF file is resized. You can
noScale
Stage.onResize
781
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers