Frame 1
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_root.gotoAndPlay("start");
}
A = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
porcentajepre = Math.round(A) + "%";
porcentaje = Math.round(A) + "%";
barra._xscale = A;
_root.maskbar.maskbar2._width = Math.round(A) * 1.3;
Instance of Symbol 16 MovieClip "maskbar" in Frame 1
on (release) {
maskbar2.gotoAndPlay(2);
}
Frame 2
gotoAndPlay (1);
Frame 3
stop();
_root.mysoundobj.stop();
_root.mysoundobj = new Sound(this);
_root.mysoundobj.attachSound("musica");
_root.mysoundobj.start(0, 1000);
_root.mysoundobj.setVolume(100);
Instance of Symbol 28 MovieClip "aniplay" in Frame 3
on (rollOver) {
_root.aniplay.mc_play.gotoAndStop(2);
}
on (rollOut) {
_root.aniplay.mc_play.gotoAndStop(1);
}
on (release, releaseOutside) {
_root.aniplay.mc_play.gotoAndPlay(3);
_root.gotoAndPlay("juego");
}
Frame 10
function pantallas() {
if ((_root.level == 1) and (_root.mcpant._currentframe == 1)) {
_root.mcpant.gotoAndPlay(2);
}
}
function init(x, y) {
_root.nave.pasonivel = false;
_root.escenerio.roca.gotoAndStop(1);
_root.nave._x = x;
_root.nave._y = y;
_root.nave.st = false;
_root.nave.speedx = 0;
_root.nave.speedy = 3;
_root.maskbar.maskbar2._width = 136.8;
}
function vidasf() {
_root.fuel.gotoAndStop(1);
_root.vidas = _root.vidas - 1;
s = 3 - _root.vidas;
_root["v" add s].gotoAndPlay(2);
if (_root.vidas == 0) {
_root.gotoAndStop("gameover");
}
_root.maskbar.maskbar2._width = 136.8;
}
function score(num) {
_root.pp.gotoAndPlay(2);
_root.asumar = _root.asumar + num;
_root.pm.dale = true;
}
b = 1;
level = 1;
level1 = 1;
level2 = 4;
level3 = 4;
level4 = 6;
level5 = 6;
vidas = 3;
puntos = 0;
pantallas();
Instance of Symbol 128 MovieClip "nave" in Frame 10
onClipEvent (load) {
moveSpeed = 0.1;
depthCounter = 1;
decay = 0.99;
st = true;
pasonivel = false;
}
onClipEvent (enterFrame) {
point1 = new Object();
point1.x = rr1._x;
point1.y = rr1._y;
localToGlobal(point1);
point2 = new Object();
point2.x = rr2._x;
point2.y = rr2._y;
localToGlobal(point2);
point3 = new Object();
point3.x = rr3._x;
point3.y = rr3._y;
localToGlobal(point3);
point4 = new Object();
point4.x = rr4._x;
point4.y = rr4._y;
localToGlobal(point4);
if (st == false) {
if ((_root.maskbar.maskbar2._width < 30) and (_root.fuel._currentframe == 1)) {
_root.fuel.gotoAndPlay(2);
}
if (_root.maskbar.maskbar2._width < 5) {
_root.nave.gotoAndPlay(2);
st = true;
}
if (_root.escenario.roca.roc.col.hitTest(point2.x, point2.y, true) and (speedy < 1)) {
pasonivel = true;
st = true;
if (_root.mcpant._currentframe == 1) {
_root.mcpant.gotoAndPlay(21);
}
}
if (((_root.escenario.esc.hitTest(point1.x, point1.y, true) or _root.escenario.hitTest(point2.x, point2.y, true)) or _root.escenario.hitTest(point3.x, point3.y, true)) or _root.escenario.hitTest(point4.x, point4.y, true)) {
if (pasonivel == false) {
st = true;
gotoAndPlay (2);
}
}
}
if (st == false) {
if (Key.isDown(39)) {
if (_root.bartil._currentframe == 1) {
_root.bartil.gotoAndPlay(2);
}
if (this.fogo._currentframe == 1) {
this.fogo.gotoAndPlay(2);
}
_root.maskbar.maskbar2._width = _root.maskbar.maskbar2._width - (0.2 + (_root.level / 20));
if (this.patas._currentframe == 1) {
this.patas.gotoAndPlay(2);
}
if (this.brazos._currentframe == 1) {
this.brazos.gotoAndPlay(2);
}
speedx = speedx + moveSpeed;
} else {
if (this.patas._currentframe == 5) {
this.patas.gotoAndPlay(6);
}
if (this.brazos._currentframe == 5) {
this.brazos.gotoAndPlay(6);
}
speedx = speedx * decay;
}
if (Key.isDown(37)) {
if (_root.bartil._currentframe == 1) {
_root.bartil.gotoAndPlay(2);
}
if (fogo._currentframe == 1) {
fogo.gotoAndPlay(2);
}
_root.maskbar.maskbar2._width = _root.maskbar.maskbar2._width - (0.2 + (_root.level / 20));
if (this.patas._currentframe == 1) {
this.patas.gotoAndPlay(10);
}
if (this.brazos._currentframe == 1) {
this.brazos.gotoAndPlay(10);
}
speedx = speedx - moveSpeed;
} else {
if (this.patas._currentframe == 15) {
this.patas.gotoAndPlay(16);
}
if (this.brazos._currentframe == 15) {
this.brazos.gotoAndPlay(16);
}
speedx = speedx * decay;
}
speedy = speedy + (moveSpeed / 2);
if (Key.isDown(38)) {
if (_root.bartil._currentframe == 1) {
_root.bartil.gotoAndPlay(2);
}
if (fogo._currentframe == 1) {
fogo.gotoAndPlay(2);
}
_root.maskbar.maskbar2._width = _root.maskbar.maskbar2._width - (0.2 + (_root.level / 20));
speedy = speedy - (moveSpeed * 2);
} else {
speedy = speedy * decay;
}
_x = (_x + speedx);
_y = (_y + speedy);
speed = Math.sqrt((speedx * speedx) + (speedy * speedy));
if (speed > 10) {
speedx = speedx * (10 / speed);
speedy = speedy * (10 / speed);
}
}
}
Instance of Symbol 131 MovieClip "pm" in Frame 10
onClipEvent (load) {
dale = false;
}
onClipEvent (enterFrame) {
if (dale == true) {
trace("dale");
if (_root.asumar > 0) {
_root.asumar = _root.asumar - 5;
_root.puntos = _root.puntos + 5;
}
}
if ((_root["level" add _root.level] == 0) and (_root.escenario.roca._currentframe == 1)) {
_root.escenario.roca.roc.gotoAndPlay(2);
_root.escenario.roca.gotoAndPlay(2);
}
}
Instance of Symbol 154 MovieClip "maskbar" in Frame 10
on (release) {
maskbar2.gotoAndPlay(2);
}
Frame 11
stop();
Symbol 15 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 7
stop();
Symbol 27 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 2
stop();
Instance of Symbol 26 MovieClip in Symbol 27 MovieClip Frame 2
onClipEvent (enterFrame) {
this._rotation = this._rotation + 500;
}
Symbol 28 MovieClip Frame 8
stop();
Symbol 31 MovieClip Frame 23
stop();
Symbol 37 Button
on (release) {
_root.gotoAndStop("help");
}
Symbol 44 Button
on (release) {
_root.gotoAndPlay("juego");
}
Symbol 47 MovieClip Frame 7
stop();
Symbol 59 MovieClip Frame 49
gotoAndPlay (4);
Symbol 62 MovieClip Frame 13
stop();
Symbol 63 MovieClip Frame 11
stop();
Symbol 68 MovieClip Frame 8
stop();
Symbol 68 MovieClip Frame 12
_visible = false;
Symbol 72 MovieClip Frame 8
stop();
Symbol 72 MovieClip Frame 38
_visible = false;
Symbol 84 MovieClip Frame 1
stop();
Instance of Symbol 68 MovieClip "f1" in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
puede = true;
}
onClipEvent (enterFrame) {
if (puede == true) {
if (this.hitTest(_root.nave)) {
puede = false;
gotoAndPlay (9);
_root["level" add _root.esc._currentframe] = _root["level" add _root.esc._currentframe] - 1;
_root.score(50);
}
}
}
Instance of Symbol 72 MovieClip "s1" in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
puede = true;
}
onClipEvent (enterFrame) {
if (puede == true) {
if (this.hitTest(_root.nave)) {
puede = false;
point = new Object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.bonus.duplicateMovieClip("bonus" add _root.b, _root.b);
_root["bonus" add _root.b]._x = point.x;
_root["bonus" add _root.b]._y = point.y;
_root["bonus" add _root.b].gotoAndPlay(2);
_root.b = _root.b + 1;
point.x = "";
point.y = "";
_root.score(100);
this.gotoAndPlay(9);
}
}
}
Instance of Symbol 72 MovieClip "s2" in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
puede = true;
}
onClipEvent (enterFrame) {
if (puede == true) {
if (this.hitTest(_root.nave)) {
puede = false;
point = new Object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.bonus.duplicateMovieClip("bonus" add _root.b, _root.b);
_root["bonus" add _root.b]._x = point.x;
_root["bonus" add _root.b]._y = point.y;
_root["bonus" add _root.b].gotoAndPlay(2);
_root.b = _root.b + 1;
point.x = "";
point.y = "";
_root.score(100);
this.gotoAndPlay(9);
}
}
}
Instance of Symbol 72 MovieClip "s4" in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
puede = true;
}
onClipEvent (enterFrame) {
if (puede == true) {
if (this.hitTest(_root.nave)) {
puede = false;
point = new Object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.bonus.duplicateMovieClip("bonus" add _root.b, _root.b);
_root["bonus" add _root.b]._x = point.x;
_root["bonus" add _root.b]._y = point.y;
_root["bonus" add _root.b].gotoAndPlay(2);
_root.b = _root.b + 1;
point.x = "";
point.y = "";
_root.score(100);
this.gotoAndPlay(9);
}
}
}
Instance of Symbol 72 MovieClip "s3" in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
puede = true;
}
onClipEvent (enterFrame) {
if (puede == true) {
if (this.hitTest(_root.nave)) {
puede = false;
point = new Object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.bonus.duplicateMovieClip("bonus" add _root.b, _root.b);
_root["bonus" add _root.b]._x = point.x;
_root["bonus" add _root.b]._y = point.y;
_root["bonus" add _root.b].gotoAndPlay(2);
_root.b = _root.b + 1;
point.x = "";
point.y = "";
_root.score(100);
this.gotoAndPlay(9);
}
}
}
Symbol 84 MovieClip Frame 2
stop();
Instance of Symbol 72 MovieClip "s1" in Symbol 84 MovieClip Frame 2
onClipEvent (load) {
puede = true;
}
onClipEvent (enterFrame) {
if (puede == true) {
if (this.hitTest(_root.nave)) {
puede = false;
point = new Object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.bonus.duplicateMovieClip("bonus" add _root.b, _root.b);
_root["bonus" add _root.b]._x = point.x;
_root["bonus" add _root.b]._y = point.y;
_root["bonus" add _root.b].gotoAndPlay(2);
_root.b = _root.b + 1;
_root.score(100);
this.gotoAndPlay(9);
}
}
}
Instance of Symbol 72 MovieClip "s2" in Symbol 84 MovieClip Frame 2
onClipEvent (load) {
puede = true;
}
onClipEvent (enterFrame) {
if (puede == true) {
if (this.hitTest(_root.nave)) {
puede = false;
point = new Object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.bonus.duplicateMovieClip("bonus" add _root.b, _root.b);
_root["bonus" add _root.b]._x = point.x;
_root["bonus" add _root.b]._y = point.y;
_root["bonus" add _root.b].gotoAndPlay(2);
_root.b = _root.b + 1;
_root.score(100);
this.gotoAndPlay(9);
}
}
}
Instance of Symbol 72 MovieClip "s4" in Symbol 84 MovieClip Frame 2
onClipEvent (load) {
puede = true;
}
onClipEvent (enterFrame) {
if (puede == true) {
if (this.hitTest(_root.nave)) {
puede = false;
point = new Object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.bonus.duplicateMovieClip("bonus" add _root.b, _root.b);
_root["bonus" add _root.b]._x = point.x;
_root["bonus" add _root.b]._y = point.y;
_root["bonus" add _root.b].gotoAndPlay(2);
_root.b = _root.b + 1;
_root.score(100);
this.gotoAndPlay(9);
}
}
}
Instance of Symbol 72 MovieClip "s3" in Symbol 84 MovieClip Frame 2
onClipEvent (load) {
puede = true;
}
onClipEvent (enterFrame) {
if (puede == true) {
if (this.hitTest(_root.nave)) {
puede = false;
point = new Object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.bonus.duplicateMovieClip("bonus" add _root.b, _root.b);
_root["bonus" add _root.b]._x = point.x;
_root["bonus" add _root.b]._y = point.y;
_root["bonus" add _root.b].gotoAndPlay(2);
_root.b = _root.b + 1;
_root.score(100);
this.gotoAndPlay(9);
}
}
}
Instance of Symbol 72 MovieClip "s5" in Symbol 84 MovieClip Frame 2
onClipEvent (load) {
puede = true;
}
onClipEvent (enterFrame) {
if (puede == true) {
if (this.hitTest(_root.nave)) {
puede = false;
point = new Object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.bonus.duplicateMovieClip("bonus" add _root.b, _root.b);
_root["bonus" add _root.b]._x = point.x;
_root["bonus" add _root.b]._y = point.y;
_root["bonus" add _root.b].gotoAndPlay(2);
_root.b = _root.b + 1;
_root.score(100);
this.gotoAndPlay(9);
}
}
}
Instance of Symbol 68 MovieClip "f3" in Symbol 84 MovieClip Frame 2
onClipEvent (load) {
puede = true;
}
onClipEvent (enterFrame) {
if (puede == true) {
if (this.hitTest(_root.nave)) {
puede = false;
gotoAndPlay (9);
_root["level" add _root.esc._currentframe] = _root["level" add _root.esc._currentframe] - 1;
_root.score(50);
}
}
}
Instance of Symbol 68 MovieClip "f2" in Symbol 84 MovieClip Frame 2
onClipEvent (load) {
puede = true;
}
onClipEvent (enterFrame) {
if (puede == true) {
if (this.hitTest(_root.nave)) {
puede = false;
gotoAndPlay (9);
_root["level" add _root.esc._currentframe] = _root["level" add _root.esc._currentframe] - 1;
_root.score(50);
}
}
}
Instance of Symbol 72 MovieClip "s6" in Symbol 84 MovieClip Frame 2
onClipEvent (load) {
puede = true;
}
onClipEvent (enterFrame) {
if (puede == true) {
if (this.hitTest(_root.nave)) {
puede = false;
point = new Object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.bonus.duplicateMovieClip("bonus" add _root.b, _root.b);
_root["bonus" add _root.b]._x = point.x;
_root["bonus" add _root.b]._y = point.y;
_root["bonus" add _root.b].gotoAndPlay(2);
_root.b = _root.b + 1;
_root.score(100);
this.gotoAndPlay(9);
}
}
}
Instance of Symbol 72 MovieClip "s7" in Symbol 84 MovieClip Frame 2
onClipEvent (load) {
puede = true;
}
onClipEvent (enterFrame) {
if (puede == true) {
if (this.hitTest(_root.nave)) {
puede = false;
point = new Object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
_root.bonus.duplicateMovieClip("bonus" add _root.b, _root.b);
_root["bonus" add _root.b]._x = point.x;
_root["bonus" add _root.b]._y = point.y;
_root["bonus" add _root.b].gotoAndPlay(2);
_root.b = _root.b + 1;
_root.score(100);
this.gotoAndPlay(9);
}
}
}
Instance of Symbol 68 MovieClip "f4" in Symbol 84 MovieClip Frame 2
onClipEvent (load) {
puede = true;
}
onClipEvent (enterFrame) {
if (puede == true) {
if (this.hitTest(_root.nave)) {
puede = false;
gotoAndPlay (9);
_root["level" add _root.esc._currentframe] = _root["level" add _root.esc._currentframe] - 1;
_root.score(50);
}
}
}
Symbol 84 MovieClip Frame 3
stop();
Symbol 84 MovieClip Frame 4
stop();
Instance of Symbol 68 MovieClip "f5" in Symbol 84 MovieClip Frame 4
onClipEvent (load) {
puede = true;
}
onClipEvent (enterFrame) {
if (puede == true) {
if (this.hitTest(_root.nave)) {
puede = false;
gotoAndPlay (9);
_root["level" add _root.esc._currentframe] = _root["level" add _root.esc._currentframe] - 1;
_root.score(50);
}
}
}
Instance of Symbol 68 MovieClip "f6" in Symbol 84 MovieClip Frame 4
onClipEvent (load) {
puede = true;
}
onClipEvent (enterFrame) {
if (puede == true) {
if (this.hitTest(_root.nave)) {
puede = false;
gotoAndPlay (9);
_root["level" add _root.esc._currentframe] = _root["level" add _root.esc._currentframe] - 1;
_root.score(50);
}
}
}
Symbol 84 MovieClip Frame 5
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 7
if (_root.escenario.roca._currentframe != 25) {
_root.escenario.roca.roc.gotoAndPlay(1);
} else {
stop();
}
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 25
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
stop();
Symbol 103 MovieClip Frame 3
stop();
Symbol 103 MovieClip Frame 4
stop();
Symbol 103 MovieClip Frame 5
stop();
Symbol 106 MovieClip Frame 5
stop();
Symbol 106 MovieClip Frame 9
gotoAndStop (1);
Symbol 106 MovieClip Frame 15
stop();
Symbol 106 MovieClip Frame 20
gotoAndStop (1);
Symbol 110 MovieClip Frame 5
stop();
Symbol 110 MovieClip Frame 9
gotoAndStop (1);
Symbol 110 MovieClip Frame 15
stop();
Symbol 110 MovieClip Frame 20
gotoAndStop (1);
Symbol 115 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
_root.vidasf();
Symbol 128 MovieClip Frame 50
if (_root.level == 1) {
_root.init(50, -20);
}
if (_root.level == 2) {
_root.init(350, -20);
}
if (_root.level == 3) {
_root.init(168, -20);
}
if (_root.level == 4) {
_root.init(475, -20);
}
if (_root.level == 5) {
_root.init(100, -20);
}
gotoAndStop (1);
Symbol 128 MovieClip Frame 65
gotoAndStop (1);
Symbol 138 Button
on (release) {
if (_root.mcpant._currentframe == 12) {
_root.mcpant.gotoAndPlay(13);
} else {
_root.mcpant.gotoAndPlay(13);
}
_root.init();
}
Symbol 142 Button
on (release) {
_root.mcpant.gotoAndPlay(29);
if (_root.level == 1) {
_root.init(350, 0);
}
if (_root.level == 2) {
_root.init(168, 0);
}
if (_root.level == 3) {
_root.init(475, 0);
}
if (_root.level == 4) {
_root.init(100, 0);
}
if (_root.level == 5) {
_root.gotoAndStop("gameover");
}
_root.level = _root.level + 1;
_root.esc.gotoAndStop(_root.level);
_root.escenario.gotoAndStop(_root.level);
_root.escenario.roca.gotoAndStop(1);
_root.escenario.roc.gotoAndStop(1);
i = 0;
while (i < 30) {
_root.esc["s" add i]._visible = true;
_root.esc["f" add i]._visible = true;
_root.esc["f" add i].puede = true;
_root.esc["s" add i].puede = true;
i++;
}
}
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 2
gotoAndPlay (3);
Symbol 147 MovieClip Frame 12
stop();
Symbol 147 MovieClip Frame 13
gotoAndPlay (14);
Symbol 147 MovieClip Frame 20
gotoAndStop (1);
Symbol 147 MovieClip Frame 21
gotoAndPlay (22);
Symbol 147 MovieClip Frame 28
stop();
Symbol 147 MovieClip Frame 29
gotoAndPlay (30);
Symbol 147 MovieClip Frame 36
gotoAndStop (1);
Symbol 153 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 8
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 20
gotoAndPlay (2);
Symbol 163 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 10
stop();
Symbol 184 Button
on (release) {
_root.gotoAndStop("start");
}
Symbol 185 MovieClip Frame 25
stop();