Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/09/2010, 11:03
worldPeace_Plis
Usuario no validado
 
Fecha de Ingreso: marzo-2007
Mensajes: 238
Antigüedad: 17 años, 2 meses
Puntos: 5
if else no responde

hola amigos estoy batallando con un codigo cuando lo aplico sin if else funciona bien, pero adentro ya no, por que sera???

Código:
if(juegoWeb==false){          ////////// ESTE IF (ya no funciona!
var delayBTNS:Number;
var countBTNS:Number = 1;
var maxCountBTNS:Number = 4;
var durationBTNS:Number = 300;

function executeCallback():Void {
 trace("executeCallback delayBTNS: " + delayBTNS + " countBTNS: " + countBTNS);
 _root['mapa'+countBTNS+'_mc'].gotoAndPlay(2);
 if(countBTNS >= maxCountBTNS) {
 clearInterval(delayBTNS);
 } 
 countBTNS++;
}

delayBTNS = setInterval(this, "executeCallback", durationBTNS);

} else { /////////// TAMPOCO ESTE

r1_conGuia_btn.onRollOver = function () { mapa1_mc.gotoAndPlay(2); }
r1_sinGuia_btn.onRollOver = function () { mapa2_mc.gotoAndPlay(2); }
r2_conGuia_btn.onRollOver = function () { mapa3_mc.gotoAndPlay(2); }
r2_sinGuia_btn.onRollOver = function () { mapa4_mc.gotoAndPlay(2); }
//
r1_conGuia_btn.onRollOut = r1_conGuia_btn.onReleaseOutside = function () { mapa1_mc.gotoAndPlay(1); }
r1_sinGuia_btn.onRollOut = r1_sinGuia_btn.onReleaseOutside = function () { mapa2_mc.gotoAndPlay(1); }
r2_conGuia_btn.onRollOut = r2_conGuia_btn.onReleaseOutside = function () { mapa3_mc.gotoAndPlay(1); }
r2_sinGuia_btn.onRollOut = r2_sinGuia_btn.onReleaseOutside = function () { mapa4_mc.gotoAndPlay(1); }

}