Search code examples
projects-and-solutionsflashdevelop

How to create several flash application sharing common codebase in FlashDevelop/ActionScript 3.0?


Situation:

I need several swf/exe output files compiled in FlashDevelop from several projects. More than 60% of ActionScript 3.0 source is common for all project, rest are project-specific. How can I organize that in FlashDevelop? I want to have "one-click-to-build all" setting without duplicating common codebase (so when I need to fix something I do not need to copy-paste solution into several files).

All sources are under develeopment and will change very often.


Solution

  • A straightforward solution is to make an external classpath, for instance:

    • c:\dev\shared_src\
    • c:\dev\project1\
    • c:\dev\project2\

    Then configure each project:

    • Project Properties > Classpath
    • Add Classpath > select '../shared_src'

    PS: of course you should keep everything under source control.