# lineTo Experiments

**URL:** https://forum.kirupa.com/t/lineto-experiments/216581
**Category:** Uncategorized
**Created:** [February 18, 2007, 1:24pm UTC](https://forum.kirupa.com/t/lineto-experiments/216581 "2007-02-18T13:24:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Macsy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/macsy/32/3238_2.png) [@Macsy](https://forum.kirupa.com/u/Macsy)
#### Post date: [February 18, 2007, 1:24pm UTC](https://forum.kirupa.com/t/lineto-experiments/216581/1 "2007-02-18T13:24:38Z")

</div>

Hi. Im playing with the lineTo and Curve to…  
This code gets a nice effect but seems to lag the computer. Dont know why, please check it out…  
k = 1  
onEnterFrame = function () {  
for (i=0; i\<30; i++) {  
this.createEmptyMovieClip([“line”+i], this.getNextHighestDepth());  
k++  
\_root[“line”+i].clear()  
\_root[“line”+i].lineStyle(1, 0x000000);  
\_root[“line”+i].moveTo(k/100_i, k/10_i);  
\_root[“line”+i].lineTo(550, 0);  
trace (k)  
if (k\>1000){  
k= 1  
}

```
}

```

};

And, If i have a move Clip, that i want a line to curveTo, how do i make that? Lets say i have a straight over the scene, and i want it to be curved at to the movieclip… How do i make the bending?
