title: Determine if swf is in a "debug" player or mode
body: <p>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?</p>
  
  <p>I'm aware that Flex provides the ability to setup different build targets (release/debug) and that you can use something like <code>CONFIG::debug</code> for <code>#ifdef</code> style inclusion of code at compile time.</p>
  
  <p>I'm imagining something like <code>System.isDebug()</code> but can't find anything. I want to use this because there's debug functionality in my app that I <em>definitely</em> don't want to be available in a production environment.</p>