Hi Folks.
Drawing a simple line is easy - here’s some sample code here from Kirupa:
// First I create a clip that will hold
// my line (it could be the _root)
_root.createEmptyMovieClip(“holder”,1);
// I define the style of the line
// 1: thickness
// 0x000000: color (white)
// 100: alpha
holder.lineStyle(1,0x000000,100);
// I put the pen at (150,200)
holder.moveTo(150,200);
// I draw a line to the point (300,200)
holder.lineTo(300,200);
My First Question is - how can you get it to show the drawing of the line - almost like an animation? This example instantly shows the line - I want the appearance that you’re watching the line being drawn. [COLOR=“Red”]Do you animate the lineTo variable and just keep refreshing?[/COLOR]
My Second Question is - can you do the same with a Bezier curve?
In the end, I’m trying to draw random bezier lines from the left to the right in varying thicknesses and shapes (being able to see them being drawn from left to right).
Any help would be appreciated - thanks everyone.