myClip.vector = new Vector2D(10,0); myClip.onEnterFrame = function(){ this._x += this.vector.x; this._y += this.vector.y; }