327
13
CHAPTER 13
Writing ActionScript with
Script Assist
ActionScript, the scripting language of Macromedia Flash, lets you add interactivity to a
movie. ActionScript provides elements, such as actions, operators, and objects, that you put
together in scripts that tell your movie what to do; you set up your movie so that events, such
as button clicks and key presses, trigger these scripts. For example, you can use ActionScript to
create navigation buttons for your movie.
For users who are new to ActionScript, or for those who want to add simple interactivity
without having to learn the ActionScript language and its syntax, you can opt to use Script
Assist to help you more easily add ActionScript to your Flash documents.
This chapter contains the following sections:
About Script Assist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .327
Using Script Assist to write ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .328
Creating a startDrag/stopDrag event using Script Assist . . . . . . . . . . . . . . . . . . . . . 331
About Script Assist
Script Assist lets you build scripts by selecting items from the Actions toolbox, the list on the
left side of the Actions panel. (You can also select actions from the Add (+) pop-up menu.)
The Actions toolbox separates items into categories such as actions, properties, and objects,
and also provides an index category that lists all items alphabetically. When you click an item
once, its description appears at the upper right of the panel. When you double-click an item,
it adds the item to the scrolling list on the right side of the panel in the Script pane.
NO
TE
Script Assist is intended to help you format your scripts in such a way as to avoid the
syntax and logic errors a novice user might encounter when writing ActionScript.
However, to use Script Assist you must become familiar with ActionScript, and know
what methods, functions, and variables to use when creating your scripts. To learn about
ActionScript, and how to use it in Flash, see
Learning ActionScript 2.0 in Flash
.
Summary of Contents for FLASH 8-FLASH
Page 1: ...Using Flash ...
Page 12: ...12 Contents ...
Page 110: ...110 Using Symbols Instances and Library Assets ...
Page 128: ...128 Working with Color Strokes and Fills ...
Page 156: ...156 Drawing ...
Page 190: ...190 Working with Text ...
Page 224: ...224 Working with Graphic Objects ...
Page 270: ...270 Creating Motion ...
Page 310: ...310 Working with Video ...
Page 362: ...362 Working with Screens Flash Professional Only ...
Page 386: ...386 Creating Multilanguage Text ...
Page 454: ...454 Data Integration Flash Professional Only ...
Page 500: ...500 Publishing ...
Page 534: ...534 Creating Accessible Content ...