map.onPress = function() { var tempX = Stage.width / 2 - _xmouse; var tempY = Stage.height / 2 - _ymouse; this._x += tempX; this._y += tempY; };