codice:onClipEvent(load){ this.x = this._x; this.y = this._y; } onClipEvent(enterFrame){ if(this.sopra){ if(this.trema){ this._x += Math.round(Math.random() * 2) - 1; this._y += Math.round(Math.random() * 2) - 1; } else { this._x = this.x; this._y = this.y; } this.trema = !this.trema } } onClipEvent(mouseMove){ if(this.hitTest(_root._xmouse, _root._ymouse, true)){ this.sopra = true; } else { this.sopra = false; } }