Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/11/2006, 12:35
Aphrodita
 
Fecha de Ingreso: noviembre-2006
Mensajes: 50
Antigüedad: 17 años, 5 meses
Puntos: 0
Mensaje Cambios de fondo dependiendo del boton

Tengo siete botones, cada uno carga una pelicula diferente, la botonera y el fondo estan en un movie clip de la pelicula principal, ahora bien cuando se presione un boton el fondo cambia. tengo 2 variables(a,b) ke me indican donde estoy y donde voy y 2 movie clips de fondo mc_fondo1, mc_fondo2. Ahora quisiera ke la trancision entre un fondo y otro se hiciera con un alpha de la sig forma if(i<=10){
i++;
mc_fondo1._alpha= 100 - i*10;
mc_fondo2._alpha = i*10;}
podria alguien darme el algoritmo ke debo poner cada vez ke vaya a una etiqueta de la botonera para cambiar los fondos yo tengo esto para la botonera:
bt_arbol.onRelease = function() {
bt_arbol.enabled = false;
bt_quienes.enabled = true;
bt_tempo.enabled = true;
bt_ubica.enabled = true;
bt_campi.enabled = true;
bt_padres.enabled = true;
bt_conta.enabled = true;
b=1
gotoAndPlay("arbol");
};
bt_quienes.onRelease = function() {
bt_arbol.enabled = true;
bt_quienes.enabled = false;
bt_tempo.enabled = true;
bt_ubica.enabled = true;
bt_campi.enabled = true;
bt_padres.enabled = true;
bt_conta.enabled = true;
b=2
gotoAndPlay("quienes");
};
bt_tempo.onRelease = function() {
bt_arbol.enabled = true;
bt_quienes.enabled = true;
bt_tempo.enabled = false;
bt_ubica.enabled = true;
bt_campi.enabled = true;
bt_padres.enabled = true;
bt_conta.enabled = true;
b=3;
gotoAndPlay("temporadas");
};
bt_ubica.onRelease = function() {
bt_arbol.enabled = true;
bt_quienes.enabled = true;
bt_tempo.enabled = true;
bt_ubica.enabled = false;
bt_campi.enabled = true;
bt_padres.enabled = true;
bt_conta.enabled = true;
b=4
gotoAndPlay("ubicacion");
};
bt_campi.onRelease = function() {
bt_arbol.enabled = true;
bt_quienes.enabled = true;
bt_tempo.enabled = true;
bt_ubica.enabled = true;
bt_campi.enabled = false;
bt_padres.enabled = true;
bt_conta.enabled = true;
b=5
gotoAndPlay("campistas");
};
bt_padres.onRelease = function() {
bt_arbol.enabled = true;
bt_quienes.enabled = true;
bt_tempo.enabled = true;
bt_ubica.enabled = true;
bt_campi.enabled = true;
bt_padres.enabled = false;
bt_conta.enabled = true;
bt=6
gotoAndPlay("padres");
};
bt_conta.onRelease = function() {
bt_arbol.enabled = true;
bt_quienes.enabled = true;
bt_tempo.enabled = true;
bt_ubica.enabled = true;
bt_campi.enabled = true;
bt_padres.enabled = true;
bt_conta.enabled = false;
b=7
gotoAndPlay("contacto");
};