Giorno a tutti,
sto cercando di applicare questo Prototype.. ad un MC
qual'è l'effetto?
-al passaggio del mouse passa da x-y = 100 ad un valore =400 es.
con andata e ritorno in moto elastico.
ora..
chiedevo se era possibile trasmettere l'effetto al MC al momento dell'apertura ? quindi escludendo il rollOver del mouse..
questo è il codice:
al MC:codice:MovieClip.prototype.elasticScale = function(targt, accel, friction) { this.speed += (targt - this._xscale) * accel; this.speed *= friction; this._xscale = this._yscale += this.speed; }
ciao, graziecodice:onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { this.elasticScale(400, .9, .6) } else { this.elasticScale(100, .6, .5) } }![]()

Rispondi quotando