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

Actionscript language reference
Table of Contents

Advertisement

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

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?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents