Actions Panel Preferences

If you don't like the default settings of the Actions panel, you can change them. You can get to the preferences by choosing the Options drop-down for the Actions panel and selecting Preferences. A window will pop up as shown in Figure 8.13.

Figure 8.13. The preferences for the Actions panel.

The preferences for the Actions panel have three main sections for settings; Editing, ActionScript appearance options, and ActionScript 2.0 settings.

The Editing section allows you to select options and settings to control the flow of writing ActionScript, and it has these options:

  • Automatic Indentation. This allows automatic spacing for lines following brackets.

  • Tab Size. This sets the amount of space each press of the tab key (used in spacing) will take.

  • Code Hints. This turns on or off the code-hinting features of the Actions panel.

  • Delay. The number of seconds before a code hint appears.

  • Open/Import. This sets the encoding of ActionScript files being opened or imported.

  • Save/Export. This sets the encoding of ActionScript files being saved or exported.

  • Reload modified files. This option sets which reload action to take place when a linked file has been modified.

The ActionScript appearance options section of the Actions panel preferences is used to control the color, size, and font of every piece of ActionScript code in the Actions panel. It has these options:

  • Font. This controls the font of the ActionScript in the Actions panel.

  • Size. This controls the font size of the ActionScript in the Actions panel.

  • Syntax Coloring. This turns on or off the ability to distinguish certain keywords in ActionScript from the rest; you should leave this option on.

  • Syntax Color Settings. This section allows you to choose the color of every aspect of ActionScript as well as the background of the Actions panel.

  • Use dynamic font mapping. This option, when checked, will verify the necessary glyphs for the selected font, and if they are not present will substitute a different font.


By personal preference, many developers choose the background to be a dark color or black, and all of the code itself to be a lighter color. This makes the code easier to see from farther away from the screen.

The last section of the preferences for the Actions panel is the ActionScript 2.0 settings. This button will open the Class Path dialog box, which is used to map to external ActionScript files. This option is covered in more detail in Chapter 18. And of course, you can always hit the Reset to Defaults button to return to the default settings.

There are over a thousand different commands and actions that can be placed in ActionScript. It is nearly impossible to remember all of them and their parameters. This is where the Reference button comes in.

Macromedia Flash Professional 8 Unleashed
Macromedia Flash Professional 8 Unleashed
ISBN: 0672327619
EAN: 2147483647
Year: 2005
Pages: 319 © 2008-2017.
If you may any questions please contact us: