EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 530

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
530 Chapter 12: ActionScript Dictionary
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
onUnload event handler before attaching any actions to
the affected frame. You must define a function that executes when the event handler is invoked.
Example
The following example defines a function for the MovieClip.onUnload method that sends a
trace() action to the Output panel.
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 _parent. Use
the
_parent property to specify a relative path to movie clips or objects that are above the current
movie clip or object.
You can use
_parent to climb up multiple levels in the display list as in the following:
_parent._parent._alpha = 20;
See also
Button._parent
, _root, targetPath, TextField._parent

Table of Contents

Related product manuals