42
Writing and Editing ActionScript 2.0
Import script
Allows you to import a script file (ActionScript) into the Script pane. For
more information, see
“Import and export preferences” on page 57
.
Export script
Exports the current script to an external ActionScript (AS) file. For more
information, see
“Import and export preferences” on page 57
.
Esc shortcut keys
Quickly enter common language elements and syntax structures into
your scripts. For example, when you press Esc+g+p in the Script pane, the
gotoAndPlay()
function is inserted into the script. When you select the Esc Shortcut
Keys option from the Actions panel pop-up menu, all of the available Escape shortcut keys
appear in the Actions toolbox. For more information, see
“Using Escape shortcut keys”
on page 52
.
Hidden characters
View hidden characters in your script. Hidden characters are spaces,
tabs, and line breaks. For more information, see
“Showing hidden characters” on page 53
.
Line numbers
Displays line numbers in the Script pane. For more information, see
“Using line numbers and word wrap” on page 52
.
Preferences
Actions panel only.
Displays the ActionScript preferences dialog box. For
more information, see
“About ActionScript preferences” on page 42
.
Word wrap
To wrap the lines of your script that exceed the current size of the Script
window, select Word Wrap from the Actions panel pop-up menu. When you are using the
Script window, select Word Wrap from the View menu. For more information, see
“Using
line numbers and word wrap” on page 52
.
Group Actions with
Actions panel only.
Allows you to group the Actions panel (which
includes the Actions toolbox and the Script navigator) with other panels within the Flash
authoring environment.
In addition, the Actions panel pop-up menu includes the Print, Help, and panel resizing
commands.
About ActionScript preferences
Whether you edit code in the Actions panel or the Script window, you can set and modify a
single set of preferences. You can, for example, control automatic indentation, code hinting
and coloring, and a number of other basic code editing features.
To access ActionScript preferences:
1.
To access ActionScript preferences in a FLA file with the Actions panel, select Preferences
from the pop-up menu, or Edit > Preferences (Windows) or Flash > Preferences
(Macintosh), and click ActionScript in the Category list.
Содержание FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Страница 1: ...Learning ActionScript 2 0 in Flash...
Страница 8: ...8 Contents...
Страница 18: ...18 Introduction...
Страница 30: ...30 What s New in Flash 8 ActionScript...
Страница 66: ...66 Writing and Editing ActionScript 2 0...
Страница 328: ...328 Interfaces...
Страница 350: ...350 Handling Events...
Страница 590: ...590 Creating Interaction with ActionScript...
Страница 710: ...710 Understanding Security...
Страница 730: ...730 Debugging Applications...
Страница 780: ...780 Deprecated Flash 4 operators...
Страница 830: ...830 Index...