Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/03/2010, 23:20
juandedios
 
Fecha de Ingreso: mayo-2003
Ubicación: Lima
Mensajes: 967
Antigüedad: 21 años
Puntos: 8
Respuesta: Uso del tween con AS3

Código AS3:
Ver original
  1. import fl.transitions.*;
  2. import fl.transitions.easing.*;
  3.  
  4. stop();
  5.  
  6. conMenu.menuNosotros.Nosotros.addEventListener(MouseEvent.CLICK, verContenido);
  7. Logo.btnLogo.addEventListener(MouseEvent.CLICK, Volver);
  8.  
  9. function verContenido(e:MouseEvent):void {
  10.     var mover:Tween = new Tween(conMenu,"y",Strong.easeInOut, conMenu.y, -126, 2, true);
  11.     Contenido.gotoAndPlay(2);
  12. }
  13.  
  14. function Volver(e:MouseEvent):void {
  15.     Contenido.gotoAndPlay(1);
  16.     var mover:Tween = new Tween(conMenu,"y",Strong.easeInOut, conMenu.y, 150, 2, true);
  17. }
Ahi esta mi codigo
__________________
El aprendiz.