I’m creating a gallery that has scrolling thumbnails but on the ends of the slider I want to have an alpha gradient that make the thumbnails on the ends appear to fade out instead of just cutting off…
var left_gradient:Shape = new Shape();
var left_matrix = new Matrix();
var left_colors:Array = [0xFF0000, 0xFF0000];
var left_alphas:Array = [100, 0];
var left_ratios:Array = [0x00, 0xFF];
left_gradient.graphics.beginGradientFill(GradientType.LINEAR, left_colors, left_alphas, left_ratios, left_matrix);
left_gradient.graphics.drawRect(10, 1, 30, 100);
left_gradient.graphics.endFill();
this.addChild(left_gradient);
this is what I have so far… and I’m trying to make a 30x100 “gradient”… the gradient is actually just a solid color that changes from (alpha: 100) to (alpha: 0) [left-to-right]… however when i try to use it, the gradient just shows the entire shape at (what appears) 50% alpha…
anyone got any ideas? :huh:
Thanks ahead!