Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/06/2012, 10:58
Avatar de Bandit
Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 9 meses
Puntos: 406
Respuesta: Como hacer un OnClipEvent en AS3 Supernovato

Hola parose:
Bienvenido al Foro.
Aquí tienes un ejemplo para mover el MC:
Código actionscript:
Ver original
  1. import flash.events.MouseEvent;
  2.  
  3. boton_mc.buttonMode = true;
  4. boton_mc.addEventListener(MouseEvent.CLICK, activar);
  5. function activar(evento:MouseEvent):void
  6. {
  7.     stage.addEventListener(Event.ENTER_FRAME, mover);
  8. }
  9. function mover(event:Event):void
  10. {
  11.     if (clip_mc.y >= 93.80)
  12.     {
  13.         clip_mc.y -=  10;
  14.     }
  15. }
Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/