Category: developers journal

Fixing code hinting in Flash CS5

Author: seven December 10, 2010

Some time ago code hinting in Flash just stopped working for me. Pretty anoying if you get used to that feature and you are working on a large project with many classes. In AS code editor, in right bottom corner, I noticed small triangle with an exclamation mark. Hovered it displayed tooltip: "Unable to build code hint cache. Please save the associated FLA into a different folder. There are too many files on the classpath."

The error is self explanatory, however changing setting required a bit of googling. :)

Windows:

  1. Open Regedit and navigate to: HKEY_CURRENT_USER > Software > Adobe > Flash 11 > Settings
  2. Right+click and choose: ‘New… > DWORD Value’
  3. Rename the key: Project File Cap
  4. Select the key and choose: ‘Modify’
  5. Edit the value (I've put: 5000)
  6. Click OK and restart Flash

Mac:

  1. Open /Users//Library/Preferences/Flash CS5 Preferences in Text Edit
  2. Under the section add the following: 5000
  3. Save the file and restart Flash

If you wish to reset your code-hint cache, do this:

  1. Quit Flash.
  2. Delete the following folder:

    Win Vista/Win7: "C:\Users\{username}\AppData\Local\Adobe\Flash CS5\language\Configuration\CodeModel"
    Win XP: "C:\Documents and Settings\{username}\Local Settings\Application Data\Adobe\Flash CS5\language\Configuration\CodeModel"
    Mac: "/Users/{username}/Library/Application Support/Adobe/Flash CS5/language/Configuration/CodeModel"

Author
seven
CEO/CTO at Nivas®
Neven Jacmenović has been passionately involved with computers since late 80s, the age of Atari and Commodore Amiga. As one of internet industry pioneers in Croatia, since 90s, he has been involved in making of many award winning, innovative and successful online project. He is experienced full stack web developer, analyst and system engineer. In his spare time, Neven is transforming retro-futuristic passion into various golang, Adobe Flash and JavaScript/WebGL projects.