ActionScript for Flash MX: The Definitive Guide, Second Edition

ActionScript for Flash MX: The Definitive Guide, 2nd EditionBy Colin Moock
Chapter 18.  ActionScript Language Reference
MovieClip._target Property Flash 4

the target path of a clip or movie, in slash syntax read-only

mc._target

Description

The _target property represents the path to mc in a Flash 4-style slash notation string. For example, if a clip, ball, resides on the main movie timeline, ball's _target property is "/ball". A clip named stripe inside ball would have a _target of "/ball/stripe".

To retrieve a string giving the path to a clip in dot notation, use the global targetPath( ) function. To convert the slash notation string into an object reference, use eval( ).

See Also

eval( ), targetPath( )

    Категории