Dot to dot!

Hi, i have this code already, but just wanted to ask on how to write the codes if there are two dots circles, when the mouse rolls over the first dot the line starts to draw, when the line it hits the next dot the drawing finishes. Looking like the below rough drawing…



    Line.moveTo(_xmouse, _ymouse);
     onMouseMove = function (){
     Line.lineTo(_xmouse, _ymouse);

much appreciated :hugegrin: