     /**
      *  @private
      */
-    override public function generateGraphicsStroke(rect:Rectangle):GraphicsStroke
+    override public function createGraphicsStroke(bounds:Rectangle):GraphicsStroke
     {
         // The parent class sets the gradient stroke properties common to 
         // LinearGradientStroke and RadialGradientStroke 
-        var graphicsStroke:GraphicsStroke = super.generateGraphicsStroke(rect); 
+        var graphicsStroke:GraphicsStroke = super.createGraphicsStroke(bounds); 
         
         if (graphicsStroke)
         {
             // Set other properties specific to this LinearGradientStroke  
             GraphicsGradientFill(graphicsStroke.fill).type = GradientType.LINEAR; 
-            calculateTransformationMatrix(rect, commonMatrix);
+            calculateTransformationMatrix(bounds, commonMatrix);
             GraphicsGradientFill(graphicsStroke.fill).matrix = commonMatrix; 
         }
         

     */
    private static var commonMatrix:Matrix = new Matrix();

    [Deprecated(replacement="LinearGradientStroke.draw()")]
    /**
     *  Applies the properties to the specified Graphics object.
     *  
     *  @param g The Graphics object to which the LinearGradientStroke styles
     *  are applied.
     *  
     *  @langversion 3.0
     *  @playerversion Flash 9
     *  @playerversion AIR 1.1
     *  @productversion Flex 3
     */
    override public function apply(g:Graphics):void
    {
        g.lineStyle(weight, 0, 1, pixelHinting, scaleMode,
                    caps, joints, miterLimit);
               
        g.lineGradientStyle(GradientType.LINEAR, colors,
                            alphas, ratios, null /* matrix */, 
                            spreadMethod, interpolationMethod);
    }
    
    /**
     *  @private
     */
    override public function draw(g:Graphics, rc:Rectangle):void
    {
        g.lineStyle(weight, 0, 1, pixelHinting, scaleMode,
                    caps, joints, miterLimit);
        
        calculateTransformationMatrix(rc, commonMatrix); 
        
        g.lineGradientStyle(GradientType.LINEAR, colors,
                            alphas, ratios,
                            commonMatrix, spreadMethod,
                            interpolationMethod);                        

package mx.graphics
{
 
import flash.display.GradientType;
import flash.display.Graphics;
import flash.display.GraphicsGradientFill;
import flash.display.GraphicsStroke;
import flash.geom.Matrix;
import flash.geom.Rectangle;

import mx.core.mx_internal;

use namespace mx_internal; 

