Matt-

Thanks--that's a step in the right direction, but I need to know if 
the project is actually being debugged.  Your code tells if the Flash 
debugging player is running, but not whether the SWF was launched 
from a debugger.  

To be more specific, can I tell if the bin-release SWF version is  
running vs. the bin SWF version containing the debug information?

-Matt Thomas

--- In [email protected], "Matt Horn" <[EMAIL PROTECTED]> wrote:
>
>     <mx:Script><![CDATA[
>         import flash.system.Capabilities;
> 
>         private function reportVersion():String {
>             if (Capabilities.isDebugger) {
>                 return "Debugger version of Flash Player";
>             } else {
>                 return "Flash Player";
>             }
>         }
>         private function reportType():String {
>             return Capabilities.playerType + " (" + 
Capabilities.version
> + ")";
>         }
>     ]]></mx:Script>
> 
>     <mx:Label text="{reportVersion()}"/>
>     <mx:Label text="{reportType()}"/>
> 
> hth,
> matt horn
> flex docs
> 
> > -----Original Message-----
> > From: [email protected] 
> > [mailto:[EMAIL PROTECTED] On Behalf Of mthomas1969
> > Sent: Tuesday, October 30, 2007 4:22 PM
> > To: [email protected]
> > Subject: [flexcoders] Determine in AS if debugger is running
> > 
> > Is there a way to determine in AS if the SWF is running in 
> > the debugger?
> > 
> >
>


Reply via email to