Ver Mensaje Individual
  #5 (permalink)  
Antiguo 20/01/2007, 13:06
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
Re: boton que vuelve a su sitio al presionar otro

Hola macfarrut:
Vamos con un ejemplo suponiendo que tus 4 botones están en la coordenada x = 50 y al hacer clic a cada uno de ellos retroceda 10 píxeles a la izquierda y al activar cualquiera de ellos regrese a su inicio el que desplazó.
Aquí utilicé el mismo nombre de instancia de tus botones.
Código:
boton1_btn.onRelease = function(){
if(boton1_btn._x <= 50){
boton1_btn._x = 40;
boton2_btn._x = 50;
boton3_btn._x = 50;
boton4_btn._x = 50;
}
}
boton2_btn.onRelease = function(){
if(boton2_btn._x <= 50){
boton2_btn._x = 40;
boton1_btn._x = 50;
boton3_btn._x = 50;
boton4_btn._x = 50;
}
}
boton3_btn.onRelease = function(){
if(boton3_btn._x <= 50){
boton3_btn._x = 40;
boton1_btn._x = 50;
boton2_btn._x = 50;
boton4_btn._x = 50;
}
}
boton4_btn.onRelease = function(){
if(boton4_btn._x <= 50){
boton4_btn._x = 40;
boton1_btn._x = 50;
boton2_btn._x = 50;
boton3_btn._x = 50;
}
}

Las coordenadas ya tú la modificas a tus necesidades.

Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/