
11
Adobe Flash CS3 Classroom in a Book
Lesson 7: ActionScript Basics
Lesson 7 introduces ActionScript 3.0, the scripting
language that extends Flash functionality and enables
interactivity in Flash projects. Students who haven’t
worked with scripting languages before may initially
be intimidated and confused by ActionScript, which is
an object-oriented scripting language similar to
JavaScript. This lesson introduces basic scripting
concepts, terminology, and syntax, as well as specific
ActionScript coding.
About ActionScript
The ActionScript scripting language lets you add com-
plex interactivity, playback control, and data display
to your application. You can add ActionScript in the
authoring environment by using the Actions panel.
ActionScript follows its own rules of syntax, reserved
keywords, and lets you use variables to store and re-
trieve information. ActionScript includes a large library
of built-in classes that let you create objects to perform
many useful tasks. For detailed information on Ac-
tionScript, see Programming ActionScript 3.0, Learning
ActionScript 2.0 in Adobe Flash, or the ActionScript
Language References, all available in Flash Help.
You don’t need to understand every ActionScript ele-
ment to begin scripting; if you have a clear goal, you
can start building scripts with simple actions.
Because there are multiple versions of ActionScript,
and multiple ways of incorporating it into your Flash
document files, there are several different ways to learn
ActionScript.
Flash Help describes the graphical user interface for
working with ActionScript. This interface includes the
Actions panel, Script window, Script Assist mode, Behav-
iors panel, Output panel, and Compiler Errors panel.
These topics apply to all versions of ActionScript.
Other ActionScript documentation available in Flash
Help will help you learn about the individual versions
of ActionScript; see Programming ActionScript 3.0,
Learning ActionScript 2.0 in Adobe Flash, Developing
Flash Lite 1.x Applications or Developing Flash Lite 2.x
Applications. For information about the ActionScript
vocabulary, see the ActionScript Language Reference for
the version you are working with.
For video tutorials about ActionScript 3.0, the Flash
workflow, and components, see the following:
• Getting started with ActionScript 3.0: www.adobe.
com/go/vid0129
• Creating interactivity with ActionScript 3.0:
www.adobe.com/go/vid0130
Tutorial videos are also included on the Adobe Flash
CS3 Professional Classroom in a Book CD. In particu-
lar, see the ScriptAssist.mov file from Lynda.com.
Adding a stop action
Students have had some experience with ActionScript
and the Actions panel in earlier lessons because they’ve
added stop actions. Stop actions are very simple; they
stop the movement in the Timeline and prevent files
from looping.
As you discuss stop actions, talk about the role of stop
actions added in earlier lessons. Remove a stop action
from the end file of an earlier lesson and preview the
movie. Discuss what happens when the stop file is no
longer there. In most cases, the movie or some part of
the movie repeats.
LESSON 7
Comentários a estes Manuais