     }
     
     //----------------------------------
-    //  x
-    //----------------------------------
-    
+	//  x
+	//----------------------------------
+	
     private var _x:Number;
     
     [Bindable("propertyChange")]

    /**
     *  Holds the matrix and the convenience transform properties (<code>x</code>, <code>y</code>, and <code>rotation</code>).
     *  The compoundTransform is only created when the <code>matrix</code> property is set. 
     *  
     *  @langversion 3.0
     *  @playerversion Flash 9
     *  @playerversion AIR 1.1
     *  @productversion Flex 3
     */
    protected var compoundTransform:CompoundTransform;

    //----------------------------------
    //  entries
    //----------------------------------

    /**
     *  @private
     *  Storage for the entries property.
     */
    private var _entries:Array = [];
    
    [Bindable("propertyChange")]
    [Inspectable(category="General", arrayType="mx.graphics.GradientEntry")]

    /**
     *  An Array of GradientEntry objects
     *  defining the fill patterns for the gradient fill.
     *
     *  @default []
     *  
     *  @langversion 3.0
     *  @playerversion Flash 9
     *  @playerversion AIR 1.1
     *  @productversion Flex 3
     */
    public function get entries():Array
    {
        return _entries;
    }

    /**
     *  @private
     */
    public function set entries(value:Array):void
    {
        var oldValue:Array = _entries;
        _entries = value;
        
        processEntries();
        
        dispatchGradientChangedEvent("entries", oldValue, value);
    }
    
    //----------------------------------
    //  interpolationMethod
    //----------------------------------


     */
    public function get x():Number
    {
    	return compoundTransform ? compoundTransform.x : _x;	
    }
    
	/**
	 *  @private
	 */
    public function set x(value:Number):void
    {
        var oldValue:Number = x;
    	if (value != oldValue)
    	{
    		if (compoundTransform)
    		{
    			// If we have a compoundTransform, only non-NaN values are allowed
    			if (!isNaN(value))
                    compoundTransform.x = value; 
    		}   
            else
            {
                _x = value;
            }       
    		dispatchGradientChangedEvent("x", oldValue, value);
    	}
    }
    
    //----------------------------------
	//  y
	//----------------------------------
    
    private var _y:Number;
    
