Clicca sulla foto e premi F8 così la trasformi in un Mc e poi gli assegni quest'action:
codice:onClipEvent (load) { this.x = this._x; this.y = this._y; } onClipEvent (enterFrame) { if (this.trema) { this._x = this._x + (Math.round(Math.random() * 2) - 3); this._y = this._y + (Math.round(Math.random() * 4) - 4); } else { this._x = this.x; this._y = this.y; } // end if this.trema = !this.trema; }



Rispondi quotando