MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 643

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

Returns
Nothing.
Description
Event handler; invoked when
You can 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"
myListener = 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()
Stage.removeListener()
Availability
Flash Player 6.
Usage
Stage.removeListener(myListener)
Parameters
An object added to an object's callback list with
myListener
Returns
A Boolean value.
Description
Method; removes a listener object created with
See also
Stage.addListener()
Stage.scaleMode
,
Stage.removeListener()
is set to
"noScale"
addListener()
.
addListener()
Stage.removeListener()
and the SWF file is resized.
.
643

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Questions and answers

Table of Contents