Código ActionScript :
var activo:Number = 0;
//-------------------------------------------El RollOver-----------------------
btn_eventos.onRollOver=function(){
this.gotoAndPlay("over");
}
btn_formularios.onRollOver=function(){
this.gotoAndPlay("over");
}
btn_centro.onRollOver=function(){
this.gotoAndPlay("over");
}
//-------------------------------------------El RollOut-----------------------
btn_eventos.onRollOut = function(){
if(activo == 1){
this.gotoAndPlay("on");
}else{
this.gotoAndPlay("out");
}
}
btn_contacto.onRollOut = function(){
if(activo == 1){
this.gotoAndPlay("on");
}else{
this.gotoAndPlay("out");
}
}
btn_formularios.onRollOut = function(){
if(activo == 1){
this.gotoAndPlay("on");
}else{
this.gotoAndPlay("out");
}
}
//-------------------------------------------El Release----------------------
btn_eventos.onRelease = function(){
_root.picture_load("eventos.swf");
this.gotoAndPlay("press");
this.enabled=false;
btn_contacto.enabled=true;
btn_contacto.gotoAndStop("off");
btn_formularios.enabled=true;
btn_formularios.gotoAndStop("off");
}
btn_formularios.onRelease = function(){
_root.picture_load("formularios.swf");
this.gotoAndPlay("press");
this.enabled=false;
btn_eventos.enabled=true;
btn_eventos.gotoAndStop("off");
btn_contacto.enabled=true;
btn_contacto.gotoAndStop("off");
}
btn_contacto.onRelease = function(){
_root.picture_load("contacto.swf");
this.gotoAndPlay("press");
this.enabled=false;
btn_eventos.enabled=true;
btn_eventos.gotoAndStop("off");
btn_formularios.enabled=true;
btn_formularios.gotoAndStop("off");
}
Pues bien, ocurre algo sumamente extraño, que llevo días pensándolo y revisándolo y no doy con el error. Veréis (es un menú de 7 opciones, yo solo he puesto 3 para no alargar) ...
PROBLEMA: Cuándo yo hago el release en cualquier botón y luego lo hago en formularios, todo se ejecuta correctamente, el problema está en que si hago release en contacto y luego quiero ir a formularios y clickeo en dicho botón, que mi peli formularios.swf, no entra. Sólo me ocurre después de pulsar el boton contacto, después de cualquiera de las 7 opciones que tengo, no ocurre, sólo con ella.
¿Alguién tiene alguna idea del porqué? Pq por más que reviso el code no doy con ningún error, y es bastante raro éso... Agradezco cualquier orientación sobre lo que puede ocurrir, ya que no tengo ni la más remota idea.
Gracias de antemano.
