Script assist mode and behaviors, About script assist mode, Use script assist to write actionscript – Adobe Flash Professional CS3 User Manual

Page 393

Advertising
background image

FLASH CS3

User Guide

387

Prompt

(Default) A warning is displayed, and you can choose whether to reload the file.

When you build applications with external scripts, this preference helps you avoid overwriting a script that a team
member has modified since you opened the application, or avoid publishing the application with older versions of
scripts. The warnings let you automatically close a script and reopen the newer, modified version.

Syntax Colors

Specifies code coloring in your scripts.

Language

Opens the ActionScript Settings dialog boxes, where you can set a classpath for ActionScript 2.0 or 3.0.

See also

“Format code” on page 393

“Use code hints” on page 390

“Import and export scripts” on page 398

“Modify the classpath” on page 415

Script Assist mode and behaviors

About Script Assist mode

If you are new to ActionScript, or if you want to add simple interactivity without having to learn the ActionScript
language and its syntax, you can use Script Assist in the Actions panel to help you add ActionScript to your FLA files.

Script Assist lets you build scripts by selecting items from the Actions toolbox. 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 Actions
panel Script pane.

In Script Assist mode, you can add, delete, or change the order of statements in the Script pane; enter parameters for
actions in boxes above the Script pane; find and replace text; and view script line numbers. You can also pin a script—
that is, keep a script in the Script pane when you click away from the object or frame.

Script Assist helps you avoid the syntax and logic errors a novice user might make. 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, see Learning ActionScript 2.0 in Adobe Flash or Programming ActionScript 3.0.

For a video tutorial about Script Assist mode, see

www.adobe.com/go/vid0131

.

For a text tutorial about Script Assist mode, see Use Script Assist Mode on the Flash Tutorials page at

www.adobe.com/go/learn_fl_tutorials

.

Use Script Assist to write ActionScript

To add an ActionScript 3.0 action to a Flash document, you must attach it to a frame. To add an ActionScript 2.0 (or
earlier) action to a Flash document, attach it to a button or movie clip, or to a frame in the timeline.

For a video tutorial about Script Assist mode, see

www.adobe.com/go/vid0131

.

For a text tutorial about Script Assist mode, see Use Script Assist Mode on the Flash Tutorials page at

www.adobe.com/go/learn_fl_tutorials

.

Advertising