Frame 1
function sisutemu(menu, obj) {
gotoAndStop (2);
}
se_start = new Sound(this);
se_end = new Sound(this);
se_ok = new Sound(this);
se_ng = new Sound(this);
se_batu = new Sound(this);
se_maru = new Sound(this);
se_start.attachSound("start");
se_end.attachSound("end");
se_ok.attachSound("ok");
se_ng.attachSound("ng");
se_batu.attachSound("batu");
se_maru.attachSound("maru");
if (_root.MODE != "ALL") {
menu_cm = new ContextMenu();
menu_cm.builtInItems.forward_back = false;
menu_cm.builtInItems.loop = false;
menu_cm.builtInItems.play = false;
menu_cm.builtInItems.print = false;
menu_cm.builtInItems.quality = true;
menu_cm.builtInItems.rewind = false;
menu_cm.builtInItems.save = false;
menu_cm.builtInItems.zoom = true;
MenuItem2 = new ContextMenuItem();
MenuItem2.caption = "\u30BD\u30D5\u30C8\u30EA\u30BB\u30C3\u30C8";
MenuItem2.enabled = true;
MenuItem2.onSelect = sisutemu;
MenuItem2.separatorBefore = true;
MenuItem2.visible = true;
menu_cm.customItems.push(MenuItem2);
_root.menu = menu_cm;
}
stop();
Frame 2
stopAllSounds();
stop();
Instance of Symbol 45 MovieClip in Frame 3
onClipEvent (load) {
_parent.pos_max = [0, 0, 0, 0, 0];
_parent.pos_dat = new Array();
i = 1;
_parent.pos_dat[i] = new Array();
cnt = 0;
ii = 1;
while (ii < 150) {
_parent.pos_dat[i][ii] = new Array();
iii = 1;
while (iii < 150) {
if (this.HANTEI1.hitTest(ii + 114, iii + 189, true)) {
_parent.pos_dat[i][ii][iii] = 1;
cnt = cnt + 1;
} else {
_parent.pos_dat[i][ii][iii] = 0;
}
iii++;
}
ii++;
}
_parent.pos_max[i] = cnt + 1;
i = 2;
_parent.pos_dat[i] = new Array();
cnt = 0;
ii = 1;
while (ii < 150) {
_parent.pos_dat[i][ii] = new Array();
iii = 1;
while (iii < 150) {
if (this.HANTEI2.hitTest(ii + 114, iii + 189, true)) {
_parent.pos_dat[i][ii][iii] = 1;
cnt = cnt + 1;
} else {
_parent.pos_dat[i][ii][iii] = 0;
}
iii++;
}
ii++;
}
_parent.pos_max[i] = cnt + 1;
i = 3;
_parent.pos_dat[i] = new Array();
cnt = 0;
ii = 1;
while (ii < 150) {
_parent.pos_dat[i][ii] = new Array();
iii = 1;
while (iii < 150) {
if (this.HANTEI3.hitTest(ii + 114, iii + 189, true)) {
_parent.pos_dat[i][ii][iii] = 1;
cnt = cnt + 1;
} else {
_parent.pos_dat[i][ii][iii] = 0;
}
iii++;
}
ii++;
}
_parent.pos_max[i] = cnt + 1;
}
Frame 4
stop();
Instance of Symbol 59 MovieClip in Frame 4
onClipEvent (load) {
x = 1;
z = 3;
y = _parent.pos_av[z] * 1000;
i = Math.floor(y / x);
i = (i % 10) + 1;
oldi = i;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
y = _parent.pos_av[z] * 1000;
i = Math.floor(y / x);
i = (i % 10) + 1;
if (i != oldi) {
oldi = i;
gotoAndStop(i);
}
}
Instance of Symbol 59 MovieClip in Frame 4
onClipEvent (load) {
x = 10;
z = 3;
y = _parent.pos_av[z] * 1000;
i = Math.floor(y / x);
i = (i % 10) + 1;
oldi = i;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
y = _parent.pos_av[z] * 1000;
i = Math.floor(y / x);
i = (i % 10) + 1;
if (i != oldi) {
oldi = i;
gotoAndStop(i);
}
}
Instance of Symbol 59 MovieClip in Frame 4
onClipEvent (load) {
x = 100;
z = 3;
y = _parent.pos_av[z] * 1000;
i = Math.floor(y / x);
i = (i % 10) + 1;
oldi = i;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
y = _parent.pos_av[z] * 1000;
i = Math.floor(y / x);
i = (i % 10) + 1;
if (i != oldi) {
oldi = i;
gotoAndStop(i);
}
}
Instance of Symbol 59 MovieClip in Frame 4
onClipEvent (load) {
x = 1;
z = 2;
y = _parent.pos_av[z] * 1000;
i = Math.floor(y / x);
i = (i % 10) + 1;
oldi = i;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
y = _parent.pos_av[z] * 1000;
i = Math.floor(y / x);
i = (i % 10) + 1;
if (i != oldi) {
oldi = i;
gotoAndStop(i);
}
}
Instance of Symbol 59 MovieClip in Frame 4
onClipEvent (load) {
x = 10;
z = 2;
y = _parent.pos_av[z] * 1000;
i = Math.floor(y / x);
i = (i % 10) + 1;
oldi = i;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
y = _parent.pos_av[z] * 1000;
i = Math.floor(y / x);
i = (i % 10) + 1;
if (i != oldi) {
oldi = i;
gotoAndStop(i);
}
}
Instance of Symbol 59 MovieClip in Frame 4
onClipEvent (load) {
x = 100;
z = 2;
y = _parent.pos_av[z] * 1000;
i = Math.floor(y / x);
i = (i % 10) + 1;
oldi = i;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
y = _parent.pos_av[z] * 1000;
i = Math.floor(y / x);
i = (i % 10) + 1;
if (i != oldi) {
oldi = i;
gotoAndStop(i);
}
}
Instance of Symbol 59 MovieClip in Frame 4
onClipEvent (load) {
x = 1;
z = 1;
y = _parent.pos_av[z] * 1000;
i = Math.floor(y / x);
i = (i % 10) + 1;
oldi = i;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
y = _parent.pos_av[z] * 1000;
i = Math.floor(y / x);
i = (i % 10) + 1;
if (i != oldi) {
oldi = i;
gotoAndStop(i);
}
}
Instance of Symbol 59 MovieClip in Frame 4
onClipEvent (load) {
x = 10;
z = 1;
y = _parent.pos_av[z] * 1000;
i = Math.floor(y / x);
i = (i % 10) + 1;
oldi = i;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
y = _parent.pos_av[z] * 1000;
i = Math.floor(y / x);
i = (i % 10) + 1;
if (i != oldi) {
oldi = i;
gotoAndStop(i);
}
}
Instance of Symbol 59 MovieClip in Frame 4
onClipEvent (load) {
x = 100;
z = 1;
y = _parent.pos_av[z] * 1000;
i = Math.floor(y / x);
i = (i % 10) + 1;
oldi = i;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
y = _parent.pos_av[z] * 1000;
i = Math.floor(y / x);
i = (i % 10) + 1;
if (i != oldi) {
oldi = i;
gotoAndStop(i);
}
}
Instance of Symbol 73 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop(_parent.lv);
old_lv = _parent.lv;
}
onClipEvent (enterFrame) {
if (old_lv != _parent.lv) {
gotoAndStop(_parent.lv);
old_lv = _parent.lv;
}
}
Instance of Symbol 97 MovieClip "GAME" in Frame 4
onClipEvent (load) {
gotoAndStop (1);
pos_cnt = [0, 0, 0, 0, 0];
_parent.pos_av = [0, 0, 0, 0, 0];
_parent.lv = 1;
_parent.lifemax = 5000;
_parent.life = _parent.lifemax;
st = "off";
game_flg = "ok";
}
onClipEvent (enterFrame) {
if (game_flg == "ok") {
_parent.life = _parent.life - 1;
if (_parent.life <= 0) {
_parent.life = 0;
stopAllSounds();
_parent.se_end.start();
game_flg = "end";
} else if (st == "on") {
this.LINE.clear();
this.LINE.beginFill(16711680, 50);
this.LINE.moveTo(this._xmouse, this._ymouse);
this.LINE.lineTo(this._xmouse, st_y);
this.LINE.lineTo(st_x, st_y);
this.LINE.lineTo(st_x, this._ymouse);
this.LINE.endFill();
}
}
if (game_flg != "ok") {
_width = 300;
_height = 300;
_x = 37.2;
_y = 0;
gotoAndStop (2);
}
}
onClipEvent (mouseUp) {
if (game_flg == "ok") {
if (st == "on") {
ii = 1;
while (ii < 7) {
if (eval ("this.MC.BALL" + ii).HIT.hitTest(this.LINE)) {
_parent.se_batu.start();
st = "off";
this.LINE.clear();
i = Math.abs(st_x - _xmouse) * Math.abs(st_y - _ymouse);
_parent.life = _parent.life - (i * _parent.lv);
}
ii++;
}
}
if (st == "on") {
_parent.life = _parent.life - 50;
se_cnt = 0;
st = "off";
this.LINE.clear();
if (st_x > this._xmouse) {
x_st = Math.round(this._xmouse);
x_ed = Math.round(st_x);
} else {
x_st = Math.round(st_x);
x_ed = Math.round(this._xmouse);
}
if (st_y > this._ymouse) {
y_st = Math.round(this._ymouse);
y_ed = Math.round(st_y);
} else {
y_st = Math.round(st_y);
y_ed = Math.round(this._ymouse);
}
i = x_st;
while (i < x_ed) {
if ((i >= 115) and (i <= 265)) {
ii = y_st;
while (ii < y_ed) {
if ((ii >= 190) and (ii <= 340)) {
if (_parent.pos_dat[1][i - 114][ii - 189] == 1) {
_parent.pos_dat[1][i - 114][ii - 189] = 0;
pos_cnt[1] = pos_cnt[1] + 1;
se_cnt = se_cnt + 1;
this.MASK1.beginFill(16711680, 100);
this.MASK1.moveTo(i - 0.5, ii - 0.5);
this.MASK1.lineTo(i + 0.5, ii - 0.5);
this.MASK1.lineTo(i + 0.5, ii + 0.5);
this.MASK1.lineTo(i - 0.5, ii + 0.5);
this.MASK1.endFill();
} else if ((_parent.pos_dat[2][i - 114][ii - 189] == 1) and (_parent.lv > 1)) {
_parent.pos_dat[2][i - 114][ii - 189] = 0;
pos_cnt[2] = pos_cnt[2] + 1;
se_cnt = se_cnt + 1;
this.MASK2.beginFill(16711680, 100);
this.MASK2.moveTo(i - 0.5, ii - 0.5);
this.MASK2.lineTo(i + 0.5, ii - 0.5);
this.MASK2.lineTo(i + 0.5, ii + 0.5);
this.MASK2.lineTo(i - 0.5, ii + 0.5);
this.MASK2.endFill();
} else if ((_parent.pos_dat[3][i - 114][ii - 189] == 1) and (_parent.lv > 2)) {
_parent.pos_dat[3][i - 114][ii - 189] = 0;
pos_cnt[3] = pos_cnt[3] + 1;
se_cnt = se_cnt + 1;
this.MASK3.beginFill(16711680, 100);
this.MASK3.moveTo(i - 0.5, ii - 0.5);
this.MASK3.lineTo(i + 0.5, ii - 0.5);
this.MASK3.lineTo(i + 0.5, ii + 0.5);
this.MASK3.lineTo(i - 0.5, ii + 0.5);
this.MASK3.endFill();
}
}
ii++;
}
}
i++;
}
if (se_cnt != 0) {
_parent.se_maru.start();
}
_parent.pos_av[1] = pos_cnt[1] / _parent.pos_max[1];
_parent.pos_av[2] = pos_cnt[2] / _parent.pos_max[2];
_parent.pos_av[3] = pos_cnt[3] / _parent.pos_max[3];
if (_parent.lv == 1) {
if (_parent.pos_av[1] >= 0.8) {
_parent.se_ok.start();
_parent.lv = 2;
}
}
if (_parent.lv == 2) {
if (_parent.pos_av[2] >= 0.8) {
_parent.se_ok.start();
_parent.lv = 3;
}
}
if (_parent.lv == 3) {
if (_parent.pos_av[3] >= 0.95) {
stopAllSounds();
_parent.se_start.start();
game_flg = "clear";
}
}
}
}
}
onClipEvent (mouseDown) {
if (game_flg == "ok") {
if (st == "off") {
st = "on";
st_x = this._xmouse;
st_y = this._ymouse;
}
}
}
Instance of Symbol 106 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (1);
flg = "off";
}
onClipEvent (enterFrame) {
if ((_parent.GAME.game_flg != "ok") and (flg == "off")) {
gotoAndPlay (2);
flg = "on";
}
}
Symbol 24 MovieClip Frame 13
stop();
Instance of Symbol 21 MovieClip in Symbol 24 MovieClip Frame 13
onClipEvent (enterFrame) {
loaded = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loaded == 100) {
_parent.gotoAndPlay(14);
}
}
Symbol 24 MovieClip Frame 26
if (_root.MODE != "ALL") {
_parent.gotoAndPlay(2);
} else {
_parent.gotoAndPlay(3);
}
stop();
Symbol 36 Button
on (press) {
gotoAndPlay (3);
}
Symbol 38 Button
on (press) {
getURL ("http://adequate.blog.shinobi.jp/Entry/184/");
}
Instance of Symbol 76 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (load) {
_width = 80;
}
onClipEvent (enterFrame) {
_width = ((_parent._parent.life / _parent._parent.lifemax) * 80);
}
Instance of Symbol 94 MovieClip "BALL1" in Symbol 95 MovieClip Frame 1
onClipEvent (load) {
cnt = 0;
rot = random(30) * 12;
_x = ((Math.cos((rot * Math.PI) / 180) * 75) + 190);
_y = ((Math.sin((rot * Math.PI) / 180) * 75) + 265);
rot = random(15) * 24;
add_x = Math.cos((rot * Math.PI) / 180) * (4 + _parent._parent._parent.lv);
add_y = Math.sin((rot * Math.PI) / 180) * (4 + _parent._parent._parent.lv);
}
onClipEvent (enterFrame) {
i = 1;
while (i < 11) {
_x = (_x + ((add_x / 5) * ((_parent._parent._parent.lv * 0.1) + 0.1)));
if (_x > 265) {
cnt = cnt + 1;
_x = 265;
add_x = add_x * -1;
} else if (_x < 115) {
cnt = cnt + 1;
_x = 115;
add_x = add_x * -1;
}
_y = (_y + ((add_y / 5) * ((_parent._parent._parent.lv * 0.1) + 0.1)));
if (_y > 340) {
cnt = cnt + 1;
_y = 340;
add_y = add_y * -1;
} else if (_y < 190) {
cnt = cnt + 1;
_y = 190;
add_y = add_y * -1;
}
if (this.HIT.hitTest(_parent._parent.LINE)) {
_parent._parent._parent.se_batu.start();
_parent._parent.st = "off";
_parent._parent.LINE.clear();
i = Math.abs(_parent._parent.st_x - _parent._parent._xmouse) * Math.abs(_parent._parent.st_y - _parent._parent._ymouse);
_parent._parent._parent.life = _parent._parent._parent.life - (i * _parent._parent._parent.lv);
}
i++;
}
if (cnt >= 10) {
cnt = 0;
rot = random(15) * 24;
add_x = Math.cos((rot * Math.PI) / 180) * 5;
add_y = Math.sin((rot * Math.PI) / 180) * 5;
}
}
Symbol 97 MovieClip Frame 1
stop();
Instance of Symbol 95 MovieClip "MC" in Symbol 97 MovieClip Frame 1
onClipEvent (load) {
i = 2;
while (i < 7) {
duplicateMovieClip ("BALL1", "BALL" + i, i);
i++;
}
}
Symbol 103 Button
on (press) {
stopAllSounds();
_parent.gotoAndPlay(3);
}
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 67
if (_parent.GAME.game_flg != "clear") {
gotoAndStop (123);
}
Symbol 106 MovieClip Frame 122
stop();