T-W > targetPath
targetPathSyntax
targetpath(movieClipObject
);
Arguments
movieClipObject
Reference (for example, _root
or _parent
) to the movie clip for which the target path is being retrieved.
Description
Function; returns a string containing the target path of movieClipObject
. The target path is returned in dot notation. To retrieve the target path in slash notation, use the _target
property.
Player
Flash 5 or later.
Example
The following examples are equivalent. The first example uses dot notation, and the second example uses slash notation.
targetPath (Board.Block[index*2+1]) {
play();
}
Is equivalent to:
tellTarget ("Board/Block:" + (index*2+1)) {
play();
}
See also