besides
[Previous entry: "linestudy"] [Main Index] [Next entry: "giftwrapped"]
03/28/2003 Entry: "linestudy again"

There might be a more efficient way, but its working, finally. You could simply copy the next lines of code and paste them in the first frame of a completely empty movie and it should work.

for(i=30;i<370;i=i+3){

_root.createEmptyMovieClip("mc"+i, i);
mc=_root["mc"+i];
mc.moveTo(30, i);
mc.lineStyle(0, 0x000000);
mc.curveTo(i, i, 370, i);

	mc.ty=i;
mc.k=2;
mc.damp=.92;
mc.x1=30;
mc.x2=370;
mc.vy = 0;


mc.onRollOver = function(){
this.newy = this.ty - 20;
this.onEnterFrame = function(){
this.ay = (this.ty-this.newy)*this.k;
this.vy += this.ay;
this.vy *= this.damp;
this.newy += this.vy;
this.clear();
this.moveTo(this.x1,this.ty);
this.lineStyle(0, 0x000000);
this.curveTo(_xmouse, this.newy, this.x2, this.ty);
}
}
}

Powered By Greymatter