To draw a line using this class is not a problem. Nevertheless, I do not understand how this line can be modified after being drawn (i.e. without adding a new line).
For example: a line was drawn with a thickness of 10, color red and alpha 50%. This line should, in the next step, become (change) a line with a thickness of 5, color green and alpha 90%.
What can i do??
Thx for helping!
Best Regards
AIRWOLF2k
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To draw a line using this class is not a problem. Nevertheless, I do not understand how this line can be modified after being drawn (i.e. without adding a new line).
For example: a line was drawn with a thickness of 10, color red and alpha 50%. This line should, in the next step, become (change) a line with a thickness of 5, color green and alpha 90%.
What can i do??
Thx for helping!
Best Regards
AIRWOLF2k
You could clear the existing curve, change the line styles and draw (or animate) it again. Like the below:
var myLine:Line = new Line(0,0,275,200);
myLine.lineStyle(20,0xff0000,50);
myLine.draw();
someButton.onRelease = function()
{
trace( "onRelease" );
myLine.clear();
myLine.lineStyle(2,0x000000,100);
myLine.draw();
}
Actually, you won't even need that clear.