Frame 1
function randomInt(maxNum) {
var _local1 = Math.random() * maxNum;
if (_local1 == 0) {
_local1 = 1;
} else {
_local1 = Math.ceil(_local1);
}
return(_local1);
}
i = 1;
while (i <= 300) {
_root["e" + i].removeMovieClip();
i++;
}
energy = 50;
stageNum = 0;
score = 0;
rootSound = new Sound(_root);
rootSound.attachSound("bgm");
rootSound.setVolume(100);
_root.rootSound.stop();
rootSound2 = new Sound(_root);
rootSound2.attachSound("clear");
rootSound2.setVolume(100);
_root.rootSound2.stop();
stop();
Frame 2
_root.rootSound2.stop();
stageNum++;
comboNum = 0;
getNum = 0;
speed = 10;
Frame 62
_root.rootSound.start(0, 1000);
i = 1;
while (i <= (_root.stageNum + 5)) {
newName = "e" + i;
Yposi = _root.randomInt(70) + 320;
_root.attachMovie("eSet", newName, (Yposi * 100) + i);
_root[newName]._y = Yposi;
_root[newName]._x = _root.randomInt(400) + 10;
i++;
}
bNum = Math.floor(_root.stageNum / 3);
if (bNum >= 1) {
i = 99;
while (i >= (100 - bNum)) {
newName = "bl" + i;
Yposi = _root.randomInt(70) + 320;
_root.attachMovie("blSet", newName, (Yposi * 100) + i);
_root[newName]._y = Yposi;
_root[newName]._x = _root.randomInt(400) + 10;
i--;
}
}
startTime = getTimer();
timeOut = 100;
iwaNum = 1;
this.onEnterFrame = function () {
var _local1 = _root;
if (getTimer() > (startTime + timeOut)) {
newName = "iwa" + iwaNum;
_local1.attachMovie("iwaSet", newName, iwaNum);
if (_local1.randomInt(2) == 1) {
_local1[newName]._x = -10;
_local1[newName].speed = _local1.randomInt(3) + 1;
} else {
_local1[newName]._x = 430;
_local1[newName].speed = (-_local1.randomInt(3)) - 1;
}
_local1[newName]._y = _local1.randomInt(200) + 50;
startTime = getTimer();
rNum = 4100 - (_local1.stageNum * 100);
if (rNum < 300) {
rNum = 300;
}
timeOut = _local1.randomInt(rNum);
iwaNum++;
if (iwaNum > 30) {
iwaNum = 1;
}
}
};
stop();
Frame 63
_root.rootSound.stop();
_root.rootSound2.start(0, 1000);
i = 1;
while (i <= 30) {
_root["iwa" + i].gotoAndPlay(2);
i++;
}
i = 1;
while (i <= 100) {
_root["bl" + i].removeMovieClip();
i++;
}
delete this.onEnterFrame;
stop();
Frame 64
_root.rootSound.stop();
i = 1;
while (i <= 30) {
_root["iwa" + i].gotoAndPlay(2);
i++;
}
i = 1;
while (i <= 100) {
_root["bl" + i].removeMovieClip();
i++;
}
delete this.onEnterFrame;
stop();
Symbol 13 MovieClip [bomb] Frame 10
this.removeMovieClip();
stop();
Symbol 27 MovieClip [eSet] Frame 1
if (_root.randomInt(2) == 1) {
speed = 3;
} else {
speed = -3;
}
this.onEnterFrame = function () {
_x = (_x + speed);
if (speed > 0) {
_xscale = -100;
} else {
_xscale = 100;
}
if (_x > 420) {
_x = 420;
speed = -speed;
} else if (_x < 0) {
_x = 0;
speed = -speed;
} else if (_root.randomInt(100) == 1) {
speed = -speed;
}
};
stop();
Instance of Symbol 20 MovieClip "hp" in Symbol 27 MovieClip [eSet] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.handSet.hand.hp)) {
_parent.gotoAndStop(2);
}
}
Symbol 27 MovieClip [eSet] Frame 2
_rotation = _root.randomInt(360);
this.onEnterFrame = function () {
var _local1 = _root;
_x = _local1.handSet._x;
_y = ((_local1.handSet._y + _local1.handSet.hand._y) + 143);
};
stop();
Symbol 34 MovieClip [iwaSet] Frame 1
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_y = (_y+1);
_x = (_x + speed);
if (_local1.hitTest(_local2.pSet.hp)) {
if (_local1._x > _local2.pSet._x) {
_local2.pSet.damage("L");
} else {
_local2.pSet.damage("R");
}
_local1.play();
} else if ((_local1._x < -20) || (_local1._x > 440)) {
_local1.removeMovieClip();
}
};
stop();
Symbol 34 MovieClip [iwaSet] Frame 2
delete this.onEnterFrame;
Symbol 34 MovieClip [iwaSet] Frame 15
this.removeMovieClip();
Symbol 40 MovieClip [blSet] Frame 1
if (_root.randomInt(2) == 1) {
speed = 3;
} else {
speed = -3;
}
this.onEnterFrame = function () {
_x = (_x + speed);
if (speed > 0) {
_xscale = -100;
} else {
_xscale = 100;
}
if (_x > 420) {
_x = 420;
speed = -speed;
} else if (_x < 0) {
_x = 0;
speed = -speed;
} else if (_root.randomInt(100) == 1) {
speed = -speed;
}
};
stop();
Instance of Symbol 20 MovieClip "hp" in Symbol 40 MovieClip [blSet] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.handSet.hand.hp)) {
_parent.gotoAndStop(2);
}
}
Symbol 40 MovieClip [blSet] Frame 2
_rotation = _root.randomInt(360);
_root.speed = _root.speed + 30;
startTime = getTimer();
timeOut = 20000;
this.onEnterFrame = function () {
var _local1 = _root;
_x = _local1.handSet._x;
_y = ((_local1.handSet._y + _local1.handSet.hand._y) + 143);
if (getTimer() > (startTime + timeOut)) {
_local1.speed = _local1.speed - 30;
this.removeMovieClip();
delete this.onEnterFrame;
}
};
stop();
Symbol 48 Button
on (press) {
play();
}
Symbol 74 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 1
this.onEnterFrame = function () {
stageNum = _root.stageNum;
n2 = Math.floor(stageNum / 10);
num2.gotoAndStop(n2 + 1);
n1 = stageNum % 10;
num1.gotoAndStop(n1 + 1);
};
Symbol 84 MovieClip Frame 1
if (_root.randomInt(2) == 1) {
_x = -50;
_y = 80;
speed = 3;
} else {
_x = 470;
_y = 80;
speed = -3;
}
stop();
Symbol 84 MovieClip Frame 2
this.onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
_x = (_x + speed);
_rotation = (_rotation + speed);
if ((_x > 500) || (_x < -80)) {
_y = -100;
delete _local2.onEnterFrame;
} else if (_local2.hitTest(_local1.pSet.hp2)) {
_local1.energy = _local1.energy + 20;
if (_local1.energy > 50) {
_local1.energy = 50;
}
_y = -100;
nextFrame();
delete _local2.onEnterFrame;
}
};
stop();
Symbol 84 MovieClip Frame 3
stop();
Symbol 88 MovieClip Frame 1
flg = 0;
delete this.onEnterFrame;
this.onMouseDown = function () {
var _local1 = _root;
if (_local1.pSet._currentframe == 1) {
delete _local1.pSet.onEnterFrame;
_local1.pSet.gotoAndStop("stay");
this.nextFrame();
}
};
stop();
Symbol 88 MovieClip Frame 2
this.onEnterFrame = function () {
if (_y < 0) {
_y = (_y + 10);
} else {
this.nextFrame();
}
};
Symbol 88 MovieClip Frame 3
this.onEnterFrame = function () {
var _local1 = _root;
if (_y > -128) {
_y = (_y - 5);
} else {
_local1.comboNum = 0;
i = 1;
while (i <= (_local1.stageNum + 5)) {
e = _local1["e" + i];
if (e._currentframe == 2) {
_local1.score = _local1.score + 100;
_local1.comboNum++;
_local1.getNum++;
e.removeMovieClip();
}
i++;
}
if (_local1.comboNum > 1) {
_local1.pSet.getSet.play();
}
if (_local1.comboNum > 2) {
_local1.epac.gotoAndStop(2);
}
if (_local1.getNum >= (_local1.stageNum + 5)) {
_local1.rootSound.stop();
_local1.gotoAndStop("clear");
_local1.pSet.gotoAndStop(4);
gotoAndStop (1);
} else {
if (_local1.pSet._currentframe == 3) {
_local1.pSet.gotoAndStop(1);
}
gotoAndStop (1);
}
}
};
Symbol 89 MovieClip Frame 1
this.onEnterFrame = function () {
_x = _root.pSet._x;
_y = (_root.pSet._y + 10);
};
stop();
Symbol 93 MovieClip Frame 1
this.onEnterFrame = function () {
_x = (_root.pSet._x - 32);
_y = (_root.pSet._y - 35);
};
Instance of Symbol 90 MovieClip in Symbol 93 MovieClip Frame 1
onClipEvent (enterFrame) {
sa = _root.energy - this._width;
if (sa > 0) {
this._width++;
} else if (sa < 0) {
this._width--;
}
}
Symbol 98 MovieClip Frame 5
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 2
this.onEnterFrame = function () {
num.gotoAndStop(_root.comboNum + 1);
};
Symbol 104 MovieClip Frame 3
num1.gotoAndStop(_root.comboNum);
_root.score = _root.score + ((_root.comboNum - 1) * 1000);
Symbol 109 MovieClip Frame 1
function damage(d) {
var _local1 = _root;
if (d == "L") {
_rotation = -15;
opX = _x - 100;
} else {
_rotation = 15;
opX = _x + 100;
}
_local1.energy = _local1.energy - 5;
if (_local1.energy <= 0) {
_local1.energy = 0;
this.gotoAndStop("dead");
} else {
this.gotoAndStop("d");
}
}
SoundBomb = new Sound(this);
SoundBomb.attachSound("bomb2");
SoundBomb.setVolume(70);
SoundBomb.stop();
_rotation = 0;
this.onEnterFrame = function () {
var _local1 = _root;
saX = _local1._xmouse - _x;
saY = _local1._ymouse - _y;
if (Math.abs(saX) > 5) {
_x = (_x + (saX / _local1.speed));
}
if (Math.abs(saY) > 5) {
_y = (_y + (saY / _local1.speed));
if (_y > 280) {
_y = 280;
}
}
};
stop();
Symbol 109 MovieClip Frame 2
SoundBomb.stop();
SoundBomb.start();
this.onEnterFrame = function () {
saX = opX - _x;
if (Math.abs(saX) < 2) {
prevFrame();
} else {
_x = (_x + (saX / 5));
}
};
stop();
Symbol 109 MovieClip Frame 3
delete this.onEnterFrame;
stop();
Symbol 109 MovieClip Frame 4
_rotation = 0;
this.onEnterFrame = function () {
_y = (_y - 3);
if (_y < -40) {
_root.gotoAndPlay("next");
}
};
stop();
Symbol 109 MovieClip Frame 5
function makeB() {
var _local1 = this;
newName = "bomb" + bombNum;
_local1.attachMovie("bomb", newName, bombNum);
_local1[newName]._x = _root.randomInt(30) - 20;
_local1[newName]._y = -_root.randomInt(30);
bombNum++;
}
delete this.onEnterFrame;
bombNum = 1;
i = 0;
while (i <= 3) {
makeB();
i++;
}
count = 0;
startTime = getTimer();
timeOut = 100;
this.onEnterFrame = function () {
if (getTimer() > (startTime + timeOut)) {
count++;
SoundBomb.stop();
SoundBomb.start();
if (count == 20) {
_root.rootSound.stop();
_root.gotoAndStop("over");
} else if (count == 19) {
i = 1;
while (i <= 20) {
makeB();
i++;
}
timeOut = 200;
startTime = getTimer();
} else {
makeB();
startTime = getTimer();
}
}
};
stop();
Symbol 113 MovieClip Frame 1
this.onEnterFrame = function () {
score = _root.score;
n4 = Math.floor(score / 100000);
num4.gotoAndStop(n4 + 1);
score = score - (100000 * n4);
n3 = Math.floor(score / 10000);
num3.gotoAndStop(n3 + 1);
score = score - (10000 * n3);
n2 = Math.floor(score / 1000);
num2.gotoAndStop(n2 + 1);
score = score - (1000 * n2);
n1 = Math.floor(score / 100);
num1.gotoAndStop(n1 + 1);
};
Symbol 121 Button
on (press) {
gotoAndStop ("opening");
}