38
Writing and Editing ActionScript 2.0
You will also notice that many of the options available in the Actions panel are unavailable in
the Script window. The Script window supports the following editor options: the Actions
toolbox, find and replace, syntax checking, automatic formatting, code hinting, and debug
options (ActionScript files only). Additionally, the Script window supports displaying line
numbers, hidden characters, and word wrap.
To display the Script window:
1.
Select File > New.
2.
Select the type of external file you want to create (ActionScript file, Flash Communication
file, or Flash JavaScript file).
You can have multiple external files open at the same time; filenames are displayed on tabs
across the top of the Script window. For more information on features in the Script window,
see the following topics:
■
“About the Actions panel and Script window toolbars” on page 39
■
“About ActionScript editing options” on page 41
■
“About code hinting in Flash” on page 44
■
“Formatting code” on page 50
■
“Using syntax highlighting” on page 51
■
“Using line numbers and word wrap” on page 52
■
“Using Escape shortcut keys” on page 52
■
“Showing hidden characters” on page 53
■
“Using the Find tool” on page 54
■
“Checking syntax and punctuation” on page 55
■
“Importing and exporting scripts” on page 56
About coding in the Actions panel and
Script window
The Script pane, where you edit code, is the primary element of both the Actions panel and
the Script window. The Actions panel and Script window offer basic script editing and code-
assistance features like code hinting, coloring, automatic formatting, and so on.
Features that help you edit code are accessible from the toolbar in the Actions panel or Script
window, through the menu system, and in the Script pane itself.
Содержание 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...