Flash CS3: Enabling Type Annotation Warnings for Compile-Time Checking

Most ActionScript 2.0 and 3.0 programmers type all variables in their code.

In CS3, to enable the type checking during compilation you must do the following:

  1. Using a text editor open the following file in the Flash CS3 installation folder: /en/Configuration/ActionScript 3.0/EnabledWarnings.xml
  2. Locate the following line: <warning id="1008" enabled="false" label="kWarning_NoTypeDecl">Missing type declaration.</warning>
  3. Change enabled="false" to enabled="true"
  4. Save the file

Attached is the updated configuration file

Leave a Reply