N-R > _root

_root

Syntax

_root;
_root.movieClip;
_root.action;

Arguments

movieClip The instance name of a movie clip.

action 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 root movie Timeline. If a movie has multiple levels, the root movie Timeline is on the level containing the currently executing script. For example, if a script in level 1 evaluates _root, level 1 is returned.

Specifying _root is the same as using the slash notation (/) to specify an absolute path within the current level.

Player

Flash 4 or later.

Example

The following example stops the Timeline of the level containing the currently executing script:

_rootl.stop();

The following example sends the Timeline in the current level to frame 3:

_root.gotoAndStop(3);

See also

_parent
targetPath