Frame 1
function sisutemu(menu, obj) {
getURL ("http://adequate.blog.shinobi.jp/Entry/47/", "_blank");
}
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 = "\u53D6\u6271\u8AAC\u660E\u66F8";
MenuItem2.enabled = true;
MenuItem2.onSelect = sisutemu;
MenuItem2.separatorBefore = true;
MenuItem2.visible = true;
menu_cm.customItems.push(MenuItem2);
_root.menu = menu_cm;
stop();
Frame 2
score = 0;
day_flg = 1;
sw_flg1 = 1;
sw_flg2 = 1;
sw_flg3 = 1;
i = random(3) + 1;
if (i == 1) {
sw_flg1 = 2;
} else if (i == 2) {
sw_flg2 = 2;
} else {
sw_flg3 = 2;
}
map_st = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
map_check = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
end_flg = "off";
game_flg = "start";
game_st = 1;
turn = 0;
neu_x = random(9) + 1;
neu_y = random(9) + 1;
map_st[neu_x][neu_y] = 6;
i = "off";
while (i == "off") {
x = random(9) + 1;
y = random(9) + 1;
if (map_st[x][y] == 1) {
map_st[x][y] = 7;
i = "on";
}
}
i = "off";
while (i == "off") {
x = random(9) + 1;
y = random(9) + 1;
if (map_st[x][y] == 1) {
map_st[x][y] = 8;
i = "on";
}
}
i = "off";
while (i == "off") {
x = random(9) + 1;
y = random(9) + 1;
if (map_st[x][y] == 1) {
map_st[x][y] = 9;
i = "on";
}
}
stop();
stopAllSounds();
Frame 3
stop();
Instance of Symbol 47 MovieClip in Frame 3
onClipEvent (load) {
old_flg = _parent.sw_flg1;
gotoAndStop(_parent.sw_flg1);
}
onClipEvent (enterFrame) {
if (old_flg != _parent.sw_flg1) {
old_flg = _parent.sw_flg1;
gotoAndStop(_parent.sw_flg1);
}
}
Instance of Symbol 52 MovieClip in Frame 3
onClipEvent (load) {
old_flg = _parent.sw_flg2;
gotoAndStop(_parent.sw_flg2);
}
onClipEvent (enterFrame) {
if (old_flg != _parent.sw_flg2) {
old_flg = _parent.sw_flg2;
gotoAndStop(_parent.sw_flg2);
}
}
Instance of Symbol 57 MovieClip in Frame 3
onClipEvent (load) {
old_flg = _parent.sw_flg3;
gotoAndStop(_parent.sw_flg3);
}
onClipEvent (enterFrame) {
if (old_flg != _parent.sw_flg3) {
old_flg = _parent.sw_flg3;
gotoAndStop(_parent.sw_flg3);
}
}
Instance of Symbol 71 MovieClip in Frame 3
onClipEvent (load) {
bai = 1000;
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
if (ii != _parent.score) {
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
}
Instance of Symbol 71 MovieClip in Frame 3
onClipEvent (load) {
bai = 100;
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
if (ii != _parent.score) {
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
}
Instance of Symbol 71 MovieClip in Frame 3
onClipEvent (load) {
bai = 10;
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
if (ii != _parent.score) {
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
}
Instance of Symbol 71 MovieClip in Frame 3
onClipEvent (load) {
bai = 1;
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
if (ii != _parent.score) {
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
}
Instance of Symbol 71 MovieClip in Frame 3
onClipEvent (load) {
bai = 10000;
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
if (ii != _parent.score) {
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
}
Instance of Symbol 75 MovieClip "mc" in Frame 3
onClipEvent (load) {
y = 1;
while (y < 10) {
x = 1;
while (x < 10) {
this.attachMovie("map", ("map_chip" + x) + y, (1000 + (x * 10)) + y);
eval (("map_chip" + x) + y)._x = (x * 30) - 25;
eval (("map_chip" + x) + y)._y = (y * 30) - 25;
eval (("map_chip" + x) + y).gotoAndStop(1);
x++;
}
y++;
}
}
Instance of Symbol 76 MovieClip "mc2" in Frame 3
onClipEvent (load) {
oldx = -1;
oldy = -1;
oldf = 0;
}
onClipEvent (enterFrame) {
if ((((_xmouse > 5) and (_xmouse < 275)) and (_ymouse > 5)) and (_ymouse < 275)) {
x = Math.floor((_xmouse - 5) / 30);
y = Math.floor((_ymouse - 5) / 30);
if ((oldx != x) or (oldy != y)) {
if (_parent.game_st == 11) {
this.clear();
this.lineStyle(2, 16776960, 100);
this.beginFill(16711680, 50);
this.moveTo((x * 30) + 5, 5);
this.lineTo((x * 30) + 5, 275);
this.lineTo((x * 30) + 35, 275);
this.lineTo((x * 30) + 35, 5);
this.endFill();
} else if (_parent.game_st == 12) {
xmin = ((x - 1) * 30) + 5;
if (xmin < 5) {
xmin = 5;
}
xmax = ((x + 2) * 30) + 5;
if (xmax > 275) {
xmax = 275;
}
ymin = ((y - 1) * 30) + 5;
if (ymin < 5) {
ymin = 5;
}
ymax = ((y + 2) * 30) + 5;
if (ymax > 275) {
ymax = 275;
}
this.clear();
this.lineStyle(2, 16776960, 100);
this.beginFill(16711680, 50);
this.moveTo(xmin, ymin);
this.lineTo(xmin, ymax);
this.lineTo(xmax, ymax);
this.lineTo(xmax, ymin);
this.endFill();
} else if (_parent.game_st == 13) {
this.clear();
this.lineStyle(2, 16776960, 100);
this.beginFill(16711680, 50);
this.moveTo(5, (y * 30) + 5);
this.lineTo(5, (y * 30) + 35);
this.lineTo(275, (y * 30) + 35);
this.lineTo(275, (y * 30) + 5);
this.endFill();
} else {
this.clear();
this.lineStyle(2, 16776960, 100);
this.beginFill(16711680, 50);
this.moveTo((x * 30) + 5, (y * 30) + 5);
this.lineTo((x * 30) + 5, (y * 30) + 35);
this.lineTo((x * 30) + 35, (y * 30) + 35);
this.lineTo((x * 30) + 35, (y * 30) + 5);
this.endFill();
}
oldx = x;
oldy = y;
oldf = 0;
}
} else if ((((_xmouse >= 280) and (_xmouse <= 395)) and (_ymouse >= 225)) and (_ymouse <= 275)) {
oldx = -1;
oldy = -1;
if (((_xmouse >= 280) and (_xmouse < 318.3)) and (oldf != 1)) {
this.clear();
this.lineStyle(2, 16776960, 100);
this.beginFill(16711680, 50);
this.moveTo(280, 225);
this.lineTo(318.3, 225);
this.lineTo(318.3, 275);
this.lineTo(280, 275);
this.endFill();
oldf = 1;
} else if (((_xmouse >= 318.3) and (_xmouse < 356.6)) and (oldf != 2)) {
this.clear();
this.lineStyle(2, 16776960, 100);
this.beginFill(16711680, 50);
this.moveTo(318.3, 225);
this.lineTo(356.6, 225);
this.lineTo(356.6, 275);
this.lineTo(318.3, 275);
this.endFill();
oldf = 2;
} else if (((_xmouse >= 356.6) and (_xmouse <= 395)) and (oldf != 3)) {
this.clear();
this.lineStyle(2, 16776960, 100);
this.beginFill(16711680, 50);
this.moveTo(356.6, 225);
this.lineTo(395, 225);
this.lineTo(395, 275);
this.lineTo(356.6, 275);
this.endFill();
oldf = 3;
}
} else {
this.clear();
oldx = -1;
oldy = -1;
oldf = 0;
}
}
Instance of Symbol 98 MovieClip in Frame 3
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_parent.game_flg == "stop") {
_parent.game_flg = "play";
_parent.turn = _parent.turn + 1;
gotoAndPlay (2);
if (_parent.turn > 9) {
gotoAndPlay (20);
} else if (_parent.game_st == 7) {
_parent.sw_flg1 = 2;
} else if (_parent.game_st == 8) {
_parent.sw_flg2 = 2;
} else if (_parent.game_st == 9) {
_parent.sw_flg3 = 2;
} else if (_parent.game_st == 6) {
_parent.score = _parent.score + Math.pow(2, 9 - _parent.turn);
_parent.day_flg = _parent.day_flg + 1;
}
} else if (_parent.game_flg == "end") {
_parent.gotoAndPlay(4);
} else if (_parent.game_flg == "start") {
_parent.map_st = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_parent.map_check = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
_parent.end_flg = "off";
_parent.game_st = 1;
_parent.turn = 0;
_parent.neu_x = random(9) + 1;
_parent.neu_y = random(9) + 1;
_parent.map_st[_parent.neu_x][_parent.neu_y] = 6;
i = "off";
while (i == "off") {
x = random(9) + 1;
y = random(9) + 1;
if (_parent.map_st[x][y] == 1) {
_parent.map_st[x][y] = 7;
i = "on";
}
}
i = "off";
while (i == "off") {
x = random(9) + 1;
y = random(9) + 1;
if (_parent.map_st[x][y] == 1) {
_parent.map_st[x][y] = 8;
i = "on";
}
}
i = "off";
while (i == "off") {
x = random(9) + 1;
y = random(9) + 1;
if (_parent.map_st[x][y] == 1) {
_parent.map_st[x][y] = 9;
i = "on";
}
}
y = 1;
while (y < 10) {
x = 1;
while (x < 10) {
eval (("_parent.mc.map_chip" + x) + y).gotoAndStop(1);
x++;
}
y++;
}
_parent.game_flg = "play";
gotoAndPlay (21);
}
}
on (press) {
if (_parent.game_flg == "on") {
if ((((_xmouse > 5) and (_xmouse < 275)) and (_ymouse > 5)) and (_ymouse < 275)) {
x = Math.floor((_xmouse - 5) / 30) + 1;
y = Math.floor((_ymouse - 5) / 30) + 1;
if (_parent.game_st == 11) {
_parent.game_flg = "stop";
_parent.game_st = 1;
_parent.sw_flg1 = 1;
yy = 1;
while (yy < 10) {
if (_parent.map_check[x][yy] == 1) {
if (_parent.map_st[x][yy] != 1) {
eval (("_parent.mc.map_chip" + x) + yy).gotoAndStop(_parent.map_st[x][yy]);
if (_parent.map_st[x][yy] == 6) {
_parent.end_flg = "on";
}
_parent.map_check[x][yy] = _parent.map_st[x][yy];
_parent.game_st = _parent.map_st[x][yy];
}
}
yy++;
}
} else if (_parent.game_st == 12) {
_parent.game_flg = "stop";
_parent.game_st = 1;
_parent.sw_flg2 = 1;
xs = x - 1;
xe = x + 2;
ys = y - 1;
ye = y + 2;
xx = xs;
while (xx < xe) {
yy = ys;
while (yy < ye) {
if (_parent.map_check[xx][yy] == 1) {
if (_parent.map_st[xx][yy] != 1) {
eval (("_parent.mc.map_chip" + xx) + yy).gotoAndStop(_parent.map_st[xx][yy]);
if (_parent.map_st[xx][yy] == 6) {
_parent.end_flg = "on";
}
_parent.map_check[xx][yy] = _parent.map_st[xx][yy];
_parent.game_st = _parent.map_st[xx][y];
}
}
yy++;
}
xx++;
}
} else if (_parent.game_st == 13) {
_parent.game_flg = "stop";
_parent.game_st = 1;
_parent.sw_flg3 = 1;
xx = 1;
while (xx < 10) {
if (_parent.map_check[xx][y] == 1) {
if (_parent.map_st[xx][y] != 1) {
eval (("_parent.mc.map_chip" + xx) + y).gotoAndStop(_parent.map_st[xx][y]);
if (_parent.map_st[xx][y] == 6) {
_parent.end_flg = "on";
}
_parent.map_check[xx][y] = _parent.map_st[xx][y];
_parent.game_st = _parent.map_st[xx][y];
}
}
xx++;
}
} else {
_parent.game_st = 1;
if (_parent.map_check[x][y] == 1) {
_parent.game_flg = "stop";
if (_parent.map_st[x][y] != 1) {
eval (("_parent.mc.map_chip" + x) + y).gotoAndStop(_parent.map_st[x][y]);
if (_parent.map_st[x][y] == 6) {
_parent.end_flg = "on";
}
_parent.map_check[x][y] = _parent.map_st[x][y];
_parent.game_st = _parent.map_st[x][y];
}
}
}
if (_parent.end_flg == "on") {
_parent.game_st = 6;
}
if ((_parent.game_st == 1) and (_parent.game_flg == "stop")) {
nx = Math.abs(_parent.neu_x - x);
ny = Math.abs(_parent.neu_y - y);
if (nx >= ny) {
iro = Math.floor(nx / 3) + 1;
nx = _parent.neu_x - x;
if (nx > 0) {
_parent.game_st = 3;
} else {
_parent.game_st = 5;
}
} else {
iro = Math.floor(ny / 3) + 1;
ny = _parent.neu_y - y;
if (ny > 0) {
_parent.game_st = 4;
} else {
_parent.game_st = 2;
}
}
_parent.map_st[x][y] = _parent.game_st;
_parent.map_check[x][y] = _parent.map_st[x][y];
eval (("_parent.mc.map_chip" + x) + y).gotoAndStop(_parent.map_st[x][y]);
eval ((("_parent.mc.map_chip" + x) + y) + ".iro").gotoAndStop(iro);
}
} else if ((((_xmouse >= 280) and (_xmouse <= 395)) and (_ymouse >= 225)) and (_ymouse <= 275)) {
if (((_xmouse >= 280) and (_xmouse < 318.3)) and (_parent.sw_flg1 == 2)) {
_parent.game_flg = "stop";
_parent.game_st = 11;
} else if (((_xmouse >= 318.3) and (_xmouse < 356.6)) and (_parent.sw_flg2 == 2)) {
_parent.game_flg = "stop";
_parent.game_st = 12;
} else if (((_xmouse >= 356.6) and (_xmouse <= 395)) and (_parent.sw_flg3 == 2)) {
_parent.game_flg = "stop";
_parent.game_st = 13;
}
}
} else if (_parent.game_flg == "gameover") {
_parent.gotoAndPlay(2);
}
}
Frame 4
stop();
stopAllSounds();
Instance of Symbol 103 MovieClip in Frame 4
onClipEvent (load) {
if (_parent.score < 50) {
_alpha = 0;
} else {
i = 100 - Math.floor(_parent.score / 5);
if (i < 0) {
i = 0;
}
_alpha = i;
}
}
on (press) {
_parent.gotoAndPlay(2);
}
Instance of Symbol 107 MovieClip in Frame 4
onClipEvent (load) {
if (_parent.score < 50) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 71 MovieClip in Frame 4
onClipEvent (load) {
bai = 1000;
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
if (ii != _parent.score) {
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
}
Instance of Symbol 71 MovieClip in Frame 4
onClipEvent (load) {
bai = 100;
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
if (ii != _parent.score) {
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
}
Instance of Symbol 71 MovieClip in Frame 4
onClipEvent (load) {
bai = 10;
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
if (ii != _parent.score) {
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
}
Instance of Symbol 71 MovieClip in Frame 4
onClipEvent (load) {
bai = 1;
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
if (ii != _parent.score) {
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
}
Instance of Symbol 71 MovieClip in Frame 4
onClipEvent (load) {
bai = 10000;
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
onClipEvent (enterFrame) {
if (ii != _parent.score) {
ii = _parent.score;
i = Math.floor(_parent.score / bai);
i = (i % 10) + 1;
gotoAndStop(i);
}
}
Symbol 32 MovieClip Frame 7
stop();
Instance of Symbol 29 MovieClip in Symbol 32 MovieClip Frame 7
onClipEvent (enterFrame) {
loaded = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loaded == 100) {
_parent.gotoAndPlay(14);
}
}
Symbol 32 MovieClip Frame 14
_parent.gotoAndPlay(2);
stop();
Symbol 39 Button
on (press) {
gotoAndPlay (3);
}
Symbol 98 MovieClip Frame 1
stop();
Instance of Symbol 93 MovieClip in Symbol 98 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._parent.game_st);
}
Symbol 98 MovieClip Frame 19
if (_parent.game_st == 6) {
if (_parent.day_flg > 5) {
_parent.game_flg = "end";
} else {
_parent.game_flg = "start";
}
} else {
_parent.game_flg = "on";
}
gotoAndStop (1);
Symbol 98 MovieClip Frame 20
_parent.game_flg = "gameover";
stop();
Instance of Symbol 71 MovieClip in Symbol 98 MovieClip Frame 21
onClipEvent (load) {
gotoAndStop(_parent._parent.day_flg + 1);
}
Symbol 98 MovieClip Frame 35
_parent.game_flg = "on";
gotoAndStop (1);