Comunidad de diseño web y desarrollo en internet online

Ayuda con Atachmovie

Citar            
MensajeEscrito el 12 Nov 2009 02:06 am
Tengo un problema para cerrar un MC , tengo el siguiente codigo

Código ActionScript :

_root.boton_galeria.onRelease = function() { 
   attachMovie("galeria", "gal", this.getNextHighestDepth()); 
   gal._x = Stage.width/2; 
   gal._y = Stage.height/2; 


al apretar el "boton_galeria" se carga bien el MC, este boton carga un MC que tiene dentro de si un boton para cerrar , pero no logro hacer para que cierre el "gal"
Lo hago con esto

Código ActionScript :

_root.galeria.cerrar_gal.onRelease = function() {
 removeMovieClip("gal");
}


pero no me funciona , ayuda porfa

Por dj_clown

15 de clabLevel



 

firefox
Citar            
MensajeEscrito el 12 Nov 2009 12:08 pm
Ya que usas tanto root (cosa desaconsejable pero bueno), porqué no haces _root.attachMovie... y _root.removeMovieClip...

Por ur!

256 de clabLevel



 

Barcelona

chrome

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.