Is there a way using Flash (CS3+AS3) to determine if the published swf is running in a debug player or in Flash's debug mode?
I'm aware that Flex provides the ability to setup different build targets (release/debug) and that you can use something like CONFIG::debug
for #ifdef
style inclusion of code at compile time.
I'm imagining something like System.isDebug()
but can't find anything. I want to use this because there's debug functionality in my app that I definitely don't want to be available in a production environment.