aquí esta el codigo que he utilizado:
Código :
boton1.onRelease = function(){
//si el submenu esta cerrado se ejecutan estas acciones
if(abierto == 0 ){
menu1.tween("_y", -90,1.5,"easeOutCubic");
menu2.tween("_y", - 414,1.5,"easeOutCubic");
menu3.tween("_y", - 283,1.5,"easeOutCubic");
abierto = 1;
trace (abierto)
//si no se ejecutan estas otras
}else if(abierto == 1){
menu1.tween("_y", - 424,1.5,"easeOutCubic");
abierto = 0;
trace (abierto)
}
}
boton2.onRelease = function(){
if(abierto == 0 ){
menu2.tween("_y", -106,1.5,"easeOutCubic");
menu1.tween("_y", - 424,1.5,"easeOutCubic");
menu3.tween("_y", - 283,1.5,"easeOutCubic");
abierto = 1;
trace (abierto)
}else if(abierto == 1){
menu2.tween("_y", - 414,1.5,"easeOutCubic");
abierto = 0;
trace (abierto)
}
}
boton3.onRelease = function(){
if(abierto == 0 ){
menu2.tween("_y", -414,1.5,"easeOutCubic");
menu1.tween("_y", - 424,1.5,"easeOutCubic");
_root.web_mc.gotoAndStop(4);
abierto = 1;
trace (abierto)
}else if(abierto == 0){
abierto = 0;
trace (abierto)
}
}
Ya he probado poniendole variables diferentes a cada botón y nada.
¿alguen me puede ayudar?
muchas gracias.
