Set actionscript preferences – Adobe Flash Professional CS3 User Manual

Page 392

Advertising
background image

FLASH CS3

User Guide

386

Apply Block Comment

Adds comment markers to the beginning and end of the selected code block.

Apply Line Comment

Adds a single-line comment marker at the insertion point, or at the beginning of each line

of code in a multiline selection.

Remove Comment

Removes comment markers from the current line or all lines of the current selection.

Show/Hide Toolbox

Displays or hides the Actions Toolbox.

Script Assist

(Actions panel only) In Script Assist mode, you are presented with a user-interface for entering the

elements needed to create scripts.

Help

Displays reference information for the ActionScript element that is selected in the Script pane. For

example, if you click an

import

statement and then click Help, the reference information for

import

appears in the

Help panel.

Panel menu

(Actions panel only) Contains the commands and preferences that apply to the Actions panel. For

example, you can set line numbers and word wrapping, access ActionScript preferences, and import or export
scripts.

See also

“Writing and managing scripts” on page 390

“Debugging ActionScript 3.0” on page 411

“Debugging ActionScript 1.0 and 2.0” on page 401

Set ActionScript preferences

Whether you edit code in the Actions panel or the Script window, you can set and modify a single set of preferences.

1

Select Edit > Preferences (Windows) or Flash > Preferences (Macintosh), and then click ActionScript in the

Category list.

2

Set any of these preferences:

Automatic Indentation

When automatic indentation is turned on, the text you type after an opening parenthesis “(“

or opening curly brace “{“ is automatically indented according to the Tab Size setting.

Tab Size

Specifies the number of characters a new line is indented.

Code Hints

Enables code hinting in the Script pane.

Delay

Specifies the delay (in seconds) before code hints are displayed.

Font

Specifies the font used for your script.

Use Dynamic Font Mapping

Checks to ensure that the selected font family can render each character. If not, Flash

substitutes a font family that contains the necessary characters.

Open/Import

Specifies the character encoding used when you open or import ActionScript files.

Save/Export

Specifies the character encoding used when you save or export ActionScript files.

Reload Modified Files

Specifies what happens when a script file is modified, moved, or deleted. Select Always, Never,

or Prompt.

Always

No warning is displayed, and the file is automatically reloaded.

Never

No warning is displayed, and the file remains in the current state.

Advertising