MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH Manual page 51

Learning actionscript 2.0 in flash
Table of Contents

Advertisement

To format code according to Auto Format settings, do one of the following:
Click the Auto Format button in the Actions panel or Script window toolbar.
In the Actions panel, select Auto Format from the pop-up menu.
Press Control+Shift+F (Windows) or Command+Shift+F (Macintosh).
In the Script window, select Tools > Auto Format.
To use dynamic font mapping:
To turn dynamic font mapping on or off, select or deselect Use dynamic font mapping in
the Preferences dialog box.
Dynamic font mapping is turned off by default because it increases performance time
when you are scripting. If you are working with multilingual text, turn on dynamic
font mapping because it helps to ensure that the correct fonts are used.
To use automatic indentation:
To turn automatic indentation on or off, select or deselect Automatic indentation in the
Preferences dialog box.
When automatic indentation is turned on, the text you type after an opening parenthesis
[(] or opening curly brace ({) is automatically indented according to the Tab size setting in
ActionScript preferences.
In your scripts, you can indent a line by selecting the line and pressing Tab. To remove the
indent, select the line and press Shift+Tab.
Using syntax highlighting
In ActionScript, as in any language, syntax is the way elements are put together to create
meaning. If you use incorrect ActionScript syntax, your scripts cannot work.
When you write scripts in Flash Basic 8 and Flash Professional 8, commands that are not
supported by the version of the player you are targeting appear in yellow in the Actions
toolbox. For example, if the Flash Player SWF file version is set to Flash 7, ActionScript that is
supported only by Flash Player 8 appears in yellow in the Actions toolbox. (For information
on setting the Flash Player SWF file version, see
Flash SWF file format"
You can also set a preference to have Flash color-code parts of your scripts as you write them,
which brings attention to typing errors. For example, suppose you set the Syntax coloring
preference to make keywords appear in deep blue. While you type code, if you type
word
appears in blue. However, if you mistakenly type
var
which shows that you made a typing error. For information on keywords, see
keywords" on page
138.
in Using Flash.
About coding in the Actions panel and Script window
Chapter 17, "Setting publish options for the
, the word
vae
, the
var
remains black,
vae
"About
51

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents