For whatever reason, it appears Macromedia shipped FlashMX04 with the classPath order mixed up. Thankfully, we can fix it - and I REALLY urge you to do so, right now!

As with any system of this sort, the order in which Flash should search for class files should be explicit to implicit, local to global. This should translate into Flash searching classPaths in this order:


  1. Paths you explicitly set in the publish settings of a project (FLA)

  2. The implicit project path (ie. the path of the FLA)

  3. The implicit global path (ie. the built in global classPath)

Unfortunately, by default F04 searches in this order: explicit, global, project. This can really throw you through a loop if you try to override the built in classes for a project.

Fortunately, you can fix this problem:


  1. In preferences, under the ActionScript tab click the "ActionScript 2.0 Settings..." button

  2. In the Classpath listing, you should see two entries. The first should be something like "$(UserConfig)/Classes" (this is the global path). The second will just be a "." (this is the project path).

  3. Click on the first entry, and click the down arrow button to swap its position with the second (".").

  4. Click OK to exit the dialogs

There, now Flash will act logically when searching classPaths. Thanks to Phil for noticing the "." (project path) - I really gotta clean my monitor! :)