About importing class files

In order to use a class or interface that you've defined, Flash must locate the external ActionScript files that contain the class or interface definition so that it can import the file. The list of directories in which Flash searches for class, interface, function, and variable definitions is called the classpath. Flash has two classpath settings--a global classpath and a document-level classpath:

When you import class files, the following rules apply:

You can also include ActionScript code in a Flash document (FLA) file using an include statement. The following rules apply to the include statement:

For more information on the include statement, see #include directive in the ActionScript 2.0 Language Reference. For more information on classpaths, see About setting and modifying the classpath.


Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00000774.html