can someone explain to me the meaning of these few lines
function moveChaser() {
var theta:Number = Math.atan2(tarArray[targetIndex][1] - arrowmc._y, tarArray[targetIndex][0] - arrowmc._x);
arrowmc._rotation = (theta * 180 / Math.PI)+90;
if(Math.abs((tarArray[targetIndex][0]-arrowmc._x)) > 2 || Math.abs((tarArray[targetIndex][1]-arrowmc._y)) > 2){
arrowmc._x += Math.cos(theta) * 3;
arrowmc._y += Math.sin(theta) * 3;
line_mc.lineTo(arrowmc._x , arrowmc._y);
}
if(arrowmc.hitTest(tarArray[targetIndex][0],tarArray[targetIndex][1],false)){
targetIndex++;
}
if(tarArray[targetIndex][0] == undefined){
clearInterval(move_int);
trace(“successful”);
}
updateAfterEvent();
};
thanx alot for the help…