# Dot to Dot

**URL:** <https://forum.kirupa.com/t/dot-to-dot/176209>\
**Category:** flash\
**Created:** [January 21, 2006, 5:23pm UTC](https://forum.kirupa.com/t/dot-to-dot/176209 "2006-01-21T17:23:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![coop](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@coop](https://forum.kirupa.com/u/coop)\
**Post date:** [January 21, 2006, 5:23pm UTC](https://forum.kirupa.com/t/dot-to-dot/176209/1 "2006-01-21T17:23:07Z")

</div>

Hi all,

I’m trying to produce a movie where a line draws between the dots, like a join the dots game. At the moment I’m using a loop with API which works fine but you carn’t see the line drawing. What a really need is way to draw the line between the dots without using tweens, cos I got a lot of them to do.

```auto

var theDepth = 1;
this.createEmptyMovieClip("line_mc", theDepth);
line_mc.lineStyle(0, 0x000000, 70);
line_mc.moveTo(eval("dc"+theDepth+"_mc")._x, eval("dc"+theDepth+"_mc")._y);
for (i=theDepth; i<=5; i++) {
	line_mc.lineTo(eval("dc"+i+"_mc")._x, eval("dc"+i+"_mc")._y);
}

```
