代码
var myMatrix:Matrix = new Matrix();
myMatrix.createGradientBox(200, 200, 1.6, 50, 50);
var myColors:Array = [0xFF3300, 0xFFCC66];
var myAlphaS:Array = [100, 100];
var myRalphaS:Array = [0, 225];
graphics.beginGradientFill(GradientType.LINEAR, myColors, myAlphaS, myRalphaS, myMatrix);
graphics.drawRoundRectComplex(50,50,100,100,10,10,10,10);
myMatrix.createGradientBox(200, 200, 1.6, 50, 50);
var myColors:Array = [0xFF3300, 0xFFCC66];
var myAlphaS:Array = [100, 100];
var myRalphaS:Array = [0, 225];
graphics.beginGradientFill(GradientType.LINEAR, myColors, myAlphaS, myRalphaS, myMatrix);
graphics.drawRoundRectComplex(50,50,100,100,10,10,10,10);