     /**
      *  @private
      */
+    private var enabledChanged:Boolean = false;
+
+    /**
+     *  @private
+     */
     override public function set enabled(value:Boolean):void
     {
         if (value == enabled)
             return;
         
         super.enabled = value;
+        enabledChanged = true;
         
         invalidateSkinState();
     }


    [Bindable("change")]
    [Bindable("textChanged")]
    
    /**
     *  The text String displayed by this component.
     */

        // represented by (-1, -1), even when the Sprite has focus.
        // But then no insertion point blinks and you can't enter any text.
        // So if this component is in that state when it takes focus,
        // it changes the selection to the end of the text.
        if (enabled && editable)
        {
            if (selectionAnchorPosition == -1 && selectionActivePosition == -1)
            {
                setSelection(int.MAX_VALUE, int.MAX_VALUE);
            }
            
            // Only editable text should have a focus ring.
            if (focusManager)
                focusManager.showFocusIndicator = true;
        }
        
        super.focusInHandler(event);
    }
