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/100i, k/10i);
_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?