3 Replies Latest reply on Apr 14, 2008 6:29 PM by kglad

    gradient fill not doing enything

    DPSwebmaster Level 1
      working from a tutorial, I am trying to create a gradient fill, but I only get a blank white nothing when I preview. Can someone point out what I am doing wrong? Here is the AS

      import flash.geom.Matrix;
      this.CreateEmptyMovieClip("mShape", 1);
      mShape._x = 100;
      mShape._y = 100;

      var mxBox:Matrix= new Matrix();
      mxBox.createGradientBox(200,200);

      mShape.lineStyle(10);
      mShape.beginGradientFill("radial", [0xFFFF00,0x00FFFF], [100,100],[0x00, 0xFF],mxBox, "reflect", "RBG", 1);
      mShape.curveTo(200, -100,400,0);
      mShape.lineTo(400,200);
      mShape.lineTo(0,200);
      mShape.lineTo(0,0);
      mShape.endFill();