     {
         return flags.isSet(autoRepeatFlag);
     }
+    
+    /**
+     *  @private
+     */
     public function set autoRepeat(value:Boolean):void
     {
-    	if (!flags.update(autoRepeatFlag, value))
-    		return;
-
-    	checkAutoRepeatTimerConditions( isDown() );
-    }
-
-	private function checkAutoRepeatTimerConditions(isButtonDown:Boolean):void
-	{
-		var needsTimer:Boolean = autoRepeat && isButtonDown;
-		var hasTimer:Boolean = autoRepeatTimer != null;
-		
-		if (needsTimer == hasTimer)
-			return;
-
-		if (needsTimer)
-			startTimer();
-		else
-			stopTimer();
-	}
-
-	private function startTimer():void
-	{
-		autoRepeatTimer = new Timer(1);
-		autoRepeatTimer.delay = getStyle("repeatDelay");
-		autoRepeatTimer.addEventListener(TimerEvent.TIMER, autoRepeat_timerDelayHandler);
-		autoRepeatTimer.start();
-	}
-
-	private function stopTimer():void
-	{
-		autoRepeatTimer.stop();
-		autoRepeatTimer = null;
-	}
-
-	private function autoRepeat_timerDelayHandler(event:TimerEvent):void
-	{
+        if (!flags.update(autoRepeatFlag, value))
+            return;
+
+        checkAutoRepeatTimerConditions( isDown() );
+    }
+
+    private function checkAutoRepeatTimerConditions(isButtonDown:Boolean):void
+    {
+        var needsTimer:Boolean = autoRepeat && isButtonDown;
+        var hasTimer:Boolean = autoRepeatTimer != null;
+        
+        if (needsTimer == hasTimer)
+            return;
+
+        if (needsTimer)
+            startTimer();
+        else
+            stopTimer();
+    }
+
+    private function startTimer():void
+    {
+        autoRepeatTimer = new Timer(1);
+        autoRepeatTimer.delay = getStyle("repeatDelay");
+        autoRepeatTimer.addEventListener(TimerEvent.TIMER, autoRepeat_timerDelayHandler);
+        autoRepeatTimer.start();
+    }
+
+    private function stopTimer():void
+    {
+        autoRepeatTimer.stop();
+        autoRepeatTimer = null;
+    }
+
+    private function autoRepeat_timerDelayHandler(event:TimerEvent):void
+    {
         autoRepeatTimer.reset();
-	    autoRepeatTimer.removeEventListener( TimerEvent.TIMER, autoRepeat_timerDelayHandler);
-
-	    autoRepeatTimer.delay = getStyle("repeatInterval");
-	    autoRepeatTimer.addEventListener( TimerEvent.TIMER, autoRepeat_timerHandler);
-	    autoRepeatTimer.start();
-	}
-
-	private function autoRepeat_timerHandler(event:TimerEvent):void
-	{
-		dispatchEvent(new FlexEvent(FlexEvent.BUTTON_DOWN));
-	}
+        autoRepeatTimer.removeEventListener( TimerEvent.TIMER, autoRepeat_timerDelayHandler);
+
+        autoRepeatTimer.delay = getStyle("repeatInterval");
+        autoRepeatTimer.addEventListener( TimerEvent.TIMER, autoRepeat_timerHandler);
+        autoRepeatTimer.start();
+    }
+
+    private function autoRepeat_timerHandler(event:TimerEvent):void
+    {
+        dispatchEvent(new FlexEvent(FlexEvent.BUTTON_DOWN));
+    }
 }
 
 }

     *  @private
     *  Timer for doing auto-repeat.
     */
	private var autoRepeatTimer:Timer;

    [Inspectable(defaultValue="false")]


    /**
     *  Constructor. 
     */    
    public function FxButton()
    {
        super();

        // DisplayObjectContainer properties.
        // Setting mouseChildren to false ensures that mouse events
        // are dispatched from the Button itself,
        // not from its skins, icons, or TextField.
        // One reason for doing this is that if you press the mouse button
        // while over the TextField and release the mouse button while over
        // a skin or icon, we want the player to dispatch a "click" event.
        // Another is that if mouseChildren were true and someone uses
        // Sprites rather than Shapes for the skins or icons,
        // then we we wouldn't get a click because the current skin or icon
        // changes between the mouseDown and the mouseUp.
        // (This doesn't happen even when mouseChildren is true if the skins
        // and icons are Shapes, because Shapes never dispatch mouse events;
        // they are dispatched from the Button in this case.)
        mouseChildren = false;
        
        // add event listeners to the button
        addHandlers();
    }   
    
    //--------------------------------------------------------------------------
    //
