改变多颜色,在线等!
_root.createEmptyMovieClip( "grad", 1 );
with ( _root.grad ){
colors = [ 0xFF0000, 0x0000FF ];
alphas = [ 100, 100 ];
ratios = [ 0, 0xFF ];
matrix = { matrixType:"box", x:100, y:100, w:200, h:200, r:(90/180)*Math.PI };
beginGradientFill( "linear", colors, alphas, ratios, matrix );
moveto(100,100);
lineto(100,300);
lineto(300,300);
lineto(300,100);
lineto(100,100);
endFill();
}
现在看到的只是红色和蓝色的渐变,怎么在里面加多一个黄色?