MACROMEDIA DIRECTOR MX 2004-GETTING STARTED WITH DIRECTOR Getting Started page 31

Hide thumbs Also See for DIRECTOR MX 2004-GETTING STARTED WITH DIRECTOR:
Table of Contents

Advertisement

By scripting in the Script window, you can accomplish many of the same tasks that you can in the
graphical interface of Director—such as moving sprites on the Stage or playing sounds. But much
of the usefulness of scripting is in the flexibility that it brings to a movie. Instead of playing a
series of frames exactly as the Score dictates, a movie can have scripts that control frame play in
response to specific conditions and events.
The Script window
Here are a few examples of what you can do with scripts:
Control the movement of a sprite based on whether the user clicks a specific button.
Control when a sound plays, based on how much of the sound has already streamed
from the Internet.
Create animation, stream movies from the web, perform navigation, format text, and respond
to user actions with the keyboard and mouse.
Create and manage data arrays, perform mathematical operations, and combine strings of text.
For more complete information on scripting in Director, see the Scripting Reference topics in the
Director Help Panel. To view Help in Director, select Help > Director Help.
Note: In addition to the Script window, where you can create your own scripts, Director includes a set
of prepackaged instructions, called behaviors, that you can simply drag to sprites and frames.
Behaviors let you add script-based interactivity without writing scripts. For more information on
behaviors, see the Behaviors topics in the Director Help Panel.
Using the Script window
31

Advertisement

Table of Contents
loading

This manual is also suitable for:

Director mx 2004

Table of Contents