Frame 1
Stage.showMenu = false;
Instance of Symbol 12 MovieClip in Frame 2
onClipEvent (load) {
this.barra._xscale = "1";
_parent.stop();
}
onClipEvent (enterFrame) {
this.barra._xscale = (_parent.getBytesloaded() * 100) / _parent.getBytesTotal();
if (_parent.getBytesLoaded() == _parent.getBytesTotal()) {
_parent.play();
}
}
Frame 3
removeMovieClip("_root.vagonetaMC");
stop();
Instance of Symbol 27 MovieClip "mineroMC" in Frame 4
onClipEvent (load) {
function nuevajoya() {
n++;
duplicateMovieClip ("_root.joyaMC", "joyaMC" + n, n);
}
}
Instance of Symbol 38 MovieClip "marcadoresMC" in Frame 4
onClipEvent (load) {
function restarvida() {
vidasN--;
vidas = vidasN;
if (vidasN == 0) {
_root.gameoverMC.play();
_root.jugadorMC.stop();
}
}
function sumarnivel() {
NivelN++;
nivel = nivelN;
if (9 < nivelN) {
_root.marcadoresMC.cero._visible = false;
}
}
function sumarpuntos(puntosasumar) {
puntos = puntos + puntosasumar;
_root.score = puntos;
}
vidasN = 3;
vidas = vidasN;
nivelN = 1;
nivel = nivelN;
puntos = 0;
}
Instance of Symbol 51 MovieClip "vagonetaM" in Frame 4
onClipEvent (enterFrame) {
if ((25 < _root._xmouse) && (_root._xmouse < 435)) {
_x = _root._xmouse;
}
if (435 < _root._xmouse) {
_x = 435;
}
if (_root._xmouse < 25) {
_x = 25;
}
}
Frame 5
function borrarjoyas() {
n = 0;
do {
removeMovieClip("joyaMC" + n);
n++;
} while (n < 17);
}
stop();
duplicateMovieClip ("_root.vagonetaM", "vagonetaMC", 100);
_root.vagonetaMC._y = 301;
Instance of Symbol 83 MovieClip "joyaMC" in Frame 5
onClipEvent (load) {
_y = (_root.mineroMC._y + 19);
_x = (_root.mineroMC._x + 24);
if (1 >= _root.marcadoresMC.nivel) {
velocidad = 5;
} else if ((1 < _root.marcadoresMC.nivel) && (3 >= _root.marcadoresMC.nivel)) {
velocidad = 6;
} else if ((3 < _root.marcadoresMC.nivel) && (5 >= _root.marcadoresMC.nivel)) {
velocidad = 7;
} else if ((5 < _root.marcadoresMC.nivel) && (7 >= _root.marcadoresMC.nivel)) {
velocidad = 8;
} else if ((7 < _root.marcadoresMC.nivel) && (9 >= _root.marcadoresMC.nivel)) {
velocidad = 9;
} else if ((9 < _root.marcadoresMC.nivel) && (11 >= _root.marcadoresMC.nivel)) {
velocidad = 10;
} else if (11 < _root.marcadoresMC.nivel) {
velocidad = 11;
}
tipojoya = Math.floor(Math.random() * 4) + 1;
if (tipojoya == 1) {
this.gotoAndStop(1);
} else if (tipojoya == 2) {
this.gotoAndStop(7);
} else if (tipojoya == 3) {
this.gotoAndStop(13);
} else if (tipojoya == 4) {
this.gotoAndStop(19);
}
}
onClipEvent (enterFrame) {
if (_name != "joyaMC") {
if (hitTest(_root.vagonetaMC.areacolisionMC)) {
_root.beepMC.play();
if (_name == "joyaMC10") {
with (_root.nextlevelmc) {
play();
}
}
removeMovieClip("");
_root.marcadoresMC.sumarpuntos(10);
}
_y = (_y + this.velocidad);
if (340 < _y) {
_y = 340;
play();
}
} else {
_y = 1000;
}
}
Symbol 11 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "itsmine";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
if (this.sessionvars.sessiontype != 2) {
_root.is_a_challenge = 0;
} else {
_root.is_a_challenge = 1;
}
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
_root.score = int(Number(_root.score));
if (_root.score != 0) {
this.prequestvars.score = _root.score;
} else {
this.prequestvars.score = -1;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 17 Button
on (release) {
play();
}
Symbol 27 MovieClip Frame 34
_x = ((Math.random() * 400) + 25);
Symbol 27 MovieClip Frame 37
_root.mineroMC.nuevajoya();
contador++;
if (_root.marcadoresMC.nivel < 22) {
gotoAndPlay(_root.marcadoresMC.nivel + 10);
} else {
gotoAndPlay (32);
}
if (contador == 10) {
stop();
}
Symbol 43 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 4
_root.gameovermovie.play();
Symbol 38 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 52 Button
on (release) {
play();
}
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 2
_root.marcadoresMC.vidasMC.nextFrame();
Symbol 53 MovieClip Frame 53
_root.mineroMC.n = 0;
_root.mineroMC.contador = 0;
_root.mineroMC.play();
_root.mineroMC.picoMC.pompasMC.play();
_root.mineroMC.picoMC.play();
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 2
_root.tryagainMC.stop();
Symbol 56 MovieClip Frame 141
_root.borrarjoyas();
with (_root) {
_root.gameover = 1;
}
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 51
_root.marcadoresMC.nivel++;
if (9 < _root.marcadoresMC.nivel) {
_root.marcadoresMC.cero._visible = false;
}
_root.mineroMC.n = 0;
_root.mineroMC.contador = 0;
_root.mineroMC.play();
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 6
_root.tryagainMC.play();
_root.mineroMC.gotoAndstop(1);
_root.mineroMC.picoMC.pompasMC.gotoAndstop(1);
_root.mineroMC.picoMC.gotoAndstop(1);
_root.borrarjoyas();
removeMovieClip("");
Symbol 83 MovieClip Frame 12
_root.tryagainMC.play();
_root.mineroMC.gotoAndstop(1);
_root.mineroMC.picoMC.pompasMC.gotoAndstop(1);
_root.mineroMC.picoMC.gotoAndstop(1);
_root.borrarjoyas();
removeMovieClip("");
Symbol 83 MovieClip Frame 18
_root.tryagainMC.play();
_root.mineroMC.gotoAndstop(1);
_root.mineroMC.picoMC.pompasMC.gotoAndstop(1);
_root.mineroMC.picoMC.gotoAndstop(1);
_root.borrarjoyas();
removeMovieClip("");
Symbol 83 MovieClip Frame 24
_root.tryagainMC.play();
_root.mineroMC.gotoAndstop(1);
_root.mineroMC.picoMC.pompasMC.gotoAndstop(1);
_root.mineroMC.picoMC.gotoAndstop(1);
_root.borrarjoyas();
removeMovieClip("");