Frame 1
function endGame() {
j = 0;
while (j < 5) {
i = 0;
while (i < 5) {
if (getProperty(("p" + j) + i, _currentframe) == 1) {
return(0);
}
i++;
}
j++;
}
return(1);
}
onGame = 1;
ifFrameLoaded (1) {
if (!startGame) {
j = 0;
while (j < 5) {
i = 0;
while (i < 5) {
duplicateMovieClip (hoge, ("p" + j) + i, (j * 5) + i);
setProperty(("p" + j) + i, _x , (i * 120) + 60);
setProperty(("p" + j) + i, _y , (j * 160) + 130);
setProperty(("p" + j) + i, _width , 118);
setProperty(("p" + j) + i, _height , 158);
i++;
}
j++;
}
startGame = 1;
}
if (endGame()) {
onGame = 0;
if (10000 >= _root.cnt) {
_root.message = _root.cnt + "Žè–ڂŃNƒŠƒAI‚¨‚Ý‚²‚ÆI";
_root.minami.gotoAndPlay(2);
stop();
} else {
_root.message = _root.cnt + "Žè–ڂŃNƒŠƒAI‚¨‚‚©‚ꂳ‚ÜI";
stop();
}
}
}
Symbol 2 Button
on (press) {
if (_root.onGame != 0) {
name = getProperty(_this, _name);
y = Number(substring(name, 2, 1));
x = Number(substring(name, 3, 1));
play();
if (0 < x) {
idx = String(y) + String(x - 1);
eval ("_root.p" + String(idx)).play();
}
if (x < 5) {
idx = String(y) + String(x + 1);
eval ("_root.p" + String(idx)).play();
}
if (0 < y) {
idx = String(y - 1) + String(x);
eval ("_root.p" + String(idx)).play();
}
if (y < 5) {
idx = String(y + 1) + String(x);
eval ("_root.p" + String(idx)).play();
}
_root.cnt = _root.cnt + 1;
_root.message = _root.cnt + "Žè–Ú";
}
}
Symbol 4 MovieClip Frame 1
stop();
Symbol 4 MovieClip Frame 2
stop();
Symbol 11 Button
on (release) {
_root.startGame = 0;
_root.cnt = 0;
_root.message = "ƒpƒlƒ‹‚ð‘S•”Á‚µ‚Ä‚Ëô";
_root.gotoAndPlay(1);
_root.minami.gotoAndStop(1);
}
Symbol 18 Button
on (press) {
getURL ("http://www.interq.or.jp/~snake/gboya", "_top");
}
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 2
stop();