Hi,
I want to make a dragable rope instead of simple line with actionscript.
Here’s my current animation:
wwwdotgreatvectorsdotcom/temp/banner-2.html
Here’s the code that i use to get moving line:
///////////////////////////////////////////////
this.onEnterFrame=function(){
drawLine(sponge_mc);
}
function drawLine(target_mc:MovieClip){
_root.createEmptyMovieClip(“line_mc”, 0);
line_mc.lineStyle(1,0x000000,100);
line_mc.moveTo(target_mc._x+50,target_mc._y+50);
line_mc.lineTo(570,0);
}
///////////////////////////////////////////////
I want this line to be replaced with my own object - vector rope and distort it when i move the object that is connected to one point of it.
Please let me know if this is possible and how to do it.
At least a technique to achieve this?