MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 530

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
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.
Example
The following example defines a function for the
action to the Output panel.
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
_parent._parent._alpha = 20;
See also
Button._parent
530
Chapter 12: ActionScript Dictionary
to climb up multiple levels in the display list as in the following:
,
,
,
_root
targetPath
event handler before attaching any actions to
onUnload
MovieClip.onUnload
TextField._parent
method that sends a
. Use
_parent

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