328
Writing ActionScript with Script Assist
In Script Assist mode, you can add, delete, or change the order of statements in the Script
pane; you can also enter parameters for actions in text boxes above the Script pane. Script
Assist also lets you find and replace text, view script line numbers, and
pin
a script—that is,
keep a script in the Script pane when you click away from the object or frame.
Using Script Assist to write ActionScript
To add an action to a Flash document, you must attach it to a button or movie clip, or to a
frame in the Timeline. The Actions panel lets you select, drag and drop, rearrange, and delete
actions.
To write ActionScript using Script Assist:
1.
Select Window > Actions.
The Actions panel appears.
2.
Click the Script Assist button,
The Actions panel enters Script Assist mode.
When Script Assist in enabled, the Actions panel user interface and behaviors change in the
following ways:
■
The Add (+) button functions differently in Script Assist mode. When the focus is on the
ActionScript window, it adds the selection after the currently selected text block. If the
focus is in the edit pane, the selection is added to that text block.
■
The Remove (-) button lets you remove the current selection in the scrolling text area.
NO
TE
If the Actions panel contains ActionScript code when you click the Script Assist
button, Flash compiles the existing code. If there are errors in the code, you will not
be able to use Script Assist until you fix the current code selection.
Содержание FLASH 8-FLASH
Страница 1: ...Using Flash ...
Страница 12: ...12 Contents ...
Страница 110: ...110 Using Symbols Instances and Library Assets ...
Страница 128: ...128 Working with Color Strokes and Fills ...
Страница 156: ...156 Drawing ...
Страница 190: ...190 Working with Text ...
Страница 224: ...224 Working with Graphic Objects ...
Страница 270: ...270 Creating Motion ...
Страница 310: ...310 Working with Video ...
Страница 362: ...362 Working with Screens Flash Professional Only ...
Страница 386: ...386 Creating Multilanguage Text ...
Страница 454: ...454 Data Integration Flash Professional Only ...
Страница 500: ...500 Publishing ...
Страница 534: ...534 Creating Accessible Content ...