 
         if (ratios != null)
         {
-            if (_ratios.length != _length)
+            if (ratios.length != _length)
                 throw new ArgumentError("Number of ratios must match number of colors");
 
             for (i = 0; i < _length; i++)


        if (!ratiosValid) sort();

        a1 = _alphas[intIndex];
        a2 = _alphas[intIndex + 1];

        return a1 + fracIndex * (a2 - a1);
    }

    private function findIndex(point:Number):Number

        var i:int;
        if (alphas != null)
        {
            if (alphas.length != _length)
                throw new ArgumentError("Number of alphas must match number of colors");
            _alphas = alphas.slice();
        }
