the below actionscript is to move my arrow according to the point. but it doesn’t MOVE from point to point. the arrow just jumps from point to point instead of moving according to the line. i also need help with the angle. as in i need the arrow to follow the direction of the line - like if the line goes up, the pointed part of the arrow is facing up. if the line turns right, the pointed part of the arrow is facing right. thankz in advance…
==============================================================
var i:Number = 1;
var xValues:Array = [100,200,220,300,330,370];
var yValues:Array = [100,150,220,300,310,400];
var move_int = setInterval(moveArr,500);
this.createEmptyMovieClip(“line_mc”, 1);
this.attachMovie(“arrowmc”, “arrowmc”, this.getNextHighestDepth());
line_mc.lineStyle(2, 0xFF00FF, 50);
line_mc.moveTo(xValues[0], yValues[0]);
arrowmc._x = xValues[0];
arrowmc._y = yValues[0];
function moveArr(){
if(xValues* == undefined){
clearInterval(move_int);
}else{
line_mc.lineTo(xValues*, yValues*);
arrowmc._x = xValues*;
arrowmc._y = yValues*;
i++;
}
}