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, which is supported by Flash Player 5 and later, you would use the following code:

myMovieClip.childMovieClip.myVariable

Slash syntax is still supported by Flash Player 7, but it’s not supported in ActionScript 2.0. Unless you are creating content intended specifically for Flash Player 4, it’s recommended that you do not use this syntax. This syntax was most commonly used with the tellTarget(link) action, whose use is also no longer recommended. The with(link) action is now preferred over tellTarget because it is more compatible with dot syntax.

 

Slash