         var scale:Number = 1;
         var value:Number;
         var scaledStepSize:Number = stepSize;
+        var baseValue:Number = stepSize > 0 ? minimum : maximum;
         
         // If stepSize isn't an integer, there's a possibility that the floating point 
         // approximation of value will be slightly larger or smaller 

        // Calculate the index by subtracting the item from the minimum and
        // dividing by the stepSize. Make sure the index is between
        // 0 and length - 1.
        return Math.max(Math.min((Number(item) - minimum) / stepSize, length - 1), 0);
    }
    
    /**

    public function get length():int
    {
        normalizeMinMax();
        return (_maximum - _minimum) / Math.abs(stepSize) + 1;
    }
    
    //----------------------------------
