MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 611

Actionscript language reference
Table of Contents

Advertisement

MovieClip.onUnload
Availability
Flash Player 6.
Usage
my_mc.onUnload = function() {
// your statements here
}
Parameters
None.
Returns
Nothing.
Description
Event handler; invoked in the first frame after the movie clip is removed from the Timeline. Flash
processes the actions associated with the
the affected frame. You must define a function that executes when the event handler is invoked.
You can define the function on the Timeline or in a class file that extends the MovieClip class or
is linked to a symbol in the library.
Example
The following example defines a function for the
results of a
trace()
my_mc.onUnload = function () {
trace ("onUnload called");
};
MovieClip._parent
Availability
Flash Player 5.
Usage
my_mc._parent.property
_parent.property
Description
Property; a reference to the movie clip or object that contains the current movie clip or object.
The current object is the object containing the ActionScript code that references
the
property to specify a relative path to movie clips or objects that are above the current
_parent
movie clip or object.
You can use
_parent
this._parent._parent._alpha = 20;
onUnload
method to the log file:
to move up multiple levels in the display list as in the following:
event handler before attaching any actions to
MovieClip.onUnload
method that writes the
. Use
_parent
MovieClip._parent
611

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents