<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
   
    <fx:Script>
       
        <![CDATA[
           
            private function doTrace(event:MouseEvent):void
            {
                trace("bla bla bla");
               
                if (Capabilities.isDebugger) {
                    OUT.text = "Debugger Flash Player";
                } else {
                    OUT.text = "Normal Flash Player";
                }
            }
           
        ]]>
       
    </fx:Script>
   
    <fx:Declarations/>
    
    <s:Panel id="PNL" x="0" y="0" width="100%" height="100%" title="Testpanel">
        <s:Button id="BTN" x="50" y="50" label="Clickme" click="doTrace(event)"/>
        <s:Label id="OUT" x="50" y="116" text="-"/>
    </s:Panel>
</s:Application>
========== 
Ergebnis:
