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 makeC() {
var _local1 = _root;
cNum++;
if (cNum <= 19) {
newName = "c" + cNum;
if (cNum == 1) {
_local1.attachMovie("cSet", newName, cNum);
} else {
_local1.attachMovie("cSet2", newName, cNum);
}
_local1[newName].id = cNum;
}
}
fscommand ("showmenu", "false");
score = 0;
speed = 2;
cNum = 0;
time = 0;
lNum = 0;
bodyID1 = 1;
bodyID2 = 1;
bodyID3 = 1;
bodyID4 = 1;
bodyID5 = 1;
bodyID6 = 1;
bodyID7 = 1;
bodyID8 = 2;
bodyID9 = 2;
bodyID10 = 2;
bodyID11 = 1;
bodyID12 = 3;
bodyID13 = 4;
bodyID14 = 3;
bodyID15 = 3;
bodyID16 = 3;
bodyID17 = 4;
bodyID18 = 3;
bodyID19 = 4;
serif2 = "\u30AD\u30E0\u3060\uFF01\u307F\u3093\u306A\u30DC\u30AF\u306E\u8A00\u3046\u3053\u3068\u3092\u805E\u3051\uFF01";
serif3 = "\u97D3\u56FD\u306E\u307A\u3067\u3059\u3002\u307F\u3093\u306A\u5927\u597D\u304D\u3067\u3059\u3002";
serif4 = "UK\u306E\u30B8\u30E3\u30C3\u30AF\u3060\uFF01<br>\u30D1\u30F3\u30AF\u3060\u305C\u3001\u30D2\u30E3\uFF5E";
serif5 = "\u30A4\u30BF\u30EA\u30A2\u3067\u30DE\u30D5\u30A3\u30A2\u3057\u3066\u307E\u3059\u3002\u3088\u308D\u3057\u304F\u3067\u3059";
serif6 = "\u30B9\u30DA\u30A4\u30F3\u306B\u30D1\u30A8\u30EA\u30A2\u98DF\u3079\u306B\u304A\u3044\u3067\u3088\uFF01";
serif7 = "USA\u306E\u30C8\u30E0\u3067\u3059\u3002\u30A2\u30E1\u30EA\u30AB\u3053\u305D\u6B63\u7FA9\u3060\u306D";
serif8 = "\u30AC\u30FC\u30CA\u4EBA\u3060\u3051\u3069\u3001\u30C1\u30E7\u30B3\u98DF\u3063\u305F\u3053\u3068\u306D\uFF5E\u3084";
serif9 = "\u30CA\u30A4\u30B8\u30A7\u30EA\u30A2\u306E\u30DC\u30D3\u30FC\u3060\u3088\u3002\u66B4\u308C\u308B\u305E\uFF5E";
serif10 = "\u30EF\u30BF\u30B7\u306F\u65E5\u672C\u306E\u30AB\u30EC\u30FC\u3092\u8A8D\u3081\u306A\u3044";
serif11 = "\u4E2D\u56FD\u3067\u306F\u9903\u5B50\u3068\u8A00\u3063\u305F\u3089\u6C34\u9903\u5B50\u30A2\u30EB\u30E8";
serif12 = "\u30A2\u30ED\u30CF\uFF5E\u3002\u65E5\u672C\u4EBA\u3063\u3066\u30CF\u30EF\u30A4\u597D\u304D\u306D";
serif13 = "\u3053\u3076\u5E73\u3063\u3066\u3001\u30AD\u30E3\u30E9\u5909\u308F\u3063\u305F\u306D\u3002";
serif14 = "\u30CB\u30FC\u30CF\u30AA\uFF01\u30B9\u30A4\u30AB\u982D\u3069\u3053\u3044\u3063\u305F\uFF1F";
serif15 = "\u30DC\u30F3\u30B8\u30E5\uFF5E\u30EB\u3002<br>\u79C1\u304A\u6D12\u843D\u3067\u3057\u3087\uFF1F";
serif16 = "\u30EF\u30FC\u30EB\u30C9\u30AB\u30C3\u30D7\u7D42\u308F\u3063\u3066\u3001\u9000\u5C48\uFF5E";
serif17 = "\u65E5\u672C\u306ER&B\u306E\u30EC\u30D9\u30EB\u3082\u9AD8\u304F\u306A\u3063\u305F\u308F\u306D\u3002";
serif18 = "\u65E5\u672C\u3067\u5C02\u696D\u4E3B\u5A66\u3057\u3066\u307E\uFF5E\u3059\uFF01";
serif19 = "SPEED\u306E\u30D2\u30C8\u30A8\u306A\u3089\u53CB\u9054\u3060\u3088\uFF01";
_root.tSet.removeMovieClip();
i = 1;
while (i <= 20) {
_root["c" + i].removeMovieClip();
i++;
}
stop();
Frame 2
i = 1;
while (i <= 19) {
if (i == 1) {
_root["cID" + i] = 1;
} else {
flg = 1;
while (flg == 1) {
flg = 0;
_root["cID" + i] = _root.randomInt(19);
ii = 1;
while (ii < i) {
if (_root["cID" + i] == _root["cID" + ii]) {
flg = 1;
}
ii++;
}
}
}
trace((("cID" + i) + " = ") + _root["cID" + i]);
i++;
}
_root.attachMovie("tSet", "tSet", 1);
timeOut = 1000;
startTime = getTimer();
this.onEnterFrame = function () {
if (getTimer() > (startTime + timeOut)) {
time++;
if (time == 2) {
makeC();
}
if ((time % 20) == 0) {
speed = speed + 0.1;
score++;
makeC();
}
startTime = getTimer();
}
};
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 53 MovieClip Frame 1
score = _root.score;
stop();
Symbol 54 MovieClip [endPanel] Frame 1
this.guard.useHandCursor = false;
Symbol 54 MovieClip [endPanel] Frame 11
stop();
Symbol 61 MovieClip Frame 1
_parent._parent.face._x = 0;
Symbol 61 MovieClip Frame 5
_parent._parent.face._x = -2;
Symbol 61 MovieClip Frame 9
_parent._parent.face._x = 0;
Symbol 61 MovieClip Frame 13
_parent._parent.face._x = -2;
Symbol 68 MovieClip Frame 1
_parent._parent.face._x = 0;
Symbol 68 MovieClip Frame 5
_parent._parent.face._x = -2;
Symbol 68 MovieClip Frame 9
_parent._parent.face._x = 0;
Symbol 68 MovieClip Frame 13
_parent._parent.face._x = -2;
Symbol 75 MovieClip Frame 1
_parent._parent.face._x = 0;
Symbol 75 MovieClip Frame 5
_parent._parent.face._x = -2;
Symbol 75 MovieClip Frame 9
_parent._parent.face._x = 0;
Symbol 75 MovieClip Frame 13
_parent._parent.face._x = -2;
Symbol 82 MovieClip Frame 1
_parent._parent.face._x = 0;
Symbol 82 MovieClip Frame 5
_parent._parent.face._x = -2;
Symbol 82 MovieClip Frame 9
_parent._parent.face._x = 0;
Symbol 82 MovieClip Frame 13
_parent._parent.face._x = -2;
Symbol 83 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 128 MovieClip [cSet2] Frame 1
function mainEngine() {
var _local1 = _root;
var _local2 = this;
_local2.onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
preX = _x;
preY = _y;
radian = Math.atan2(_local1["c" + (id - 1)]._y - _local1["c" + (id - 1)].preY, _local1["c" + (id - 1)]._x - _local1["c" + (id - 1)].preX);
opX = _local1["c" + (id - 1)]._x - (10 * Math.cos(radian));
opY = _local1["c" + (id - 1)]._y - (10 * Math.sin(radian));
_local2._x = _local2._x + ((opX - _x) / 10);
_local2._y = _local2._y + ((opY - _y) / 10);
if (_local1["c" + (id - 1)]._x > _x) {
_xscale = -100;
} else if (_local1["c" + (id - 1)]._x < _x) {
_xscale = 100;
}
_local2.swapDepths((_local2._y * 100) + id);
};
}
_x = 200;
_y = 115;
life = 30;
cID = _root["cID" + id];
bodyID = _root["bodyID" + cID];
fukiSet.txtBox.html = true;
fukiSet.txtBox.htmlText = _root["serif" + cID];
face.gotoAndStop(cID);
body.gotoAndStop(bodyID);
timeOut = 4000;
startTime = getTimer();
this.onEnterFrame = function () {
if (getTimer() > (startTime + timeOut)) {
fukiSet._visible = false;
mainEngine();
}
};
stop();
Symbol 134 MovieClip [cSet] Frame 1
function bad() {
var _local1 = this;
missSound.stop();
wSound.stop();
bSound.start();
cFlg = 0;
colObj.setTransform(cDef);
_local1.gotoAndStop(2);
timeOut = 4000;
startTime = getTimer();
_local1.onEnterFrame = function () {
if (getTimer() > (startTime + timeOut)) {
delete _root.onEnterFrame;
_root.endP(200, 120);
delete this.onEnterFrame;
}
};
}
wSound = new Sound(this);
wSound.attachSound("walk");
wSound.setVolume(100);
wSound.stop();
bSound = new Sound(this);
bSound.attachSound("fall");
bSound.setVolume(100);
bSound.stop();
missSound = new Sound(this);
missSound.attachSound("boo");
missSound.setVolume(100);
missSound.stop();
_x = 200;
_y = 115;
life = 30;
cID = _root["cID" + id];
bodyID = _root["bodyID" + cID];
face.gotoAndStop(cID);
body.gotoAndStop(bodyID);
dir = 4;
mFlg = 0;
cFlg = 0;
colObj = new Color(this);
cDef = colObj.getTransform();
cNew = new Object();
cNew.ra = 30;
cNew.ga = 30;
cNew.ba = 30;
cNew.aa = 100;
cNew.rb = 179;
cNew.gb = 0;
cNew.bb = 0;
cNew.ab = 0;
wSound.start(0, 1000);
this.onEnterFrame = function () {
var _local1 = _root;
preX = _x;
preY = _y;
if (Key.isDown(39)) {
dir = 3;
} else if (Key.isDown(37)) {
dir = 1;
} else if (Key.isDown(38)) {
dir = 2;
} else if (Key.isDown(40)) {
dir = 4;
}
if (dir == 1) {
_x = (_x - _local1.speed);
_xscale = 100;
} else if (dir == 2) {
_y = (_y - _local1.speed);
} else if (dir == 3) {
_x = (_x + _local1.speed);
_xscale = -100;
} else if (dir == 4) {
_y = (_y + _local1.speed);
}
hitFlg = 0;
i = _local1.lNum;
while (i >= (_local1.lNum - 70)) {
if (i >= 1) {
if (_local1["LX" + i] == _local1["LX" + (i - 1)]) {
if (_local1["LY" + i] >= _local1["LY" + (i - 1)]) {
if (((_y <= (_local1["LY" + i] + 10)) && (_y >= (_local1["LY" + (i - 1)] - 10))) && (Math.abs(_local1["LX" + i] - _x) <= 8)) {
hitFlg = 1;
break;
}
} else if (((_y <= (_local1["LY" + (i - 1)] + 10)) && (_y >= (_local1["LY" + i] - 10))) && (Math.abs(_local1["LX" + i] - _x) <= 8)) {
hitFlg = 1;
break;
}
} else if (_local1["LX" + i] >= _local1["LX" + (i - 1)]) {
if (((_x <= (_local1["LX" + i] + 10)) && (_x >= (_local1["LX" + (i - 1)] - 10))) && (Math.abs(_local1["LY" + i] - _y) <= 8)) {
hitFlg = 1;
break;
}
} else if (((_x <= (_local1["LX" + (i - 1)] + 10)) && (_x >= (_local1["LX" + i] - 10))) && (Math.abs(_local1["LY" + i] - _y) <= 8)) {
hitFlg = 1;
break;
}
}
i--;
}
if (hitFlg == 0) {
if (mFlg == 0) {
mFlg = 1;
wSound.stop();
missSound.start(0, 1000);
}
if (cFlg == 0) {
cFlg = 1;
colObj.setTransform(cNew);
} else {
cFlg = 0;
colObj.setTransform(cDef);
}
life--;
if (life <= 0) {
bad();
}
} else {
if (mFlg != 0) {
mFlg = 0;
missSound.stop();
wSound.start(0, 1000);
}
life++;
if (life >= 30) {
life = 30;
}
cFlg = 0;
colObj.setTransform(cDef);
}
this.swapDepths((this._y * 100) + id);
};
stop();
Symbol 142 MovieClip [tSet] Frame 1
function setOP() {
opX = 40 + _root.randomInt(320);
opY = 150 + _root.randomInt(200);
}
function mainEngine() {
var _local1 = _root;
var _local2 = this;
_local2.onEnterFrame = function () {
var _local1 = _root;
saX = opX - _x;
saY = opY - _y;
if (saY > _local1.speed) {
_y = (_y + _local1.speed);
_local1.lineStage.drowLine(_x, _y);
} else if (saY < (-_local1.speed)) {
_y = (_y - _local1.speed);
_local1.lineStage.drowLine(_x, _y);
} else if (saX > _local1.speed) {
_xscale = 100;
_x = (_x + _local1.speed);
_local1.lineStage.drowLine(_x, _y);
} else if (saX < (-_local1.speed)) {
_xscale = -100;
_x = (_x - _local1.speed);
_local1.lineStage.drowLine(_x, _y);
} else {
setOP();
}
this.swapDepths(this._y * 100);
};
}
_x = 200;
_y = 115;
_root.LX0 = 200;
_root.LY0 = 115;
setOP();
mainEngine();
Symbol 145 Button
on (release) {
play();
}
Symbol 153 MovieClip Frame 1
function drowLine(X, Y) {
_root.lNum++;
_root["LX" + _root.lNum] = X;
_root["LY" + _root.lNum] = Y;
this.itomc.removeMovieClip();
this.createEmptyMovieClip("itomc", 999);
with (this.itomc) {
lineStyle(10, 16777215, 100);
i = _root.lNum;
while (i >= (_root.lNum - 70)) {
if (i == _root.lNum) {
moveTo(_root["LX" + i], _root["LY" + i]);
} else if (i >= 0) {
lineTo(_root["LX" + i], _root["LY" + i]);
}
i--;
}
}
}