Learning ActionScript 2.0 in Adobe Flash |
|
|
|
| Classes > About working with custom classes in an application > How the compiler resolves class references | |||
When Flash attempts to resolve class references in a FLA script, it first searches the document-level classpath specified for that FLA file. If the class is not found in that classpath, or if that classpath is empty, Flash searches the global classpath. If the class is not found in the global classpath, a compiler error occurs.
When you click the Check Syntax button while editing an ActionScript file, the compiler looks only in the global classpath; ActionScript files aren't associated with FLA files in Edit mode and don't have their own classpath.
|
|
|
|