Frame 1
onEnterFrame = function () {
if (getBytesLoaded() >= getBytesTotal()) {
gotoAndStop (2);
} else {
Barra._xscale = (100 * getBytesLoaded()) / getBytesTotal();
}
};
Frame 2
function AgregarObjeto(etiqueta) {
var _local1;
var _local2;
_local2 = -1;
_local1 = 0;
while (_local1 < menu_mc.items.length) {
if (menu_mc.items[_local1].label == etiqueta) {
_local2 = _local1;
}
_local1++;
}
if (_local2 > -1) {
menu_mc.items[_local2].visible = true;
menu_mc.Actualizar();
Dirty = true;
}
}
function EliminarObjeto(etiqueta) {
var _local1;
var _local2;
_local2 = -1;
_local1 = 0;
while (_local1 < menu_mc.items.length) {
if (menu_mc.items[_local1].label == etiqueta) {
_local2 = _local1;
}
_local1++;
}
if (_local2 > -1) {
menu_mc.items[_local2].visible = false;
menu_mc.Deseleccionar();
menu_mc.Actualizar();
Dirty = true;
}
}
function NiObjetoNiMenu() {
if ((Objeto == null) && (Inventario._visible == false)) {
return(true);
}
return(false);
}
function TraducirObjeto(entrada) {
var _local1;
switch (entrada) {
case "Pila2" :
_local1 = "Pila";
break;
case "Pila3" :
_local1 = "Pila";
break;
case "Bateria1" :
_local1 = "Bateria";
break;
case "Bateria2" :
_local1 = "Bateria";
break;
case "Bateria3" :
_local1 = "Bateria";
break;
case "Bateria4" :
_local1 = "Bateria";
break;
case "LlaveL1" :
_local1 = "LlaveL";
break;
default :
_local1 = entrada;
}
return(_local1);
}
function generarLetras() {
var _local3 = new Array();
var _local5 = new Array();
var _local7 = [0, 0, 0, 0, 0, 0, 0];
var _local6 = [6, 1, 2, 4];
_local3[0] = ["A", "B", "C", "D", "E", "F", "G"];
_local3[1] = ["X", "X", "X", "X", "X", "X", "X"];
_local3[2] = ["X", "X", "X", "X", "X", "X", "X"];
_local3[3] = ["X", "X", "X", "X", "X", "X", "X"];
var _local4;
var _local1;
var _local2;
h = 0;
while (h < 4) {
_local4 = Math.floor(Math.random() * (6 - h));
_local2 = 0;
_local1 = 0;
while (_local1 < (6 - h)) {
if (_local1 != _local4) {
_local3[h + 1][_local2] = _local3[h][_local1];
_local2 = _local2 + 1;
}
_local1++;
}
_local5[h] = _local3[h][_local4];
h++;
}
Letra1 = _local5[0];
Letra2 = _local5[1];
Letra3 = _local5[2];
Letra4 = _local5[3];
_local3[0] = ["C", "D", "E", "F", "G", "A", "B"];
_local2 = 0;
while (_local2 < 4) {
_local1 = 0;
while (_local1 < 7) {
if (_local5[_local2] == _local3[0][_local1]) {
Combinacion[_local1] = _local6[_local2];
}
_local1++;
}
_local2++;
}
}
function generarColores() {
var _local3 = new Array();
var _local5 = new Array();
var _local4;
var _local1;
var _local2;
_local3[0] = [1, 2, 3, 4, 5, 6];
_local1 = 1;
while (_local1 < 6) {
_local3[_local1] = [0, 0, 0, 0, 0, 0];
_local1++;
}
h = 0;
while (h < 6) {
_local4 = Math.floor(Math.random() * (6 - h));
_local2 = 0;
_local1 = 0;
while (_local1 < (6 - h)) {
if (_local1 != _local4) {
_local3[h + 1][_local2] = _local3[h][_local1];
_local2 = _local2 + 1;
}
_local1++;
}
_local5[h] = _local3[h][_local4];
h++;
}
OrdenColores = _local5;
}
function generarEQ() {
var _local1;
_local1 = 0;
while (_local1 < 5) {
ValoresEQ[_local1] = Math.floor(Math.random() * 7);
_local1++;
}
ValoresEQ[1] = Math.floor(Math.random() * 3);
ValoresEQ[3] = Math.floor(Math.random() * 3);
}
function TraducirEQ() {
var _local3 = ["100", "300", "14", "34", "104"];
var _local1 = "";
var _local2;
_local2 = 0;
while (_local2 < 5) {
_local1 = _local1 + _local3[_local2];
switch (ValoresEQ[_local2]) {
case 0 :
_local1 = _local1 + "-3";
break;
case 1 :
_local1 = _local1 + "-2";
break;
case 2 :
_local1 = _local1 + "-1";
break;
case 3 :
_local1 = _local1 + "0";
break;
case 4 :
_local1 = _local1 + "1";
break;
case 5 :
_local1 = _local1 + "2";
break;
case 6 :
_local1 = _local1 + "3";
}
_local2++;
}
return(_local1);
}
function generarCombinacion3() {
var _local3 = new Array();
var _local4 = new Array();
var _local5;
var _local1;
var _local2;
_local3[0] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
_local1 = 1;
while (_local1 < 16) {
_local3[_local1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_local1++;
}
h = 0;
while (h < 8) {
_local5 = Math.floor(Math.random() * (16 - h));
_local2 = 0;
_local1 = 0;
while (_local1 < (16 - h)) {
if (_local1 != _local5) {
_local3[h + 1][_local2] = _local3[h][_local1];
_local2 = _local2 + 1;
}
_local1++;
}
_local4[h] = _local3[h][_local5];
h++;
}
_local1 = 0;
while (_local1 < 8) {
Combinacion3[_local4[_local1]] = true;
Combinacion3a[_local1] = TC31(_local4[_local1]);
Combinacion3b[_local1] = TC32(_local4[_local1]);
_local1++;
}
}
function TC31(n) {
var _local1;
switch (n) {
case 0 :
_local1 = "a";
break;
case 1 :
_local1 = "b";
break;
case 2 :
_local1 = "c";
break;
case 3 :
_local1 = "d";
break;
case 4 :
_local1 = "a";
break;
case 5 :
_local1 = "b";
break;
case 6 :
_local1 = "c";
break;
case 7 :
_local1 = "d";
break;
case 8 :
_local1 = "a";
break;
case 9 :
_local1 = "b";
break;
case 10 :
_local1 = "c";
break;
case 11 :
_local1 = "d";
break;
case 12 :
_local1 = "a";
break;
case 13 :
_local1 = "b";
break;
case 14 :
_local1 = "c";
break;
case 15 :
_local1 = "d";
}
return(_local1);
}
function TC32(n) {
var _local1;
switch (n) {
case 0 :
_local1 = "1";
break;
case 1 :
_local1 = "1";
break;
case 2 :
_local1 = "1";
break;
case 3 :
_local1 = "1";
break;
case 4 :
_local1 = "2";
break;
case 5 :
_local1 = "2";
break;
case 6 :
_local1 = "2";
break;
case 7 :
_local1 = "2";
break;
case 8 :
_local1 = "3";
break;
case 9 :
_local1 = "3";
break;
case 10 :
_local1 = "3";
break;
case 11 :
_local1 = "3";
break;
case 12 :
_local1 = "4";
break;
case 13 :
_local1 = "4";
break;
case 14 :
_local1 = "4";
break;
case 15 :
_local1 = "4";
}
return(_local1);
}
function NuevaPartida() {
MedidorUV = 0;
MedidorLaser = 0;
Bulones = 0;
Combi1 = Math.floor(Math.random() * 60);
Combi2 = Math.floor(Math.random() * 60);
Combi3 = Math.floor(Math.random() * 60);
Combi4 = Math.floor(Math.random() * 60);
TextoLaser = ((((String(Combi1) + "R") + String(Combi2)) + "LXXR") + String(Combi4)) + "L";
TextoPista = "XX = " + String(Combi3);
generarLetras();
generarColores();
generarEQ();
generarCombinacion3();
Combinacion3b0 = ("GO=" + Combinacion3a[0]) + Combinacion3b[2];
Combinacion3b1 = ("OD=" + Combinacion3a[3]) + Combinacion3b[0];
Combinacion3b2 = ("LU=" + Combinacion3a[1]) + Combinacion3b[3];
Combinacion3b3 = ("CK=" + Combinacion3a[2]) + Combinacion3b[1];
Combinacion3b4 = Combinacion3a[4] + Combinacion3b[4];
Combinacion3b5 = Combinacion3a[5] + Combinacion3b[5];
Combinacion3b6 = Combinacion3a[6] + Combinacion3b[6];
Combinacion3b7 = Combinacion3a[7] + Combinacion3b[7];
var _local1 = new Date();
}
function CargarPartida() {
var _local1 = SharedObject.getLocal(identificador);
if (_local1.data.ver == "1.0") {
e1._visible = _local1.data.e1visible;
e2._visible = _local1.data.e2visible;
e1a._visible = _local1.data.e1avisible;
e3._visible = _local1.data.e3visible;
e4._visible = _local1.data.e4visible;
e5._visible = _local1.data.e5visible;
e6._visible = _local1.data.e6visible;
e7._visible = _local1.data.e7visible;
e7a._visible = _local1.data.e7avisible;
e7b._visible = _local1.data.e7bvisible;
e7c._visible = _local1.data.e7cvisible;
e7x._visible = _local1.data.e7xvisible;
e8._visible = _local1.data.e8visible;
e8a._visible = _local1.data.e8avisible;
e9._visible = _local1.data.e9visible;
e10._visible = _local1.data.e10visible;
e10a._visible = _local1.data.e10avisible;
e11._visible = _local1.data.e11visible;
e11a._visible = _local1.data.e11avisible;
e11b._visible = _local1.data.e11bvisible;
e12._visible = _local1.data.e12visible;
e12a._visible = _local1.data.e12avisible;
e13._visible = _local1.data.e13visible;
e14._visible = _local1.data.e14visible;
e15._visible = _local1.data.e15visible;
e17._visible = _local1.data.e17visible;
e18._visible = _local1.data.e18visible;
TheEnd._visible = _local1.data.TheEndvisible;
CurValoresEQ = _local1.data.CurValoresEQ;
MedidorUV = _local1.data.MedidorUV;
MedidorLaser = _local1.data.MedidorLaser;
Bulones = _local1.data.Bulones;
Combi1 = _local1.data.Combi1;
Combi2 = _local1.data.Combi2;
Combi3 = _local1.data.Combi3;
Combi4 = _local1.data.Combi4;
TextoLaser1 = _local1.data.TextoLaser1;
TextoPista = _local1.data.TextoPista;
Letra1 = _local1.data.Letra1;
Letra2 = _local1.data.Letra2;
Letra3 = _local1.data.Letra3;
Letra4 = _local1.data.Letra4;
Combinacion = _local1.data.Combinacion;
CurCombinacion = _local1.data.CurCombinacion;
OrdenColores = _local1.data.OrdenColores;
ValoresEQ = _local1.data.ValoresEQ;
TextoLaser2 = _local1.data.TextoLaser2;
TextoLaser = _local1.data.TextoLaser;
Combinacion3 = _local1.data.Combinacion3;
CurCombinacion3 = _local1.data.CurCombinacion3;
Combinacion3a = _local1.data.Combinacion3a;
Combinacion3b = _local1.data.Combinacion3b;
Combinacion3b0 = _local1.data.Combinacion3b0;
Combinacion3b1 = _local1.data.Combinacion3b1;
Combinacion3b2 = _local1.data.Combinacion3b2;
Combinacion3b3 = _local1.data.Combinacion3b3;
Combinacion3b4 = _local1.data.Combinacion3b4;
Combinacion3b5 = _local1.data.Combinacion3b5;
Combinacion3b6 = _local1.data.Combinacion3b6;
Combinacion3b7 = _local1.data.Combinacion3b7;
flag0 = _local1.data.flag0;
flagBateria1Agarrada = _local1.data.flagBateria1Agarrada;
flagBateria2Agarrada = _local1.data.flagBateria2Agarrada;
flagBateria3Agarrada = _local1.data.flagBateria3Agarrada;
flagBateria4Agarrada = _local1.data.flagBateria4Agarrada;
flagBroche1Abierto = _local1.data.flagBroche1Abierto;
flagBroche2Abierto = _local1.data.flagBroche2Abierto;
flagBulone13 = _local1.data.flagBulone13;
flagBulone13Atras = _local1.data.flagBulone13Atras;
flagBulone14 = _local1.data.flagBulone14;
flagBulone14Atras = _local1.data.flagBulone14Atras;
flagCaja1Abierta = _local1.data.flagCaja1Abierta;
flagCaja2Abierta = _local1.data.flagCaja2Abierta;
flagCaja3Abierta = _local1.data.flagCaja3Abierta;
flagCajaFuerteAbierta = _local1.data.flagCajaFuerteAbierta;
flagCajitaAbierta = _local1.data.flagCajitaAbierta;
flagCajitaAgarrada = _local1.data.flagCajitaAgarrada;
flagCubitoAgarrado = _local1.data.flagCubitoAgarrado;
flagEnchufeAbierto1 = _local1.data.flagEnchufeAbierto1;
flagEnchufeAbierto2 = _local1.data.flagEnchufeAbierto2;
flagHiloCortado = _local1.data.flagHiloCortado;
flagImanAgarrado = _local1.data.flagImanAgarrado;
flagLaserListo = _local1.data.flagLaserListo;
flagLingoteAgarrado = _local1.data.flagLingoteAgarrado;
flagLingoteApoyado = _local1.data.flagLingoteApoyado;
flagLL11 = _local1.data.flagLL11;
flagLL21 = _local1.data.flagLL21;
flagLL31 = _local1.data.flagLL31;
flagLL41 = _local1.data.flagLL41;
flagLL12 = _local1.data.flagLL12;
flagLL22 = _local1.data.flagLL22;
flagLL32 = _local1.data.flagLL32;
flagLL42 = _local1.data.flagLL42;
flagLL13 = _local1.data.flagLL13;
flagLL23 = _local1.data.flagLL23;
flagLL33 = _local1.data.flagLL33;
flagLL43 = _local1.data.flagLL43;
flagLlave1Agarrada = _local1.data.flagLlave1Agarrada;
flagLlave1Puesta = _local1.data.flagLlave1Puesta;
flagLlave2Agarrada = _local1.data.flagLlave2Agarrada;
flagLlave2Puesta = _local1.data.flagLlave2Puesta;
flagLlave3Agarrada = _local1.data.flagLlave3Agarrada;
flagLlave3Puesta = _local1.data.flagLlave3Puesta;
flagLlavecitaAgarrada = _local1.data.flagLlavecitaAgarrada;
flagLlaveImantada = _local1.data.flagLlaveImantada;
flagLlaveLAgarrada = _local1.data.flagLlaveLAgarrada;
flagLlavePequenitaAgarrada = _local1.data.flagLlavePequenitaAgarrada;
flagLlavePequenitaPuesta = _local1.data.flagLlavePequenitaPuesta;
flagMaderoAbierto = _local1.data.flagMaderoAbierto;
flagMaletinAbierto = _local1.data.flagMaletinAbierto;
flagPicaporteAgarrado = _local1.data.flagPicaporteAgarrado;
flagPicaportePuesto = _local1.data.flagPicaportePuesto;
flagPila1Agarrada = _local1.data.flagPila1Agarrada;
flagPila2Agarrada = _local1.data.flagPila2Agarrada;
flagPila3Agarrada = _local1.data.flagPila3Agarrada;
flagPista1Agarrada = _local1.data.flagPista1Agarrada;
flagPista2Agarrada = _local1.data.flagPista2Agarrada;
flagPista3Agarrada = _local1.data.flagPista3Agarrada;
flagPuertaAbierta = _local1.data.flagPuertaAbierta;
flagPunteroAgarrado = _local1.data.flagPunteroAgarrado;
flagSillaCorrida = _local1.data.flagSillaCorrida;
flagSobreAgarrado = _local1.data.flagSobreAgarrado;
flagTapa1Abierta = _local1.data.flagTapa1Abierta;
flagTapa2Abierta = _local1.data.flagTapa2Abierta;
flagTapa3Abierta = _local1.data.flagTapa3Abierta;
flagTornillito1Agarrado = _local1.data.flagTornillito1Agarrado;
flagTornillito2Agarrado = _local1.data.flagTornillito2Agarrado;
flagTuboAgarrado = _local1.data.flagTuboAgarrado;
flagUVAgarrado = _local1.data.flagUVAgarrado;
flagVictorinoxAgarrada = _local1.data.flagVictorinoxAgarrada;
if (flagCaja1Abierta == true) {
e5.gotoAndStop(12);
} else {
e5.gotoAndStop(1);
}
if (flagCaja2Abierta == true) {
e6.gotoAndStop(12);
} else {
e6.gotoAndStop(1);
}
if (flagCaja3Abierta == true) {
e18.gotoAndStop(12);
} else {
e18.gotoAndStop(1);
}
var _local2 = 0;
while (_local2 < menu_mc.items.length) {
menu_mc.items[_local2].visible = _local1.data.itemAgarrado[_local2];
_local2++;
}
menu_mc.Actualizar();
var _local3 = new Date();
} else {
NuevaPartida();
}
}
function GuardarPartida() {
var _local1 = SharedObject.getLocal(identificador);
_local1.clear();
_local1 = SharedObject.getLocal(identificador);
_local1.data.ver = "1.0";
_local1.data.e1visible = e1._visible;
_local1.data.e2visible = e2._visible;
_local1.data.e1avisible = e1a._visible;
_local1.data.e3visible = e3._visible;
_local1.data.e4visible = e4._visible;
_local1.data.e5visible = e5._visible;
_local1.data.e6visible = e6._visible;
_local1.data.e7visible = e7._visible;
_local1.data.e7avisible = e7a._visible;
_local1.data.e7bvisible = e7b._visible;
_local1.data.e7cvisible = e7c._visible;
_local1.data.e7xvisible = e7x._visible;
_local1.data.e8visible = e8._visible;
_local1.data.e8avisible = e8a._visible;
_local1.data.e9visible = e9._visible;
_local1.data.e10visible = e10._visible;
_local1.data.e10avisible = e10a._visible;
_local1.data.e11visible = e11._visible;
_local1.data.e11avisible = e11a._visible;
_local1.data.e11bvisible = e11b._visible;
_local1.data.e12visible = e12._visible;
_local1.data.e12avisible = e12a._visible;
_local1.data.e13visible = e13._visible;
_local1.data.e14visible = e14._visible;
_local1.data.e15visible = e15._visible;
_local1.data.e17visible = e17._visible;
_local1.data.e18visible = e18._visible;
_local1.data.TheEndvisible = TheEnd._visible;
_local1.data.CurValoresEQ = CurValoresEQ;
_local1.data.MedidorUV = MedidorUV;
_local1.data.MedidorLaser = MedidorLaser;
_local1.data.Bulones = Bulones;
_local1.data.Combi1 = Combi1;
_local1.data.Combi2 = Combi2;
_local1.data.Combi3 = Combi3;
_local1.data.Combi4 = Combi4;
_local1.data.TextoLaser1 = TextoLaser1;
_local1.data.TextoPista = TextoPista;
_local1.data.Letra1 = Letra1;
_local1.data.Letra2 = Letra2;
_local1.data.Letra3 = Letra3;
_local1.data.Letra4 = Letra4;
_local1.data.Combinacion = Combinacion;
_local1.data.CurCombinacion = CurCombinacion;
_local1.data.OrdenColores = OrdenColores;
_local1.data.ValoresEQ = ValoresEQ;
_local1.data.TextoLaser2 = TextoLaser2;
_local1.data.TextoLaser = TextoLaser;
_local1.data.Combinacion3 = Combinacion3;
_local1.data.CurCombinacion3 = CurCombinacion3;
_local1.data.Combinacion3a = Combinacion3a;
_local1.data.Combinacion3b = Combinacion3b;
_local1.data.Combinacion3b0 = Combinacion3b0;
_local1.data.Combinacion3b1 = Combinacion3b1;
_local1.data.Combinacion3b2 = Combinacion3b2;
_local1.data.Combinacion3b3 = Combinacion3b3;
_local1.data.Combinacion3b4 = Combinacion3b4;
_local1.data.Combinacion3b5 = Combinacion3b5;
_local1.data.Combinacion3b6 = Combinacion3b6;
_local1.data.Combinacion3b7 = Combinacion3b7;
_local1.data.flag0 = flag0;
_local1.data.flagBateria1Agarrada = flagBateria1Agarrada;
_local1.data.flagBateria2Agarrada = flagBateria2Agarrada;
_local1.data.flagBateria3Agarrada = flagBateria3Agarrada;
_local1.data.flagBateria4Agarrada = flagBateria4Agarrada;
_local1.data.flagBroche1Abierto = flagBroche1Abierto;
_local1.data.flagBroche2Abierto = flagBroche2Abierto;
_local1.data.flagBulone13 = flagBulone13;
_local1.data.flagBulone13Atras = flagBulone13Atras;
_local1.data.flagBulone14 = flagBulone14;
_local1.data.flagBulone14Atras = flagBulone14Atras;
_local1.data.flagCaja1Abierta = flagCaja1Abierta;
_local1.data.flagCaja2Abierta = flagCaja2Abierta;
_local1.data.flagCaja3Abierta = flagCaja3Abierta;
_local1.data.flagCajaFuerteAbierta = flagCajaFuerteAbierta;
_local1.data.flagCajitaAbierta = flagCajitaAbierta;
_local1.data.flagCajitaAgarrada = flagCajitaAgarrada;
_local1.data.flagCubitoAgarrado = flagCubitoAgarrado;
_local1.data.flagEnchufeAbierto1 = flagEnchufeAbierto1;
_local1.data.flagEnchufeAbierto2 = flagEnchufeAbierto2;
_local1.data.flagHiloCortado = flagHiloCortado;
_local1.data.flagImanAgarrado = flagImanAgarrado;
_local1.data.flagLaserListo = flagLaserListo;
_local1.data.flagLingoteAgarrado = flagLingoteAgarrado;
_local1.data.flagLingoteApoyado = flagLingoteApoyado;
_local1.data.flagLL11 = flagLL11;
_local1.data.flagLL21 = flagLL21;
_local1.data.flagLL31 = flagLL31;
_local1.data.flagLL41 = flagLL41;
_local1.data.flagLL12 = flagLL12;
_local1.data.flagLL22 = flagLL22;
_local1.data.flagLL32 = flagLL32;
_local1.data.flagLL42 = flagLL42;
_local1.data.flagLL13 = flagLL13;
_local1.data.flagLL23 = flagLL23;
_local1.data.flagLL33 = flagLL33;
_local1.data.flagLL43 = flagLL43;
_local1.data.flagLlave1Agarrada = flagLlave1Agarrada;
_local1.data.flagLlave1Puesta = flagLlave1Puesta;
_local1.data.flagLlave2Agarrada = flagLlave2Agarrada;
_local1.data.flagLlave2Puesta = flagLlave2Puesta;
_local1.data.flagLlave3Agarrada = flagLlave3Agarrada;
_local1.data.flagLlave3Puesta = flagLlave3Puesta;
_local1.data.flagLlavecitaAgarrada = flagLlavecitaAgarrada;
_local1.data.flagLlaveImantada = flagLlaveImantada;
_local1.data.flagLlaveLAgarrada = flagLlaveLAgarrada;
_local1.data.flagLlavePequenitaAgarrada = flagLlavePequenitaAgarrada;
_local1.data.flagLlavePequenitaPuesta = flagLlavePequenitaPuesta;
_local1.data.flagMaderoAbierto = flagMaderoAbierto;
_local1.data.flagMaletinAbierto = flagMaletinAbierto;
_local1.data.flagPicaporteAgarrado = flagPicaporteAgarrado;
_local1.data.flagPicaportePuesto = flagPicaportePuesto;
_local1.data.flagPila1Agarrada = flagPila1Agarrada;
_local1.data.flagPila2Agarrada = flagPila2Agarrada;
_local1.data.flagPila3Agarrada = flagPila3Agarrada;
_local1.data.flagPista1Agarrada = flagPista1Agarrada;
_local1.data.flagPista2Agarrada = flagPista2Agarrada;
_local1.data.flagPista3Agarrada = flagPista3Agarrada;
_local1.data.flagPuertaAbierta = flagPuertaAbierta;
_local1.data.flagPunteroAgarrado = flagPunteroAgarrado;
_local1.data.flagSillaCorrida = flagSillaCorrida;
_local1.data.flagSobreAgarrado = flagSobreAgarrado;
_local1.data.flagTapa1Abierta = flagTapa1Abierta;
_local1.data.flagTapa2Abierta = flagTapa2Abierta;
_local1.data.flagTapa3Abierta = flagTapa3Abierta;
_local1.data.flagTornillito1Agarrado = flagTornillito1Agarrado;
_local1.data.flagTornillito2Agarrado = flagTornillito2Agarrado;
_local1.data.flagTuboAgarrado = flagTuboAgarrado;
_local1.data.flagUVAgarrado = flagUVAgarrado;
_local1.data.flagVictorinoxAgarrada = flagVictorinoxAgarrada;
_local1.data.itemAgarrado = new Array();
var _local2 = 0;
while (_local2 < menu_mc.items.length) {
_local1.data.itemAgarrado[_local2] = menu_mc.items[_local2].visible;
_local2++;
}
_local1.flush();
var _local3 = new Date();
}
Stage.showMenu = false;
var version = "v1.01";
var identificador = "vsJuego02";
var useHand = false;
var snd_beep1 = new Sound();
snd_beep1.attachSound("beep1");
var snd_item = new Sound();
snd_item.attachSound("item");
var Dirty = false;
e1._visible = false;
e1a._visible = false;
e3._visible = false;
e4._visible = false;
e5._visible = false;
e6._visible = false;
e7._visible = false;
e7a._visible = false;
e7b._visible = false;
e7c._visible = false;
e7x._visible = false;
e8._visible = false;
e8a._visible = false;
e9._visible = false;
e10._visible = false;
e10a._visible = false;
e11._visible = false;
e11a._visible = false;
e11b._visible = false;
e12._visible = false;
e12a._visible = false;
e13._visible = false;
e14._visible = false;
e15._visible = false;
e17._visible = false;
e18._visible = false;
TheEnd._visible = false;
Stage.scaleMode = "noScale";
Inventario._visible = false;
Inventario.Ocultar();
Puntero._visible = false;
Laser._visible = false;
Luz._visible = false;
Halo._visible = false;
Halo.enabled = false;
var Objeto = null;
var CurValoresEQ = [3, 3, 3, 3, 3];
var MedidorUV;
var MedidorLaser;
var Bulones;
var Combi1;
var Combi2;
var Combi3;
var Combi4;
var TextoLaser1;
var TextoPista;
var Letra1;
var Letra2;
var Letra3;
var Letra4;
var Combinacion = [0, 0, 0, 0, 0, 0, 0];
var CurCombinacion = [0, 0, 0, 0, 0, 0, 0];
var OrdenColores = [0, 0, 0, 0, 0, 0];
var ValoresEQ = [0, 0, 0, 0, 0];
var TextoLaser2;
var TextoLaser;
var Combinacion3 = [false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false];
var CurCombinacion3 = [false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false];
var Combinacion3a = ["", "", "", "", "", "", "", ""];
var Combinacion3b = ["", "", "", "", "", "", "", ""];
var Combinacion3b0;
var Combinacion3b1;
var Combinacion3b2;
var Combinacion3b3;
var Combinacion3b4;
var Combinacion3b5;
var Combinacion3b6;
var Combinacion3b7;
var flag0 = false;
var flagBateria1Agarrada = false;
var flagBateria2Agarrada = false;
var flagBateria3Agarrada = false;
var flagBateria4Agarrada = false;
var flagBroche1Abierto = false;
var flagBroche2Abierto = false;
var flagBulone13 = false;
var flagBulone13Atras = false;
var flagBulone14 = false;
var flagBulone14Atras = false;
var flagCaja1Abierta = false;
var flagCaja2Abierta = false;
var flagCaja3Abierta = false;
var flagCajaFuerteAbierta = false;
var flagCajitaAbierta = false;
var flagCajitaAgarrada = false;
var flagCubitoAgarrado = false;
var flagEnchufeAbierto1 = false;
var flagEnchufeAbierto2 = false;
var flagHiloCortado = false;
var flagImanAgarrado = false;
var flagLaserListo = false;
var flagLingoteAgarrado = false;
var flagLingoteApoyado = false;
var flagLL11 = false;
var flagLL21 = false;
var flagLL31 = false;
var flagLL41 = false;
var flagLL12 = false;
var flagLL22 = false;
var flagLL32 = false;
var flagLL42 = false;
var flagLL13 = false;
var flagLL23 = false;
var flagLL33 = false;
var flagLL43 = false;
var flagLlave1Agarrada = false;
var flagLlave1Puesta = false;
var flagLlave2Agarrada = false;
var flagLlave2Puesta = false;
var flagLlave3Agarrada = false;
var flagLlave3Puesta = false;
var flagLlavecitaAgarrada = false;
var flagLlaveImantada = false;
var flagLlaveLAgarrada = false;
var flagLlavePequenitaAgarrada = false;
var flagLlavePequenitaPuesta = false;
var flagMaderoAbierto = false;
var flagMaletinAbierto = false;
var flagPicaporteAgarrado = false;
var flagPicaportePuesto = false;
var flagPila1Agarrada = false;
var flagPila2Agarrada = false;
var flagPila3Agarrada = false;
var flagPista1Agarrada = false;
var flagPista2Agarrada = false;
var flagPista3Agarrada = false;
var flagPuertaAbierta = false;
var flagPunteroAgarrado = false;
var flagSillaCorrida = false;
var flagSobreAgarrado = false;
var flagTapa1Abierta = false;
var flagTapa2Abierta = false;
var flagTapa3Abierta = false;
var flagTornillito1Agarrado = false;
var flagTornillito2Agarrado = false;
var flagTuboAgarrado = false;
var flagUVAgarrado = false;
var flagVictorinoxAgarrada = false;
stop();
t1.onPress = function () {
gotoAndStop (2);
};
this.dockActions = function (label, f) {
if (f == 1) {
Inventario._visible = true;
Inventario.Ocultar();
eval ("Inventario." + label)._visible = true;
} else if (Objeto == label) {
menu_mc.Deseleccionar();
Objeto = null;
} else {
menu_mc.Deseleccionar();
menu_mc.Seleccionar(label);
Objeto = label;
}
};
var dockTemplate = {layout:"bottom", icon_size:128, icon_min:24, icon_max:64, icon_spacing:2, items:[{id:"LlavePequenita", label:"LlavePequenita", visible:false}, {id:"llavecita", label:"Llavecita", visible:false}, {id:"Tubo1", label:"Tubo1", visible:false}, {id:"Tubo2", label:"Tubo2", visible:false}, {id:"pila", label:"Pila", visible:false}, {id:"pila", label:"Pila2", visible:false}, {id:"pila", label:"Pila3", visible:false}, {id:"Lingote", label:"Lingote", visible:false}, {id:"Victorinox", label:"Victorinox", visible:false}, {id:"Victorinox1", label:"Victorinox1", visible:false}, {id:"Victorinox2", label:"Victorinox2", visible:false}, {id:"Victorinox3", label:"Victorinox3", visible:false}, {id:"Victorinox4", label:"Victorinox4", visible:false}, {id:"Puntero", label:"Puntero", visible:false}, {id:"Cubito", label:"Cubito", visible:false}, {id:"Pista0", label:"Pista0", visible:false}, {id:"Pista1cerrada", label:"Pista1Cerrada", visible:false}, {id:"Pista2cerrada", label:"Pista2Cerrada", visible:false}, {id:"UV1", label:"UV1", visible:false}, {id:"UV2", label:"UV2", visible:false}, {id:"Bateria", label:"Bateria1", visible:false}, {id:"Bateria", label:"Bateria2", visible:false}, {id:"Bateria", label:"Bateria3", visible:false}, {id:"Bateria", label:"Bateria4", visible:false}, {id:"Llave1", label:"Llave1", visible:false}, {id:"Llave2", label:"Llave2", visible:false}, {id:"Llave3", label:"Llave3", visible:false}, {id:"LlaveL", label:"LlaveL", visible:false}, {id:"LlaveL", label:"LlaveL1", visible:false}, {id:"Cajita", label:"Cajita", visible:false}, {id:"Iman", label:"Iman", visible:false}, {id:"Pista3cerrada", label:"Pista3Cerrada", visible:false}, {id:"Bulon", label:"Bulon", visible:false}, {id:"Picaporte", label:"Picaporte", visible:false}], span:96, amplitude:null, callback:this.dockActions};
this.attachMovie("Dock", "menu_mc", 1, dockTemplate);
this.menu_mc._x = Stage.width / 2;
this.menu_mc._y = Stage.height - 5;
this.menu_mc.tabChildren = false;
this.menu_mc.tabEnabled = false;
onEnterFrame = function () {
if (_root.Dirty == true) {
GuardarPartida();
_root.Dirty = false;
}
if (Objeto == null) {
Puntero._visible = false;
removeMovieClip(_root.Iconito.papanoel);
removeMovieClip(_root.Iconito);
Laser._visible = false;
Halo._visible = false;
Luz._visible = false;
Mouse.show();
} else if ((Objeto == "Puntero") && (flagLaserListo == true)) {
Puntero._visible = false;
removeMovieClip(_root.Iconito.papanoel);
removeMovieClip(_root.Iconito);
Laser._visible = true;
Laser._x = _xmouse;
Laser._y = _ymouse - 30;
Mouse.show();
Halo._visible = false;
Luz._visible = false;
if (_ymouse > 408) {
Mouse.show();
} else {
Mouse.hide();
}
} else if (Objeto == "UV2") {
removeMovieClip(_root.Iconito.papanoel);
removeMovieClip(_root.Iconito);
Laser._visible = false;
Halo._visible = true;
Luz._visible = true;
Halo._x = _xmouse;
Halo._y = _ymouse;
Luz._x = _xmouse;
Luz._y = _ymouse;
if (_ymouse > 408) {
Mouse.show();
} else {
Mouse.hide();
}
} else {
Mouse.show();
Luz._visible = false;
Halo._visible = false;
Laser._visible = false;
Puntero._visible = true;
Puntero._x = _xmouse + 16;
Puntero._y = _ymouse + 16;
_root.createEmptyMovieClip("Iconito", -1).attachMovie(TraducirObjeto(Objeto), "papanoel", 1);
Iconito._width = 64;
Iconito._height = 64;
Iconito._x = _xmouse + 48;
Iconito._y = _ymouse + 48;
}
};
Symbol 131 MovieClip [Dock] Frame 1
#initclip 2
Object.registerClass("Dock", Dock);
#endinitclip
this.f = false;
stop();
Symbol 148 MovieClip [i_Pista0] Frame 1
this.tabEnabled = false;
stop();
t1.useHandCursor = _root.useHand;
t1.onPress = function () {
if (_root.Objeto == null) {
nextFrame();
var _local2 = new Sound();
_local2.attachSound("sobre_abrir");
_local2.start();
}
};
Symbol 148 MovieClip [i_Pista0] Frame 2
this.tabEnabled = false;
Pista.setMask(MaskUV);
MaskUV._x = -300;
MaskUV._y = -300;
onEnterFrame = function () {
if (_root.Objeto == "UV2") {
MaskUV._visible = true;
MaskUV._x = _xmouse;
MaskUV._y = _ymouse;
} else {
MaskUV._x = -300;
MaskUV._y = -300;
}
};
stop();
t1.useHandCursor = _root.useHand;
t1.onPress = function () {
if (_root.Objeto == null) {
prevFrame();
var _local2 = new Sound();
_local2.attachSound("papel_close");
_local2.start();
}
};
Symbol 786 MovieClip [__Packages.Dock] Frame 0
class Dock extends MovieClip
{
var onEnterFrame, layout, icon_min, icon_max, icon_spacing, span, amplitude, ratio, items, createEmptyMovieClip, icon_size, _xmouse, _ymouse, _parent, _name, ymouse, xmouse;
function Dock () {
super();
setParameters();
createIcons();
onEnterFrame = monitorDock;
}
function setParameters() {
layout = (layout ? (layout) : "bottom");
icon_min = (icon_min ? (icon_min) : 32);
icon_max = (icon_max ? (icon_max) : 96);
icon_spacing = (icon_spacing ? (icon_spacing) : 2);
span = (span ? (span) : (getSpan()));
amplitude = (amplitude ? (amplitude) : (getAmplitude()));
ratio = (Math.PI/2) / span;
}
function getSpan() {
return(64);
}
function getAmplitude() {
return(2 * ((icon_max - icon_min) + icon_spacing));
}
function createIcons() {
var _local2;
var _local5;
scale = 0;
var _local3 = (NumeroVisibles() * icon_spacing) + ((NumeroVisibles() + 1) * icon_min);
var _local4 = (icon_min - _local3) / 2;
_local2 = 0;
while (_local2 < items.length) {
createEmptyMovieClip(String(_local2), _local2 + 10).attachMovie(items[_local2].id, "_mc", 1);
this[_local2]._mc._y = (-icon_size) / 2;
this[_local2]._y = -icon_spacing;
this[_local2]._visible = items[_local2].visible;
this[_local2].onPress = launchIcon;
this[_local2].useHandCursor = false;
this[_local2]._mc.createEmptyMovieClip("Resalte", -100).attachMovie("Cuadrito", "higotuno", 1);
this[_local2]._mc.Resalte.blendMode = "overlay";
this[_local2]._mc.Resalte._visible = false;
this[_local2]._mc.Resalte._x = -64;
this[_local2]._mc.Resalte._y = -64;
this[_local2]._mc.createEmptyMovieClip("info", 1).attachMovie("flechita", "higo", 1);
this[_local2]._mc.info._visible = false;
this[_local2]._mc.info._x = 8;
this[_local2]._mc.info._y = 8;
this[_local2].onRollOver = function () {
this._mc.info._visible = true;
};
this[_local2].onRollOut = function () {
this._mc.info._visible = false;
};
_local2++;
}
}
function launchIcon() {
var _local2;
if ((_xmouse > 16) && (_ymouse > -38)) {
_local2 = 1;
} else {
_local2 = 0;
}
_parent.callback(_parent.items[_name].label, _local2);
}
function checkBoundary() {
var _local2 = 4 * scale;
return((((ymouse < 0) && (ymouse > (((-2 * icon_spacing) - icon_min) + ((icon_min - icon_max) * scale)))) && (xmouse > (((this[Primero()]._x - (this[Primero()]._width / 2)) - icon_spacing) - _local2))) && (xmouse < (((this[Ultimo()]._x + (this[Ultimo()]._width / 2)) + icon_spacing) + _local2)));
}
function monitorDock() {
var _local2;
var _local4;
var _local8;
var _local3;
var _local5;
if (((xmouse == _xmouse) && (ymouse == _ymouse)) && ((scale <= 0.01) || (scale >= 0.99))) {
return(false);
}
xmouse = _xmouse;
ymouse = _ymouse;
trend = ((trend == 0) ? ((checkBoundary() ? 0.25 : -0.25)) : (trend));
scale = scale + trend;
if ((scale < 0.02) || (scale > 0.98)) {
trend = 0;
}
scale = Math.min(1, Math.max(0, scale));
var _local7 = (NumeroVisibles() * icon_spacing) + ((NumeroVisibles() + 1) * icon_min);
var _local6 = (icon_min - _local7) / 2;
_local4 = 0;
_local2 = 0;
while (_local2 < items.length) {
this[_local2]._visible = items[_local2].visible;
if (this[_local2]._visible == true) {
this[_local2]._x = (this[_local2].x = (_local6 + (_local4 * (icon_min + icon_spacing))) + (icon_spacing / 2));
_local3 = this[_local2].x - xmouse;
_local3 = Math.min(Math.max(_local3, -span), span);
_local5 = icon_min + ((((icon_max - icon_min) * Math.cos(_local3 * ratio)) * ((Math.abs(_local3) > span) ? 0 : 1)) * scale);
this[_local2]._x = this[_local2].x + ((scale * amplitude) * Math.sin(_local3 * ratio));
this[_local2]._xscale = (this[_local2]._yscale = (100 * _local5) / icon_size);
_local4 = _local4 + 1;
}
_local2++;
}
return(true);
}
function Deseleccionar() {
var _local2;
_local2 = 0;
while (_local2 < items.length) {
this[_local2]._mc.Resalte._visible = false;
_local2++;
}
}
function Seleccionar(vlabel) {
var _local2;
_local2 = 0;
while (_local2 < items.length) {
if (items[_local2].label == vlabel) {
this[_local2]._mc.Resalte._visible = true;
}
_local2++;
}
}
function NumeroVisibles() {
var _local3;
var _local2;
_local3 = 0;
_local2 = 0;
while (_local2 < items.length) {
if (items[_local2].visible == true) {
_local3 = _local3 + 1;
}
_local2++;
}
return(_local3);
}
function Primero() {
var _local2;
_local2 = 0;
while (_local2 < items.length) {
if (items[_local2].visible == true) {
return(_local2);
}
_local2++;
}
}
function Ultimo() {
var _local2;
_local2 = items.length - 1;
while (_local2 >= 0) {
if (items[_local2].visible == true) {
return(_local2);
}
_local2--;
}
}
function Actualizar() {
xmouse = 0;
ymouse = 0;
monitorDock();
}
var scale = Number.NEGATIVE_INFINITY;
var trend = 0;
}
Symbol 160 MovieClip Frame 187
stop();
Symbol 166 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
onEnterFrame = function () {
if (_root.flagPila3Agarrada == true) {
Pila._visible = false;
} else {
Pila._visible = true;
}
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e3._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e3._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e3._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e3._visible = true;
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e15._visible = true;
}
};
Symbol 175 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t6.useHandCursor = _root.useHand;
t7.useHandCursor = _root.useHand;
t8.useHandCursor = _root.useHand;
t9.useHandCursor = _root.useHand;
onEnterFrame = function () {
Broche1._visible = _root.flagBroche1Abierto;
Broche2._visible = _root.flagBroche2Abierto;
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t5.onPress = function () {
if (_root.Objeto == "Llavecita") {
_root.flagBroche2Abierto = true;
var _local2 = new Sound();
_local2.attachSound("unlock1");
_local2.start();
}
};
t6.onPress = function () {
if (_root.Objeto == "Llavecita") {
_root.flagBroche1Abierto = true;
var _local2 = new Sound();
_local2.attachSound("unlock1");
_local2.start();
}
};
t7.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if ((Broche1._visible == true) && (Broche2._visible == true)) {
this._parent._visible = false;
this._parent._parent.e8a._visible = true;
_root.flagMaletinAbierto = true;
var _local3 = new Sound();
_local3.attachSound("maletin_abrir");
_local3.start();
_root.Dirty = true;
}
}
};
t8.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e9._visible = true;
}
};
t9.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e9._visible = true;
}
};
Symbol 178 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t5.onPress = function () {
if (_root.Inventario._visible == false) {
if (_root.Objeto == "Victorinox1") {
this._parent._visible = false;
this._parent._parent.e11a._visible = true;
_root.flagEnchufeAbierto1 = true;
var _local3 = new Sound();
_local3.attachSound("enchufe_tapa");
_local3.start();
_root.Dirty = true;
}
}
};
Symbol 187 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t6.useHandCursor = _root.useHand;
t7.useHandCursor = _root.useHand;
Bulon13._visible = false;
Bulon14._visible = false;
onEnterFrame = function () {
if (_root.flagBulone13 == true) {
Bulon13._visible = true;
} else {
Bulon13._visible = false;
}
if (_root.flagBulone14 == true) {
Bulon14._visible = true;
} else {
Bulon14._visible = false;
}
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e1._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e1._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e1._visible = true;
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e13._visible = true;
}
};
t6.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e14._visible = true;
}
};
t7.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if (_root.Bulones > 3) {
this._parent._visible = false;
this._parent._parent.e12a._visible = true;
_root.flagSillaCorrida = true;
var _local3 = new Sound();
_local3.attachSound("silla_correr");
_local3.start();
_root.Dirty = true;
}
}
};
Symbol 199 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t6.useHandCursor = _root.useHand;
h1.useHandCursor = _root.useHand;
h2.useHandCursor = _root.useHand;
onEnterFrame = function () {
Pista2._visible = !_root.flagPista1Agarrada;
t5._visible = !_root.flagPista1Agarrada;
Hole1._visible = _root.flagBulone13Atras;
h1._visible = !_root.flagBulone13Atras;
Hole2._visible = _root.flagBulone13;
h2._visible = !_root.flagBulone13;
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e1._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e12._visible = true;
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagPista1Agarrada = true;
_root.AgregarObjeto("Pista1Cerrada");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
var _local3 = new Sound();
_local3.attachSound("papel_close");
_local3.start();
}
};
t6.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e14._visible = true;
}
};
h1.onPress = function () {
if (_root.Inventario._visible == false) {
if ((_root.Objeto == "LlaveL") || (_root.Objeto == "LlaveL1")) {
_root.flagBulone13Atras = true;
_root.Bulones = _root.Bulones + 1;
_root.AgregarObjeto("Bulon");
var _local2 = new Sound();
_local2.attachSound("tornillo_sacar");
_root.snd_item.start();
_local2.start();
}
}
};
h2.onPress = function () {
if (_root.Inventario._visible == false) {
if ((_root.Objeto == "LlaveL") || (_root.Objeto == "LlaveL1")) {
_root.flagBulone13 = true;
_root.Bulones = _root.Bulones + 1;
_root.AgregarObjeto("Bulon");
var _local2 = new Sound();
_local2.attachSound("tornillo_sacar");
_local2.start();
_root.snd_item.start();
}
}
};
Symbol 211 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t6.useHandCursor = _root.useHand;
h1.useHandCursor = _root.useHand;
h2.useHandCursor = _root.useHand;
onEnterFrame = function () {
Pila2._visible = !_root.flagPila2Agarrada;
t5._visible = !_root.flagPila2Agarrada;
Hole1._visible = _root.flagBulone14;
h1._visible = !_root.flagBulone14;
Hole2._visible = _root.flagBulone14Atras;
h2._visible = !_root.flagBulone14Atras;
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e1._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e12._visible = true;
}
};
t6.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e13._visible = true;
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagPila2Agarrada = true;
_root.AgregarObjeto("Pila2");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
h1.onPress = function () {
if (_root.Inventario._visible == false) {
if ((_root.Objeto == "LlaveL") || (_root.Objeto == "LlaveL1")) {
_root.flagBulone14 = true;
_root.Bulones = _root.Bulones + 1;
_root.AgregarObjeto("Bulon");
var _local2 = new Sound();
_local2.attachSound("tornillo_sacar");
_local2.start();
_root.snd_item.start();
}
}
};
h2.onPress = function () {
if (_root.Inventario._visible == false) {
if ((_root.Objeto == "LlaveL") || (_root.Objeto == "LlaveL1")) {
_root.flagBulone14Atras = true;
_root.Bulones = _root.Bulones + 1;
_root.AgregarObjeto("Bulon");
var _local2 = new Sound();
_local2.attachSound("tornillo_sacar");
_local2.start();
_root.snd_item.start();
}
}
};
Symbol 220 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
Llave.useHandCursor = _root.useHand;
Pila.useHandCursor = _root.useHand;
onEnterFrame = function () {
Pila._visible = !_root.flagPila1Agarrada;
t1._visible = !_root.flagLlavePequenitaPuesta;
t2._visible = !_root.flagLlavePequenitaPuesta;
Llave._visible = _root.flagLlavePequenitaPuesta;
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e7._visible = true;
}
};
t2.onPress = function () {
if (_root.Inventario._visible == false) {
if (_root.Objeto == "LlavePequenita") {
_root.flagLlavePequenitaPuesta = true;
_root.EliminarObjeto("LlavePequenita");
_root.Objeto = null;
var _local2 = new Sound();
_local2.attachSound("llave_poner");
_local2.start();
}
}
};
Llave.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e7x._visible = true;
this._parent._parent.e7x.gotoAndPlay(2);
_root.flag0 = true;
var _local3 = new Sound();
_local3.attachSound("llave_abrir1");
_local3.start();
}
};
Pila.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagPila1Agarrada = true;
_root.AgregarObjeto("Pila3");
var _local2 = new Sound();
_local2.attachSound("cinta");
_local2.start();
_local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
Symbol 226 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
Llave.useHandCursor = _root.useHand;
onEnterFrame = function () {
Llave._visible = !_root.flagLlavePequenitaAgarrada;
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e8._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
Llave.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagLlavePequenitaAgarrada = true;
_root.AgregarObjeto("LlavePequenita");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
Symbol 235 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t6.useHandCursor = _root.useHand;
onEnterFrame = function () {
if (_root.flag0 == true) {
CajaFuerte._visible = true;
} else {
CajaFuerte._visible = false;
}
if (_root.flagMaderoAbierto == true) {
Madero._visible = true;
} else {
Madero._visible = false;
}
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
if (_root.flagPuertaAbierta == true) {
this._parent._parent.e1a._visible = true;
} else {
this._parent._parent.e1._visible = true;
}
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
if (_root.flag0 == true) {
this._parent._parent.e7a._visible = true;
} else {
this._parent._parent.e7._visible = true;
}
}
};
t6.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
if (_root.flagMaderoAbierto == true) {
this._parent._parent.e10a._visible = true;
} else {
this._parent._parent.e10._visible = true;
}
}
};
Symbol 261 MovieClip Frame 1
function CambiarColor(c) {
miColor = c;
Borrar();
switch (c) {
case 0 :
break;
case 1 :
amarillo._visible = true;
break;
case 2 :
azul._visible = true;
break;
case 3 :
magenta._visible = true;
break;
case 4 :
verde._visible = true;
break;
case 5 :
rojo._visible = true;
break;
case 6 :
cyan._visible = true;
break;
}
}
function Borrar() {
amarillo._visible = false;
azul._visible = false;
magenta._visible = false;
verde._visible = false;
rojo._visible = false;
cyan._visible = false;
}
var miColor;
Borrar();
stop();
Symbol 264 MovieClip Frame 1
onEnterFrame = function () {
led._visible = _root.flagTapa1Abierta;
b1.CambiarColor(_root.CurCombinacion[0]);
b2.CambiarColor(_root.CurCombinacion[1]);
b3.CambiarColor(_root.CurCombinacion[2]);
b4.CambiarColor(_root.CurCombinacion[3]);
b5.CambiarColor(_root.CurCombinacion[4]);
b6.CambiarColor(_root.CurCombinacion[5]);
b7.CambiarColor(_root.CurCombinacion[6]);
};
Symbol 284 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
Enchfue1._visible = false;
Enchufe2._visible = false;
Tapa1._visible = false;
Tapa2._visible = false;
SillaCorrida._visible = false;
Puerta._visible = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t6.useHandCursor = _root.useHand;
t7.useHandCursor = _root.useHand;
onEnterFrame = function () {
if (_root.flagCaja1Abierta == true) {
Caja1._visible = true;
if (_root.flagTapa1Abierta == true) {
Tapa1._visible = true;
}
} else {
Caja1._visible = false;
Tapa1._visible = false;
}
if (_root.flagCaja2Abierta == true) {
Caja2._visible = true;
if (_root.flagTapa2Abierta == true) {
Tapa2._visible = true;
}
} else {
Caja2._visible = false;
Tapa2._visible = false;
}
if (_root.flagEnchufeAbierto2 == true) {
Enchufe2._visible = true;
} else if (_root.flagEnchufeAbierto1 == true) {
Enchufe1._visible = true;
} else {
Enchufe1._visible = false;
}
if (_root.flagSillaCorrida == true) {
SillaCorrida._visible = true;
} else {
SillaCorrida._visible = false;
}
if (_root.flagPuertaAbierta == true) {
Puerta._visible = true;
} else {
Puerta._visible = false;
}
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
if (_root.flagPuertaAbierta == true) {
this._parent._parent.e1a._visible = true;
} else {
this._parent._parent.e1._visible = true;
}
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e5._visible = true;
}
};
t6.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e6._visible = true;
}
};
t7.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
if (_root.flagEnchufeAbierto2 == true) {
this._parent._parent.e11b._visible = true;
} else if (_root.flagEnchufeAbierto1 == true) {
this._parent._parent.e11a._visible = true;
} else {
this._parent._parent.e11._visible = true;
}
}
};
Symbol 295 MovieClip Frame 1
onEnterFrame = function () {
Sobre._visible = !_root.flagSobreAgarrado;
};
Symbol 307 MovieClip Frame 1
onEnterFrame = function () {
led._visible = _root.flagTapa3Abierta;
if (_root.CurCombinacion3[0] != true) {
b1.CambiarColor(0);
} else {
b1.CambiarColor(4);
}
if (_root.CurCombinacion3[1] != true) {
b2.CambiarColor(0);
} else {
b2.CambiarColor(4);
}
if (_root.CurCombinacion3[2] != true) {
b3.CambiarColor(0);
} else {
b3.CambiarColor(4);
}
if (_root.CurCombinacion3[3] != true) {
b4.CambiarColor(0);
} else {
b4.CambiarColor(4);
}
if (_root.CurCombinacion3[4] != true) {
b5.CambiarColor(0);
} else {
b5.CambiarColor(4);
}
if (_root.CurCombinacion3[5] != true) {
b6.CambiarColor(0);
} else {
b6.CambiarColor(4);
}
if (_root.CurCombinacion3[6] != true) {
b7.CambiarColor(0);
} else {
b7.CambiarColor(4);
}
if (_root.CurCombinacion3[7] != true) {
b8.CambiarColor(0);
} else {
b8.CambiarColor(4);
}
if (_root.CurCombinacion3[8] != true) {
b9.CambiarColor(0);
} else {
b9.CambiarColor(4);
}
if (_root.CurCombinacion3[9] != true) {
b10.CambiarColor(0);
} else {
b10.CambiarColor(4);
}
if (_root.CurCombinacion3[10] != true) {
b11.CambiarColor(0);
} else {
b11.CambiarColor(4);
}
if (_root.CurCombinacion3[11] != true) {
b12.CambiarColor(0);
} else {
b12.CambiarColor(4);
}
if (_root.CurCombinacion3[12] != true) {
b13.CambiarColor(0);
} else {
b13.CambiarColor(4);
}
if (_root.CurCombinacion3[13] != true) {
b14.CambiarColor(0);
} else {
b14.CambiarColor(4);
}
if (_root.CurCombinacion3[14] != true) {
b15.CambiarColor(0);
} else {
b15.CambiarColor(4);
}
if (_root.CurCombinacion3[15] != true) {
b16.CambiarColor(0);
} else {
b16.CambiarColor(4);
}
};
Symbol 320 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
TextoUV.setMask(MaskUV);
MaskUV._x = -300;
MaskUV._y = -300;
Enchufe1._visible = false;
Enchufe2._visible = false;
Caja3._visible = false;
Caja3a._visible = false;
Cajita._visible = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t6.useHandCursor = _root.useHand;
t7.useHandCursor = _root.useHand;
t8.useHandCursor = false;
Caja2.useHandCursor = _root.useHand;
Caja2a.useHandCursor = _root.useHand;
Cajita.useHandCursor = _root.useHand;
onEnterFrame = function () {
if (_root.flagCaja2Abierta == true) {
if (_root.flagTapa2Abierta == true) {
Caja2a._visible = true;
} else {
Caja2._visible = true;
}
} else {
Caja2._visible = false;
Caja2a._visible = false;
}
if (_root.flagCaja3Abierta == true) {
if (_root.flagTapa3Abierta == true) {
Caja3a._visible = true;
} else {
Caja3._visible = true;
}
} else {
Caja3._visible = false;
Caja3a._visible = false;
}
if (_root.flagMaletinAbierto == true) {
Maletin._visible = true;
if (_root.flagCajitaAbierta == true) {
Cajita._visible = true;
} else {
Cajita._visible = false;
}
} else {
Maletin._visible = false;
}
if (_root.flagMaderoAbierto == true) {
Madero._visible = true;
} else {
Madero._visible = false;
}
if (_root.flagEnchufeAbierto2 == true) {
Enchufe2._visible = true;
} else if (_root.flagEnchufeAbierto1 == true) {
Enchufe1._visible = true;
} else {
Enchufe1._visible = false;
}
if (_root.Objeto == "UV2") {
MaskUV._visible = true;
MaskUV._x = _xmouse;
MaskUV._y = _ymouse;
} else {
MaskUV._x = -300;
MaskUV._y = -300;
}
};
Caja2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e6._visible = true;
}
};
Caja2a.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e6._visible = true;
}
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e3._visible = true;
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
if (_root.flagMaletinAbierto == true) {
this._parent._parent.e8a._visible = true;
} else {
this._parent._parent.e8._visible = true;
}
}
};
t6.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
if (_root.flagEnchufeAbierto2 == true) {
this._parent._parent.e11b._visible = true;
} else if (_root.flagEnchufeAbierto1 == true) {
this._parent._parent.e11a._visible = true;
} else {
this._parent._parent.e11._visible = true;
}
}
};
t7.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
if (_root.flagMaderoAbierto == true) {
this._parent._parent.e10a._visible = true;
} else {
this._parent._parent.e10._visible = true;
}
}
};
t8.onPress = function () {
if (_root.Inventario._visible == false) {
if (_root.Objeto == "UV2") {
this._parent._visible = false;
this._parent._parent.e18._visible = true;
} else if (_root.Objeto == null) {
if (_root.flagCaja3Abierta == true) {
this._parent._visible = false;
this._parent._parent.e18._visible = true;
}
}
}
};
Symbol 335 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
SillaCorrida._visible = false;
Bulon13._visible = false;
Bulon14._visible = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
Caja1.useHandCursor = _root.useHand;
onEnterFrame = function () {
if (_root.flagCaja1Abierta == true) {
Caja1._visible = true;
} else {
Caja1._visible = false;
}
if (_root.flagSillaCorrida == true) {
SillaCorrida._visible = true;
Bulon13._visible = false;
Bulon14._visible = false;
} else {
SillaCorrida._visible = false;
if (_root.flagBulone13 == true) {
Bulon13._visible = true;
} else {
Bulon13._visible = false;
}
if (_root.flagBulone14 == true) {
Bulon14._visible = true;
} else {
Bulon14._visible = false;
}
}
};
Caja1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e5._visible = true;
}
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e3._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
if (_root.flagSillaCorrida == true) {
this._parent._parent.e12a._visible = true;
} else {
this._parent._parent.e12._visible = true;
}
}
};
Symbol 362 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
Llave._visible = false;
Secreto.setMask(MaskUV);
MaskUV._x = -300;
MaskUV._y = -300;
moviendo = false;
if (_root.flagTapa1Abierta == true) {
Abierto._visible = true;
if (_root.flagLlave1Agarrada == true) {
Llave._visible = false;
} else {
Llave._visible = true;
}
} else {
Abierto._visible = false;
Llave._visible = false;
}
stop();
Boton._visible = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t7.useHandCursor = _root.useHand;
onEnterFrame = function () {
Tubo._visible = !_root.flagTuboAgarrado;
t7._visible = !_root.flagTuboAgarrado;
if ((_root.flagLlave1Agarrada == false) && (_root.flagTapa1Abierta == true)) {
Llave._visible = true;
} else {
Llave._visible = false;
}
if (_root.Objeto == "UV2") {
MaskUV._visible = true;
MaskUV._x = _xmouse;
MaskUV._y = _ymouse;
} else {
MaskUV._x = -300;
MaskUV._y = -300;
}
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if (moviendo == false) {
moviendo = true;
gotoAndPlay (2);
_root.flagCaja1Abierta = true;
_root.Dirty = true;
Boton._visible = true;
snd = new Sound();
snd.attachSound("panel_abrir");
snd.start();
}
}
};
t5.onRelease = function () {
Boton._visible = false;
};
t5.onReleaseOutside = function () {
Boton._visible = false;
};
t7.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagTuboAgarrado = true;
Tubo._visible = false;
t7._visible = false;
_root.AgregarObjeto("Tubo1");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
Symbol 362 MovieClip Frame 12
Llave._visible = false;
Secreto.setMask(MaskUV);
MaskUV._x = -300;
MaskUV._y = -300;
moviendo = false;
onEnterFrame = function () {
if (_root.Objeto == "UV2") {
MaskUV._visible = true;
MaskUV._x = _xmouse;
MaskUV._y = _ymouse;
} else {
MaskUV._x = -300;
MaskUV._y = -300;
}
Tubo._visible = !_root.flagTuboAgarrado;
t7._visible = !_root.flagTuboAgarrado;
};
if (_root.flagTapa1Abierta == true) {
Abierto._visible = true;
if (_root.flagLlave1Agarrada == true) {
Llave._visible = false;
} else {
Llave._visible = true;
}
} else {
Abierto._visible = false;
Llave._visible = false;
}
stop();
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t6.useHandCursor = _root.useHand;
t7.useHandCursor = _root.useHand;
if (_root.flagTuboAgarrado == true) {
Tubo._visible = false;
} else {
Tubo._visible = true;
}
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if (moviendo == false) {
moviendo = true;
gotoAndPlay (13);
_root.flagCaja1Abierta = false;
_root.Dirty = true;
Boton._visible = true;
snd = new Sound();
snd.attachSound("panel_cerrar");
snd.start();
}
}
};
t5.onRelease = function () {
Boton._visible = false;
};
t5.onReleaseOutside = function () {
Boton._visible = false;
};
t6.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if (_root.flagTapa1Abierta == true) {
gotoAndStop (24);
} else {
gotoAndStop (23);
}
}
};
t7.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagTuboAgarrado = true;
Tubo._visible = false;
t7._visible = false;
_root.AgregarObjeto("Tubo1");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
Symbol 362 MovieClip Frame 22
gotoAndStop (1);
Symbol 362 MovieClip Frame 23
function Checkar() {
if (((((((c1 == _root.Combinacion[0]) && (c2 == _root.Combinacion[1])) && (c3 == _root.Combinacion[2])) && (c4 == _root.Combinacion[3])) && (c5 == _root.Combinacion[4])) && (c6 == _root.Combinacion[5])) && (c7 == _root.Combinacion[6])) {
_root.flagTapa1Abierta = true;
nextFrame();
var _local2 = new Sound();
_local2.attachSound("puertita_abrir");
_local2.start();
var _local3 = new Sound();
_local3.attachSound("secret");
_local3.start();
}
_root.Dirty = true;
}
Secreto.setMask(MaskUV);
MaskUV._x = -300;
MaskUV._y = -300;
var c1 = _root.CurCombinacion[0];
var c2 = _root.CurCombinacion[1];
var c3 = _root.CurCombinacion[2];
var c4 = _root.CurCombinacion[3];
var c5 = _root.CurCombinacion[4];
var c6 = _root.CurCombinacion[5];
var c7 = _root.CurCombinacion[6];
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
b1.useHandCursor = _root.useHand;
b2.useHandCursor = _root.useHand;
b3.useHandCursor = _root.useHand;
b4.useHandCursor = _root.useHand;
b5.useHandCursor = _root.useHand;
b6.useHandCursor = _root.useHand;
b7.useHandCursor = _root.useHand;
stop();
onEnterFrame = function () {
b1.CambiarColor(c1);
b2.CambiarColor(c2);
b3.CambiarColor(c3);
b4.CambiarColor(c4);
b5.CambiarColor(c5);
b6.CambiarColor(c6);
b7.CambiarColor(c7);
if (_root.Objeto == "UV2") {
MaskUV._visible = true;
MaskUV._x = _xmouse;
MaskUV._y = _ymouse;
} else {
MaskUV._x = -300;
MaskUV._y = -300;
}
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
b1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
c1 = c1 + 1;
if (c1 > 6) {
c1 = 0;
}
_root.CurCombinacion[0] = c1;
Checkar();
_root.snd_beep1.start();
}
};
b2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
c2 = c2 + 1;
if (c2 > 6) {
c2 = 0;
}
_root.CurCombinacion[1] = c2;
Checkar();
_root.snd_beep1.start();
}
};
b3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
c3 = c3 + 1;
if (c3 > 6) {
c3 = 0;
}
_root.CurCombinacion[2] = c3;
Checkar();
_root.snd_beep1.start();
}
};
b4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
c4 = c4 + 1;
if (c4 > 6) {
c4 = 0;
}
_root.CurCombinacion[3] = c4;
Checkar();
_root.snd_beep1.start();
}
};
b5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
c5 = c5 + 1;
if (c5 > 6) {
c5 = 0;
}
_root.CurCombinacion[4] = c5;
Checkar();
_root.snd_beep1.start();
}
};
b6.onPress = function () {
if (_root.NiObjetoNiMenu()) {
c6 = c6 + 1;
if (c6 > 6) {
c6 = 0;
}
_root.CurCombinacion[5] = c6;
Checkar();
_root.snd_beep1.start();
}
};
b7.onPress = function () {
if (_root.NiObjetoNiMenu()) {
c7 = c7 + 1;
if (c7 > 6) {
c7 = 0;
}
_root.CurCombinacion[6] = c7;
Checkar();
_root.snd_beep1.start();
}
};
Symbol 362 MovieClip Frame 24
Secreto.setMask(MaskUV);
MaskUV._x = -300;
MaskUV._y = -300;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
Llave.useHandCursor = _root.useHand;
b1.CambiarColor(_root.Combinacion[0]);
b2.CambiarColor(_root.Combinacion[1]);
b3.CambiarColor(_root.Combinacion[2]);
b4.CambiarColor(_root.Combinacion[3]);
b5.CambiarColor(_root.Combinacion[4]);
b6.CambiarColor(_root.Combinacion[5]);
b7.CambiarColor(_root.Combinacion[6]);
onEnterFrame = function () {
if (_root.Objeto == "UV2") {
MaskUV._visible = true;
MaskUV._x = _xmouse;
MaskUV._y = _ymouse;
} else {
MaskUV._x = -300;
MaskUV._y = -300;
}
};
if (_root.flagLlave1Agarrada == true) {
Llave._visible = false;
} else {
Llave._visible = true;
}
stop();
Llave.onPress = function () {
_root.flagLlave1Agarrada = true;
Llave._visible = false;
_root.AgregarObjeto("Llave1");
var _local2 = new Sound();
_local2.attachSound("llave_agarrar");
_local2.start();
_root.snd_item.start();
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
Symbol 368 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
Llavecita.useHandCursor = _root.useHand;
onEnterFrame = function () {
if (_root.flagLlavecitaAgarrada == true) {
Llavecita._visible = false;
} else {
Llavecita._visible = true;
}
};
Llavecita.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagLlavecitaAgarrada = true;
_root.AgregarObjeto("Llavecita");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e3._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e3._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e3._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e3._visible = true;
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
if (_root.flagCajaFuerteAbierta == true) {
this._parent._parent.e7c._visible = true;
var _local3 = new Sound();
_local3.attachSound("safe_open");
_local3.start();
} else {
this._parent._parent.e7b._visible = true;
}
}
};
Symbol 381 MovieClip Frame 1
function Der() {
var _local2 = new Sound();
_local2.attachSound("mecanismo_click1");
_local2.start();
n = n - 1;
if (n < 0) {
n = 59;
}
Disco._rotation = (-n) * 6;
if (Paso == 0) {
if (n == _root.Combi1) {
c1 = true;
} else {
c1 = false;
}
}
if (Paso == 1) {
if (direccion == false) {
if (c2 == true) {
Paso = 2;
} else {
Paso = 0;
}
}
}
if (Paso == 2) {
if (n == _root.Combi3) {
c3 = true;
} else {
c3 = false;
}
}
if (Paso == 3) {
Paso = 0;
}
direccion = true;
}
function Izq() {
var _local3 = new Sound();
_local3.attachSound("mecanismo_click1");
_local3.start();
n = n + 1;
if (n > 59) {
n = 0;
}
Disco._rotation = (-n) * 6;
if (Paso == 0) {
if (direccion == true) {
if (c1 == true) {
Paso = 1;
} else {
Paso = 0;
}
}
}
if (Paso == 1) {
if (n == _root.Combi2) {
c2 = true;
} else {
c2 = false;
}
}
if (Paso == 2) {
if (direccion == true) {
if (c3 == true) {
Paso = 3;
} else {
Paso = 0;
}
}
}
if (Paso == 3) {
if (n == _root.Combi4) {
c4 = true;
_root.flagCajaFuerteAbierta = true;
this._visible = false;
this._parent.e7a._visible = true;
_local3 = new Sound();
_local3.attachSound("mecanismo_unlock1");
_local3.start();
var _local4 = new Sound();
_local4.attachSound("secret");
_local4.start();
_root.Dirty = true;
} else {
c4 = false;
}
}
direccion = false;
}
this.tabEnabled = false;
this.tabChildren = false;
stop();
var n = 0;
var d = 0;
var contador = 0;
var GirarI = false;
var GirarD = false;
var direccion = false;
var Paso = 0;
var c1 = false;
var c2 = false;
var c3 = false;
var c4 = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t6.useHandCursor = _root.useHand;
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e7a._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e7a._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e7a._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e7a._visible = true;
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
Izq();
contador = 0;
GirarI = true;
}
};
t5.onRelease = function () {
GirarI = false;
};
t5.onReleaseOutside = function () {
GirarI = false;
};
t6.onPress = function () {
if (_root.NiObjetoNiMenu()) {
Der();
contador = 0;
GirarD = true;
}
};
t6.onRelease = function () {
GirarD = false;
};
t6.onReleaseOutside = function () {
GirarD = false;
};
onEnterFrame = function () {
if (contador > 11) {
if (GirarI == true) {
Izq();
} else if (GirarD == true) {
Der();
}
} else {
contador = contador + 1;
}
};
Symbol 414 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
Lingote._visible = false;
Llave._visible = false;
moviendo = false;
contando = false;
var contador = 0;
if (_root.flagTapa2Abierta == true) {
Abierto._visible = true;
if (_root.flagLlave2Agarrada == true) {
Llave._visible = false;
} else {
Llave._visible = true;
}
} else {
Abierto._visible = false;
Llave._visible = false;
}
stop();
onEnterFrame = function () {
Lingote._visible = !_root.flagLingoteAgarrado;
if (contando == true) {
if (contador > 250) {
if (moviendo == false) {
moviendo = true;
gotoAndPlay (2);
_root.flagCaja2Abierta = true;
_root.Dirty = true;
snd = new Sound();
snd.attachSound("panel_abrir");
snd.start();
}
} else {
contador = contador + 1;
}
}
};
Boton._visible = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t7.useHandCursor = _root.useHand;
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
contador = 0;
contando = true;
Boton._visible = true;
}
};
t5.onRelease = function () {
Boton._visible = false;
contando = false;
};
t5.onReleaseOutside = function () {
Boton._visible = false;
contando = false;
};
t7.onPress = function () {
if (_root.NiObjetoNiMenu()) {
t7._visible = false;
_root.flagLingoteAgarrado = true;
_root.AgregarObjeto("Lingote");
var _local2 = new Sound();
_local2.attachSound("lingote_apoyar");
_local2.start();
_root.snd_item.start();
}
};
Symbol 414 MovieClip Frame 12
this.tabEnabled = false;
this.tabChildren = false;
Llave._visible = false;
if (_root.flagLingoteAgarrado == true) {
Lingote._visible = false;
} else {
Lingote._visible = true;
}
moviendo = false;
contando = false;
if (_root.flagTapa2Abierta == true) {
Abierto._visible = true;
if (_root.flagLlave2Agarrada == true) {
Llave._visible = false;
} else {
Llave._visible = true;
}
} else {
Abierto._visible = false;
Llave._visible = false;
}
Boton._visible = false;
stop();
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t6.useHandCursor = _root.useHand;
t7.useHandCursor = _root.useHand;
onEnterFrame = function () {
Lingote._visible = !_root.flagLingoteAgarrado;
t7._visible = !_root.flagLingoteAgarrado;
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if (moviendo == false) {
moviendo = true;
gotoAndPlay (13);
_root.flagCaja2Abierta = false;
_root.Dirty = true;
Boton._visible = true;
snd = new Sound();
snd.attachSound("panel_cerrar");
snd.start();
}
}
};
t5.onRelease = function () {
Boton._visible = false;
};
t5.onReleaseOutside = function () {
Boton._visible = false;
};
t6.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if (_root.flagTapa2Abierta == true) {
gotoAndPlay (24);
} else {
gotoAndPlay (23);
}
}
};
t7.onPress = function () {
if (_root.NiObjetoNiMenu()) {
t7._visible = false;
_root.flagLingoteAgarrado = true;
_root.AgregarObjeto("Lingote");
var _local2 = new Sound();
_local2.attachSound("lingote_apoyar");
_local2.start();
_root.snd_item.start();
}
};
Symbol 414 MovieClip Frame 22
gotoAndStop (1);
Symbol 414 MovieClip Frame 23
function EntrarDato() {
n = TraducirDato();
Salida[paso] = n;
paso = paso + 1;
eval (ElegirLed(paso))._visible = true;
ApagarBotones();
if (paso == 6) {
if ((((((Salida[0] == Valor(1)) && (Salida[1] == Valor(2))) && (Salida[2] == Valor(3))) && (Salida[3] == Valor(4))) && (Salida[4] == Valor(5))) && (Salida[5] == Valor(6))) {
LedBien._visible = true;
animacion = 1;
BloquearBotones(false);
var snd1 = new Sound();
snd1.attachSound("alarma_si");
snd1.start();
} else {
paso = 0;
LedMal._visible = true;
animacion = 1;
BloquearBotones(false);
var snd1 = new Sound();
snd1.attachSound("alarma_no");
snd1.start();
}
}
}
function ApagarLeds(b) {
LedAzul._visible = b;
LedCyan._visible = b;
LedVerde._visible = b;
LedRojo._visible = b;
LedMagenta._visible = b;
LedAmarillo._visible = b;
}
function TraducirDato() {
var _local1 = 0;
_local1 = 0;
if (((((((((Dato[0] == false) && (Dato[1] == false)) && (Dato[2] == false)) && (Dato[3] == false)) && (Dato[4] == true)) && (Dato[5] == false)) && (Dato[6] == false)) && (Dato[7] == false)) && (Dato[8] == false)) {
_local1 = 1;
}
if (((((((((Dato[0] == true) && (Dato[1] == false)) && (Dato[2] == false)) && (Dato[3] == false)) && (Dato[4] == false)) && (Dato[5] == false)) && (Dato[6] == false)) && (Dato[7] == false)) && (Dato[8] == true)) {
_local1 = 2;
}
if (((((((((Dato[0] == false) && (Dato[1] == false)) && (Dato[2] == true)) && (Dato[3] == false)) && (Dato[4] == false)) && (Dato[5] == false)) && (Dato[6] == true)) && (Dato[7] == false)) && (Dato[8] == false)) {
_local1 = 2;
}
if (((((((((Dato[0] == true) && (Dato[1] == false)) && (Dato[2] == false)) && (Dato[3] == false)) && (Dato[4] == true)) && (Dato[5] == false)) && (Dato[6] == false)) && (Dato[7] == false)) && (Dato[8] == true)) {
_local1 = 3;
}
if (((((((((Dato[0] == false) && (Dato[1] == false)) && (Dato[2] == true)) && (Dato[3] == false)) && (Dato[4] == true)) && (Dato[5] == false)) && (Dato[6] == true)) && (Dato[7] == false)) && (Dato[8] == false)) {
_local1 = 3;
}
if (((((((((Dato[0] == true) && (Dato[1] == false)) && (Dato[2] == true)) && (Dato[3] == false)) && (Dato[4] == false)) && (Dato[5] == false)) && (Dato[6] == true)) && (Dato[7] == false)) && (Dato[8] == true)) {
_local1 = 4;
}
if (((((((((Dato[0] == true) && (Dato[1] == false)) && (Dato[2] == true)) && (Dato[3] == false)) && (Dato[4] == true)) && (Dato[5] == false)) && (Dato[6] == true)) && (Dato[7] == false)) && (Dato[8] == true)) {
_local1 = 5;
}
if (((((((((Dato[0] == true) && (Dato[1] == false)) && (Dato[2] == true)) && (Dato[3] == true)) && (Dato[4] == false)) && (Dato[5] == true)) && (Dato[6] == true)) && (Dato[7] == false)) && (Dato[8] == true)) {
_local1 = 6;
}
if (((((((((Dato[0] == true) && (Dato[1] == true)) && (Dato[2] == true)) && (Dato[3] == false)) && (Dato[4] == false)) && (Dato[5] == false)) && (Dato[6] == true)) && (Dato[7] == true)) && (Dato[8] == true)) {
_local1 = 6;
}
return(_local1);
}
function ElegirLed(n) {
var _local3;
var _local2;
var _local4;
_local2 = 0;
while (_local2 < 6) {
if (_root.OrdenColores[_local2] == n) {
_local4 = _local2 + 1;
}
_local2++;
}
switch (_local4) {
case 1 :
_local3 = "LedAzul";
break;
case 2 :
_local3 = "LedCyan";
break;
case 3 :
_local3 = "LedVerde";
break;
case 4 :
_local3 = "LedRojo";
break;
case 5 :
_local3 = "LedMagenta";
break;
case 6 :
_local3 = "LedAmarillo";
}
return(_local3);
}
function Valor(n) {
var _local2;
var _local3;
_local2 = 0;
while (_local2 < 6) {
if (_root.OrdenColores[_local2] == n) {
_local3 = _local2 + 1;
}
_local2++;
}
return(_local3);
}
function ApagarBotones() {
var _local1;
_local1 = 0;
while (_local1 < 9) {
Dato[_local1] = false;
_local1++;
}
b1.CambiarColor(0);
b2.CambiarColor(0);
b3.CambiarColor(0);
b4.CambiarColor(0);
b5.CambiarColor(0);
b6.CambiarColor(0);
b7.CambiarColor(0);
b8.CambiarColor(0);
b9.CambiarColor(0);
}
function BloquearBotones(b) {
b1._visible = b;
b2._visible = b;
b3._visible = b;
b4._visible = b;
b5._visible = b;
b6._visible = b;
b7._visible = b;
b8._visible = b;
b9._visible = b;
benter._visible = b;
}
this.tabEnabled = false;
this.tabChildren = false;
stop();
LedAzul._x = 130 + (17 * _root.OrdenColores[0]);
LedCyan._x = 130 + (17 * _root.OrdenColores[1]);
LedVerde._x = 130 + (17 * _root.OrdenColores[2]);
LedRojo._x = 130 + (17 * _root.OrdenColores[3]);
LedMagenta._x = 130 + (17 * _root.OrdenColores[4]);
LedAmarillo._x = 130 + (17 * _root.OrdenColores[5]);
ApagarLeds(false);
LedMal._visible = false;
LedBien._visible = false;
var contador = 0;
var animacion = 0;
var paso = 0;
var Dato = [false, false, false, false, false, false, false, false, false];
var Salida = [0, 0, 0, 0, 0, 0];
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
b1.useHandCursor = _root.useHand;
b2.useHandCursor = _root.useHand;
b3.useHandCursor = _root.useHand;
b4.useHandCursor = _root.useHand;
b5.useHandCursor = _root.useHand;
b6.useHandCursor = _root.useHand;
b7.useHandCursor = _root.useHand;
b8.useHandCursor = _root.useHand;
b9.useHandCursor = _root.useHand;
benter.useHandCursor = _root.useHand;
led._visible = false;
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
b1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if (Dato[0] == true) {
Dato[0] = false;
b1.CambiarColor(0);
} else {
Dato[0] = true;
b1.CambiarColor(4);
}
_root.snd_beep1.start();
}
};
b2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if (Dato[1] == true) {
Dato[1] = false;
b2.CambiarColor(0);
} else {
Dato[1] = true;
b2.CambiarColor(4);
}
_root.snd_beep1.start();
}
};
b3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if (Dato[2] == true) {
Dato[2] = false;
b3.CambiarColor(0);
} else {
Dato[2] = true;
b3.CambiarColor(4);
}
_root.snd_beep1.start();
}
};
b4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if (Dato[3] == true) {
Dato[3] = false;
b4.CambiarColor(0);
} else {
Dato[3] = true;
b4.CambiarColor(4);
}
_root.snd_beep1.start();
}
};
b5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if (Dato[4] == true) {
Dato[4] = false;
b5.CambiarColor(0);
} else {
Dato[4] = true;
b5.CambiarColor(4);
}
_root.snd_beep1.start();
}
};
b6.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if (Dato[5] == true) {
Dato[5] = false;
b6.CambiarColor(0);
} else {
Dato[5] = true;
b6.CambiarColor(4);
}
_root.snd_beep1.start();
}
};
b7.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if (Dato[6] == true) {
Dato[6] = false;
b7.CambiarColor(0);
} else {
Dato[6] = true;
b7.CambiarColor(4);
}
_root.snd_beep1.start();
}
};
b8.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if (Dato[7] == true) {
Dato[7] = false;
b8.CambiarColor(0);
} else {
Dato[7] = true;
b8.CambiarColor(4);
}
_root.snd_beep1.start();
}
};
b9.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if (Dato[8] == true) {
Dato[8] = false;
b9.CambiarColor(0);
} else {
Dato[8] = true;
b9.CambiarColor(4);
}
_root.snd_beep1.start();
}
};
benter.onPress = function () {
if (_root.NiObjetoNiMenu()) {
benter.CambiarColor(4);
_root.snd_beep1.start();
}
};
benter.onRelease = function () {
if (_root.NiObjetoNiMenu()) {
benter.CambiarColor(0);
EntrarDato();
}
};
benter.onReleaseOutside = function () {
if (_root.NiObjetoNiMenu()) {
benter.CambiarColor(0);
EntrarDato();
}
};
onEnterFrame = function () {
switch (animacion) {
case 1 :
ApagarLeds(false);
contador = contador + 1;
if (contador == 10) {
contador = 0;
animacion = 2;
}
return;
case 2 :
ApagarLeds(true);
contador = contador + 1;
if (contador == 10) {
contador = 0;
animacion = 3;
}
return;
case 3 :
ApagarLeds(false);
contador = contador + 1;
if (contador == 10) {
contador = 0;
animacion = 4;
}
return;
case 4 :
ApagarLeds(true);
contador = contador + 1;
if (contador == 10) {
contador = 0;
animacion = 5;
}
return;
case 5 :
eval (ElegirLed(6))._visible = false;
animacion = 6;
return;
case 6 :
eval (ElegirLed(5))._visible = false;
animacion = 7;
return;
case 7 :
eval (ElegirLed(4))._visible = false;
animacion = 8;
return;
case 8 :
eval (ElegirLed(3))._visible = false;
animacion = 9;
return;
case 9 :
eval (ElegirLed(2))._visible = false;
animacion = 10;
return;
case 10 :
eval (ElegirLed(1))._visible = false;
LedMal._visible = false;
animacion = 0;
if (LedBien._visible == true) {
_root.flagTapa2Abierta = true;
nextFrame();
var snd = new Sound();
snd.attachSound("puertita_abrir");
snd.start();
var snd1 = new Sound();
snd1.attachSound("secret");
snd1.start();
_root.Dirty = true;
}
BloquearBotones(true);
}
};
Symbol 414 MovieClip Frame 24
this.tabEnabled = false;
this.tabChildren = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
Llave.useHandCursor = _root.useHand;
if (_root.flagLlave2Agarrada == true) {
Llave._visible = false;
} else {
Llave._visible = true;
}
stop();
Llave.onPress = function () {
_root.flagLlave2Agarrada = true;
Llave._visible = false;
_root.AgregarObjeto("Llave2");
var _local2 = new Sound();
_local2.attachSound("llave_agarrar");
_local2.start();
_root.snd_item.start();
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
Symbol 426 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t6.useHandCursor = _root.useHand;
t7.useHandCursor = _root.useHand;
t8.useHandCursor = _root.useHand;
t9.useHandCursor = _root.useHand;
Hilo.useHandCursor = _root.useHand;
var TablonPresionado = false;
onEnterFrame = function () {
Tablon1._visible = _root.flagLingoteApoyado || (TablonPresionado);
Lingote._visible = _root.flagLingoteApoyado;
Hilo._visible = (_root.flagLingoteApoyado || (TablonPresionado)) && (!_root.flagHiloCortado);
t9._visible = (!_root.flagLingoteApoyado) && (_root.flagHiloCortado);
t1._visible = !_root.flagLingoteApoyado;
t2._visible = !_root.flagLingoteApoyado;
t3._visible = !_root.flagLingoteApoyado;
t4._visible = !_root.flagLingoteApoyado;
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e3._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t8.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if (_root.flagLingoteApoyado == true) {
_root.flagLingoteApoyado = false;
_root.AgregarObjeto("Lingote");
var _local2 = new Sound();
_local2.attachSound("lingote_apoyar");
_local2.start();
var _local3 = new Sound();
_local3.attachSound("madero_down");
_local3.start();
_root.snd_item.start();
} else {
TablonPresionado = true;
var _local2 = new Sound();
_local2.attachSound("madero_up");
_local2.start();
}
}
if (_root.Inventario._visible == false) {
if (_root.Objeto == "Lingote") {
if (_root.flagLingoteApoyado == false) {
_root.Objeto = null;
_root.flagLingoteApoyado = true;
_root.EliminarObjeto("Lingote");
var _local2 = new Sound();
_local2.attachSound("lingote_apoyar");
_local2.start();
var _local3 = new Sound();
_local3.attachSound("madero_up");
_local3.start();
}
}
}
};
t8.onRelease = function () {
if (TablonPresionado == true) {
TablonPresionado = false;
var _local1 = new Sound();
_local1.attachSound("madero_down");
_local1.start();
}
};
t8.onReleaseOutside = function () {
if (TablonPresionado == true) {
TablonPresionado = false;
var _local1 = new Sound();
_local1.attachSound("madero_down");
_local1.start();
}
};
Hilo.onPress = function () {
if (_root.Inventario._visible == false) {
if (_root.Objeto == "Victorinox1") {
_root.flagHiloCortado = true;
var _local2 = new Sound();
_local2.attachSound("hilo_cortar");
_local2.start();
_root.Dirty = true;
}
}
};
t9.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e10a._visible = true;
_root.flagMaderoAbierto = true;
var _local3 = new Sound();
_local3.attachSound("madero_abrir");
_local3.start();
_root.Dirty = true;
}
};
Symbol 472 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t6.useHandCursor = _root.useHand;
t7.useHandCursor = _root.useHand;
t8.useHandCursor = _root.useHand;
t9.useHandCursor = _root.useHand;
t10.useHandCursor = _root.useHand;
Victorinox.useHandCursor = _root.useHand;
Cubito.useHandCursor = _root.useHand;
Puntero.useHandCursor = _root.useHand;
Cajita.useHandCursor = _root.useHand;
Picaporte.useHandCursor = _root.useHand;
Sobre.useHandCursor = _root.useHand;
onEnterFrame = function () {
Llave1._visible = _root.flagLlave1Puesta;
Llave2._visible = _root.flagLlave2Puesta;
Llave3._visible = _root.flagLlave3Puesta;
if (_root.flagCajitaAbierta == true) {
Cajita._visible = true;
t10._visible = false;
Picaporte._visible = !_root.flagPicaporteAgarrado;
} else {
Cajita._visible = false;
t10._visible = true;
Picaporte._visible = false;
}
Victorinox._visible = !_root.flagVictorinoxAgarrada;
Puntero._visible = !_root.flagPunteroAgarrado;
Cubito._visible = !_root.flagCubitoAgarrado;
Sobre._visible = !_root.flagSobreAgarrado;
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t7.onPress = function () {
if (_root.Inventario._visible == false) {
if (_root.Objeto == "Llave1") {
_root.flagLlave1Puesta = true;
_root.EliminarObjeto("Llave1");
_root.Objeto = null;
var _local2 = new Sound();
_local2.attachSound("llave_poner");
_local2.start();
}
}
};
t8.onPress = function () {
if (_root.Inventario._visible == false) {
if (_root.Objeto == "Llave2") {
_root.flagLlave2Puesta = true;
_root.EliminarObjeto("Llave2");
_root.Objeto = null;
var _local2 = new Sound();
_local2.attachSound("llave_poner");
_local2.start();
}
}
};
t9.onPress = function () {
if (_root.Inventario._visible == false) {
if (_root.Objeto == "Llave3") {
_root.flagLlave3Puesta = true;
_root.EliminarObjeto("Llave3");
_root.Objeto = null;
var _local2 = new Sound();
_local2.attachSound("llave_poner");
_local2.start();
}
}
};
t10.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if (((Llave1._visible == true) && (Llave2._visible == true)) && (Llave3._visible == true)) {
_root.flagCajitaAbierta = true;
var _local2 = new Sound();
_local2.attachSound("cajita_abrir");
_local2.start();
var _local3 = new Sound();
_local3.attachSound("secret");
_local3.start();
}
}
};
Victorinox.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagVictorinoxAgarrada = true;
_root.AgregarObjeto("Victorinox");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
Puntero.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagPunteroAgarrado = true;
_root.AgregarObjeto("Puntero");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
Cubito.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagCubitoAgarrado = true;
_root.AgregarObjeto("Cubito");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
Picaporte.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagPicaporteAgarrado = true;
_root.AgregarObjeto("Picaporte");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
Sobre.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagSobreAgarrado = true;
_root.AgregarObjeto("Pista0");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
Symbol 481 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t6.useHandCursor = _root.useHand;
t7.useHandCursor = _root.useHand;
stop();
onEnterFrame = function () {
Tornillo1._visible = _root.flagTornillito1Agarrado;
t5._visible = !_root.flagTornillito1Agarrado;
Tornillo2._visible = _root.flagTornillito2Agarrado;
t6._visible = !_root.flagTornillito2Agarrado;
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t5.onPress = function () {
if (_root.Inventario._visible == false) {
if (_root.Objeto == "Victorinox3") {
_root.flagTornillito1Agarrado = true;
_root.Dirty = true;
var _local2 = new Sound();
_local2.attachSound("tornillo_desenroscar");
_local2.start();
}
}
};
t6.onPress = function () {
if (_root.Inventario._visible == false) {
if (_root.Objeto == "Victorinox3") {
_root.flagTornillito2Agarrado = true;
_root.Dirty = true;
var _local2 = new Sound();
_local2.attachSound("tornillo_desenroscar");
_local2.start();
}
}
};
t7.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if ((Tornillo1._visible == true) && (Tornillo2._visible == true)) {
this._parent._visible = false;
this._parent._parent.e11b._visible = true;
_root.flagEnchufeAbierto2 = true;
var _local3 = new Sound();
_local3.attachSound("enchufe_abrir");
_local3.start();
_root.Dirty = true;
}
}
};
Symbol 494 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
Pista.setMask(MaskUV);
MaskUV._x = -300;
MaskUV._y = -300;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
Pila.useHandCursor = _root.useHand;
onEnterFrame = function () {
if (_root.Objeto == "UV2") {
MaskUV._visible = true;
MaskUV._x = _xmouse;
MaskUV._y = _ymouse;
} else {
MaskUV._x = -300;
MaskUV._y = -300;
}
Pila._visible = !_root.flagPila3Agarrada;
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
Pila.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagPila3Agarrada = true;
_root.AgregarObjeto("Pila");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
Symbol 508 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
Pista.setMask(MaskUV);
MaskUV._x = -300;
MaskUV._y = -300;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
Cajita.useHandCursor = _root.useHand;
LlaveL.useHandCursor = _root.useHand;
onEnterFrame = function () {
if (_root.Objeto == "UV2") {
MaskUV._visible = true;
MaskUV._x = _xmouse;
MaskUV._y = _ymouse;
} else {
MaskUV._x = -300;
MaskUV._y = -300;
}
LlaveL._visible = !_root.flagLlaveLAgarrada;
Cajita._visible = !_root.flagCajitaAgarrada;
};
LlaveL.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagLlaveLAgarrada = true;
_root.AgregarObjeto("LlaveL");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
Cajita.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagCajitaAgarrada = true;
_root.AgregarObjeto("Cajita");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e3._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e3._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e3._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e3._visible = true;
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e7a._visible = true;
var _local3 = new Sound();
_local3.attachSound("safe_close");
_local3.start();
}
};
Symbol 517 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
P.setMask(MaskUV);
MaskUV._x = -300;
MaskUV._y = -300;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t6.useHandCursor = _root.useHand;
t7.useHandCursor = _root.useHand;
t8.useHandCursor = _root.useHand;
onEnterFrame = function () {
if (_root.Objeto == "UV2") {
MaskUV._visible = true;
MaskUV._x = _xmouse;
MaskUV._y = _ymouse;
} else {
MaskUV._x = -300;
MaskUV._y = -300;
}
UV._visible = !_root.flagUVAgarrado;
t8._visible = !_root.flagUVAgarrado;
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e3._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t8.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagUVAgarrado = true;
_root.AgregarObjeto("UV1");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
Symbol 530 MovieClip Frame 1
stop();
Symbol 530 MovieClip Frame 8
var snd = new Sound();
snd.attachSound("cuadro_abrir");
snd.start();
var snd1 = new Sound();
snd1.attachSound("secret");
snd1.start();
Symbol 530 MovieClip Frame 20
stop();
this._visible = false;
this._parent.e7a._visible = true;
_root.Dirty = true;
Symbol 536 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t6.useHandCursor = _root.useHand;
Picaporte.useHandCursor = _root.useHand;
stop();
onEnterFrame = function () {
Picaporte._visible = _root.flagPicaportePuesto;
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e1._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e1._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e1._visible = true;
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e17._visible = true;
}
};
t6.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e1._visible = true;
} else if (_root.Inventario._visible == false) {
if (_root.Objeto == "Picaporte") {
_root.flagPicaportePuesto = true;
_root.EliminarObjeto("Picaporte");
_root.Objeto = null;
var _local3 = new Sound();
_local3.attachSound("picaporte_poner");
_local3.start();
_root.Dirty = true;
}
}
};
Picaporte.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e1a._visible = true;
_root.flagPuertaAbierta = true;
var _local3 = new Sound();
_local3.attachSound("puerta_abrir");
_local3.start();
var _local4 = new Sound();
_local4.attachSound("secret");
_local4.start();
}
};
Symbol 575 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
L1.useHandCursor = _root.useHand;
L2.useHandCursor = _root.useHand;
L3.useHandCursor = _root.useHand;
L4.useHandCursor = _root.useHand;
LL11.useHandCursor = _root.useHand;
LL21.useHandCursor = _root.useHand;
LL31.useHandCursor = _root.useHand;
LL41.useHandCursor = _root.useHand;
LL12.useHandCursor = _root.useHand;
LL22.useHandCursor = _root.useHand;
LL32.useHandCursor = _root.useHand;
LL42.useHandCursor = _root.useHand;
LL13.useHandCursor = _root.useHand;
LL23.useHandCursor = _root.useHand;
LL33.useHandCursor = _root.useHand;
LL43.useHandCursor = _root.useHand;
onEnterFrame = function () {
LL11._visible = _root.flagLL11;
LL21._visible = _root.flagLL21;
LL31._visible = _root.flagLL31;
LL41._visible = _root.flagLL41;
LL12._visible = _root.flagLL12;
LL22._visible = _root.flagLL22;
LL32._visible = _root.flagLL32;
LL42._visible = _root.flagLL42;
LL13._visible = _root.flagLL13;
LL23._visible = _root.flagLL23;
LL33._visible = _root.flagLL33;
LL43._visible = _root.flagLL43;
b = !(((((((((((_root.flagLL11 || (_root.flagLL21)) || (_root.flagLL31)) || (_root.flagLL41)) || (_root.flagLL12)) || (_root.flagLL22)) || (_root.flagLL32)) || (_root.flagLL42)) || (_root.flagLL13)) || (_root.flagLL23)) || (_root.flagLL33)) || (_root.flagLL43));
t1._visible = b;
t2._visible = b;
t3._visible = b;
L1._visible = b;
L2._visible = b;
L3._visible = b;
L4._visible = b;
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e12a._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e12a._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e12a._visible = true;
}
};
L1.onPress = function () {
if (_root.Inventario._visible == false) {
if (_root.Objeto == "LlaveL") {
_root.flagLL11 = true;
_root.EliminarObjeto("LlaveL");
_root.Objeto = null;
}
if (_root.Objeto == "LlaveL1") {
_root.flagLL11 = true;
_root.EliminarObjeto("LlaveL1");
_root.Objeto = null;
}
}
};
LL11.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagLL11 = false;
if ((_root.flagLlaveImantada == true) && (_root.flagBateria1Agarrada == false)) {
_root.flagLL13 = true;
} else {
_root.flagLL12 = true;
}
}
};
LL12.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagLL12 = false;
if (_root.flagLlaveImantada == true) {
_root.AgregarObjeto("LlaveL1");
} else {
_root.AgregarObjeto("LlaveL");
}
}
};
LL13.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagLL13 = false;
_root.flagBateria1Agarrada = true;
_root.AgregarObjeto("LlaveL1");
_root.AgregarObjeto("Bateria1");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
L2.onPress = function () {
if (_root.Inventario._visible == false) {
if (_root.Objeto == "LlaveL") {
_root.flagLL21 = true;
_root.EliminarObjeto("LlaveL");
_root.Objeto = null;
}
if (_root.Objeto == "LlaveL1") {
_root.flagLL21 = true;
_root.EliminarObjeto("LlaveL1");
_root.Objeto = null;
}
}
};
LL21.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagLL21 = false;
if ((_root.flagLlaveImantada == true) && (_root.flagBateria2Agarrada == false)) {
_root.flagLL23 = true;
} else {
_root.flagLL22 = true;
}
}
};
LL22.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagLL22 = false;
if (_root.flagLlaveImantada == true) {
_root.AgregarObjeto("LlaveL1");
} else {
_root.AgregarObjeto("LlaveL");
}
}
};
LL23.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagLL23 = false;
_root.flagBateria2Agarrada = true;
_root.AgregarObjeto("LlaveL1");
_root.AgregarObjeto("Bateria2");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
L3.onPress = function () {
if (_root.Inventario._visible == false) {
if (_root.Objeto == "LlaveL") {
_root.flagLL31 = true;
_root.EliminarObjeto("LlaveL");
_root.Objeto = null;
}
if (_root.Objeto == "LlaveL1") {
_root.flagLL31 = true;
_root.EliminarObjeto("LlaveL1");
_root.Objeto = null;
}
}
};
LL31.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagLL31 = false;
if ((_root.flagLlaveImantada == true) && (_root.flagBateria3Agarrada == false)) {
_root.flagLL33 = true;
} else {
_root.flagLL32 = true;
}
}
};
LL32.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagLL32 = false;
if (_root.flagLlaveImantada == true) {
_root.AgregarObjeto("LlaveL1");
} else {
_root.AgregarObjeto("LlaveL");
}
}
};
LL33.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagLL33 = false;
_root.flagBateria3Agarrada = true;
_root.AgregarObjeto("LlaveL1");
_root.AgregarObjeto("Bateria3");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
L4.onPress = function () {
if (_root.Inventario._visible == false) {
if (_root.Objeto == "LlaveL") {
_root.flagLL41 = true;
_root.EliminarObjeto("LlaveL");
_root.Objeto = null;
}
if (_root.Objeto == "LlaveL1") {
_root.flagLL41 = true;
OcultarT(false);
_root.EliminarObjeto("LlaveL1");
_root.Objeto = null;
}
}
};
LL41.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagLL41 = false;
if ((_root.flagLlaveImantada == true) && (_root.flagBateria4Agarrada == false)) {
_root.flagLL43 = true;
} else {
_root.flagLL42 = true;
}
}
};
LL42.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagLL42 = false;
if (_root.flagLlaveImantada == true) {
_root.AgregarObjeto("LlaveL1");
} else {
_root.AgregarObjeto("LlaveL");
}
}
};
LL43.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagLL43 = false;
_root.flagBateria4Agarrada = true;
_root.AgregarObjeto("LlaveL1");
_root.AgregarObjeto("Bateria4");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
Symbol 590 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
Llave._visible = false;
Secreto.setMask(MaskUV);
MaskUV._x = -300;
MaskUV._y = -300;
MaskUV._visible = true;
moviendo = false;
stop();
Boton._visible = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t7.useHandCursor = _root.useHand;
onEnterFrame = function () {
if ((_root.flagLlave3Agarrada == false) && (_root.flagTapa3Abierta == true)) {
Llave._visible = true;
} else {
Llave._visible = false;
}
if (_root.flagTapa3Abierta == true) {
Abierto._visible = true;
if (_root.flagLlave3Agarrada == true) {
Llave._visible = false;
} else {
Llave._visible = true;
}
} else {
Abierto._visible = false;
Llave._visible = false;
}
if (_root.Objeto == "UV2") {
MaskUV._x = _xmouse;
MaskUV._y = _ymouse;
} else {
MaskUV._x = -300;
MaskUV._y = -300;
}
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu() || ((_root.Inventario._visible == false) && (_root.Objeto == "UV2"))) {
if (moviendo == false) {
moviendo = true;
gotoAndPlay (2);
_root.flagCaja3Abierta = true;
_root.Dirty = true;
Boton._visible = true;
var _local2 = new Sound();
_local2.attachSound("panel_abrir");
_local2.start();
}
}
};
t5.onRelease = function () {
Boton._visible = false;
};
t5.onReleaseOutside = function () {
Boton._visible = false;
};
Symbol 590 MovieClip Frame 12
this.tabEnabled = false;
this.tabChildren = false;
Llave._visible = false;
Secreto.setMask(MaskUV);
MaskUV._x = -300;
MaskUV._y = -300;
MaskUV._visible = true;
moviendo = false;
if (_root.flagTapa3Abierta == true) {
Abierto._visible = true;
if (_root.flagLlave3Agarrada == true) {
Llave._visible = false;
} else {
Llave._visible = true;
}
} else {
Abierto._visible = false;
Llave._visible = false;
}
stop();
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
t6.useHandCursor = _root.useHand;
t7.useHandCursor = _root.useHand;
if (_root.flagTuboAgarrado == true) {
Tubo._visible = false;
} else {
Tubo._visible = true;
}
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e2._visible = true;
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu() || ((_root.Inventario._visible == false) && (_root.Objeto == "UV2"))) {
if (moviendo == false) {
moviendo = true;
gotoAndPlay (13);
_root.flagCaja3Abierta = false;
_root.Dirty = true;
var _local2 = new Sound();
_local2.attachSound("panel_cerrar");
_local2.start();
Boton._visible = true;
}
}
};
t5.onRelease = function () {
Boton._visible = false;
};
t5.onReleaseOutside = function () {
Boton._visible = false;
};
t6.onPress = function () {
if (_root.NiObjetoNiMenu()) {
if (_root.flagTapa3Abierta == true) {
gotoAndStop (24);
} else {
gotoAndStop (23);
}
}
};
t7.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.flagTuboAgarrado = true;
Tubo._visible = false;
t7._visible = false;
_root.AgregarObjeto("Tubo1");
}
};
Symbol 590 MovieClip Frame 22
gotoAndStop (1);
Symbol 590 MovieClip Frame 23
function Checkar() {
var _local2;
var _local3 = true;
_local2 = 0;
while (_local2 < 16) {
if (_root.CurCombinacion3[_local2] != _root.Combinacion3[_local2]) {
_local3 = false;
break;
}
_local2++;
}
if (_local3) {
gotoAndStop (24);
_root.flagTapa3Abierta = true;
var _local4 = new Sound();
_local4.attachSound("puertita_abrir");
_local4.start();
var _local5 = new Sound();
_local5.attachSound("secret");
_local5.start();
}
_root.Dirty = true;
}
this.tabEnabled = false;
this.tabChildren = false;
Secreto.setMask(MaskUV);
MaskUV._x = -300;
MaskUV._y = -300;
MaskUV._visible = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
b1.useHandCursor = _root.useHand;
b2.useHandCursor = _root.useHand;
b3.useHandCursor = _root.useHand;
b4.useHandCursor = _root.useHand;
b5.useHandCursor = _root.useHand;
b6.useHandCursor = _root.useHand;
b7.useHandCursor = _root.useHand;
b8.useHandCursor = _root.useHand;
b9.useHandCursor = _root.useHand;
b10.useHandCursor = _root.useHand;
b11.useHandCursor = _root.useHand;
b12.useHandCursor = _root.useHand;
b13.useHandCursor = _root.useHand;
b14.useHandCursor = _root.useHand;
b15.useHandCursor = _root.useHand;
b16.useHandCursor = _root.useHand;
onEnterFrame = function () {
if (_root.CurCombinacion3[0] != true) {
b1.CambiarColor(0);
} else {
b1.CambiarColor(4);
}
if (_root.CurCombinacion3[1] != true) {
b2.CambiarColor(0);
} else {
b2.CambiarColor(4);
}
if (_root.CurCombinacion3[2] != true) {
b3.CambiarColor(0);
} else {
b3.CambiarColor(4);
}
if (_root.CurCombinacion3[3] != true) {
b4.CambiarColor(0);
} else {
b4.CambiarColor(4);
}
if (_root.CurCombinacion3[4] != true) {
b5.CambiarColor(0);
} else {
b5.CambiarColor(4);
}
if (_root.CurCombinacion3[5] != true) {
b6.CambiarColor(0);
} else {
b6.CambiarColor(4);
}
if (_root.CurCombinacion3[6] != true) {
b7.CambiarColor(0);
} else {
b7.CambiarColor(4);
}
if (_root.CurCombinacion3[7] != true) {
b8.CambiarColor(0);
} else {
b8.CambiarColor(4);
}
if (_root.CurCombinacion3[8] != true) {
b9.CambiarColor(0);
} else {
b9.CambiarColor(4);
}
if (_root.CurCombinacion3[9] != true) {
b10.CambiarColor(0);
} else {
b10.CambiarColor(4);
}
if (_root.CurCombinacion3[10] != true) {
b11.CambiarColor(0);
} else {
b11.CambiarColor(4);
}
if (_root.CurCombinacion3[11] != true) {
b12.CambiarColor(0);
} else {
b12.CambiarColor(4);
}
if (_root.CurCombinacion3[12] != true) {
b13.CambiarColor(0);
} else {
b13.CambiarColor(4);
}
if (_root.CurCombinacion3[13] != true) {
b14.CambiarColor(0);
} else {
b14.CambiarColor(4);
}
if (_root.CurCombinacion3[14] != true) {
b15.CambiarColor(0);
} else {
b15.CambiarColor(4);
}
if (_root.CurCombinacion3[15] != true) {
b16.CambiarColor(0);
} else {
b16.CambiarColor(4);
}
};
stop();
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
b1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.CurCombinacion3[0] = !_root.CurCombinacion3[0];
_root.snd_beep1.start();
Checkar();
}
};
b2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.CurCombinacion3[1] = !_root.CurCombinacion3[1];
_root.snd_beep1.start();
Checkar();
}
};
b3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.CurCombinacion3[2] = !_root.CurCombinacion3[2];
_root.snd_beep1.start();
Checkar();
}
};
b4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.CurCombinacion3[3] = !_root.CurCombinacion3[3];
_root.snd_beep1.start();
Checkar();
}
};
b5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.CurCombinacion3[4] = !_root.CurCombinacion3[4];
_root.snd_beep1.start();
Checkar();
}
};
b6.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.CurCombinacion3[5] = !_root.CurCombinacion3[5];
_root.snd_beep1.start();
Checkar();
}
};
b7.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.CurCombinacion3[6] = !_root.CurCombinacion3[6];
_root.snd_beep1.start();
Checkar();
}
};
b8.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.CurCombinacion3[7] = !_root.CurCombinacion3[7];
_root.snd_beep1.start();
Checkar();
}
};
b9.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.CurCombinacion3[8] = !_root.CurCombinacion3[8];
_root.snd_beep1.start();
Checkar();
}
};
b10.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.CurCombinacion3[9] = !_root.CurCombinacion3[9];
_root.snd_beep1.start();
Checkar();
}
};
b11.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.CurCombinacion3[10] = !_root.CurCombinacion3[10];
_root.snd_beep1.start();
Checkar();
}
};
b12.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.CurCombinacion3[11] = !_root.CurCombinacion3[11];
_root.snd_beep1.start();
Checkar();
}
};
b13.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.CurCombinacion3[12] = !_root.CurCombinacion3[12];
_root.snd_beep1.start();
Checkar();
}
};
b14.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.CurCombinacion3[13] = !_root.CurCombinacion3[13];
_root.snd_beep1.start();
Checkar();
}
};
b15.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.CurCombinacion3[14] = !_root.CurCombinacion3[14];
_root.snd_beep1.start();
Checkar();
}
};
b16.onPress = function () {
if (_root.NiObjetoNiMenu()) {
_root.CurCombinacion3[15] = !_root.CurCombinacion3[15];
_root.snd_beep1.start();
Checkar();
}
};
Symbol 590 MovieClip Frame 24
this.tabEnabled = false;
this.tabChildren = false;
Secreto.setMask(MaskUV);
MaskUV._x = -300;
MaskUV._y = -300;
MaskUV._visible = false;
t1.useHandCursor = _root.useHand;
t2.useHandCursor = _root.useHand;
t3.useHandCursor = _root.useHand;
t4.useHandCursor = _root.useHand;
t5.useHandCursor = _root.useHand;
Llave.useHandCursor = _root.useHand;
if (_root.flagLlave3Agarrada == true) {
Llave._visible = false;
} else {
Llave._visible = true;
}
stop();
Llave.onPress = function () {
_root.flagLlave3Agarrada = true;
Llave._visible = false;
_root.AgregarObjeto("Llave3");
var _local2 = new Sound();
_local2.attachSound("llave_agarrar");
_local2.start();
_root.snd_item.start();
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
t3.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
t4.onPress = function () {
if (_root.NiObjetoNiMenu()) {
gotoAndStop (12);
}
};
Symbol 596 MovieClip Frame 1
this.tabEnabled = false;
this.tabChildren = false;
stop();
SillaCorrida._visible = false;
t1.useHandCursor = false;
t2.useHandCursor = false;
t3.useHandCursor = false;
t4.useHandCursor = false;
t5.useHandCursor = false;
Caja1.useHandCursor = false;
onEnterFrame = function () {
if (_root.flagCaja1Abierta == true) {
Caja1._visible = true;
} else {
Caja1._visible = false;
}
if (_root.flagSillaCorrida == true) {
SillaCorrida._visible = true;
} else {
SillaCorrida._visible = false;
}
};
Caja1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e5._visible = true;
}
};
t1.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e3._visible = true;
}
};
t2.onPress = function () {
if (_root.NiObjetoNiMenu()) {
this._parent._visible = false;
this._parent._parent.e4._visible = true;
}
};
t5.onPress = function () {
if (_root.NiObjetoNiMenu()) {
removeMovieClip(_root.menu_mc);
play();
}
};
Symbol 596 MovieClip Frame 258
stop();
this._visible = false;
this._parent.TheEnd._visible = true;
this._parent.TheEnd.gotoAndPlay(1);
Symbol 608 MovieClip Frame 1
this.tabEnabled = false;
Pista.useHandCursor = _root.useHand;
stop();
onEnterFrame = function () {
Pista._visible = !_root.flagPista2Agarrada;
};
Pista.onPress = function () {
if (_root.Objeto == null) {
_root.flagPista2Agarrada = true;
_root.AgregarObjeto("Pista2Cerrada");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
var _local3 = new Sound();
_local3.attachSound("papel_close");
_local3.start();
}
};
Symbol 615 MovieClip Frame 1
this.tabEnabled = false;
stop();
t1.useHandCursor = _root.useHand;
t1.onPress = function () {
if (_root.Objeto == null) {
nextFrame();
var _local2 = new Sound();
_local2.attachSound("papel_open");
_local2.start();
}
};
Symbol 615 MovieClip Frame 2
stop();
t1.useHandCursor = _root.useHand;
t1.onPress = function () {
if (_root.Objeto == null) {
prevFrame();
var _local2 = new Sound();
_local2.attachSound("papel_close");
_local2.start();
}
};
Symbol 618 MovieClip Frame 1
this.tabEnabled = false;
this.useHandCursor = _root.useHand;
onPress = function () {
if (_root.Objeto == null) {
this._visible = false;
this._parent.Victorinox2._visible = true;
_root.EliminarObjeto("Victorinox1");
_root.AgregarObjeto("Victorinox2");
var _local3 = new Sound();
_local3.attachSound("navaja");
_local3.start();
}
};
Symbol 621 MovieClip Frame 1
this.tabEnabled = false;
this.useHandCursor = _root.useHand;
onPress = function () {
if (_root.Objeto == null) {
this._visible = false;
this._parent.Victorinox3._visible = true;
_root.EliminarObjeto("Victorinox2");
_root.AgregarObjeto("Victorinox3");
var _local3 = new Sound();
_local3.attachSound("navaja");
_local3.start();
}
};
Symbol 624 MovieClip Frame 1
this.tabEnabled = false;
this.useHandCursor = _root.useHand;
onPress = function () {
if (_root.Objeto == null) {
this._visible = false;
this._parent.Victorinox4._visible = true;
_root.EliminarObjeto("Victorinox3");
_root.AgregarObjeto("Victorinox4");
var _local3 = new Sound();
_local3.attachSound("navaja");
_local3.start();
}
};
Symbol 627 MovieClip Frame 1
this.tabEnabled = false;
this.useHandCursor = _root.useHand;
onPress = function () {
if (_root.Objeto == null) {
this._visible = false;
this._parent.Victorinox._visible = true;
_root.EliminarObjeto("Victorinox4");
_root.AgregarObjeto("Victorinox");
var _local3 = new Sound();
_local3.attachSound("navaja");
_local3.start();
}
};
Symbol 650 MovieClip Frame 1
var Pos = 3;
this.onMouseDown = function () {
if (_ymouse > 120) {
Pos = 0;
} else if (_ymouse > 100) {
Pos = 1;
} else if (_ymouse > 80) {
Pos = 2;
} else if (_ymouse > 60) {
Pos = 3;
} else if (_ymouse > 40) {
Pos = 4;
} else if (_ymouse > 20) {
Pos = 5;
} else {
Pos = 6;
}
};
Symbol 651 MovieClip Frame 1
function Checkar() {
if (((((_root.CurValoresEQ[0] == _root.ValoresEQ[0]) && (_root.CurValoresEQ[1] == _root.ValoresEQ[1])) && (_root.CurValoresEQ[2] == _root.ValoresEQ[2])) && (_root.CurValoresEQ[3] == _root.ValoresEQ[3])) && (_root.CurValoresEQ[4] == _root.ValoresEQ[4])) {
this._visible = false;
this._parent.CajitaAbierta._visible = true;
var _local3 = new Sound();
_local3.attachSound("cajita_abrir");
_local3.start();
} else {
var _local3 = new Sound();
_local3.attachSound("caja_no");
_local3.start();
}
}
this.tabEnabled = false;
var pos100 = [[263, 183], [253, 176], [244, 168], [235, 161], [226, 155], [217, 147], [206, 139]];
var pos300 = [[286, 167], [276, 159], [267, 153], [257, 146], [249, 139], [239, 133], [229, 125]];
var pos1k = [[307, 151], [298, 144], [288, 138], [279, 131], [270, 125], [261, 119], [250, 110]];
var pos3k = [[328, 135], [318, 129], [309, 123], [300, 116], [291, 111], [281, 104], [271, 97]];
var pos10k = [[347, 121], [338, 115], [328, 109], [319, 103], [310, 97], [300, 91], [291, 85]];
onEnterFrame = function () {
P0._x = pos100[_root.CurValoresEQ[0]][0];
P0._y = pos100[_root.CurValoresEQ[0]][1];
P1._x = pos300[_root.CurValoresEQ[1]][0];
P1._y = pos300[_root.CurValoresEQ[1]][1];
P2._x = pos1k[_root.CurValoresEQ[2]][0];
P2._y = pos1k[_root.CurValoresEQ[2]][1];
P3._x = pos3k[_root.CurValoresEQ[3]][0];
P3._y = pos3k[_root.CurValoresEQ[3]][1];
P4._x = pos10k[_root.CurValoresEQ[4]][0];
P4._y = pos10k[_root.CurValoresEQ[4]][1];
};
S1.useHandCursor = _root.useHand;
S2.useHandCursor = _root.useHand;
S3.useHandCursor = _root.useHand;
S4.useHandCursor = _root.useHand;
S5.useHandCursor = _root.useHand;
tOpen.useHandCursor = _root.useHand;
tPlay.useHandCursor = _root.useHand;
btn_Play._visible = false;
btn_Open._visible = false;
S1.onPress = function () {
if (_root.Objeto == null) {
_root.CurValoresEQ[0] = S1.Pos;
_root.Dirty = true;
}
};
S2.onPress = function () {
if (_root.Objeto == null) {
_root.CurValoresEQ[1] = S2.Pos;
_root.Dirty = true;
}
};
S3.onPress = function () {
if (_root.Objeto == null) {
_root.CurValoresEQ[2] = S3.Pos;
_root.Dirty = true;
}
};
S4.onPress = function () {
if (_root.Objeto == null) {
_root.CurValoresEQ[3] = S4.Pos;
_root.Dirty = true;
}
};
S5.onPress = function () {
if (_root.Objeto == null) {
_root.CurValoresEQ[4] = S5.Pos;
_root.Dirty = true;
}
};
tOpen.onPress = function () {
btn_Open._visible = true;
};
tOpen.onRelease = function () {
btn_Open._visible = false;
Checkar();
};
tOpen.onReleaseOutside = function () {
btn_Open._visible = false;
Checkar();
};
tPlay.onPress = function () {
btn_Play._visible = true;
var _local3 = 0;
var _local2 = 0;
while (_local2 < 5) {
if (_root.CurValoresEQ[_local2] == _root.ValoresEQ[_local2]) {
_local3 = _local3 + 1;
}
_local2++;
}
var _local4 = new Sound();
_local4.attachSound("radio" + _local3);
_local4.start();
};
tPlay.onRelease = function () {
btn_Play._visible = false;
};
tPlay.onReleaseOutside = function () {
btn_Play._visible = false;
};
Symbol 660 MovieClip Frame 1
this.tabEnabled = false;
Pista.useHandCursor = _root.useHand;
Iman.useHandCursor = _root.useHand;
stop();
onEnterFrame = function () {
Pista._visible = !_root.flagPista3Agarrada;
Iman._visible = !_root.flagImanAgarrado;
};
Pista.onPress = function () {
if (_root.Objeto == null) {
_root.flagPista3Agarrada = true;
_root.AgregarObjeto("Pista3Cerrada");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
var _local3 = new Sound();
_local3.attachSound("papel_close");
_local3.start();
}
};
Iman.onPress = function () {
if (_root.Objeto == "Victorinox1") {
_root.flagImanAgarrado = true;
_root.AgregarObjeto("Iman");
var _local2 = new Sound();
_local2.attachSound("item");
_local2.start();
}
};
Symbol 672 MovieClip Frame 1
this.tabEnabled = false;
B2._visible = false;
B3._visible = false;
B4._visible = false;
onEnterFrame = function () {
switch (_root.Bulones) {
case 2 :
B2._visible = true;
break;
case 3 :
B3._visible = true;
break;
case 4 :
B4._visible = true;
break;
}
};
Symbol 675 MovieClip Frame 1
t1.useHandCursor = _root.useHand;
t1.onPress = function () {
if (_root.Objeto == "Iman") {
_root.EliminarObjeto("Iman");
_root.Objeto = null;
_root.EliminarObjeto("LlaveL");
_root.AgregarObjeto("LlaveL1");
_root.flagLlaveImantada = true;
this._parent._visible = false;
this._parent._parent.LlaveL1._visible = true;
var _local3 = new Sound();
_local3.attachSound("iman_atach");
_local3.start();
}
};
Symbol 679 MovieClip Frame 1
this.tabEnabled = false;
t1.useHandCursor = _root.useHand;
t1.onPress = function () {
if (_root.Objeto == null) {
_root.AgregarObjeto("Iman");
_root.EliminarObjeto("LlaveL1");
_root.AgregarObjeto("LlaveL");
_root.flagLlaveImantada = false;
this._parent._visible = false;
this._parent._parent.LlaveL._visible = true;
}
};
Symbol 693 MovieClip Frame 1
this.tabEnabled = false;
t1.useHandCursor = _root.useHand;
stop();
onEnterFrame = function () {
if (_root.MedidorUV > 0) {
BAT._xscale = _root.MedidorUV * 25;
BAT._visible = true;
BAT_Marco._visible = true;
} else {
BAT._visible = false;
BAT_Marco._visible = false;
}
};
t1.onPress = function () {
if (_root.Objeto == "Bateria1") {
_root.MedidorUV = _root.MedidorUV + 1;
_root.EliminarObjeto("Bateria1");
_root.Objeto = null;
var _local3 = new Sound();
_local3.attachSound("pila_poner");
_local3.start();
}
if (_root.Objeto == "Bateria2") {
_root.MedidorUV = _root.MedidorUV + 1;
_root.EliminarObjeto("Bateria2");
_root.Objeto = null;
var _local3 = new Sound();
_local3.attachSound("pila_poner");
_local3.start();
}
if (_root.Objeto == "Bateria3") {
_root.MedidorUV = _root.MedidorUV + 1;
_root.EliminarObjeto("Bateria3");
_root.Objeto = null;
var _local3 = new Sound();
_local3.attachSound("pila_poner");
_local3.start();
}
if (_root.Objeto == "Bateria4") {
_root.MedidorUV = _root.MedidorUV + 1;
_root.EliminarObjeto("Bateria4");
_root.Objeto = null;
var _local3 = new Sound();
_local3.attachSound("pila_poner");
_local3.start();
}
if (_root.MedidorUV == 4) {
_root.EliminarObjeto("UV1");
_root.AgregarObjeto("UV2");
this._parent._visible = false;
this._parent._parent.UV2._visible = true;
}
};
Symbol 707 MovieClip Frame 1
this.tabEnabled = false;
this.tabEnabled = false;
Pista.setMask(MaskUV);
MaskUV._x = -300;
MaskUV._y = -300;
onEnterFrame = function () {
if (_root.Objeto == "UV2") {
MaskUV._visible = true;
MaskUV._x = _xmouse;
MaskUV._y = _ymouse;
} else {
MaskUV._x = -300;
MaskUV._y = -300;
}
};
Symbol 710 MovieClip Frame 1
this.tabEnabled = false;
this.useHandCursor = _root.useHand;
onPress = function () {
if (_root.Objeto == null) {
this._visible = false;
this._parent.Victorinox1._visible = true;
_root.EliminarObjeto("Victorinox");
_root.AgregarObjeto("Victorinox1");
var _local3 = new Sound();
_local3.attachSound("navaja");
_local3.start();
}
};
Symbol 715 MovieClip Frame 1
this.tabEnabled = false;
t1.useHandCursor = _root.useHand;
stop();
onEnterFrame = function () {
Lasersito._visible = _root.flagLaserListo;
if (_root.MedidorLaser > 0) {
BAT._xscale = _root.MedidorLaser * 33;
BAT._visible = true;
BAT_Marco._visible = true;
} else {
BAT._visible = false;
BAT_Marco._visible = false;
}
};
t1.onPress = function () {
if (_root.Objeto == "Pila") {
_root.MedidorLaser = _root.MedidorLaser + 1;
_root.EliminarObjeto("Pila");
_root.Objeto = null;
var _local2 = new Sound();
_local2.attachSound("pila_poner");
_local2.start();
}
if (_root.Objeto == "Pila2") {
_root.MedidorLaser = _root.MedidorLaser + 1;
_root.EliminarObjeto("Pila2");
_root.Objeto = null;
var _local2 = new Sound();
_local2.attachSound("pila_poner");
_local2.start();
}
if (_root.Objeto == "Pila3") {
_root.MedidorLaser = _root.MedidorLaser + 1;
_root.EliminarObjeto("Pila3");
_root.Objeto = null;
var _local2 = new Sound();
_local2.attachSound("pila_poner");
_local2.start();
}
if (_root.MedidorLaser == 3) {
_root.flagLaserListo = true;
Lasersito._visible = true;
}
};
Symbol 720 MovieClip Frame 1
this.tabEnabled = false;
stop();
t1.useHandCursor = _root.useHand;
t1.onPress = function () {
if (_root.Objeto == null) {
nextFrame();
var _local2 = new Sound();
_local2.attachSound("papel_open");
_local2.start();
}
};
Symbol 720 MovieClip Frame 2
this.tabEnabled = false;
stop();
t1.useHandCursor = _root.useHand;
t1.onPress = function () {
if (_root.Objeto == null) {
prevFrame();
var _local2 = new Sound();
_local2.attachSound("papel_close");
_local2.start();
}
};
Symbol 731 MovieClip Frame 1
this.tabEnabled = false;
Secreto.setMask(MaskUV);
MaskUV._x = -300;
MaskUV._y = -300;
stop();
onEnterFrame = function () {
if (_root.Objeto == "UV2") {
MaskUV._visible = true;
MaskUV._x = _xmouse;
MaskUV._y = _ymouse;
} else {
MaskUV._x = -300;
MaskUV._y = -300;
}
};
t1.useHandCursor = false;
t1.onPress = function () {
if ((_root.Objeto == null) || (_root.Objeto == "UV2")) {
nextFrame();
}
};
Symbol 731 MovieClip Frame 2
this.tabEnabled = false;
Secreto.setMask(MaskUV);
MaskUV._x = -300;
MaskUV._y = -300;
stop();
onEnterFrame = function () {
if (_root.Objeto == "UV2") {
MaskUV._visible = true;
MaskUV._x = _xmouse;
MaskUV._y = _ymouse;
} else {
MaskUV._x = -300;
MaskUV._y = -300;
}
};
t1.useHandCursor = _root.useHand;
t1.onPress = function () {
if ((_root.Objeto == null) || (_root.Objeto == "UV2")) {
prevFrame();
}
};
Symbol 734 MovieClip Frame 1
t1.useHandCursor = _root.useHand;
this.tabEnabled = false;
t1.onPress = function () {
if (_root.Objeto == "Victorinox4") {
this._parent._visible = false;
this._parent._parent.Tubo2._visible = true;
_root.EliminarObjeto("Tubo1");
_root.AgregarObjeto("Tubo2");
_root.menu_mc.Seleccionar("Victorinox4");
_root.Objeto = "Victorinox4";
var _local3 = new Sound();
_local3.attachSound("corcho");
_local3.start();
}
};
Symbol 754 MovieClip Frame 1
this.tabEnabled = false;
stop();
t1.useHandCursor = _root.useHand;
t1.onPress = function () {
if (_root.Objeto == null) {
nextFrame();
var _local2 = new Sound();
_local2.attachSound("papel_open");
_local2.start();
}
};
Symbol 754 MovieClip Frame 2
this.tabEnabled = false;
stop();
t1.useHandCursor = _root.useHand;
t1.onPress = function () {
if (_root.Objeto == null) {
prevFrame();
var _local2 = new Sound();
_local2.attachSound("papel_close");
_local2.start();
}
};
Symbol 763 MovieClip Frame 1
function Ocultar() {
LlavePequenita._visible = false;
Tubo1._visible = false;
Tubo2._visible = false;
Llavecita._visible = false;
Pista0._visible = false;
Pista1Cerrada._visible = false;
Pista2Cerrada._visible = false;
Pista3Cerrada._visible = false;
Pila._visible = false;
Pila2._visible = false;
Pila3._visible = false;
Bateria1._visible = false;
Bateria2._visible = false;
Bateria3._visible = false;
Bateria4._visible = false;
UV1._visible = false;
UV2._visible = false;
Lingote._visible = false;
Victorinox._visible = false;
Victorinox1._visible = false;
Victorinox2._visible = false;
Victorinox3._visible = false;
Victorinox4._visible = false;
Cubito._visible = false;
Puntero._visible = false;
Llave1._visible = false;
Llave2._visible = false;
Llave3._visible = false;
Cajita._visible = false;
CajitaAbierta._visible = false;
Bulon._visible = false;
LlaveL._visible = false;
LlaveL1._visible = false;
Iman._visible = false;
Picaporte._visible = false;
}
this.tabEnabled = false;
this.tabChildren = false;
Cerrar.useHandCursor = _root.useHand;
Cerrar.onPress = function () {
var _local1 = new Sound();
_local1.attachSound("click");
_local1.start();
};
Cerrar.onRelease = function () {
this._parent._visible = false;
};
Symbol 765 MovieClip Frame 1
stop();
Symbol 785 MovieClip Frame 1
Nuevo.useHandCursor = _root.useHand;
Continuar.useHandCursor = _root.useHand;
var so = SharedObject.getLocal(_root.identificador);
if (so.data.ver == "1.0") {
Continuar.enabled = true;
} else {
Continuar.enabled = false;
}
Nuevo.onPress = function () {
_root.NuevaPartida();
this._parent._visible = false;
var _local3 = new Sound();
_local3.attachSound("click");
_local3.start();
};
Continuar.onPress = function () {
_root.CargarPartida();
this._parent._visible = false;
var _local3 = new Sound();
_local3.attachSound("click");
_local3.start();
};