calendil
12-24-2005, 11:16 PM
I can do this with beginGradientFill()
15758
The point is;
How can I do this with beginGradientFill()
15759
That detail is missed in help files.. some one has an idea?
Billy T
12-25-2005, 12:26 PM
this.createEmptyMovieClip("gradient_mc", 1);
with (gradient_mc) {
colors = [0xFF0000, 0x0000FF];
alphas = [100, 100];
ratios = [0, 0xFF];
// lineStyle(5, 0x00ff00);
matrix = {matrixType:"box", x:100, y:100, w:200, h:200, r:(0/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();
colors = [0x0000FF, 0xFF0000];
matrix = {matrixType:"box", x:300, y:100, w:200, h:200, r:(0/180)*Math.PI};
beginGradientFill("linear", colors, alphas, ratios, matrix);
moveTo(300, 100);
lineTo(300, 300);
lineTo(500, 300);
lineTo(500, 100);
lineTo(300, 100);
endFill();
}
calendil
12-26-2005, 03:47 PM
Thanks Billy,
Yeah, the dual rectengular.. I have done that before I've post the topic. I was curios that if there is a one-shot code.. To do this in one rectengular.
krazl
07-26-2006, 10:21 AM
Thanks Billy,
Yeah, the dual rectengular.. I have done that before I've post the topic. I was curios that if there is a one-shot code.. To do this in one rectengular.
change to three array..:cool:
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.