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…

0…0


createEmptyMovieClip(“Line”,1);
Line.lineStyle(1,0x000000,100);

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

much appreciated :hugegrin: