MACROMEDIA FLASH 8-USING FLASH Use Manual page 40

Using flash
Table of Contents

Advertisement

To communicate between documents on different levels, you must use the level name in the
target path. The following example shows how the
instance located on a movie clip called
atlanta
):
oregon
_level5.georgia.atlanta
You can use the alias
Timeline, the
_root
For a document loaded into
clip also on level 5. For example, if the movie clips
loaded into the same level, an action called from the instance
following absolute path to target the instance
_root.eastCoast.florida
About relative paths
A relative path depends on the relationship between the controlling Timeline and the target
Timeline. Relative paths can address targets only within their own level of Flash Player.
For example, you can't use a relative path in an action on
on
.
_level5
In a relative path, use the keyword
use the alias
_parent
alias repeatedly to go up one level in the movie clip hierarchy within the same level
_parent
of Flash Player. For example,
hierarchy. The topmost Timeline at any level in Flash Player is the only Timeline with a
value that is undefined.
_parent
An action in the Timeline of the instance
, could use the following target path to target the instance
southcarolina
_parent
To target the instance
the following relative path:
_parent._parent
To target the instance
the following relative path:
_parent._parent.georgia.atlanta
40
Working with Flash Documents
to refer to the main Timeline of the current level. For the main
_root
alias stands for
_level0
,
_level5
_root
to refer to the current Timeline in the current level;
this
to indicate the parent Timeline of the current Timeline. You can use the
_parent._parent
(one level up) from an action in
eastCoast
from an action in the Timeline of
atlanta
instance would address the
portland
(
georgia
georgia
when targeted by a movie clip also on
is equal to
_level5
southcarolina
southcarolina
:
florida
_level0
controls a movie clip up two levels in the
, located one level below
charleston
is at the same level as
_level0
when targeted by a movie
and
are both
florida
could use the
that targets a Timeline
southcarolina
, you could use
charleston
, you could use
charleston
.
:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents