hi all,
can anyone help me with thi problem?
I have a movie clip (inst name object) containing another MC (inst name dot).
i want to draw a line from the center point of object to the center point of dot, no problem:
Code:
this.createEmptyMovieClip("line"+clipID, depth);
with (this["line"+clipID]) {
lineStyle(1, 0x000000, 100);
moveTo(0, 0);
lineTo(this.dot._x, this.dot._y);
}
dot is dragable. when you drag it i want the line to resize/redraw to follow dot.
i did have:
Code:
this.onEnterFrame = function() {
this["line"+clipID].lineTo(this.dot._x, this.dot._y)
which worked but drew new lines each time so i ended up with a screen full of lines
I only want one line which streaches to where every dot is.
any suggestions would be great
Ian