# Drawing Curves like Spline chart

**URL:** <https://forum.kirupa.com/t/drawing-curves-like-spline-chart/316556>\
**Category:** flash\
**Created:** [November 25, 2010, 1:20pm UTC](https://forum.kirupa.com/t/drawing-curves-like-spline-chart/316556 "2010-11-25T13:20:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![black\_pearl](https://avatars.discourse-cdn.com/v4/letter/b/aeb1de/32.png) [@black\_pearl](https://forum.kirupa.com/u/black_pearl)\
**Post date:** [November 25, 2010, 1:20pm UTC](https://forum.kirupa.com/t/drawing-curves-like-spline-chart/316556/1 "2010-11-25T13:20:23Z")

</div>

I have five dots(MovieClips) in my stage. I want to draw a curve which should touch all the five dots. The x position of dots are incremented by 50 px and y position is random.

I can do this using lineTo. But it has not got any curve effect.

Here is the code using lineTo

```auto
_root.createEmptyMovieClip("circle",1);
with (_root.circle) {
        clear();
        lineStyle(4,0x0000FF,100);
        moveTo(this.points_mc["Circ_mc"+0]._x,this.points_mc["Circ_mc"+0]._y);
        for (var i:Number = 0; i<5; i++) {
            lineTo(this.points_mc["Circ_mc"+i]._x,this.points_mc["Circ_mc"+i]._y);
            moveTo(this.points_mc["Circ_mc"+i]._x,this.points_mc["Circ_mc"+i]._y);
        }
}

```

I tried curveTo to achieve this. But it is not working.

Please let me know if I am not clear.
