Hi,
I'm not very clear on what your trying to achieve, but it sounds like something from one destination to another on a map. The drawing API can be used on the main timeline or inside a movieclip. If used inside a movieclip, you have more control as you can manipulate the holder movieclips properties. The lineTo method can also be used in conjuction with movieclips and not be a movieclip object. Here is a function for dynamically drawing a line between two movieclips. This might be useful for drawing a line from a starting destination movieclip to an ending destination movieclip. It currently allows for the clips to be dragged and the line auto updates, but you could refine that to suit your needs...
Code:
function makeLine(name, depth, lineSize, color, alpha, posA, posB) {
this.createEmptyMovieClip(name, depth);
with (this[name]) {
lineStyle(lineSize, color, alpha);
moveTo(_root[posA]._x, _root[posA]._y);
lineTo(_root[posB]._x, _root[posB]._y);
}
}
_root.onEnterFrame = function() {
makeLine("line", 1, 2, "0xFF0000", 100, "mc1", "mc2");
}
_root.MC2.onPress = function() {
startDrag("MC2");
}
_root.MC2.onRelease = function() {
stopDrag();
}
Bookmarks