You can do a quick check of your ActionScript code without publishing the FLA file.
When you check syntax, the current script is checked. If the current script calls ActionScript classes, those classes are compiled and their syntax is also checked. Other scripts that might be in the FLA file are not checked.
Check syntax
.
(at
the upper-right corner of the Actions panel), select Check Syntax.
Syntax errors are listed in the Compiler Errors panel.
Check for punctuation balance