Ver Mensaje Individual
  #1 (permalink)  
Antiguo 31/12/2007, 16:59
usuaria
 
Fecha de Ingreso: marzo-2007
Mensajes: 302
Antigüedad: 17 años, 1 mes
Puntos: 2
Pregunta como distingo con action q boton se seleeciono?

ESTE ES MI CODIGO

with(botonera){
boton1.onRelease = function(){
boton2.enabled = boton3.enabled = boton4.enabled = true;
this.enabled =false;
if(this.enabled==false) this.gotoAndStop("_seleccion");
}

boton2.onRelease = function(){
this.enabled =false;
boton3.enabled = boton4.enabled = boton1.enabled = true;
if(this.enabled==false) this.gotoAndStop("_seleccion");
}

boton3.onRelease = function(){
this.enabled =false;
boton1.enabled = boton2.enabled = boton4.enabled = true;
if(this.enabled==false) this.gotoAndStop("_seleccion");
}

boton4.onRelease = function(){
this.enabled =false;
boton1.enabled = boton2.enabled = boton3.enabled = true;
if(this.enabled==false) this.gotoAndStop("_seleccion");
}
}


dos preguntas:
1)puedo resumir todo ese codigo con algun ciclo o algo..porq no se me ocurre.
2) con esta linea if(this.enabled==false) this.gotoAndStop("_seleccion"); logro destacar el boton seleccionado pero mi problema es como hacer que vuelva a su estado normal cuando selecciono otro.

grax! :)