Your code can be formatted and indented automatically or manually. If you use dynamic font mapping, you ensure that the correct fonts are used for multilingual text.
Set Auto Format options
Format code according to Auto Format
settings
in
the Actions panel or Script window toolbar.
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.
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 it and pressing Tab. To remove the indent, select the line and press Shift+Tab.