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


        if (!ratiosValid) sort();

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

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

    private function findIndex(point:Number):Number


        if (ratios != null)
        {
            if (ratios.length != _length)
                throw new ArgumentError("Number of ratios must match number of colors");

            for (i = 0; i < _length; i++)
