         
         // Select all the text.
         textInput.setSelection();
+        
+        if (dispatchChange)
+        {
+            if (value != prevValue)
+                dispatchEvent(new Event(Event.CHANGE));
+        }
+    }
+    
+    //--------------------------------------------------------------------------
+    // 
+    //  Private Methods
+    //
+    //--------------------------------------------------------------------------
+    
+    /**
+     *  @private
+     *  Helper method that returns a number corresponding
+     *  to the length of the maximum value displayable in 
+     *  the textInput.  
+     */
+    private function calculateWidestValue():Number
+    {
+        var widestNumber:Number = minimum.toString().length >
+                              maximum.toString().length ?
+                              minimum :
+                              maximum;
+    	widestNumber += stepSize;
+    	return widestNumber.toString().length;
     }
     
     //--------------------------------------------------------------------------

     *  When the enter key is pressed, NumericStepper commits the
     *  text currently displayed.
     */
    protected function textInput_enterHandler(event:Event):void
    {
        var prevValue:Number = value;
        
        commitTextInput();
        
        if (value != prevValue)
            dispatchEvent(new Event("change"));
    }
}

}
    
    //--------------------------------------------------------------------------
    //
    //  Overridden Properties: FxRange
    //
    //--------------------------------------------------------------------------
    
    //---------------------------------
    // maximum
    //---------------------------------   
    
    private var _maximum:Number = 10;
    private var maxChanged:Boolean = false;
    
    /**
     *  Number which represents the maximum value possible for 
     *  <code>value</code>. If the values for either 
     *  <code>minimum</code> or <code>value</code> are greater
     *  than <code>maximum</code>, they will be changed to 
     *  reflect the new <code>maximum</code>
     *
     *  @default 10
     */
    override public function get maximum():Number
    {
        return _maximum;
    }
    
    override public function set maximum(value:Number):void
    {
        if (value == _maximum)
            return;

        _maximum = value;
        maxChanged = true;

        invalidateProperties();
    }
    
    //---------------------------------
    // stepSize
    //---------------------------------   
    
    private var stepSizeChanged:Boolean = false;
    
    /**
     *  @private
     */
    override public function set stepSize(value:Number):void
    {
        stepSizeChanged = true;
        super.stepSize = value;       
    }   
    
    //--------------------------------------------------------------------------
    //
    //  Overridden methods
    //
    //--------------------------------------------------------------------------
