You have cos and sin mixed up and I am not sure why you need so several angle variables.
PHP Code:var angle = -45;
arrow1.onEnterFrame = function () {
var speed = 5;
angle += 1;
this._x += speed * Math.cos (angle * Math.PI / 180);
this._y += speed * Math.sin (angle * Math.PI / 180);
this._rotation = angle;
};




Reply With Quote