Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/04/2012, 17:43
Avatar de Bandit
Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 10 meses
Puntos: 406
Respuesta: remover MC con roll out

Hola mglimas:
Escribe así tu código:
Código actionscript:
Ver original
  1. import flash.events.MouseEvent;
  2.  
  3. rollon_btn.addEventListener(MouseEvent.ROLL_OVER, cargarMC);
  4.  
  5. function cargarMC(e:MouseEvent):void
  6. {
  7.     var miMC:miCaja = new miCaja();
  8.     contenedor.addChild(miMC);
  9.     miMC.x = 25;
  10.     miMC.y = 45;
  11. }
  12.  
  13. rollon_btn.addEventListener(MouseEvent.ROLL_OUT, descargarMC);
  14.  
  15. function descargarMC(e:MouseEvent):void
  16. {
  17.     contenedor.removeChildAt(0);
  18. }
Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/