Flash Player 5.
_root.movieClip_root.action_root.property
movieClip The instance name of a movie clip.
action An action or method.
property A property of the MovieClip object.
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 _root, _level1 is returned.
Specifying _root is the same as using the deprecated slash notation (/) to specify an absolute path within the current level.
Caution: If a movie clip that contains _root is loaded into another movie clip, _root refers to the Timeline of the loading movie clip, not the Timeline that contains _root. If you want to ensure that _root refers to the Timeline of the loaded movie clip even if it is loaded into another movie clip, use MovieClip._lockroot.
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 _root:
for (prop in _root) {
trace("_root."+prop+" = "+_root[prop]);
}
MovieClip._lockroot, _parent, targetPath()
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/mx2004/main_7_2/00001649.html
Comments
No screen name said on Mar 8, 2005 at 3:44 AM : No screen name said on Mar 29, 2005 at 8:46 PM : MechKurt said on Oct 3, 2005 at 1:59 AM : MechKurt said on Oct 5, 2005 at 10:04 AM :