User Guide
150 Chapter 4: Writing and Debugging Scripts
If you want to learn (or be reminded) about which commands have Escape shortcut keys, you can
show them next to elements in the Actions panel.
To show or hide Escape shortcut keys:
• From the View Options pop-up menu, enable or disable View Escape Shortcut Keys.
Checking syntax and punctuation
To determine whether the code you wrote performs as planned, you need to publish or test the
file. However, you can do a quick check of your ActionScript code without leaving the FLA file.
Syntax errors are listed in the Output panel. You can also check to see if a set of parentheses, curly
braces, or brackets around a block of code is balanced.
When you check syntax, the current script is checked. If the current script calls ActionScript 2.0
classes, those classes are compiled and their syntax is also checked. Other scripts that might be in
the FLA file are not checked.
To check syntax:
Do one of the following:
• Click the Check Syntax button above the Script pane.
• In the Actions panel, display the pop-up menu (at the upper right of the panel), and select
Check Syntax.
• Press Control+T (Windows) or Command+T (Macintosh).