init(s)
private function init():void
{
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
}
move(s)
private function onMouseMove(event:MouseEvent):void
{
x1 = mouseX;
y1 = mouseY;
graphics.clear();
graphics.lineStyle(1);
graphics.moveTo(x0, y0);
graphics.curveTo(x1, y1, x2, y2);
}
}
}