FlashDevelop and the fl class package

I'm surprised it took me this long to encounter this problem; but FlashDevelop doesn't seem to know the location of the fl class package by default. I found this out today while trying to use a Color (fl.motion.Color) object. To my surprise, FlashDevelop didn't seem to recognize the import. I tried to build and received an error message that the class couldn't be found.

The fix was pretty simple; I just added the path to the program's global class path list. If you're wondering how to do this, just go to Tools > Global Classpaths, or hit CTRL + F9. Now you just need to enter the location of the fl package, which on my Windows 7 machine is: C:\Program Files\Adobe\Adobe Flash CS5\Common\Configuration\ActionScript 3.0\projects\Flash\src. That's all there is to it; now you can use the classes as you please!

Bookmark and Share

5 Responses to “FlashDevelop and the fl class package”

  1. Yu-Chung Chen says:

    Great, just what I needed!

    I’m revisiting a dormant project that was created with CS3. As I upgraded to CS5 since then, I needed to figure out the new class path but failed to do so. In the FD forum there seems to be only hints on CS3.

    Thank you for this post!

  2. Rhuno says:

    Glad you found it helpful! :)

  3. Vincy says:

    Thanks buddy, would have taken me much longer to figure it out myself :)

  4. Mike says:

    Thanks for this post, it saved me a lot of time! Just a quick note for others trying to get this to work: if you’re getting errors building your app after adding the classpath, you may need to clean your project (Shift F8).

  5. Lee Comstock says:

    Thanks! I wasn’t even getting errors, it took me forever before I figured out the imports weren’t turning blue.

Leave a Reply

Subscribe to RSS feed FGS5 Badge