Frame 1
fscommand ("showmenu", false);
_root.best = 0;
_root.sunet = 1;
stop();
logo.onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
this.play();
} else {
tgFrame = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
this.progress.gotoAndStop(tgFrame);
}
};
Frame 2
stop();
son1 = new Sound();
son1.attachSound("shot");
son1.setVolume(50);
son2 = new Sound();
son2.attachSound("shot2");
son2.setVolume(50);
son3 = new Sound();
son3.attachSound("shot3");
son3.setVolume(50);
Frame 3
score = 0;
errors = 0;
bombsSaved = 0;
bomba.vx = 4;
bomba.vy = 2;
bomba.kk = 1;
lit1.kk = 1;
lit2.kk = 1;
lit3.kk = 1;
lit4.kk = 1;
lit5.kk = 1;
_root.accY = 0.5;
_root.paused = 0;
bestTXT.text = _root.best;
this.onEnterFrame = function () {
if (_root.score > _root.best) {
_root.best = _root.score;
}
scoreTXT.text = _root.score;
lifesTXT.text = 5 - _root.errors;
if (_root.errors == 5) {
gOver.play();
this.gotoAndStop(4);
}
};
Instance of Symbol 94 MovieClip "bomba" in Frame 3
/* no clip actions */
Frame 4
stop();
delete this.onEnterFrame;
Symbol 11 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 63
stop();
Symbol 15 MovieClip Frame 272
_root.gotoAndStop(2);
Symbol 52 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 57 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
ran1 = random(200);
if (ran1 == 10) {
this.play();
}
};
Symbol 57 MovieClip Frame 2
delete this.onEnterFrame;
Symbol 63 Button
on (release) {
if (_root.sunet == 0) {
_root.sunet = 1;
_root.son.start(0, 100);
} else {
_root.sunet = 0;
_root.son.stop();
}
}
Symbol 65 MovieClip Frame 1
j = 1;
timp = 400;
bombsOS = 0;
this.onEnterFrame = function () {
if (_root.paused == 0) {
ran = random(timp);
if (ran == 1) {
if (bombsOS == 0) {
ran2 = random(5) + 1;
duplicateMovieClip (_parent["lit" + ran2], "l" + j, 100);
_parent["l" + j]._x = 35;
_parent["l" + j]._y = 100;
_parent["l" + j].vx = 3 + random(5);
_parent["l" + j].vy = -random(5);
bombsOS++;
j++;
}
}
}
};
Symbol 70 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.paused == 0) {
this._x = _root._xmouse;
}
};
Symbol 94 MovieClip Frame 1
stop();
rand = random(6);
if (rand == 1) {
this.gotoAndStop(20);
}
this.onEnterFrame = function () {
if (_root.paused == 0) {
if (kk == null) {
this._x = this._x + vx;
this._y = this._y + vy;
vy = vy + _root.accY;
if (this.targ.hittest(_root.panza.targ)) {
if (_root.sunet == 1) {
_root.son1.start();
}
vy = (-Math.abs(vy)) * 0.9;
}
if (this._x > 550) {
_parent.generator.bombsOS--;
_parent.score = _parent.score + (2 * _parent.generator.level);
_parent.bombsSaved++;
_parent.generator.level = 1 + Math.floor(_parent.bombsSaved / 10);
removeMovieClip(this);
}
if (this._y > 390) {
if (_root.sunet == 1) {
_root.son3.start();
}
this.gotoAndPlay(2);
}
}
}
};
Symbol 94 MovieClip Frame 2
delete this.onEnterFrame;
Symbol 94 MovieClip Frame 19
_parent.generator.bombsOS--;
_parent.errors++;
removeMovieClip(this);
Symbol 94 MovieClip Frame 20
stop();
this.onEnterFrame = function () {
if (_root.paused == 0) {
if (kk == null) {
this._x = this._x + vx;
this._y = this._y + vy;
vy = vy + _root.accY;
if (this.targ.hittest(_root.panza.targ)) {
if (_root.sunet == 1) {
_root.son3.start();
}
this.gotoAndPlay(2);
}
if (this._y > 370) {
this.play();
}
}
}
};
Symbol 94 MovieClip Frame 27
stop();
_parent.generator.bombsOS--;
_parent.score = _parent.score + (2 * _parent.generator.level);
_parent.bombsSaved++;
_parent.generator.level = 1 + Math.floor(_parent.bombsSaved / 10);
delete this.onEnterFrame;
removeMovieClip(this);
Symbol 96 MovieClip Frame 1
i = 101;
level = 1;
bombsOS = 0;
timp = 60;
timp2 = getTimer();
oldLevel = 1;
this.onEnterFrame = function () {
if (_root.paused == 0) {
ran = random(timp);
if ((ran == 1) && ((getTimer() - timp2) >= 750)) {
timp2 = getTimer();
if (bombsOS <= level) {
if (_root.sunet == 1) {
_root.son2.start();
}
duplicateMovieClip (_parent.bomba, "b" + i, i);
_parent["b" + i]._x = 35;
_parent["b" + i]._y = 100;
_parent["b" + i].vx = 3 + random(5);
_parent["b" + i].vy = -random(5);
bombsOS++;
i++;
}
}
if (oldLevel != level) {
_parent.nextLevel.play();
_parent.nextLevel.lev.levTXT.text = level;
oldLevel = level;
if (timp > 5) {
timp = timp - 5;
}
if (_parent.kabGen.timp > 40) {
_parent.kabGen.timp = _parent.kabGen.timp - 40;
}
}
}
};
Symbol 100 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 109 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 84
stop();
Symbol 116 MovieClip Frame 1
verif = new Array();
i = 1;
while (i <= 6) {
verif[i] = 0;
i++;
}
this.complet = function () {
ok = 1;
i = 1;
while (i <= 6) {
if (verif[i] == 0) {
ok = 0;
}
i++;
}
if (ok == 1) {
i = 1;
while (i <= 6) {
verif[i] = 0;
i++;
}
_parent.score = _parent.score + 500;
k._alpha = 25;
a._alpha = 25;
b._alpha = 25;
o1._alpha = 25;
o2._alpha = 25;
m._alpha = 25;
}
return(ok);
};
Symbol 117 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.paused == 0) {
if (kk == null) {
this._x = this._x + vx;
this._y = this._y + vy;
vy = vy + _root.accY;
if (this.targ.hittest(_root.panza.targ)) {
if (_root.sunet == 1) {
_root.son1.start();
}
vy = (-Math.abs(vy)) * 0.9;
}
if (this._x > 550) {
_parent.score = _parent.score + 10;
_parent.kabGen.bombsOS--;
_parent.kaboom.k._alpha = 100;
_parent.kaboom.verif[1] = 1;
if (_parent.kaboom.complet() == 1) {
_parent.extraLife.play();
_parent.errors--;
}
removeMovieClip(this);
}
if (this._y > 370) {
this.play();
}
}
}
};
Symbol 117 MovieClip Frame 2
delete this.onEnterFrame;
Symbol 117 MovieClip Frame 10
stop();
_parent.kabGen.bombsOS--;
delete this.onEnterFrame;
removeMovieClip(this);
Symbol 118 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.paused == 0) {
if (kk == null) {
this._x = this._x + vx;
this._y = this._y + vy;
vy = vy + _root.accY;
if (this.targ.hittest(_root.panza.targ)) {
if (_root.sunet == 1) {
_root.son1.start();
}
vy = (-Math.abs(vy)) * 0.9;
}
if (this._x > 550) {
_parent.score = _parent.score + 10;
_parent.kabGen.bombsOS--;
_parent.kaboom.a._alpha = 100;
_parent.kaboom.verif[2] = 1;
if (_parent.kaboom.complet() == 1) {
_parent.extraLife.play();
_parent.errors--;
}
removeMovieClip(this);
}
if (this._y > 370) {
this.play();
}
}
}
};
Symbol 118 MovieClip Frame 2
delete this.onEnterFrame;
Symbol 118 MovieClip Frame 9
stop();
delete this.onEnterFrame;
_parent.kabGen.bombsOS--;
removeMovieClip(this);
Symbol 119 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.paused == 0) {
if (kk == null) {
this._x = this._x + vx;
this._y = this._y + vy;
vy = vy + _root.accY;
if (this.targ.hittest(_root.panza.targ)) {
if (_root.sunet == 1) {
_root.son1.start();
}
vy = (-Math.abs(vy)) * 0.9;
}
if (this._x > 550) {
_parent.score = _parent.score + 10;
_parent.kabGen.bombsOS--;
_parent.kaboom.b._alpha = 100;
_parent.kaboom.verif[3] = 1;
if (_parent.kaboom.complet() == 1) {
_parent.extraLife.play();
_parent.errors--;
}
removeMovieClip(this);
}
if (this._y > 370) {
this.play();
}
}
}
};
Symbol 119 MovieClip Frame 2
delete this.onEnterFrame;
Symbol 119 MovieClip Frame 10
stop();
_parent.kabGen.bombsOS--;
delete this.onEnterFrame;
removeMovieClip(this);
Symbol 120 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.paused == 0) {
if (kk == null) {
this._x = this._x + vx;
this._y = this._y + vy;
vy = vy + _root.accY;
if (this.targ.hittest(_root.panza.targ)) {
if (_root.sunet == 1) {
_root.son1.start();
}
vy = (-Math.abs(vy)) * 0.9;
}
if (this._x > 550) {
_parent.score = _parent.score + 10;
_parent.kabGen.bombsOS--;
if (_parent.kaboom.o1._alpha == 25) {
_parent.kaboom.o1._alpha = 100;
_parent.kaboom.verif[4] = 1;
if (_parent.kaboom.complet() == 1) {
_parent.extraLife.play();
_parent.errors--;
}
} else {
_parent.kaboom.o2._alpha = 100;
_parent.kaboom.verif[5] = 1;
if (_parent.kaboom.complet() == 1) {
_parent.extraLife.play();
_parent.errors--;
}
}
removeMovieClip(this);
}
if (this._y > 370) {
this.play();
}
}
}
};
Symbol 120 MovieClip Frame 2
delete this.onEnterFrame;
Symbol 120 MovieClip Frame 9
stop();
_parent.kabGen.bombsOS--;
delete this.onEnterFrame;
removeMovieClip(this);
Symbol 121 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_root.paused == 0) {
if (kk == null) {
this._x = this._x + vx;
this._y = this._y + vy;
vy = vy + _root.accY;
if (this.targ.hittest(_root.panza.targ)) {
if (_root.sunet == 1) {
_root.son1.start();
}
vy = (-Math.abs(vy)) * 0.9;
}
if (this._x > 550) {
_parent.score = _parent.score + 10;
_parent.kabGen.bombsOS--;
_parent.kaboom.m._alpha = 100;
_parent.kaboom.verif[6] = 1;
if (_parent.kaboom.complet() == 1) {
_parent.extraLife.play();
_parent.errors--;
}
removeMovieClip(this);
}
if (this._y > 370) {
this.play();
}
}
}
};
Symbol 121 MovieClip Frame 2
delete this.onEnterFrame;
Symbol 121 MovieClip Frame 9
stop();
_parent.kabGen.bombsOS--;
delete this.onEnterFrame;
removeMovieClip(this);
Symbol 125 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 128 Button
on (release) {
if (_root.paused == 0) {
_root.paused = 1;
} else {
_root.paused = 0;
}
}