oh wow, nice one thanks.

just for anyone that don't know (like i used to not! hehe) i'll post the code which also makes this MC move in direction of the second one, also integrating LeechMasterB's code (with anotations)(this is all in the movieclip of "objectA"):

Code:

onClipEvent(load){
dirX = this._x - _root.objectB._x;
dirY = this._y - _root.objectB._y;
acc_x = 0;
acc_y = 0;
vel_x = 0;
vel_y = 0;
}

Code:

onClipEvent(enterFrame){
//using math the find where object should be pointing. using the dirX, dirY in the load.
var rotation_angle = Math.round(Math.atan2(-dirX, dirY)/Math.PI*180);
_rotation = rotation_angle-90; //pointing object in that direction.
acc_x = Math.cos((Math.PI*this._rotation)/180);//defining two values to
acc_y = Math.sin((Math.PI*this._rotation)/180);//add a speed to, to make it move.
vel_x += acc_x/10;//adding speed
vel_y += acc_y/10;//to it
this._x += vel_x;//finally making
this._y += vel_y;//the object move.
}

if there's any better ways to do this, please feel free to post other ways

thankyou LeechMasterB