**ang = Math.atan2(targety-this._y, targetx-this._x);
this._x += Math.cos(ang)speed;
this._y += Math.sin(ang)speed;
ang = Math.atan2(targety-this._y, targetx-this._x);
ang = Math.atan2(this._y-targety, this._x-targetx);
i got this three scripts from this forum, but i doesnt work as what i want. i trying to implement an object that can move by it self with a (x,y) given. I try to use in a while loop, but i doesnt work and hang there which cause me to abort the script. Any guidelines for moving an object using action script (not by keyboard arrow keys), thanks for reply