Adobe AIR detect if Running in ADL?

actionscript-3, air, apache-flex

Solution

Unless I'm misunderstanding,

if (Capabilities.isDebugger)
{
    Alert.show("Debugger!");
}
else
{
    Alert.show("Not the debugger.");
}   

... should be what you're looking for. (If so, my apologies! Post back and I'll adjust accordingly.)

Problem

I need to detect if running in ADL or not, I can't seem to fine an answer that is guaranteed...I found a couple posts online that say "this might work..." Is there a reliable way to check? Thanks.

Original source