# Dot to dot!

**URL:** <https://forum.kirupa.com/t/dot-to-dot/288883>\
**Category:** Uncategorized\
**Created:** [May 22, 2009, 11:57am UTC](https://forum.kirupa.com/t/dot-to-dot/288883 "2009-05-22T11:57:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rocket45](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@rocket45](https://forum.kirupa.com/u/rocket45)\
**Post date:** [May 22, 2009, 11:57am UTC](https://forum.kirupa.com/t/dot-to-dot/288883/1 "2009-05-22T11:57:20Z")

</div>

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:
