Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6222907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:23:50+00:00 2026-05-24T08:23:50+00:00

Platform: Flex 3 & Flex 4 Language: AS3 I have inherited a very large

  • 0

Platform: Flex 3 & Flex 4
Language: AS3

I have inherited a very large code-base written for the Flex3 framework at work.

My company would like to segment the software into “smaller”, more “specific” use-cases.
There will be some overlap in features between the different products.

One option would be to copy the code-base into various projects and prune the code for the various use-cases as appropriate. (is that even appropriate?)

However, I would like to avoid that since maintaining the same code duplicated across more than 3 software products would likely be a pain.

Is it possible to create custom build configurations on top of one (1) code-base that compiles only what is needed for that particular product? (I am imagining something akin to #ifdef statements or perhaps build configurations in Visual Studio)

Would moving to git help facilitate that? (We use SVN.)

Any advice would be greatly appreciated.

-Regards

Oliver

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T08:23:51+00:00Added an answer on May 24, 2026 at 8:23 am

    You can totally do conditional compilation if you use FlashDevelop.

    Linky link: http://www.flashdevelop.org/wikidocs/index.php?title=AS3_Conditional_Compilation

    Basically, you type something like this:

    CONFIG::mode_a{
        foo_mode_a();
    }
    
    CONFIG::mode_b{
        foo_mode_b();
    }
    

    And then in your flashdevelop project settings, properties, project settings, set some compiler constants, “CONFIG::mode_a,true”, “CONFIG::mode_b,false”. Then foo_mode_a() will get called and foo_mode_b() will not.

    There’s various ways you can use this (follow the link), but the most powerful is to make it so that code ISN’T EVEN THERE if you put it in a conditional compilation block with the variable set to false in your settings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some cross platform DNS client code that I use for doing end
Platform: ASP.NET 3.5, ASP.NET Ajax intermixed I'm very green to jQuery, so have been
The last cross platform desktop development I did was Java/Swing. What about flex?
I have a cross platform program that runs on Windows, Linux and Macintosh. My
Rehashing an older post: JQuery VS Flex - Choosing a Platform for SAAS We
Platform: ASP.NET 4.0, VS 2010 My scenario is this I have the credentials of
Platform: WPF, .NET 4, Visual Studio 2010 XAML code is as below: <telerik:RadTreeView x:Name=mytree
Platform: CentOS release 5.5 (Final) SVN, version 1.4.2 (r22196) Apache httpd.i386 2.2.3-43.el5.centos.3 I have
Platform: Windows XP Development Platform: VB6 When trying to set an application title via
Platform Builder is a tool for building a Windows CE Operating system on your

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.