Frame 2
function getDeep() {
deep++;
if (deep > 500) {
deep = 0;
}
return(deep);
}
debug = 0;
this.stop();
Frame 10
function changeScene(scene, bgm) {
if (bgm == 0) {
theSound.stop();
}
this.gotoAndStop(scene);
}
_root.char.removeMovieClip();
_root.area_Shot.removeMovieClip();
_root.enemy.removeMovieClip();
theSound = new Sound();
_quality = "HIGH";
this.stop();
Frame 21
function setEnemy() {
var _local1 = _root;
var _local2 = "enemy_BOSS" + _local1.eName;
_local1.attachMovie(_local2, "enemy", 2);
_local1.enemy._x = 228;
_local1.enemy._y = 65;
}
bgm = new Sound();
if (_root.eName > 3) {
bgm.attachSound("bgm2");
} else {
bgm.attachSound("bgm1");
}
bgm.start(0, 999);
_root.attachMovie("dis_CLEAR", "disClear", 6000);
_root.disClear._x = 225;
_root.disClear._y = 250;
_root.attachMovie("dis_GAMEOVER", "disGameover", 6001);
_root.disGameover._x = 225;
_root.disGameover._y = 250;
_root.attachMovie("mainChar", "char", 3);
_root.char._x = 225;
_root.char._y = 450;
_root.attachMovie("AREA_enemyShot", "area_Shot", 4);
this.setEnemy();
_quality = "MEDIUM";
Frame 24
this.gotoAndPlay(_currentframe - 2);
Frame 30
this.stop();
Frame 39
this.stop();
Symbol 11 MovieClip Frame 1
function moveAction(muki) {
if (aMode == 1) {
aMode = 0;
this.gotoAndPlay(muki);
}
}
aMode = 1;
Symbol 11 MovieClip Frame 54
_parent.hitMode = 1;
this._name = "c";
Symbol 11 MovieClip Frame 55
aMode = 1;
trace("name=" + _name);
this.stop();
Symbol 11 MovieClip Frame 72
this.onEnterFrame = function () {
if (!Key.isDown(_parent.keyMoveLeft)) {
aMode = 1;
this.play();
this.onEnterFrame = null;
}
};
this.stop();
Symbol 11 MovieClip Frame 78
this.gotoAndStop("normal");
Symbol 11 MovieClip Frame 91
this.onEnterFrame = function () {
if (!Key.isDown(_parent.keyMoveRight)) {
aMode = 1;
this.play();
this.onEnterFrame = null;
}
};
this.stop();
Symbol 11 MovieClip Frame 97
this.gotoAndStop("normal");
Symbol 18 MovieClip Frame 1
theSound = new Sound(this);
this.onUnload = function () {
theSound.stop();
};
Symbol 18 MovieClip Frame 5
this.stop();
Symbol 21 MovieClip [mainChar] Frame 1
function atcEffect() {
var _local2 = _root;
var _local3 = this;
i = 0;
while (i < efNo1) {
ix = _local2.getDeep();
var _local1 = "ef" + ix;
_local2.attachMovie("mainChar_effect", _local1, ix + 1000);
_local2[_local1]._x = _local3._x;
_local2[_local1]._y = _local3._y;
_local2[_local1]._xscale = (_local2[_local1]._yscale = (Math.random() * 40) + 20);
_local2[_local1].speedX = (Math.random() * 30) - 15;
_local2[_local1].speedY = (Math.random() * 30) - 15;
i++;
}
}
function Move() {
var _local1 = this;
if (Key.isDown(keyMoveUp)) {
if (_local1._y > 0) {
_local1._y = _local1._y + (-baseMove);
}
}
if (Key.isDown(KeyMoveDown)) {
if (_local1._y < 500) {
_local1._y = _local1._y + baseMove;
}
}
if (Key.isDown(KeyMoveRight)) {
if (_local1._x < 450) {
_local1.c.moveAction("right");
_local1._x = _local1._x + baseMove;
}
}
if (Key.isDown(KeyMoveLeft)) {
if (_local1._x > 0) {
_local1.c.moveAction("left");
_local1._x = _local1._x + (-baseMove);
}
}
}
function hitCheck() {
var _local1 = this;
if (_root.area_shot.hitTest(_local1._x, _local1._y + 10, true)) {
trace("\u88AB\u5F3E");
_local1.atcEffect();
_local1.c._name = null;
lifeMode = 0;
hitMode = 0;
_local1.gotoAndPlay("hit");
}
}
efNo1 = 20;
lifeMode = 1;
hitMode = 0;
mySound = new Sound(this);
keyMoveUp = 38;
keyMoveDown = 40;
keyMoveRight = 39;
keyMoveLeft = 37;
baseMove = 5;
this.onEnterFrame = function () {
var _local1 = this;
if (lifeMode == 1) {
_local1.Move();
if (Key.isDown(32)) {
baseMove = 3;
_local1.gotoAndStop("shot");
} else {
baseMove = 5;
_local1.gotoAndStop("normal");
}
if (Key.isDown(68)) {
_root.display.bomber();
}
if ((_currentframe < 25) && (hitMode == 1)) {
_local1.hitCheck();
}
}
};
Symbol 21 MovieClip [mainChar] Frame 5
mySound.stop();
this.stop();
Symbol 21 MovieClip [mainChar] Frame 65
if (_root.display.dead() > -1) {
lifeMode = 1;
this.gotoAndStop("normal");
} else {
this.removeMovieClip();
}
Symbol 27 MovieClip [enemy_BOSS4] Frame 1
function hitCheck() {
var _local1 = this;
var _local2 = _root;
if (_local1.hitTest(_local2.char.beam) && (hp > 0)) {
hp--;
if (hp < 1) {
_local2.char.hitMode = 0;
trace("char=" + _local2.char);
_local1.gotoAndPlay("dead");
}
trace("hp=" + hp);
_local1.play();
}
}
function shotTarget(sType, s, x, y, r) {
var _local2 = _root;
var _local3 = this;
var xsa = (_local2.char._x - _local3._x);
var ysa = ((_local2.char._y + 10) - _local3._y);
radian = Math.atan2(ysa, xsa);
kakudo = radian / (Math.PI/180);
var _local1 = _parent.getDeep();
_local2.area_shot.attachMovie(sType, _local1, _local1);
_local2.area_shot[_local1]._x = _local3._x + x;
_local2.area_shot[_local1]._y = _local3._y + y;
_local2.area_shot[_local1].speedX = s;
_local2.area_shot[_local1]._rotation = kakudo;
}
function shot(sType, s, x, y, r) {
var _local2 = _root;
var _local1 = _parent.getDeep();
_local2.area_shot.attachMovie(sType, _local1, _local1);
_local2.area_shot[_local1]._x = this._x + x;
_local2.area_shot[_local1]._y = this._y + y;
_local2.area_shot[_local1].speedX = s;
_local2.area_shot[_local1]._rotation = r;
}
function shot2(sType, x, y, r) {
var _local2 = _root;
var _local1 = _parent.getDeep();
_local2.area_shot.attachMovie(sType, _local1, _local1);
_local2.area_shot[_local1]._x = this._x + x;
_local2.area_shot[_local1]._y = this._y + y;
_local2.area_shot[_local1]._rotation = r;
}
function shotR5(r) {
var _local1 = r;
var _local2 = this;
_local2.shot2("enemyShotS_6", 20, 10, _local1);
_local2.shot2("enemyShotS_7", 20, 10, _local1);
_local2.shot2("enemyShotS_8", 20, 10, _local1);
_local2.shot2("enemyShotS_9", 20, 10, _local1);
_local2.shot2("enemyShotS_10", 20, 10, _local1);
}
function move() {
rx = rx + 0.1;
ry = ry + 0.1;
this._y = this._y + (3 * Math.sin(rx));
this._x = this._x + (5 * Math.cos(ry));
}
baseX = this._x;
baseY = this._y;
r1 = 0;
r2 = 0;
r3 = 0;
r4 = 0;
rp1 = 10;
rp2 = 10;
pr3 = 5;
wi1 = 0;
wi2 = 0;
wi3 = 0;
hp = 300;
rx = 0;
ry = 0;
wait1 = 1;
wait2 = 18;
wait3 = 6;
this.onEnterFrame = function () {
var _local1 = this;
_local1.move();
_local1.hitCheck();
if (wi1 > wait1) {
r1 = r1 + rp1;
_local1.shot("enemyShot2", -4, 0, 20, r1);
_local1.shot("enemyShot2", -4, 0, -20, -r1);
wi1 = 0;
}
if (wi2 > wait2) {
r2 = r2 - rp2;
_local1.shotTarget("enemyShot_target1", 10, 0, 0);
wi2 = 0;
}
if (wi3 > wait3) {
r3 = r3 + rp3;
var r = ((Math.random() * 90) + 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, 20, 10, (-(Math.random() * 90)) - 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, -20, 10, (-(Math.random() * 90)) - 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, 0, 10, (-(Math.random() * 90)) - 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, 20, 10, (-(Math.random() * 90)) - 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, -20, 10, (-(Math.random() * 90)) - 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, 0, 10, (-(Math.random() * 90)) - 45);
wi3 = 0;
}
wi1++;
wi2++;
wi3++;
};
Symbol 27 MovieClip [enemy_BOSS4] Frame 4
if (hp < 1) {
this.gotoAndPlay("dead");
} else {
this.gotoAndStop(2);
}
Symbol 27 MovieClip [enemy_BOSS4] Frame 10
this.onEnterFrame = function () {
this.play();
};
Symbol 27 MovieClip [enemy_BOSS4] Frame 11
bDeep = 1000;
i = 0;
while (i < 5) {
var n = ("b" + bDeep);
_parent.attachMovie("bomb", n, bDeep);
_parent[n]._x = (this._x + (Math.random() * 150)) - 75;
_parent[n]._y = (this._y + (Math.random() * 150)) - 75;
_parent[n]._yscale = (_parent[n]._xscale = 100 + (Math.random() * 30));
_parent[n].gotoAndPlay(Math.round(Math.random() * 3));
bDeep++;
i++;
}
Symbol 27 MovieClip [enemy_BOSS4] Frame 16
i = 0;
while (i < 20) {
var n = ("b" + bDeep);
_parent.attachMovie("bombMini", n, bDeep);
_parent[n]._x = (this._x + (Math.random() * 200)) - 100;
_parent[n]._y = (this._y + (Math.random() * 200)) - 100;
_parent[n]._yscale = (_parent[n]._xscale = 100 + (Math.random() * 30));
_parent[n].gotoAndPlay(Math.round(Math.random() * 7));
_parent[n].speedX = (Math.random() * 100) - 50;
_parent[n].speedY = (Math.random() * 100) - 50;
bDeep++;
i++;
}
Symbol 27 MovieClip [enemy_BOSS4] Frame 55
trace("DEAD");
this.onEnterFrame = null;
_root.disClear.play();
this.stop();
Symbol 28 MovieClip [enemy_BOSS5] Frame 1
function hitCheck() {
var _local1 = this;
var _local2 = _root;
if (_local1.hitTest(_local2.char.beam) && (hp > 0)) {
hp--;
if (hp < 1) {
_local2.char.hitMode = 0;
trace("char=" + _local2.char);
_local1.gotoAndPlay("dead");
}
trace("hp=" + hp);
_local1.play();
}
}
function shotTarget(sType, s, x, y, r) {
var _local2 = _root;
var _local3 = this;
var xsa = (_local2.char._x - _local3._x);
var ysa = ((_local2.char._y + 10) - _local3._y);
radian = Math.atan2(ysa, xsa);
kakudo = radian / (Math.PI/180);
var _local1 = _parent.getDeep();
_local2.area_shot.attachMovie(sType, _local1, _local1);
_local2.area_shot[_local1]._x = _local3._x + x;
_local2.area_shot[_local1]._y = _local3._y + y;
_local2.area_shot[_local1].speedX = s;
_local2.area_shot[_local1]._rotation = kakudo;
}
function shot(sType, s, x, y, r) {
var _local2 = _root;
var _local1 = _parent.getDeep();
_local2.area_shot.attachMovie(sType, _local1, _local1);
_local2.area_shot[_local1]._x = this._x + x;
_local2.area_shot[_local1]._y = this._y + y;
_local2.area_shot[_local1].speedX = s;
_local2.area_shot[_local1]._rotation = r;
}
function shot2(sType, x, y, r) {
var _local2 = _root;
var _local1 = _parent.getDeep();
_local2.area_shot.attachMovie(sType, _local1, _local1);
_local2.area_shot[_local1]._x = this._x + x;
_local2.area_shot[_local1]._y = this._y + y;
_local2.area_shot[_local1]._rotation = r;
}
function shotR5(r) {
var _local1 = r;
var _local2 = this;
_local2.shot2("enemyShotS_6", 20, 10, _local1);
_local2.shot2("enemyShotS_7", 20, 10, _local1);
_local2.shot2("enemyShotS_8", 20, 10, _local1);
_local2.shot2("enemyShotS_9", 20, 10, _local1);
_local2.shot2("enemyShotS_10", 20, 10, _local1);
}
function move() {
rx = rx + 0.1;
ry = ry + 0.1;
this._y = this._y + (3 * Math.sin(rx));
this._x = this._x + (5 * Math.cos(ry));
}
baseX = this._x;
baseY = this._y;
r1 = 0;
r2 = 0;
r3 = 0;
r4 = 0;
rp1 = 10;
rp2 = 10;
pr3 = 5;
wi1 = 0;
wi2 = 0;
wi3 = 0;
hp = 300;
rx = 0;
ry = 0;
wait1 = 1;
wait2 = 8;
wait3 = 5;
this.onEnterFrame = function () {
var _local1 = this;
_local1.move();
_local1.hitCheck();
if (wi1 > wait1) {
r1 = r1 + rp1;
_local1.shot("enemyShot2", -4, 0, 20, r1);
_local1.shot("enemyShot2", -4, 0, -20, -r1);
_local1.shot("enemyShot2", -5, 0, 20, -r1);
_local1.shot("enemyShot2", -5, 0, -20, r1);
_local1.shot("enemyShot2", -7, 0, 40, -r1);
_local1.shot("enemyShot2", -7, 0, -40, r1);
wi1 = 0;
}
if (wi2 > wait2) {
r2 = r2 - rp2;
_local1.shotTarget("enemyShot_target1", 10, 0, 0);
wi2 = 0;
}
if (wi3 > wait3) {
r3 = r3 + rp3;
var _local2 = (Math.random() * 90) + 45;
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, 20, 10, (-(Math.random() * 90)) - 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, -20, 10, (-(Math.random() * 90)) - 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, 0, 10, (-(Math.random() * 90)) - 45);
_local1.shotR5(_local2);
_local1.shotR5(_local2);
wi3 = 0;
}
wi1++;
wi2++;
wi3++;
};
Symbol 28 MovieClip [enemy_BOSS5] Frame 4
if (hp < 1) {
this.gotoAndPlay("dead");
} else {
this.gotoAndStop(2);
}
Symbol 28 MovieClip [enemy_BOSS5] Frame 10
this.onEnterFrame = function () {
this.play();
};
Symbol 28 MovieClip [enemy_BOSS5] Frame 11
bDeep = 1000;
i = 0;
while (i < 5) {
var n = ("b" + bDeep);
_parent.attachMovie("bomb", n, bDeep);
_parent[n]._x = (this._x + (Math.random() * 150)) - 75;
_parent[n]._y = (this._y + (Math.random() * 150)) - 75;
_parent[n]._yscale = (_parent[n]._xscale = 100 + (Math.random() * 30));
_parent[n].gotoAndPlay(Math.round(Math.random() * 3));
bDeep++;
i++;
}
Symbol 28 MovieClip [enemy_BOSS5] Frame 16
i = 0;
while (i < 20) {
var n = ("b" + bDeep);
_parent.attachMovie("bombMini", n, bDeep);
_parent[n]._x = (this._x + (Math.random() * 200)) - 100;
_parent[n]._y = (this._y + (Math.random() * 200)) - 100;
_parent[n]._yscale = (_parent[n]._xscale = 100 + (Math.random() * 30));
_parent[n].gotoAndPlay(Math.round(Math.random() * 7));
_parent[n].speedX = (Math.random() * 100) - 50;
_parent[n].speedY = (Math.random() * 100) - 50;
bDeep++;
i++;
}
Symbol 28 MovieClip [enemy_BOSS5] Frame 55
trace("DEAD");
this.onEnterFrame = null;
_root.disClear.play();
this.stop();
Symbol 29 MovieClip [enemy_BOSS3] Frame 1
function hitCheck() {
var _local1 = this;
var _local2 = _root;
if (_local1.hitTest(_local2.char.beam) && (hp > 0)) {
hp--;
if (hp < 1) {
_local2.char.hitMode = 0;
trace("char=" + _local2.char);
_local1.gotoAndPlay("dead");
}
trace("hp=" + hp);
_local1.play();
}
}
function shotTarget(sType, s, x, y, r) {
var _local2 = _root;
var _local3 = this;
var xsa = (_local2.char._x - _local3._x);
var ysa = ((_local2.char._y + 10) - _local3._y);
radian = Math.atan2(ysa, xsa);
kakudo = radian / (Math.PI/180);
var _local1 = _parent.getDeep();
_local2.area_shot.attachMovie(sType, _local1, _local1);
_local2.area_shot[_local1]._x = _local3._x + x;
_local2.area_shot[_local1]._y = _local3._y + y;
_local2.area_shot[_local1].speedX = s;
_local2.area_shot[_local1]._rotation = kakudo;
}
function shot(sType, s, x, y, r) {
var _local2 = _root;
var _local1 = _parent.getDeep();
_local2.area_shot.attachMovie(sType, _local1, _local1);
_local2.area_shot[_local1]._x = this._x + x;
_local2.area_shot[_local1]._y = this._y + y;
_local2.area_shot[_local1].speedX = s;
_local2.area_shot[_local1]._rotation = r;
}
function shot2(sType, x, y, r) {
var _local2 = _root;
var _local1 = _parent.getDeep();
_local2.area_shot.attachMovie(sType, _local1, _local1);
_local2.area_shot[_local1]._x = this._x + x;
_local2.area_shot[_local1]._y = this._y + y;
_local2.area_shot[_local1]._rotation = r;
}
function shotR5(r) {
var _local1 = r;
var _local2 = this;
_local2.shot2("enemyShotS_6", 20, 10, _local1);
_local2.shot2("enemyShotS_7", 20, 10, _local1);
_local2.shot2("enemyShotS_8", 20, 10, _local1);
_local2.shot2("enemyShotS_9", 20, 10, _local1);
_local2.shot2("enemyShotS_10", 20, 10, _local1);
}
function move() {
rx = rx + 0.1;
ry = ry + 0.1;
this._y = this._y + (3 * Math.sin(rx));
this._x = this._x + (5 * Math.cos(ry));
}
baseX = this._x;
baseY = this._y;
r1 = 0;
r2 = 0;
r3 = 0;
r4 = 0;
rp1 = 10;
rp2 = 10;
pr3 = 5;
wi1 = 0;
wi2 = 0;
wi3 = 0;
hp = 300;
rx = 0;
ry = 0;
wait1 = 3;
wait2 = 35;
wait3 = 15;
this.onEnterFrame = function () {
var _local1 = this;
_local1.move();
_local1.hitCheck();
if (wi1 > wait1) {
r1 = r1 + rp1;
_local1.shot("enemyShot2", -4, 0, 20, r1);
_local1.shot("enemyShot2", -4, 0, -20, -r1);
_local1.shot("enemyShot2", -5, 0, 20, -r1);
wi1 = 0;
}
if (wi2 > wait2) {
r2 = r2 - rp2;
var r = ((Math.random() * 90) + 45);
_local1.shotR5(r);
_local1.shotTarget("enemyShot_target1", 10, 0, 0);
wi2 = 0;
}
if (wi3 > wait3) {
r3 = r3 + rp3;
var r = ((Math.random() * 90) + 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, 20, 10, (-(Math.random() * 90)) - 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, -20, 10, (-(Math.random() * 90)) - 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, 0, 10, (-(Math.random() * 90)) - 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, 20, 10, (-(Math.random() * 90)) - 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, -20, 10, (-(Math.random() * 90)) - 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, 0, 10, (-(Math.random() * 90)) - 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, 20, 10, (-(Math.random() * 90)) - 45);
wi3 = 0;
}
wi1++;
wi2++;
wi3++;
};
Symbol 29 MovieClip [enemy_BOSS3] Frame 4
if (hp < 1) {
this.gotoAndPlay("dead");
} else {
this.gotoAndStop(2);
}
Symbol 29 MovieClip [enemy_BOSS3] Frame 10
this.onEnterFrame = function () {
this.play();
};
Symbol 29 MovieClip [enemy_BOSS3] Frame 11
bDeep = 1000;
i = 0;
while (i < 5) {
var n = ("b" + bDeep);
_parent.attachMovie("bomb", n, bDeep);
_parent[n]._x = (this._x + (Math.random() * 150)) - 75;
_parent[n]._y = (this._y + (Math.random() * 150)) - 75;
_parent[n]._yscale = (_parent[n]._xscale = 100 + (Math.random() * 30));
_parent[n].gotoAndPlay(Math.round(Math.random() * 3));
bDeep++;
i++;
}
Symbol 29 MovieClip [enemy_BOSS3] Frame 16
i = 0;
while (i < 20) {
var n = ("b" + bDeep);
_parent.attachMovie("bombMini", n, bDeep);
_parent[n]._x = (this._x + (Math.random() * 200)) - 100;
_parent[n]._y = (this._y + (Math.random() * 200)) - 100;
_parent[n]._yscale = (_parent[n]._xscale = 100 + (Math.random() * 30));
_parent[n].gotoAndPlay(Math.round(Math.random() * 7));
_parent[n].speedX = (Math.random() * 100) - 50;
_parent[n].speedY = (Math.random() * 100) - 50;
bDeep++;
i++;
}
Symbol 29 MovieClip [enemy_BOSS3] Frame 55
trace("DEAD");
this.onEnterFrame = null;
_root.disClear.play();
this.stop();
Symbol 30 MovieClip [enemy_BOSS2] Frame 1
function hitCheck() {
var _local1 = this;
var _local2 = _root;
if (_local1.hitTest(_local2.char.beam) && (hp > 0)) {
hp--;
if (hp < 1) {
_local2.char.hitMode = 0;
trace("char=" + _local2.char);
_local1.gotoAndPlay("dead");
}
trace("hp=" + hp);
_local1.play();
}
}
function shotTarget(sType, s, x, y, r) {
var _local2 = _root;
var _local3 = this;
var xsa = (_local2.char._x - _local3._x);
var ysa = ((_local2.char._y + 10) - _local3._y);
radian = Math.atan2(ysa, xsa);
kakudo = radian / (Math.PI/180);
var _local1 = _parent.getDeep();
_local2.area_shot.attachMovie(sType, _local1, _local1);
_local2.area_shot[_local1]._x = _local3._x + x;
_local2.area_shot[_local1]._y = _local3._y + y;
_local2.area_shot[_local1].speedX = s;
_local2.area_shot[_local1]._rotation = kakudo;
}
function shot(sType, s, x, y, r) {
var _local2 = _root;
var _local1 = _parent.getDeep();
_local2.area_shot.attachMovie(sType, _local1, _local1);
_local2.area_shot[_local1]._x = this._x + x;
_local2.area_shot[_local1]._y = this._y + y;
_local2.area_shot[_local1].speedX = s;
_local2.area_shot[_local1]._rotation = r;
}
function shot2(sType, x, y, r) {
var _local2 = _root;
var _local1 = _parent.getDeep();
_local2.area_shot.attachMovie(sType, _local1, _local1);
_local2.area_shot[_local1]._x = this._x + x;
_local2.area_shot[_local1]._y = this._y + y;
_local2.area_shot[_local1]._rotation = r;
}
function shotR5(r) {
var _local1 = r;
var _local2 = this;
_local2.shot2("enemyShotS_6", 20, 10, _local1);
_local2.shot2("enemyShotS_7", 20, 10, _local1);
_local2.shot2("enemyShotS_8", 20, 10, _local1);
_local2.shot2("enemyShotS_9", 20, 10, _local1);
_local2.shot2("enemyShotS_10", 20, 10, _local1);
}
function move() {
rx = rx + 0.1;
ry = ry + 0.1;
this._y = this._y + (3 * Math.sin(rx));
this._x = this._x + (5 * Math.cos(ry));
}
baseX = this._x;
baseY = this._y;
r1 = 0;
r2 = 0;
r3 = 0;
r4 = 0;
rp1 = 10;
rp2 = 10;
pr3 = 5;
wi1 = 0;
wi2 = 0;
wi3 = 0;
hp = 300;
rx = 0;
ry = 0;
wait1 = 3;
wait2 = 45;
wait3 = 25;
this.onEnterFrame = function () {
var _local1 = this;
_local1.move();
_local1.hitCheck();
if (wi1 > wait1) {
r1 = r1 + rp1;
_local1.shot("enemyShot2", -4, 0, 20, r1);
_local1.shot("enemyShot2", -4, 0, -20, -r1);
_local1.shot("enemyShot2", -5, 0, 20, -r1);
wi1 = 0;
}
if (wi2 > wait2) {
r2 = r2 - rp2;
_local1.shotTarget("enemyShot_target1", 10, 0, 0);
wi2 = 0;
}
if (wi3 > wait3) {
r3 = r3 + rp3;
var r = ((Math.random() * 90) + 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, 20, 10, (-(Math.random() * 90)) - 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, -20, 10, (-(Math.random() * 90)) - 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, 0, 10, (-(Math.random() * 90)) - 45);
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, 20, 10, (-(Math.random() * 90)) - 45);
wi3 = 0;
}
wi1++;
wi2++;
wi3++;
};
Symbol 30 MovieClip [enemy_BOSS2] Frame 4
if (hp < 1) {
this.gotoAndPlay("dead");
} else {
this.gotoAndStop(2);
}
Symbol 30 MovieClip [enemy_BOSS2] Frame 10
this.onEnterFrame = function () {
this.play();
};
Symbol 30 MovieClip [enemy_BOSS2] Frame 11
bDeep = 1000;
i = 0;
while (i < 5) {
var n = ("b" + bDeep);
_parent.attachMovie("bomb", n, bDeep);
_parent[n]._x = (this._x + (Math.random() * 150)) - 75;
_parent[n]._y = (this._y + (Math.random() * 150)) - 75;
_parent[n]._yscale = (_parent[n]._xscale = 100 + (Math.random() * 30));
_parent[n].gotoAndPlay(Math.round(Math.random() * 3));
bDeep++;
i++;
}
Symbol 30 MovieClip [enemy_BOSS2] Frame 16
i = 0;
while (i < 20) {
var n = ("b" + bDeep);
_parent.attachMovie("bombMini", n, bDeep);
_parent[n]._x = (this._x + (Math.random() * 200)) - 100;
_parent[n]._y = (this._y + (Math.random() * 200)) - 100;
_parent[n]._yscale = (_parent[n]._xscale = 100 + (Math.random() * 30));
_parent[n].gotoAndPlay(Math.round(Math.random() * 7));
_parent[n].speedX = (Math.random() * 100) - 50;
_parent[n].speedY = (Math.random() * 100) - 50;
bDeep++;
i++;
}
Symbol 30 MovieClip [enemy_BOSS2] Frame 55
trace("DEAD");
this.onEnterFrame = null;
_root.disClear.play();
this.stop();
Symbol 31 MovieClip [enemy_BOSS1] Frame 1
function hitCheck() {
var _local1 = this;
var _local2 = _root;
if (_local1.hitTest(_local2.char.beam) && (hp > 0)) {
hp--;
if (hp < 1) {
_local2.char.hitMode = 0;
trace("char=" + _local2.char);
_local1.gotoAndPlay("dead");
}
trace("hp=" + hp);
_local1.play();
}
}
function shotTarget(sType, s, x, y, r) {
var _local2 = _root;
var _local3 = this;
var xsa = (_local2.char._x - _local3._x);
var ysa = ((_local2.char._y + 10) - _local3._y);
radian = Math.atan2(ysa, xsa);
kakudo = radian / (Math.PI/180);
var _local1 = _parent.getDeep();
_local2.area_shot.attachMovie(sType, _local1, _local1);
_local2.area_shot[_local1]._x = _local3._x + x;
_local2.area_shot[_local1]._y = _local3._y + y;
_local2.area_shot[_local1].speedX = s;
_local2.area_shot[_local1]._rotation = kakudo;
}
function shot(sType, s, x, y, r) {
var _local2 = _root;
var _local1 = _parent.getDeep();
_local2.area_shot.attachMovie(sType, _local1, _local1);
_local2.area_shot[_local1]._x = this._x + x;
_local2.area_shot[_local1]._y = this._y + y;
_local2.area_shot[_local1].speedX = s;
_local2.area_shot[_local1]._rotation = r;
}
function shot2(sType, x, y, r) {
var _local2 = _root;
var _local1 = _parent.getDeep();
_local2.area_shot.attachMovie(sType, _local1, _local1);
_local2.area_shot[_local1]._x = this._x + x;
_local2.area_shot[_local1]._y = this._y + y;
_local2.area_shot[_local1]._rotation = r;
}
function shotR5(r) {
var _local1 = r;
var _local2 = this;
_local2.shot2("enemyShotS_6", 20, 10, _local1);
_local2.shot2("enemyShotS_7", 20, 10, _local1);
_local2.shot2("enemyShotS_8", 20, 10, _local1);
}
function move() {
rx = rx + 0.1;
ry = ry + 0.1;
this._y = this._y + (3 * Math.sin(rx));
this._x = this._x + (5 * Math.cos(ry));
}
baseX = this._x;
baseY = this._y;
r1 = 0;
r2 = 0;
r3 = 0;
r4 = 0;
rp1 = 10;
rp2 = 10;
pr3 = 5;
wi1 = 0;
wi2 = 0;
wi3 = 0;
hp = 150;
rx = 0;
ry = 0;
wait1 = 1;
wait2 = 30;
wait3 = 15;
this.onEnterFrame = function () {
var _local1 = this;
_local1.move();
_local1.hitCheck();
if (wi2 > wait2) {
r2 = r2 - rp2;
_local1.shotTarget("enemyShot_target1", 10, 0, 0);
wi2 = 0;
}
if (wi3 > wait3) {
r3 = r3 + rp3;
var _local2 = (Math.random() * 90) + 45;
_local1.shot("enemyShot4", ((-Math.random()) * 10) - 5, 20, 10, (-(Math.random() * 90)) - 45);
_local1.shotR5(_local2);
wi3 = 0;
}
wi1++;
wi2++;
wi3++;
};
Symbol 31 MovieClip [enemy_BOSS1] Frame 4
if (hp < 1) {
this.gotoAndPlay("dead");
} else {
this.gotoAndStop(2);
}
Symbol 31 MovieClip [enemy_BOSS1] Frame 10
this.onEnterFrame = function () {
this.play();
};
Symbol 31 MovieClip [enemy_BOSS1] Frame 11
bDeep = 1000;
i = 0;
while (i < 5) {
var n = ("b" + bDeep);
_parent.attachMovie("bomb", n, bDeep);
_parent[n]._x = (this._x + (Math.random() * 150)) - 75;
_parent[n]._y = (this._y + (Math.random() * 150)) - 75;
_parent[n]._yscale = (_parent[n]._xscale = 100 + (Math.random() * 30));
_parent[n].gotoAndPlay(Math.round(Math.random() * 3));
bDeep++;
i++;
}
Symbol 31 MovieClip [enemy_BOSS1] Frame 16
i = 0;
while (i < 20) {
var n = ("b" + bDeep);
_parent.attachMovie("bombMini", n, bDeep);
_parent[n]._x = (this._x + (Math.random() * 200)) - 100;
_parent[n]._y = (this._y + (Math.random() * 200)) - 100;
_parent[n]._yscale = (_parent[n]._xscale = 100 + (Math.random() * 30));
_parent[n].gotoAndPlay(Math.round(Math.random() * 7));
_parent[n].speedX = (Math.random() * 100) - 50;
_parent[n].speedY = (Math.random() * 100) - 50;
bDeep++;
i++;
}
Symbol 31 MovieClip [enemy_BOSS1] Frame 55
trace("DEAD");
this.onEnterFrame = null;
_root.disClear.play();
this.stop();
Symbol 37 MovieClip [AREA_enemyShot] Frame 1
function getDeep() {
deep++;
if (deep > 500) {
deep = 0;
}
return(deep);
}
deep = 50;
this.stop();
Symbol 37 MovieClip [AREA_enemyShot] Frame 2
_name = null;
Symbol 37 MovieClip [AREA_enemyShot] Frame 5
speed = 300;
this.onEnterFrame = function () {
this._y = this._y - 5;
this._yscale = this._yscale - (_yscale / 3);
};
Symbol 37 MovieClip [AREA_enemyShot] Frame 15
_root.attachMovie("AREA_enemyShot", "area_Shot", 4);
Symbol 39 MovieClip [enemyShot] Frame 1
this.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x + speedX;
_local1._y = _local1._y + speedY;
if (_local1._x < -10) {
_local1.removeMovieClip();
}
};
Instance of Symbol 40 MovieClip in Symbol 41 MovieClip [enemyShot4] Frame 1
onClipEvent (enterFrame) {
this._x = this._x + _parent.speedX;
}
Symbol 41 MovieClip [enemyShot4] Frame 120
this.removeMovieClip();
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip [enemyShot3] Frame 1
onClipEvent (enterFrame) {
this._x = this._x + _parent.speedX;
}
Symbol 43 MovieClip [enemyShot3] Frame 120
this.removeMovieClip();
Instance of Symbol 44 MovieClip in Symbol 45 MovieClip [enemyShotS_10] Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 14;
}
Symbol 45 MovieClip [enemyShotS_10] Frame 70
this.removeMovieClip();
Instance of Symbol 44 MovieClip in Symbol 46 MovieClip [enemyShotS_9] Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 12;
}
Symbol 46 MovieClip [enemyShotS_9] Frame 70
this.removeMovieClip();
Instance of Symbol 44 MovieClip in Symbol 47 MovieClip [enemyShotS_8] Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 10;
}
Symbol 47 MovieClip [enemyShotS_8] Frame 90
this.removeMovieClip();
Instance of Symbol 44 MovieClip in Symbol 48 MovieClip [enemyShotS_7] Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 8;
}
Symbol 48 MovieClip [enemyShotS_7] Frame 100
this.removeMovieClip();
Instance of Symbol 44 MovieClip in Symbol 49 MovieClip [enemyShotS_6] Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 6;
}
Symbol 49 MovieClip [enemyShotS_6] Frame 110
this.removeMovieClip();
Instance of Symbol 44 MovieClip in Symbol 50 MovieClip [enemyShotS_1] Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 6;
}
Symbol 50 MovieClip [enemyShotS_1] Frame 101
this.removeMovieClip();
Instance of Symbol 51 MovieClip in Symbol 52 MovieClip [enemyShot_target1] Frame 1
onClipEvent (enterFrame) {
this._x = this._x + _parent.speedX;
}
Symbol 52 MovieClip [enemyShot_target1] Frame 120
this.removeMovieClip();
Instance of Symbol 44 MovieClip in Symbol 53 MovieClip [enemyShot2] Frame 1
onClipEvent (enterFrame) {
this._x = this._x + _parent.speedX;
}
Symbol 53 MovieClip [enemyShot2] Frame 120
this.removeMovieClip();
Symbol 57 MovieClip [mainChar_effect] Frame 1
this.onEnterFrame = function () {
this._x = this._x + speedX;
this._y = this._y + speedY;
speedX = speedX / 1.1;
speedY = speedY + 1;
};
Symbol 57 MovieClip [mainChar_effect] Frame 30
this.removeMovieClip();
Symbol 60 MovieClip [bombMini] Frame 1
this.onEnterFrame = function () {
this._x = this._x + speedX;
this._y = this._y + speedY;
speedX = speedX / 1.5;
speedY = speedY / 1.5;
};
Symbol 60 MovieClip [bombMini] Frame 25
this.removeMovieClip();
Symbol 61 MovieClip [bomb] Frame 1
this.onEnterFrame = function () {
this._x = this._x + speedX;
this._y = this._y + speedY;
};
Symbol 61 MovieClip [bomb] Frame 20
this.removeMovieClip();
Symbol 76 Button
on (release) {
_root.changeScene("title", 0);
this.removeMovieClip();
}
Symbol 77 MovieClip [dis_GAMEOVER] Frame 1
this.stop();
Symbol 77 MovieClip [dis_GAMEOVER] Frame 34
this.stop();
Symbol 84 MovieClip Frame 1
switch (_root.eName) {
case 1 :
mes = "GOOD!";
break;
case 2 :
mes = "NICE FIGHT!";
break;
case 3 :
mes = "EXCELLENT!!";
break;
case 4 :
mes = "MIRAGE!!!";
break;
case 5 :
mes = "SUGEEEEEEEEE!!!";
}
Symbol 84 MovieClip Frame 4
this.gotoAndPlay(2);
Symbol 85 MovieClip [dis_CLEAR] Frame 1
this.stop();
Symbol 85 MovieClip [dis_CLEAR] Frame 20
this.stop();
Symbol 91 MovieClip [help] Frame 1
function getFps() {
time_count = time_count + 1;
if ((getTimer() - old_timer) >= time) {
tFps = Math.floor((time_count * 1000) / (getTimer() - old_timer));
fps = (tFps + "/") + fr;
old_timer = getTimer();
time_count = 0;
avFps = Math.floor(((avFps + tFps) / 2) * 10) / 10;
}
}
fr = 30;
time = 1000;
time_count = 0;
avFps = fr;
old_timer = getTimer();
this.onEnterFrame = function () {
this.getFps();
};
Symbol 108 MovieClip Frame 1
this.stop();
Symbol 111 MovieClip Frame 1
this.stop();
Symbol 112 MovieClip Frame 3
this.sv.play();
Symbol 112 MovieClip Frame 22
this.pc.play();
Symbol 133 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 134 MovieClip Frame 1
loadedSize = 0;
totalSize = _root.getBytesTotal();
this.onEnterFrame = function () {
var _local1 = this;
loadedSize = _root.getBytesLoaded();
if (loadedSize >= totalSize) {
_local1.gotoAndStop(10);
_local1.onEnterFrame = null;
} else {
downloadParcent = Math.round((loadedSize / totalSize) * 1000) / 10;
if (String(downloadParcent).indexOf(".", 0) == -1) {
trace("0\u3092\u8FFD\u52A0");
downloadParcent = downloadParcent + ".0";
}
_local1.gage.bar._xscale = downloadParcent;
}
};
this.stop();
Instance of Symbol 141 MovieClip in Symbol 142 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = (Math.random() * 20) - 10;
}
Instance of Symbol 141 MovieClip in Symbol 142 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = (Math.random() * 20) - 10;
}
Instance of Symbol 141 MovieClip in Symbol 142 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = (Math.random() * 20) - 10;
}
Symbol 143 Button
on (release) {
this.changeScene("credit", 1);
}
Symbol 146 Button
on (release) {
getURL ("");
}
Symbol 149 Button
on (release) {
_root.eName = 1;
this.changeScene("game", 0);
}
Symbol 152 Button
on (release) {
_root.eName = 2;
this.changeScene("game", 0);
}
Symbol 155 Button
on (release) {
_root.eName = 3;
this.changeScene("game", 0);
}
Symbol 158 Button
on (release) {
_root.eName = 4;
this.changeScene("game", 0);
}
Symbol 161 Button
on (release) {
_root.eName = 5;
this.changeScene("game", 0);
}
Symbol 164 Button
on (release) {
_root.eName = 5;
this.changeScene("help", 1);
}
Instance of Symbol 168 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = (Math.random() * 40) - 20;
this._x = (Math.random() * 100) - 50;
this._rotation = Math.random() * 180;
}
Instance of Symbol 168 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = (Math.random() * 40) - 20;
this._x = (Math.random() * 100) - 50;
this._rotation = Math.random() * 180;
}
Instance of Symbol 168 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = (Math.random() * 40) - 20;
this._x = (Math.random() * 100) - 50;
this._rotation = Math.random() * 180;
}
Instance of Symbol 168 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = (Math.random() * 40) - 20;
this._x = (Math.random() * 100) - 50;
this._rotation = Math.random() * 180;
}
Symbol 175 MovieClip Frame 1
speed = (Math.random() * 20) + 20;
this.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y + speed;
if (_local1._y > 500) {
_local1._x = Math.random() * 450;
_local1._y = -_local1._height;
speed = (Math.random() * 20) + 20;
_local1._yscale = 7 * speed;
}
};
Symbol 179 MovieClip Frame 1
function dead() {
trace("dead");
zanki--;
if (zanki < 0) {
_root.disGameover.play();
} else {
b = 1;
this.bd._visible = 1;
this.gotoAndStop(_currentframe + 1);
}
return(zanki);
}
function bomber() {
if (b > 0) {
_root.area_Shot.play();
b--;
this.bd._visible = 0;
}
}
zanki = 3;
b = 1;
this.stop();
Symbol 183 Button
on (release) {
_root.gotoAndStop("rTitle");
}