Using slash syntax

Slash syntax was used in Flash 3 and 4 to indicate the target path of a movie clip or variable. In slash syntax, slashes are used instead of dots; also, to indicate a variable, you precede it with a colon:

myMovieClip/childMovieClip:myVariable

To write the same target path in dot syntax (see Dot syntax), which is supported by Flash Player 5 and later, you would use the following code:

myMovieClip.childMovieClip.myVariable

Slash syntax was most commonly used with the tellTarget action, whose use is also no longer recommended. The with action is now preferred over tellTarget because it is more compatible with dot syntax. For more information, see tellTarget and with.