flashairflash-cs5flash-cs6flash-cs5.5

Unable to Build Code Hint Cache?


I have a very large custom class that I'm using in my Flash project (AS3, Adobe Air 3). However, I am getting this warning in the Flash Professional CS6 environment:

* Unable to build code hint cache. Please save the associated FLA into a different folder. There are too many files on the classpath.


I only have my .FLA, its related .SWF and .XML (preferences file), plus my document class .AS. My custom class is in a single folder next to the .FLA.

How do I fix the code hint cache? I use it a lot.


Solution

  • There are a number of possible causes of this error, but if you're working with a file like I am (in the above question) where there is little to nothing in the directory with the .FLA, and little to nothing in the .FLA library, the solution may be as simple as manually deleting the preferences file.

    In more detail:

    Step 1: Close out of Flash Professional CS6 (or whatever version you have...this has been known to happen on CS5 and CS5.5)

    Step 2: Delete the preferences file that resides in the same directory as your .FLA. The name will be something like "[project name]-app.xml" (with project name being the same name as your FLA).

    Step 3: Reopen your .FLA in Flash Professional. The error icon (and problem) should be gone.

    --

    There are other possible solutions, depending on the nature of the problem in your case. The original clue that this might be the solution for me (which it was), as well as some other possible solutions, can be found on the Adobe Forums.