Flash - Checking if the swf is running in the flash ide

If you are devving in the Flash IDE, sometimes you may need to use local variables that are different from the live version. A good example would be with paths to images or other swfs. You can use the flash.system.Capabilities.playerType for this very thing:-

// DETERMINE IF IN DEV MODE
if(flash.system.Capabilities.playerType == "External")
{
 _IsDebug = true;
}

In this instance, I am using the _IsDebug var throughout the document class to set local or live paths.