MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 67

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

To check for punctuation balance:
Click between braces (
1
Press Control+' (Windows) or Command+' (Macintosh) to highlight the text between braces,
2
brackets, or parentheses.
The highlighting helps you check whether opening punctuation has correct corresponding
closing punctuation.
Formatting code
You can specify settings to determine if your code is formatted and indented automatically or
manually. You can also choose whether to view line numbers and whether to wrap long lines
of code.
To set format options:
Do one of the following
1
In the Actions panel, select Auto Format Options from the Options pop-up menu (at the
upper right of the panel).
(Flash Professional only) In an external script file, choose Edit > Auto Format Options.
The Auto Format Options dialog box appears.
Select any of the check boxes. To see the effect of each selection, look in the Preview pane.
2
After you set Auto Format Options, your settings are applied automatically to code you write, but
not to existing code. To apply your settings to existing code, you must do so manually. You might
use this procedure to format code that was formatted using different settings, that you imported
from another editor, and so on.
To format code according to Auto Format Options settings, do one of the following:
Click the Auto Format button above the Script pane.
Select Auto Format from the Actions panel pop-up menu.
Press Control+Shift+F (Windows) or Command+Shift+F (Macintosh).
To use automatic indentation:
Automatic indentation is turned on by default. To turn it off, deselect Automatic Indentation
in ActionScript preferences.
When automatic indentation is turned on, the text you type after
indented according to the Tab Size setting in ActionScript preferences. To indent another line,
select the line and press Tab. To remove the indent, press Shift+Tab.
To enable or disable line numbers and word wrap:
From the View Options pop-up menu, enable or disable View Line Numbers and Word Wrap.
, array access operators (
{})
, or parentheses (
[])
()
or
(
{
Using the ActionScript editor
) in your script.
is automatically
67

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents