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); } }