I am trying to create a linear gradient, with beginGradientFill.
I need it to be a solid color. The middle needs to have an alpha value, and both ends need to fade out to 0.
This is acting weird:
var backdrop:Sprite = new Sprite();
backdrop.graphics.beginGradientFill('linear', [gradColor,gradColor,gradColor], [0,1,0], [0,128,255]);
backdrop.graphics.drawRect(0, 0, 100, 60);
addChild(backdrop);
Any idea why?