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:
- Using a text editor open the following file in the Flash CS3 installation folder: /en/Configuration/ActionScript 3.0/EnabledWarnings.xml
- Locate the following line: <warning id="1008" enabled="false" label="kWarning_NoTypeDecl">Missing type declaration.</warning>
- Change enabled="false" to enabled="true"
- Save the file
Attached is the updated configuration file