Setting a global classpath in Flash 8

July 30th, 2006

When working with ActionScript 2.0 it is recommended to have a local folder or network resource with all the classes that are used and re-used between different projects.


In this example the path is c:\webserver\_classes but, of course, you may use a different path.

Even though you can set each FLA file to look for classes in a different classpath when publishing, it is better to configure the Flash application once so you don’t have to specify the same folder in every new file.

  1. Start Macromedia/Adobe Flash.
  2. Go to: Edit | Preferences.
    Flash Preferences - ActionScript 2.0
  3. A window pops up. On the left column under “Category” select “ActionScript“.
  4. On the bottom right press the button that says “ActionScript 2.0 Settings…
  5. Another window pops up with a list of “classpaths
  6. You must add 1 class path in to that list:
    C:\webserver\_classes (or the specific path in your case)
  7. Press OK.

Now any FLA file you publish will include classes found inside the specified folder.

Leave a Reply