Method summary
Modifiers
Signature
static
addListener(listener
:Object) : Void
static
removeListener(liste
ner:Object) :
Boolean
Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),
addListener (Stage.addListener method)
public static addListener(listener:Object) : Void
Detects when a SWF file is resized (but only if
method doesn't work with the default movie clip scaling setting (
addListener()
or other scaling settings (
To use
addListener()
notification from
Stage.onResize
Availability: ActionScript 1.0; Flash Player 6
Parameters
- An object that listens for a callback notification from the
listener:Object
event.
Stage.onResize
Example
This example creates a new listener object called
to call
stageListener
triggered. Finally, the code adds the
object. Listener objects allow multiple objects to listen for resize notifications.
this.createTextField("stageSize_txt", this.getNextHighestDepth(), 10, 10,
100, 22);
var stageListener:Object = new Object();
Description
Detects when a SWF file is resized (but only if
Stage.scaleMode = "noScale").
Removes a listener object created with addListener().
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
and
exactFit
noBorder
, you must first create a listener object. Stage listener objects receive
.
and define a function that will be called when
onResize
stageListener
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
toString
method),
Stage.scaleMode = "noScale"
).
. It then uses
stageListener
object to the callback list of the Stage
valueOf
). The
)
showAll
is
onResize
Stage
1119
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?