790
Writing Scripts for Earlier Versions of Flash Player
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 and variables are preceded
with a colon, as shown in the following example:
myMovieClip/childMovieClip:myVariable
To write the same target path in dot syntax, which is supported by Flash Player 5 and later
versions, use the following syntax:
myMovieClip.childMovieClip.myVariable
Slash syntax was most commonly used with the
tellTarget
action, but its use is also no
longer recommended. The
with
action is now preferred because it is more compatible with
dot syntax. For more information, see
tellTarget function
and
with
statement
in the
ActionScript 2.0 Language Reference.
Содержание FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Страница 1: ...Learning ActionScript 2 0 in Flash...
Страница 8: ...8 Contents...
Страница 18: ...18 Introduction...
Страница 30: ...30 What s New in Flash 8 ActionScript...
Страница 66: ...66 Writing and Editing ActionScript 2 0...
Страница 328: ...328 Interfaces...
Страница 350: ...350 Handling Events...
Страница 590: ...590 Creating Interaction with ActionScript...
Страница 710: ...710 Understanding Security...
Страница 730: ...730 Debugging Applications...
Страница 780: ...780 Deprecated Flash 4 operators...
Страница 830: ...830 Index...