# Gradient Alpha settings, possible?

**URL:** <https://forum.kirupa.com/t/gradient-alpha-settings-possible/237270>\
**Category:** flash\
**Created:** [August 28, 2007, 8:45pm UTC](https://forum.kirupa.com/t/gradient-alpha-settings-possible/237270 "2007-08-28T20:45:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![redelite](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@redelite](https://forum.kirupa.com/u/redelite)\
**Post date:** [August 28, 2007, 8:45pm UTC](https://forum.kirupa.com/t/gradient-alpha-settings-possible/237270/1 "2007-08-28T20:45:17Z")

</div>

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…

```auto

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!
