PDA

View Full Version : FlashDevelop


Damium
08-09-2011, 08:05 AM
Not sure if this is the right topic to discuss this but, in a way, it's kinda a best practices related.

I'm using FlashDevelop and I wonder if there's a way for me to have shared code between projects, so I just have to update that code once for all the projects.

As an example:
I have 2 projects. Some of the classes of those projects are exactly the same.
Whenever I have to make an update to one, I have to do it in the other aswell, or, just simply copy the class to the other directory.

It's not a big problem, but it would be nice that I could have that "shared code" in one place and update it once for all the projects that I have!

Hope I made it clear :P

Thank you.

Damium
08-09-2011, 08:39 AM
Yeah, well, if only I loose a little bit of time going through the menus I could find the solution! :P

For reference:

Create a dir with the classes you want to share between projects.

Go to
Project > Properties > Classpaths > Globalpaths

The common classes/libraries go there. Select the dir you've created.

Then, to see the dir on the files tree:

Tools > Program Settings > ProjectManager > Show Global ClassPaths

Turn that to True.

Restart the program.

You should now see the GlobalClasses dir you've created in the bottom of the tree.

tadster
08-09-2011, 02:28 PM
I just don't use FD in that manner, I do not use its project capabilities. Instead I just create my own folders for each project I make, and the import statements are enough for FD to eventually ( sometimes you have to switch tabs and come back to the class your on ) recognize each class.

For compiling things I've written some javascript code that I run via the macros option.

IMO, I always thought the whole way projects get set up in FD to be cumbersome.