Frame 1
function randomInt(maxNum) {
var _local1 = Math.random() * maxNum;
if (_local1 == 0) {
_local1 = 1;
} else {
_local1 = Math.ceil(_local1);
}
return(_local1);
}
function stopTimer(trg, sec) {
var _local1 = this;
target = trg;
target.stop();
target.createEmptyMovieClip("mcTimer", 100000);
target.mcTimer.timeOut = sec;
target.mcTimer.startTime = getTimer();
target.mcTimer.onEnterFrame = function () {
var _local1 = this;
if (getTimer() > (_local1.startTime + _local1.timeOut)) {
_local1._parent.play();
_local1.removeMovieClip();
}
};
}
function talk(trg, delay, msg) {
var _local1 = this;
target = trg;
target.stop();
target.msg = "";
target.createEmptyMovieClip("mcTalk", 100001);
target.mcTalk.msg = msg;
target.mcTalk.msgleng = target.mcTalk.msg.length;
target.mcTalk.i = 0;
target.mcTalk.delay = delay;
target.mcTalk.timeOut = 0;
target.mcTalk.startTime = getTimer();
target.mcTalk.onEnterFrame = function () {
var _local1 = this;
if (getTimer() > (_local1.startTime + _local1.timeOut)) {
_local1.mchara = _local1.msg.charAt(_local1.i);
_local1._parent.msg = _local1._parent.msg + _local1.mchara;
_local1.i++;
if (_local1.i < _local1.msgleng) {
_local1.timeOut = _local1.delay;
_local1.startTime = getTimer();
} else {
_local1._parent.play();
_local1.removeMovieClip();
}
}
};
}
function endP(X, Y) {
var _local1 = _root;
_local1.attachMovie("endPanel", "endPanel", 100002);
_local1.endPanel._x = X;
_local1.endPanel._y = Y;
}
function rankP(X, Y) {
var _local1 = _root;
_local1.attachMovie("rankPanel", "rankPanel", 100002);
_local1.rankPanel._x = X;
_local1.rankPanel._y = Y;
}
function helpP(X, Y) {
var _local1 = _root;
_local1.attachMovie("helpPanel", "helpPanel", 100002);
_local1.helpPanel._x = X;
_local1.helpPanel._y = Y;
}
function clearP(X, Y) {
var _local1 = _root;
_local1.attachMovie("clearPanel", "clearPanel", 100003);
_local1.clearPanel._x = X;
_local1.clearPanel._y = Y;
}
function gOver() {
rootSound.stop();
_root.black._visible = true;
_root.endingSet.showGameOver();
}
function gClear() {
rootSound.stop();
_root.black._visible = true;
_root.endingSet.showGameOver();
}
function retry() {
var _local1 = _root;
speed = 4;
espeed = 2;
_local1.endingSet.gotoAndStop(1);
black._visible = false;
_local1.sakuraStage.removeMovieClip();
_local1.shukuSet.removeMovieClip();
_local1.mainSet.init();
}
fscommand ("showmenu", "false");
speed = 4;
espeed = 2;
black._visible = false;
rootSound = new Sound(_root);
rootSound.attachSound("bgm");
rootSound.setVolume(100);
rootSound.stop();
stop();
Frame 2
stop();
Symbol 13 MovieClip Frame 1
this.gotoAndStop(_root.randomInt(4));
Symbol 14 MovieClip [sakura] Frame 1
_y = -50;
_x = _root.randomInt(400);
_rotation = _root.randomInt(360);
rPow = _root.randomInt(20) - 10;
if (rPow == 0) {
rPow = 3;
}
xPow = _root.randomInt(4) - 2;
yPow = _root.randomInt(4) + 2;
this.onEnterFrame = function () {
_rotation = (_rotation + rPow);
_x = (_x + xPow);
_y = (_y + yPow);
if (_y > 430) {
this.removeMovieClip();
}
};
Symbol 25 MovieClip [clearPanel] Frame 1
point = 0;
this.guard.useHandCursor = false;
Symbol 25 MovieClip [clearPanel] Frame 7
_root.stopTimer(this, 2000);
Symbol 25 MovieClip [clearPanel] Frame 8
pinSound = new Sound(this);
pinSound.attachSound("pin");
pinSound.setVolume(100);
pinSound.start(0, 1000);
this.onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
_local1.timeBar._width--;
_local2.point = _local2.point + 10;
_local1.score = _local1.score + 10;
if (_local1.timeBar._width < 1) {
_local1.timeBar._visible = false;
pinSound.stop();
_local2.play();
delete _local2.onEnterFrame;
}
};
stop();
Symbol 25 MovieClip [clearPanel] Frame 9
_root.stopTimer(this, 3000);
Symbol 25 MovieClip [clearPanel] Frame 15
_root.stageNum++;
_root.gotoAndPlay("next");
this.removeMovieClip();
Symbol 31 MovieClip [unit] Frame 1
this.rank = _root["rank" + this.ID];
this.name = _root["name" + this.ID];
this.score = _root["score" + this.ID];
Symbol 38 Button
on (press) {
_root.gotoAndStop("opening");
this.removeMovieClip();
}
Symbol 43 Button
on (release) {
_parent.pageNum--;
_parent.play();
}
Symbol 44 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent.pageNum == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
};
Symbol 45 Button
on (release) {
_parent.pageNum++;
_parent.play();
}
Symbol 46 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent.pageNum == 10) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
};
Symbol 51 MovieClip Frame 1
this.page = this.pageNum + "/10";
sNum = ((this.pageNum - 1) * 10) + 1;
mNum = sNum + 9;
pNum = 1;
i = sNum;
while (i <= mNum) {
newName = "unit" + i;
trace(newName);
this.attachMovie("unit", newName, i);
this[newName]._y = 20 * pNum;
this[newName].ID = i;
pNum++;
i++;
}
stop();
Symbol 51 MovieClip Frame 2
i = 1;
while (i <= 100) {
this["unit" + i].removeMovieClip();
i++;
}
Symbol 52 MovieClip [rankPanel] Frame 1
this.guard.useHandCursor = false;
Symbol 52 MovieClip [rankPanel] Frame 11
function loaded(result) {
loadRank(result);
}
function loadRank(list) {
var _local1 = _root;
var _local3 = list.split(newline);
_local1.rankNum = _local3.length - 1;
_local1.rank = 0;
_local1.preScore = "";
i = 0;
while (i <= (_local1.rankNum - 1)) {
var _local2 = _local3[i].split("\t");
_local1["name" + (i + 1)] = _local2[0];
_local1["score" + (i + 1)] = _local2[1];
if (_local1["score" + (i + 1)] == _local1.preScore) {
_local1["rank" + (i + 1)] = _local1.rank;
} else {
_local1.rank++;
_local1["rank" + (i + 1)] = _local1.rank;
}
_local1.preScore = _local1["score" + (i + 1)];
check = (((((i + "\u9806\u4F4D\uFF1A") + _local1["rank" + (i + 1)]) + "\u3000/\u3000\u540D\u524D\uFF1A") + _local1["name" + (i + 1)]) + "\u3000/\u3000\u30B9\u30B3\u30A2\uFF1A") + _local1["score" + (i + 1)];
trace(check);
i++;
}
this.play();
}
var SendData = new LoadVars();
var LoadData = new LoadVars();
SendData.command = "view";
SendData.id = _root.dataID;
conecturl = _root.defurl + Math.random(65536);
SendData.sendAndLoad(conecturl, LoadData, "POST");
LoadData.onData = loaded;
stop();
Symbol 52 MovieClip [rankPanel] Frame 12
stop();
Instance of Symbol 51 MovieClip in Symbol 52 MovieClip [rankPanel] Frame 12
onClipEvent (load) {
this.pageNum = 1;
}
Symbol 53 Button
on (press) {
_root.gotoAndStop("opening");
this.removeMovieClip();
}
Symbol 56 MovieClip [helpPanel] Frame 1
this.guard.useHandCursor = false;
Symbol 56 MovieClip [helpPanel] Frame 12
stop();
Symbol 57 Button
on (press) {
play();
}
Symbol 59 Button
on (press) {
_root.gotoAndStop("opening");
_parent.removeMovieClip();
}
Symbol 64 Button
on (press) {
if (this.name != "") {
play();
}
}
Symbol 74 MovieClip Frame 1
score = _root.score;
stop();
Symbol 74 MovieClip Frame 2
name = "";
stop();
Symbol 74 MovieClip Frame 3
play();
Symbol 74 MovieClip Frame 5
function loaded(result) {
_root.err = result;
play();
}
var SendData = new LoadVars();
var LoadData = new LoadVars();
SendData.command = "save";
SendData.name = this.name;
SendData.score = this.score;
SendData.id = _root.dataID;
conecturl = _root.defurl + Math.random(65536);
SendData.sendAndLoad(conecturl, LoadData, "POST");
LoadData.onData = loaded;
stop();
Symbol 74 MovieClip Frame 10
this.err = _root.err;
stop();
Symbol 75 MovieClip [endPanel] Frame 1
this.guard.useHandCursor = false;
Symbol 75 MovieClip [endPanel] Frame 11
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 130 MovieClip [eSet] Frame 1
function init() {
var _local1 = this;
_local1.gotoAndStop(_local1.id);
_local1.e.gotoAndStop(1);
_visible = true;
_x = 200;
_y = 420;
kflg = 0;
kArray = new Array();
kArray[1] = new Array(40, 450, 3, 4);
kArray[2] = new Array(260, 450, 1, 3, 4);
kArray[3] = new Array(360, 450, 1, 4);
kArray[4] = new Array(40, 530, 2, 3, 4);
kArray[5] = new Array(140, 530, 1, 3, 4);
kArray[6] = new Array(260, 530, 1, 2, 4);
kArray[7] = new Array(140, 610, 2, 3, 4);
kArray[8] = new Array(260, 610, 1, 2, 3);
kArray[9] = new Array(360, 610, 1, 2, 4);
kArray[10] = new Array(40, 690, 2, 3);
kArray[11] = new Array(140, 690, 1, 2, 3);
kArray[12] = new Array(360, 690, 1, 2);
_local1.onEnterFrame = function () {
_y = (_y + 2);
if (_y >= 450) {
_y = 450;
mainEngine();
}
};
}
function mainEngine() {
var _local1 = _root;
var _local2 = this;
var _local3 = _parent;
_local2.e.gotoAndStop(1);
if (_local1.randomInt(2) == 1) {
dir = 1;
} else {
dir = 3;
}
_local2.onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
var _local3 = _parent;
if (dir == 1) {
_x = (_x - _local1.espeed);
} else if (dir == 2) {
_y = (_y - _local1.espeed);
} else if (dir == 3) {
_x = (_x + _local1.espeed);
} else if (dir == 4) {
_y = (_y + _local1.espeed);
}
kNum = 0;
i = 1;
while (i <= 12) {
saX = Math.abs(kArray[i][0] - _x);
saY = Math.abs(kArray[i][1] - _y);
if ((saX <= 5) && (saY <= 5)) {
if (kflg == 0) {
kflg = 1;
leng = kArray[i].length - 2;
dirflg = 0;
while (dirflg == 0) {
dirflg = 1;
newdir = kArray[i][_local1.randomInt(leng) + 1];
ngdir = dir + 2;
if (ngdir > 4) {
ngdir = ngdir - 4;
}
if (newdir == ngdir) {
dirflg = 0;
}
}
dir = newdir;
}
kNum++;
}
i++;
}
if (kNum == 0) {
kflg = 0;
}
_local2.swapDepths(((_local2._y * 100) + 20) + id);
if (_local2.hp.hitTest(_local3.pSet.hp)) {
if (_local3.pSet.pFlg == 0) {
_local3.pSet.bad();
delete _local2.onEnterFrame;
} else {
away();
}
}
};
}
function away() {
var _local1 = this;
badSound.start();
_local1.e.gotoAndStop(2);
_local1.onEnterFrame = function () {
var _local1 = this;
saX = 200 - _x;
saY = 420 - _y;
if (saX > 3) {
_x = (_x + 3);
} else if (saX < -3) {
_x = (_x - 3);
}
if (saY > 3) {
_y = (_y + 3);
} else if (saY < -3) {
_y = (_y - 3);
}
if ((Math.abs(saX) <= 3) && (Math.abs(saY) <= 3)) {
_visible = false;
timeOut = _root.randomInt(10000) + 10000;
startTime = getTimer();
_local1.onEnterFrame = function () {
if (getTimer() > (startTime + timeOut)) {
init();
}
};
}
_local1.swapDepths(((_local1._y * 100) + 20) + id);
};
}
badSound = new Sound(this);
badSound.attachSound("voice");
badSound.setVolume(100);
badSound.stop();
init();
Symbol 173 MovieClip Frame 30
_parent._parent._parent.setScore();
Symbol 173 MovieClip Frame 35
_parent._parent.mainEngine();
stop();
Symbol 188 MovieClip Frame 35
_parent._parent.hensin();
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 20
_parent._parent._parent.setScore();
Symbol 224 MovieClip Frame 25
_parent._parent.mainEngine();
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 1
function showFuki(msg, num) {
txtBox.text = msg;
if (txtBox.textHeight > 20) {
base.gotoAndStop(2);
txtBox._y = -31 - (txtBox.textHeight / 2);
} else {
base.gotoAndStop(1);
txtBox._y = -29;
}
_visible = true;
if (Number(num) >= 100) {
timeOut = Number(num);
startTime = getTimer();
this.onEnterFrame = function () {
if (getTimer() > (startTime + timeOut)) {
hideFuki();
delete this.onEnterFrame;
}
};
}
}
function hideFuki() {
txtBox.text = "";
_visible = false;
}
hideFuki();
Symbol 233 MovieClip [pSet] Frame 1
function init() {
var _local1 = this;
pBset._visible = false;
pFlg = 0;
_x = 200;
_y = 420;
_local1.pAset.gotoAndStop("dir1");
pAset.p.play();
_local1.onEnterFrame = function () {
var _local1 = this;
_y = (_y + 2);
if (_y >= 450) {
_y = 450;
pAset.p.gotoAndStop(1);
_local1.fukiSet.showFuki("\u306F\u3089\u3078\u3063\u305F\uFF5E\uFF01\n100\u500B\u98DF\u3079\u308B\u305E\uFF01", 0);
timeOut = 2000;
startTime = getTimer();
_local1.onEnterFrame = function () {
if (getTimer() > (startTime + timeOut)) {
this.fukiSet.hideFuki();
mainEngine();
}
};
}
};
}
function bad() {
var _local1 = _parent;
var _local2 = this;
wflg = 0;
sflg = 0;
walkSound.stop();
badSound.start();
_local2.pAset.gotoAndStop("bad");
i = 1;
while (i <= 4) {
delete _local1["e" + i].onEnterFrame;
i++;
}
_local2.fukiSet.showFuki("\u3042\u3061\u3083\uFF5E\u3001\u3082\u3063\u3068\n\u98DF\u3079\u305F\u304B\u3063\u305F\u306E\u306B\u2026", 0);
timeOut = 3000;
startTime = getTimer();
_local2.onEnterFrame = function () {
if (getTimer() > (startTime + timeOut)) {
_root.gOver();
delete this.onEnterFrame;
}
};
}
function good() {
var _local1 = _parent;
var _local2 = this;
delete _local2.onEnterFrame;
_local2.timer.removeMovieClip();
wflg = 0;
sflg = 0;
walkSound.stop();
goodSound.start();
pAset._alpha = 100;
pAset._visible = true;
pBset._visible = false;
pBset.gotoAndStop(1);
_local2.pAset.gotoAndStop("good");
i = 1;
while (i <= 4) {
delete _local1["e" + i].onEnterFrame;
i++;
}
_local2.fukiSet.showFuki("\u3084\u3063\u305F\uFF5E\uFF01\n100\u500B\u5B8C\u98DF\u3060\uFF01", 0);
timeOut = 3000;
startTime = getTimer();
_local2.onEnterFrame = function () {
if (getTimer() > (startTime + timeOut)) {
_root.gClear();
delete this.onEnterFrame;
}
};
}
function mainEngine() {
var _local1 = _parent;
var _local2 = this;
var _local3 = _root;
_local2.pAset.gotoAndStop("dir1");
_local2.pBset.gotoAndStop("dir1");
wflg = 0;
sflg = 0;
_local2.onEnterFrame = function () {
var _local1 = _parent;
var _local2 = this;
var _local3 = _root;
if (Key.isDown(39)) {
wflg = 1;
_x = (_x + _local3.speed);
_local2.pAset.gotoAndStop("dir4");
pAset.p.play();
pBset.p.play();
} else if (Key.isDown(37)) {
wflg = 1;
_x = (_x - _local3.speed);
_local2.pAset.gotoAndStop("dir2");
pAset.p.play();
pBset.p.play();
} else if (Key.isDown(38)) {
wflg = 1;
_y = (_y - _local3.speed);
_local2.pAset.gotoAndStop("dir3");
pAset.p.play();
pBset.p.play();
} else if (Key.isDown(40)) {
wflg = 1;
_y = (_y + _local3.speed);
_local2.pAset.gotoAndStop("dir1");
pAset.p.play();
pBset.p.play();
} else {
wflg = 0;
sflg = 0;
walkSound.stop();
pAset.p.gotoAndStop(1);
pBset.p.gotoAndStop(1);
}
if ((wflg == 1) && (sflg == 0)) {
sflg = 1;
walkSound.start(0, 1000);
}
cflg = 0;
i = 1;
while (i <= 5) {
if (_local2.hp.hitTest(_local1["hp" + i])) {
cflg = 1;
}
i++;
}
if ((((_x < 35) || (_x > 365)) || (_y > 695)) || (_y < 440)) {
cflg = 1;
}
if (cflg == 1) {
_x = preX;
_y = preY;
} else {
preX = _x;
preY = _y;
}
_local2.swapDepths(_local2._y * 100);
i = 1;
while (i <= 10) {
if (_local2.hp.hitTest(_local1["ufo" + i].hp) && (_local1["ufo" + i].hitFlg == 1)) {
if (_local1["ufo" + i].size == "S") {
eat("S");
} else {
eat("L");
}
}
i++;
}
};
}
function eat(size) {
delete this.onEnterFrame;
walkSound.stop();
_parent["ufo" + i].init();
if (size == "S") {
if (pFlg != 1) {
pAset.gotoAndStop("eatS");
} else {
pBset.gotoAndStop("eatS");
}
} else {
pAset.gotoAndStop("eatL");
}
}
function hensin() {
var _local1 = this;
_local1.upSound.start();
_root.speed = 5;
pFlg = 1;
pAset.gotoAndStop("dir1");
pAset.p.gotoAndStop(1);
pBset.gotoAndStop("dir1");
pBset.p.gotoAndStop(1);
pBset._visible = true;
pBset._alpha = 0;
_local1.createEmptyMovieClip("timer", 999);
_local1.timer.timeOut = 10000;
_local1.timer.startTime = getTimer();
_local1.timer.onEnterFrame = function () {
var _local1 = this;
if (getTimer() > (_local1.startTime + _local1.timeOut)) {
_local1._parent.normal();
_local1.removeMovieClip();
}
};
tencount = 0;
_local1.onEnterFrame = function () {
if (pAset._alpha == 0) {
pAset._alpha = 100;
} else {
pAset._alpha = 0;
}
if (pBset._alpha == 0) {
pBset._alpha = 100;
} else {
pBset._alpha = 0;
}
tencount++;
if (tencount >= 30) {
pBset._alpha = 100;
pAset._alpha = 100;
pAset._visible = false;
mainEngine();
}
};
}
function normal() {
delete this.onEnterFrame;
walkSound.stop();
downSound.start();
pAset.gotoAndStop("dir1");
pAset.p.gotoAndStop(1);
pBset.gotoAndStop("dir1");
pBset.p.gotoAndStop(1);
pAset._visible = true;
pAset._alpha = 100;
pBset._visible = true;
pBset._alpha = 0;
tencount = 0;
this.onEnterFrame = function () {
if (pAset._alpha == 0) {
pAset._alpha = 100;
} else {
pAset._alpha = 0;
}
if (pBset._alpha == 0) {
pBset._alpha = 100;
} else {
pBset._alpha = 0;
}
tencount++;
if (tencount >= 30) {
_root.speed = 4;
pFlg = 0;
pAset._alpha = 100;
pBset._alpha = 100;
pBset._visible = false;
mainEngine();
}
};
}
walkSound = new Sound(this);
walkSound.attachSound("walk");
walkSound.setVolume(100);
walkSound.stop();
badSound = new Sound(this);
badSound.attachSound("fall");
badSound.setVolume(100);
badSound.stop();
goodSound = new Sound(this);
goodSound.attachSound("clearsound");
goodSound.setVolume(100);
goodSound.stop();
upSound = new Sound(this);
upSound.attachSound("powerup");
upSound.setVolume(100);
upSound.stop();
downSound = new Sound(this);
downSound.attachSound("powerdown");
downSound.setVolume(100);
downSound.stop();
init();
stop();
Symbol 241 MovieClip Frame 40
stop();
Symbol 248 MovieClip Frame 1
stop();
Symbol 249 MovieClip [ufo] Frame 1
function init() {
var _local1 = this;
var _local2 = _parent;
_local1.hitFlg = 0;
_visible = false;
Lnum = 0;
i = 1;
while (i <= 5) {
if (i != _local1.id) {
if (_local2["ufo" + i].size == "L") {
Lnum++;
}
}
i++;
}
if ((((_root.randomInt(6) == 1) && (_local2.score >= 5)) && (_local2.pSet.pFlg == 0)) && (Lnum == 0)) {
size = "L";
_local1.ufo.gotoAndStop(2);
} else {
size = "S";
_local1.ufo.gotoAndStop(1);
}
_local1.ufo.ufo.gotoAndStop(1);
posFlg = 1;
while (posFlg != 0) {
posFlg = 0;
setPos();
i = 1;
while (i <= 5) {
if (i != _local1.id) {
saX = Math.abs(_local2["ufo" + i]._x - _local1._x);
saY = Math.abs(_local2["ufo" + i]._y - _local1._y);
if ((saX <= 30) && (saY <= 30)) {
posFlg = 1;
break;
}
}
i++;
}
saX = Math.abs(_local2.pSet._x - _local1._x);
saY = Math.abs(_local2.pSet._y - _local1._y);
if ((saX <= 50) && (saY <= 50)) {
posFlg = 1;
}
}
_local1.swapDepths((_local1._y * 100) + id);
timeOut = 1000 + _root.randomInt(4000);
startTime = getTimer();
_local1.onEnterFrame = function () {
if (getTimer() > (startTime + timeOut)) {
showUFO();
}
};
}
function setPos() {
var _local1 = _root;
rnd = _local1.randomInt(8);
if (rnd == 1) {
_x = (40 + _local1.randomInt(320));
_y = 445;
} else if (rnd == 2) {
_x = (40 + _local1.randomInt(320));
_y = 685;
} else if (rnd == 3) {
_x = 40;
_y = (445 + _local1.randomInt(240));
} else if (rnd == 4) {
_x = 360;
_y = (445 + _local1.randomInt(240));
} else if (rnd == 5) {
_x = (40 + _local1.randomInt(220));
_y = 525;
} else if (rnd == 6) {
_x = (140 + _local1.randomInt(220));
_y = 605;
} else if (rnd == 7) {
_x = 260;
_y = (445 + _local1.randomInt(160));
} else {
_x = 140;
_y = (525 + _local1.randomInt(160));
}
}
function showUFO() {
var _local1 = this;
defY = _y;
_y = (_y - 20);
ySpeed = 0;
_visible = true;
_local1.onEnterFrame = function () {
var _local1 = this;
ySpeed = ySpeed + 0.5;
_y = (_y + ySpeed);
if (_y > defY) {
_y = defY;
ySpeed = (-ySpeed) * 0.5;
if (Math.abs(ySpeed) <= 1) {
_local1.hitFlg = 1;
_local1.ufo.ufo.play();
ySpeed = 0;
delete _local1.onEnterFrame;
}
}
};
}
init();
Symbol 250 MovieClip [sakuraStage] Frame 1
function makeSakura() {
newName = "sakura" + sNum;
this.attachMovie("sakura", newName, sNum);
sNum++;
if (sNum > 100) {
sNum = 1;
}
}
sNum = 1;
this.onEnterFrame = function () {
if (_root.randomInt(5) == 1) {
this.makeSakura();
}
};
Symbol 256 MovieClip [shukuSet] Frame 1
_x = 200;
_y = -40;
this.onEnterFrame = function () {
_y = (_y + ((80 - _y) / 5));
if (Math.abs(80 - _y) < 1) {
_y = 80;
delete this.onEnterFrame;
}
};
Symbol 286 Button
on (release) {
guard._visible = false;
_root.mainSet.setup();
}
Symbol 291 Button
on (release) {
_root.helpSet._visible = true;
}
Symbol 296 MovieClip Frame 1
this.guard.useHandCursor = false;
Symbol 297 MovieClip Frame 1
guard._visible = false;
Symbol 298 MovieClip Frame 1
function init() {
var _local1 = this;
_y = 0;
score = -1;
setScore();
_local1.pSet.removeMovieClip();
i = 1;
while (i <= 5) {
_local1["ufo" + i].removeMovieClip();
_local1["e" + i].removeMovieClip();
i++;
}
eNum = 1;
}
function setup() {
var _local1 = this;
_local1.onEnterFrame = function () {
var _local1 = this;
_y = (_y - 10);
if (_y == -300) {
_root.rootSound.start(0, 1000);
_local1.attachMovie("pSet", "pSet", 9999);
i = 1;
while (i <= 5) {
newName = "ufo" + i;
_local1.attachMovie("ufo", newName, i);
_local1[newName].id = i;
i++;
}
_y = -300;
delete _local1.onEnterFrame;
}
};
}
function makeE() {
newName = "e" + eNum;
this.attachMovie("eSet", newName, eNum);
this[newName].id = eNum;
eNum++;
}
function setScore() {
var _local1 = this;
score++;
if (score == 5) {
makeE();
_local1.pSet.fukiSet.showFuki("\u3042\uFF01\n\u56FD\u8A9E\u306E\u5148\u751F\u3060\uFF01", 2000);
} else if (score == 20) {
makeE();
_local1.pSet.fukiSet.showFuki("\u304A\uFF01\n\u4F53\u80B2\u306E\u5148\u751F\u3060\uFF01", 2000);
} else if (score == 30) {
_local1.pSet.fukiSet.showFuki("\u3088\u30FC\u3057\u300130\u500B\u98DF\u3079\u305F\u305E\uFF01", 2000);
} else if (score == 40) {
_local1.pSet.fukiSet.showFuki("\u3075\u30FC\u3001\u3084\u3063\u306840\u500B\u304B\u3002", 2000);
} else if (score == 50) {
_local1.pSet.fukiSet.showFuki("\u3042\u3068\u300150\u500B\u3060\uFF01\n\u3055\u3042\u98DF\u3046\u305E\u30FC", 2000);
} else if (score == 55) {
makeE();
_local1.pSet.fukiSet.showFuki("\u308F\uFF01\n\u7406\u79D1\u306E\u5148\u751F\u3060\uFF01", 2000);
} else if (score == 60) {
_local1.pSet.fukiSet.showFuki("60\u500B\u30AF\u30EA\u30A2\uFF01\n\u3088\u3086\u3046\u3001\u3088\u3086\u3046\uFF01", 2000);
} else if (score == 70) {
_local1.pSet.fukiSet.showFuki("70\u500B\u76EE\uFF01\n\u307E\u3060\u307E\u3060\u98DF\u3046\u305E\uFF5E\uFF01", 2000);
} else if (score == 75) {
makeE();
_local1.pSet.fukiSet.showFuki("\u3064\u3044\u306B\uFF01\n\u6821\u9577\u5148\u751F\u3060\uFF01", 2000);
} else if (score == 80) {
_local1.pSet.fukiSet.showFuki("80\u500B\u76EE\uFF01\n\u3082\u3046\u3072\u3068\u8E0F\u3093\u5F35\u308A\uFF01", 2000);
} else if (score == 90) {
_local1.pSet.fukiSet.showFuki("\u3042\u306810\u500B\uFF01\uFF01\n\u30E9\u30B9\u30C8\u30B9\u30D1\u30FC\u30C8\u3060\uFF01", 2000);
} else if (score >= 100) {
_root.rootSound.stop();
_local1.pSet.good();
}
num = score;
if (num >= 100) {
num = String(num);
num3.gotoAndStop(Number(num.charAt(0)) + 1);
num2.gotoAndStop(Number(num.charAt(1)) + 1);
num1.gotoAndStop(Number(num.charAt(2)) + 1);
} else if ((num < 100) && (num >= 10)) {
num = String(num);
num3.gotoAndStop(1);
num2.gotoAndStop(Number(num.charAt(0)) + 1);
num1.gotoAndStop(Number(num.charAt(1)) + 1);
} else {
num3.gotoAndStop(1);
num2.gotoAndStop(1);
num1.gotoAndStop(num + 1);
}
}
eNum = 1;
init();
Symbol 311 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 1
stop();
Symbol 330 Button
on (release) {
_root.retry();
}
Symbol 331 MovieClip Frame 1
function showGameOver() {
if (_root.mainSet.score >= 100) {
txt.gotoAndStop(2);
} else {
txt.gotoAndStop(1);
}
this.onEnterFrame = function () {
_y = (_y + ((220 - _y) / 5));
if (Math.abs(220 - _y) < 1) {
p.play();
_y = 220;
play();
delete this.onEnterFrame;
}
};
}
_y = -100;
p.gotoAndStop(1);
stop();
Symbol 331 MovieClip Frame 65
num = _root.mainSet.score;
if (num >= 100) {
num = String(num);
num3.gotoAndStop(Number(num.charAt(0)) + 1);
num2.gotoAndStop(Number(num.charAt(1)) + 1);
num1.gotoAndStop(Number(num.charAt(2)) + 1);
} else if ((num < 100) && (num >= 10)) {
num = String(num);
num3.gotoAndStop(1);
num2.gotoAndStop(Number(num.charAt(0)) + 1);
num1.gotoAndStop(Number(num.charAt(1)) + 1);
} else {
num3.gotoAndStop(1);
num2.gotoAndStop(1);
num1.gotoAndStop(num + 1);
}
if (num < 30) {
p.gotoAndStop(2);
} else if (num >= 100) {
p.gotoAndStop(3);
} else {
p.gotoAndStop(1);
}
if (num < 30) {
txtBox.text = "\u3046\u30FC\u3093\u3001\u5168\u7136\u3001\u98DF\u3044\u305F\u308A\n\u306A\u3044\u3088\uFF01\u3082\u3046\u4E00\u56DE\uFF01";
} else if ((num >= 30) && (num < 50)) {
txtBox.text = "\u3051\u3063\u3053\u3046\u98DF\u3079\u305F\u3051\u3069\u3001\u307E\u3060\n\u98DF\u3048\u308B\uFF01\u3082\u3063\u3068\u98DF\u3044\u305F\u3044\uFF01";
} else if ((num >= 50) && (num < 80)) {
txtBox.text = "\u304B\u306A\u308A\u98DF\u3079\u305F\u3051\u3069\u3001\u307E\u3060\u307E\u3060\n\u5165\u308B\uFF01\u3082\u3063\u3068\u98DF\u3048\u308B\u305E\uFF01";
} else if ((num >= 80) && (num < 100)) {
txtBox.text = "\u3082\u3046\u3061\u3087\u3063\u3068\u3067\u3001\u5B8C\u98DF\u3067\u304D\u305F\n\u306E\u306B\u306A\u3041\u30FB\u30FB\u30FB\u3042\u304D\u3089\u3081\u304D\u308C\u306A\u3044";
} else if (num >= 100) {
txtBox.text = "\u3084\u3063\u305F\u305C\uFF01\uFF11\uFF10\uFF10\u98DF\u30AF\u30EA\u30A2\uFF01\n\u53CB\u9054\u306B\u3001\u601D\u3044\u304D\u308A\u81EA\u6162\u3057\u3088\u3046";
_root.attachMovie("sakuraStage", "sakuraStage", 99876);
_root.attachMovie("shukuSet", "shukuSet", 99875);
}
h = txtBox.textHeight;
txtBox._y = 50 - (h / 2);
play();
Symbol 331 MovieClip Frame 75
stop();
Symbol 336 Button
on (release) {
this._visible = false;
}
Symbol 341 MovieClip Frame 1
this.guard.useHandCursor = false;
this._visible = false;