i'm attempting to draw a simple gradient line with some transparency, but the portion of the line that receives 0 for the alpha draws black.
var lineMatrix:Matrix = new Matrix();
lineMatrix.createGradientBox(500, 1);
var line:Sprite = new Sprite();
line.graphics.lineStyle(1, 0, 0, false, LineScaleMode.NONE, CapsStyle.NONE);
line.graphics.lineGradientStyle(GradientType.LINEAR, [0XFF0000, 0, 0xFF0000], [1, 0, 1], [0, 127, 255], lineMatrix);
line.graphics.moveTo(0, 0);
line.graphics.lineTo(500, 0);
addChild(line);
what am i doing wrong?