Config Constants

For the people that dosen’t know, there’s an option in the Advance Actionscript Settings that allows you to declare global constants that the compiler will use to determine what to include in the final SWF and what to exclude.

For example look this picture:

Now if i put this code on the timeline, each block of code will or will not be included in the final swf depending on the values on the panel above:

trace("on testing mode")
trace("ok, now is for real")

Notice that this is NOT the same as declaring a custom global constant, because here the code not only will be ignored, but EXCLUDED FROM THE SWF, resulting in less code. All this is done at compile time.