Are there any built in conditional compilation constants that I can use to check if I'm running in debug or release build?
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