Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/08/2004, 18:08
Avatar de angst
angst
 
Fecha de Ingreso: diciembre-2003
Ubicación: chile
Mensajes: 74
Antigüedad: 20 años, 4 meses
Puntos: 0
Exclamación Sin lograr efecto elastico

Ojalá alguien me ayude

Quiero realizar el efecto elástico, pero no en un roll over, o que se lleve a cabo al darle clic en un botón. Esto es lo que tengo:

FUNCION EN EL PRIMER FRAME

Movieclip.prototype.elasticScale = function(target, accel, convert) {
xScale = xScale * accel + (target - this._xscale) * convert
yScale = yScale * accel + (target - this._yscale) * convert
this._xscale += xScale
this._yscale += yScale
}

ACCION EN MOVIE CLIP

onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
elasticScale(150, 0.9, 0.1)
} else {
elasticScale(100, 0.9, 0.1)
}
}


LO QUE QUIERO ES QUE CUANDO LLEGUE A UN FOTOGRAMA EL MOVIE CLIP ADQUIERA EL EFECTO ELÁSTICO POR SI SOLO. NO COMO LO QUE SE LOGRA CON EL CÓDIGO QUE INDICO ARRIBA, PUES ES UN ROLL OVER... CREO.

Ojalá me entiendan... espero respuesta.

Última edición por angst; 09/08/2004 a las 20:30