Ver Mensaje Individual
  #4 (permalink)  
Antiguo 16/12/2009, 13:21
Avatar de Bandit
Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 21 años, 7 meses
Puntos: 406
Respuesta: Over a la inversa

Hola midlox:
Tu botón hazlo dentro de un MC con una Interpolación de movimiento en 10 frames donde va creciendo.
EL MC lo pones en el escenario en la Capa 1 frame 1 y le colocas como nombre de instancia: btn.
En la capa 2 frame 1 escribe éste código:
Código:
function forward() { 
   this.onEnterFrame = function() { 
      this.nextFrame(); 
      if (this._currentframe == this._totalframes) { 
         delete this.onEnterFrame; 
      } 
   }; 
} 
function reverse() { 
   this.onEnterFrame = function() { 
      this.prevFrame(); 
      if (this._currentframe == 1) { 
         delete this.onEnterFrame; 
      } 
   }; 
} 
// 
btn.stop(); 
btn.onRollOver = forward; 
btn.onRollOut = reverse;
Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/