I have the following code, but setting a material to the line like the following doesn't work at all., it makes it unvisible.
var m_lineCoords:Vector.<Point> = new Vector.<Point>();
m_lineCoords.push(new Point (186, 198));
m_lineCoords.push(new Point (307, 198));
m_lineCoords.push(new Point (398, 308));
m_lineCoords.push(new Point (627, 283));
m_lineCoords.push(new Point (729, 335));
var lineShape:Shape = new Shape();
lineShape.graphics.lineStyle(5,0xFF0000);
lineShape.graphics.moveTo(m_lineCoords[0].x,m_lineCoords[0].y);
lineShape.graphics.lineMaterial(10, new StandardMaterial( new StandardVertexShader() , new TextureVertexColorFragmentShader() ) );
for(var i:uint = 1; i < m_lineCoords.length ; i++)
{
lineShape.graphics.lineTo(m_lineCoords[i].x, m_lineCoords[i].y);
}