codice:onClipEvent (load) { this._x = 175; this._y = 175; this.x = this._x; this.y = this._y; this.x_fin = this._x; this.y_fin = this._y; this.drag = false; this.diff_x = 0; this.diff_y = 0; } onClipEvent (enterFrame) { if (!this.drag) { this.diff_x = (this.diff_x + ((this.x_fin - this.x) / 20)) / 1.1; this.diff_y = (this.diff_y + ((this.y_fin - this.y) / 20)) / 1.1; this.x += diff_x; this.y += diff_y; this._x = this.x; this._y = this.y; if (this.y >= 310) { this.y = 310; } } } onClipEvent (mouseDown) { if (this.hitTest(_root._xmouse, _root._ymouse)) { this.drag = true; startDrag(this, true); } } onClipEvent (mouseUp) { this.x = this._x; this.y = this._y; this.drag = false; stopDrag(); }