N-R > _parent

_parent

Syntax

_parent.property = x
_parent._parent.property = x

Arguments

property The property being specified for the current and parent movie clip.

x The value set for the property. This is an optional argument and may not need to be set, depending on the property.

Description

Property; specifies or returns a reference to the movie clip that contains the current movie clip. The current movie clip is the movie clip containing the currently executing script. Use _parent to specify a relative path.

Player

Flash 4 or later.

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

_root
targetPath