561
14
CHAPTER 14
Creating Interaction with
ActionScript
In simple animations, Macromedia Flash Player plays the scenes and frames of a SWF file
sequentially. In an interactive SWF file, your audience uses the keyboard and mouse to jump
to different parts of a SWF file, move objects, enter information in forms, and perform many
other interactive operations.
You use ActionScript to create scripts that tell Flash Player what action to perform when an
event occurs. Some events that can trigger a script occur when the playhead reaches a frame,
when a movie clip loads or unloads, or when the user clicks a button or presses a key.
A script can consist of a single command, such as instructing a SWF file to stop playing, or a
series of commands and statements, such as first evaluating a condition and then performing
an action. Many ActionScript commands are simple and let you create basic controls for a
SWF file. Other actions require some familiarity with programming languages and are
intended for advanced development.
For more information on creating interaction with ActionScript, see the following topics:
About events and interaction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .562
Controlling SWF file playback. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .562
Creating interactivity and visual effects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .566
Creating runtime data bindings using ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . .579
Deconstructing a sample script. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .588
Содержание 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...