      */
     public function set y(value:Number):void
     {
-    	var oldValue:Number = y;
-    	if (value != oldValue)
-    	{
-    		if (compoundTransform)
-    		{
-    			// If we have a compoundTransform, only non-NaN values are allowed
-    		    if (!isNaN(value))
+        var oldValue:Number = y;
+        if (value != oldValue)
+        {
+            if (compoundTransform)
+            {
+                // If we have a compoundTransform, only non-NaN values are allowed
+                if (!isNaN(value))
                     compoundTransform.y = value;
             }
             else

 */
public class GradientBase extends EventDispatcher
{
	//--------------------------------------------------------------------------
	//
	//  Constructor
	//
	//--------------------------------------------------------------------------
	
	/**
	 *  Constructor.
	 *  
	 *  @langversion 3.0
	 *  @playerversion Flash 9
	 *  @playerversion AIR 1.1
	 *  @productversion Flex 3
	 */
	public function GradientBase() 
	{
		super();
	}
	
	//--------------------------------------------------------------------------
	//
	//  Variables
	//
	//--------------------------------------------------------------------------

 	/**
	 *  @private
	 */
	mx_internal var colors:Array /* of uint */ = [];

 	/**
	 *  @private
	 */
	mx_internal var ratios:Array /* of Number */ = [];

 	/**
	 *  @private
	 */
	mx_internal var alphas:Array /* of Number */ = [];
	
	//--------------------------------------------------------------------------
	//
	//  Class Properties
	//
	//--------------------------------------------------------------------------
	
	
	/**
	 *  Value of the width and height of the untransformed gradient
	 * 
	 *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 1.5
     *  @productversion Flex 4
	 */ 
	public static const GRADIENT_DIMENSION:Number = 1638.4;
	
	//--------------------------------------------------------------------------
	//
	//  Properties
	//
	//--------------------------------------------------------------------------

	//----------------------------------
    //  angle
    //----------------------------------
    

     */
    public function set matrix(value:Matrix):void
    {
        var oldValue:Matrix = matrix;
        
        var oldX:Number = x;
        var oldY:Number = y;
        var oldRotation:Number = rotation;
        
        if (value == null)
        {
            compoundTransform = null;
            x = NaN;
            y = NaN;
            rotation = 0;
        }   
        else
        {
            // Create the transform if none exists. 
            if (compoundTransform == null)
                compoundTransform = new CompoundTransform();
            compoundTransform.matrix = value; // CompoundTransform will create a clone
            
            dispatchGradientChangedEvent("x", oldX, compoundTransform.x);
            dispatchGradientChangedEvent("y", oldY, compoundTransform.y);
            dispatchGradientChangedEvent("rotation", oldRotation, compoundTransform.rotationZ);
        }
    }
    
    //----------------------------------
