_root
Availability
Flash Player 5.
Usage
_root.movieClip
_root.action
_root.property
Parameters
The instance name of a movie clip.
movieClip
An action or method.
action
A property of the MovieClip object.
property
Description
Identifier; specifies or returns a reference to the root movie clip Timeline. If a movie clip
has multiple levels, the root movie clip Timeline is on the level containing the currently executing
script. For example, if a script in level 1 evaluates
Specifying
_root
within the current level.
Caution: If a movie clip that contains
Timeline of the loading movie clip, not the Timeline that contains
refers to the Timeline of the loaded movie clip even if it is loaded into another movie clip, use
_root
MovieClip._lockroot
Example
The following example stops the Timeline of the level containing the currently executing script:
_root.stop();
The following example traces variables and instances in the scope of
for (prop in _root) {
trace("_root."+prop+" = "+_root[prop]);
}
See also
MovieClip._lockroot, _parent,
is the same as using the deprecated slash notation (
_root
.
targetPath()
ActionScript Language Reference
,
_root
_level1
is loaded into another movie clip,
CHAPTER 2
is returned.
) to specify an absolute path
/
refers to the
_root
. If you want to ensure that
_root
:
_root
_root
713
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