N-R > _parent |
_parent
_parent, parent
Availability
Macromedia Flash 5.
Usage
_parent.property_parent._parent.property
Description
Property; specifies or returns 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 _parent to specify a relative path to movie clips or objects that are above the current movie clip or object.
Example
In the following example, the movie clip desk is a child of the movie clip classroom. When the script below executes inside the movie clip desk, the playhead will jump to Frame 10 in the Timeline of the movie clip classroom.
_parent.gotoAndStop(10);
See also