Search code examples
apache-flex

Are there any conditional compilation constants I can use?


Are there any built in conditional compilation constants that I can use to check if I'm running in debug or release build?


Solution

  • Not by default, no. But it is easy to add to your build configuration to do this. Here is an explanation of compiler flags and conditional compilation.

    AS3: Conditional Compilation Demystified

    Some IDEs (such as FlashDevelop) will add CONFIG::Debug and CONFIG::Release to the build configuration for you