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 katamuki() {
kakudo = (-(_xmouse - 200)) / 5;
bar._rotation = kakudo;
k1 = kakudo;
k2 = 180 + kakudo;
}
function gameOver() {
timer.removeMovieClip();
pSet.gotoAndStop(3);
timeOut = 2000;
startTime = getTimer();
this.onEnterFrame = function () {
if (getTimer() > (startTime + timeOut)) {
oSound.start();
endP(200, 240);
delete this.onEnterFrame;
}
};
}
function makeB() {
newName = "b" + bNum;
_root.attachMovie("bSet", newName, bNum);
bNum++;
}
fscommand ("showmenu", "false");
fallSound = new Sound(_root);
fallSound.attachSound("fall");
fallSound.stop();
fallSound2 = new Sound(_root);
fallSound2.attachSound("fall2");
fallSound2.stop();
oSound = new Sound(_root);
oSound.attachSound("oversound");
oSound.stop();
score = 0;
levelNum = 0;
bNum = 1;
i = 1;
while (i <= 100) {
_root["b" + i].removeMovieClip();
i++;
}
stop();
Frame 2
pSet.gotoAndStop(2);
this.onEnterFrame = function () {
var _local1 = _root;
katamuki();
gSet.mainEngine();
i = 1;
while (i <= bNum) {
_local1["b" + i].mainEngine();
i++;
}
};
_root.createEmptyMovieClip("timer", 1000);
timer.timeOut = 1000;
timer.startTime = getTimer();
timer.onEnterFrame = function () {
var _local1 = this;
if (getTimer() > (_local1.startTime + _local1.timeOut)) {
makeB();
if (bNum == 3) {
_local1.timeOut = 20000;
_local1.startTime = getTimer();
_local1.onEnterFrame = function () {
var _local1 = this;
if (getTimer() > (_local1.startTime + _local1.timeOut)) {
makeB();
_local1.startTime = getTimer();
}
};
} else {
_local1.startTime = getTimer();
}
}
};
stop();
Frame 3
stop();
Symbol 15 MovieClip [clearPanel] Frame 1
point = 0;
this.guard.useHandCursor = false;
Symbol 15 MovieClip [clearPanel] Frame 7
_root.stopTimer(this, 2000);
Symbol 15 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 15 MovieClip [clearPanel] Frame 9
_root.stopTimer(this, 3000);
Symbol 15 MovieClip [clearPanel] Frame 15
_root.stageNum++;
_root.gotoAndPlay("next");
this.removeMovieClip();
Symbol 21 MovieClip [unit] Frame 1
this.rank = _root["rank" + this.ID];
this.name = _root["name" + this.ID];
this.score = _root["score" + this.ID];
Symbol 28 Button
on (press) {
_root.gotoAndStop("opening");
this.removeMovieClip();
}
Symbol 33 Button
on (release) {
_parent.pageNum--;
_parent.play();
}
Symbol 34 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent.pageNum == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
};
Symbol 35 Button
on (release) {
_parent.pageNum++;
_parent.play();
}
Symbol 36 MovieClip Frame 1
this.onEnterFrame = function () {
if (_parent.pageNum == 10) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
};
Symbol 41 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 41 MovieClip Frame 2
i = 1;
while (i <= 100) {
this["unit" + i].removeMovieClip();
i++;
}
Symbol 42 MovieClip [rankPanel] Frame 1
this.guard.useHandCursor = false;
Symbol 42 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 42 MovieClip [rankPanel] Frame 12
stop();
Instance of Symbol 41 MovieClip in Symbol 42 MovieClip [rankPanel] Frame 12
onClipEvent (load) {
this.pageNum = 1;
}
Symbol 43 Button
on (press) {
_root.gotoAndStop("opening");
this.removeMovieClip();
}
Symbol 46 MovieClip [helpPanel] Frame 1
this.guard.useHandCursor = false;
Symbol 46 MovieClip [helpPanel] Frame 12
stop();
Symbol 47 Button
on (press) {
_root.gotoAndStop("opening");
_parent.removeMovieClip();
}
Symbol 52 Button
on (press) {
if (this.name != "") {
play();
}
}
Symbol 62 MovieClip Frame 1
score = _root.score;
stop();
Symbol 62 MovieClip Frame 2
name = "";
stop();
Symbol 62 MovieClip Frame 3
play();
Symbol 62 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 62 MovieClip Frame 10
this.err = _root.err;
stop();
Symbol 63 MovieClip [endPanel] Frame 1
this.guard.useHandCursor = false;
Symbol 63 MovieClip [endPanel] Frame 11
stop();
Symbol 70 MovieClip [bSet] Frame 1
function init() {
_x = 200;
_y = 0;
speed = 1 - (_root.randomInt(20) / 10);
xSpeed = 0;
ySpeed = 0;
r = 0;
statusFlg = "FALL";
}
function walk() {
var _local1 = _root;
if (r < 0) {
k = _local1.k2;
} else {
k = _local1.k1;
}
speed = speed + (_local1.kakudo / 30);
r = r + speed;
radian = k * (Math.PI/180);
_x = (200 + (Math.abs(r) * Math.cos(radian)));
_y = (260 + (Math.abs(r) * Math.sin(radian)));
if (Math.abs(r) > 130) {
_local1.fallSound.start();
xSpeed = Math.abs(speed) * Math.cos(radian);
ySpeed = Math.abs(speed) * Math.sin(radian);
statusFlg = "JUMP";
}
}
function jump() {
ySpeed = ySpeed + 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
if (_x < 0) {
_x = 0;
xSpeed = -xSpeed;
} else if (_x > 400) {
_x = 400;
xSpeed = -xSpeed;
}
if (_y > 450) {
_root.score++;
init();
}
}
function judge() {
if (_y >= 260) {
_y = 260;
statusFlg = "WALK";
}
}
function mainEngine() {
switch (statusFlg) {
case "WALK" :
walk();
return;
case "FALL" :
jump();
judge();
return;
case "JUMP" :
jump();
}
}
init();
Symbol 70 MovieClip [bSet] Frame 13
gotoAndPlay ("loop");
Symbol 85 MovieClip Frame 1
stop();
Symbol 89 Button
on (release) {
play();
}
Symbol 100 MovieClip Frame 1
function walk() {
var _local1 = _root;
if (r < 0) {
k = _local1.k2;
} else {
k = _local1.k1;
}
accell = 80 - (_local1.score / 2);
if (accell < 5) {
accell = 5;
}
speed = speed + (_local1.kakudo / accell);
r = r + speed;
radian = k * (Math.PI/180);
_x = (200 + (Math.abs(r) * Math.cos(radian)));
_y = (260 + (Math.abs(r) * Math.sin(radian)));
if (Math.abs(r) > 130) {
_local1.fallSound.start();
xSpeed = Math.abs(speed) * Math.cos(radian);
ySpeed = Math.abs(speed) * Math.sin(radian);
statusFlg = "JUMP";
}
}
function jump() {
ySpeed = ySpeed + 1;
_x = (_x + xSpeed);
_y = (_y + ySpeed);
if (_x < 0) {
_x = 0;
xSpeed = -xSpeed;
} else if (_x > 400) {
_x = 400;
xSpeed = -xSpeed;
}
if (_y > 450) {
_root.fallSound2.start();
_root.gameOver();
}
}
function mainEngine() {
switch (statusFlg) {
case "WALK" :
walk();
return;
case "JUMP" :
jump();
}
}
statusFlg = "WALK";
speed = 0;
disX = 200 - this._x;
disY = 260 - this._y;
r = Math.sqrt((disX * disX) + (disY * disY));
r = Math.floor(r);
Symbol 100 MovieClip Frame 13
gotoAndPlay ("loop");
Symbol 105 MovieClip Frame 1
startTime = getTimer();
timeOut = 1210 - (_root.stageNum * 10);
this.onEnterFrame = function () {
var _local1 = this;
if (getTimer() > (startTime + timeOut)) {
_local1._width = _local1._width - 1;
if (_local1._width < 1) {
_local1._visible = false;
_root.miss(2);
delete _local1.onEnterFrame;
}
startTime = getTimer();
}
};