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.
Summary of Contents for FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Page 1: ...Learning ActionScript 2 0 in Flash...
Page 8: ...8 Contents...
Page 18: ...18 Introduction...
Page 30: ...30 What s New in Flash 8 ActionScript...
Page 66: ...66 Writing and Editing ActionScript 2 0...
Page 328: ...328 Interfaces...
Page 350: ...350 Handling Events...
Page 590: ...590 Creating Interaction with ActionScript...
Page 710: ...710 Understanding Security...
Page 730: ...730 Debugging Applications...
Page 780: ...780 Deprecated Flash 4 operators...
Page 830: ...830 Index...