Button._parent
Availability
Flash Player 6.
Usage
my_btn._parent:MovieClip.property
_parent:MovieClip.property
Description
Property; a reference to the movie clip or object that contains the current movie clip or object.
The current object is the one containing the ActionScript code that references
Use
to specify a relative path to movie clips or objects that are above the current
_parent
movie clip or object. You can use
the following:
this._parent._parent._alpha = 20;
Example
In the following example, a button named
following code shows how to use the
trace(my_mc.my_btn._parent);
The Output panel displays the following:
_level0.my_mc
See also
MovieClip._parent, _root,
to move up multiple levels in the display list as in
_parent
my_btn
property to get a reference to the movie clip
_parent
targetPath()
is placed inside a movie clip called
.
_parent
. The
my_mc
:
my_mc
Button._parent
155
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers