I’m sure this is pretty simple but can’t figure it out.
I want to set a point to start my line from and have the other end of the line follow my mouse. Here’s what I have so far:
var clip:Shape = new Shape()
addChild(clip);
stage.addEventListener(MouseEvent.MOUSE_MOVE, drawLine);
function drawLine(evt:MouseEvent)
{
clip.graphics.moveTo(0,0);
clip.graphics.lineTo(mouseX, mouseY);
clip.graphics.lineStyle(1, 0xff9933);
}
but it’s constantly drawing the line due to my mouse_move listener.
I only want one line on stage - know what I mean? :panda: