Hierarchy

Root

Root – is a main timeline of the movie. Everything which is placed on the main timeline belongs to the root. To refer to the root in the code we use the following notation _root .

Through the _root we may refer to Actions (which are root methods), such as play(), goToAndPlay(…) and others, main movie properties, such as _totalframes and others. Also it's possible to refer by name to all movie clips that are placed on the main timeline like for example root.myMovie._xscale .

No when you know that you may return to our previous “Kill the bug” project where we created an “anchor” symbol to read a relative mouse position and discard this anchor. You may simply refer to the _root. _ xmouse when you need. It will count mouse position from the left top corner of the screen.

If in the root hierarchy you have a nested movie symbols you may refer to them step by step. So called dot notation used in Flash makes it possible. For example to manipulate the toe of the animated man on the stage it could be something like that _root.mvMan.mvLeg.mvToe.play(); It is presumed that leg is nested inside the man movie symbol and toe nested inside the leg movie symbol.

Let's create a small example

Next