EasyManua.ls Logo

MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH - Page 52

MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
830 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
52 Writing and Editing ActionScript 2.0
To set preferences for syntax coloring as you type, do one of the following:
Select Edit > Preferences (Windows) or Flash > Preferences (Macintosh), click
ActionScript in the Category list, and specify Syntax coloring settings.
In the Actions panel, select Preferences from the pop-up menu (at the upper right of the
Actions panel) and specify Syntax coloring settings in ActionScript preferences.
With the mouse pointer focused in the Script pane, press Control-U (Windows) or
Command-U (Macintosh).
You can change the color settings for keywords, comments, identifiers, and strings. For
information on identifiers and strings, see “Terminology” on page 803 and “String data type
on page 79. For information on commenting, see About comments” on page 131.
Using line numbers and word wrap
You can select whether to view line numbers and whether to wrap long lines of code.
Typically, you should enable line numbers and word wrap to make editing code much easier.
Line numbers make code easier to scroll and parse when youre editing or modifying the code.
Word wrap helps you avoid horizontally scrolling long lines of code (especially when you
work in the authoring environment, or at low screen resolutions).
To enable or disable line numbers, do one of the following:
In the Actions panel, select Line Numbers from the pop-up menu.
In the Script window, select Tools > Line Numbers.
Press Control+Shift+L (Windows) or Command+Shift+L (Macintosh).
To enable or disable line word wrap, do one of the following:
In the Actions panel, select Word Wrap from the pop-up menu.
In the Script window, select Tools > Word Wrap.
Press Control+Shift+W (Windows) or Command+Shift+W (Macintosh).
Using Escape shortcut keys
You can add many elements to a script by using Escape shortcut keys (pressing the Escape key,
and then two other keys).
NOTE
These shortcuts are different from the keyboard shortcuts that initiate certain menu
commands.

Table of Contents

Related product manuals