Frame 1
function FocusSound() {
if (SOUNDFLG) {
FocusObj.start(0, 1);
}
}
function ClickSound() {
if (SOUNDFLG) {
ClickObj.start(0, 1);
}
}
function StopSound() {
if (SOUNDFLG) {
StopObj.start(0, 1);
}
}
function MainSound() {
if (SOUNDFLG) {
MainObj.start(0, 999);
}
}
function OkSound() {
if (SOUNDFLG) {
OkObj.start(0, 1);
}
}
function MissSound() {
if (SOUNDFLG) {
MissObj.start(0, 1);
}
}
function MissSoundStop() {
MissObj.stop();
}
function MainSoundStop() {
MainObj.stop();
}
function EndSound() {
if (SOUNDFLG) {
EndObj.start(0, 999);
}
}
function EndSoundStop() {
EndObj.stop();
}
stop();
if (!SOUNDFLG) {
SOUNDFLG = 0;
}
life = 0;
lifeupflg = 1;
level = 1;
stage = 1;
score = 0;
MyObj = SharedObject.getLocal("10sec");
if (MyObj.data.score) {
hiscore = MyObj.data.score;
} else {
hiscore = 0;
}
FocusObj = new Sound(this);
FocusObj.attachSound("focus1");
ClickObj = new Sound(this);
ClickObj.attachSound("click1");
StopObj = new Sound(this);
StopObj.attachSound("stop");
MainObj = new Sound(this);
MainObj.attachSound("main");
OkObj = new Sound(this);
OkObj.attachSound("soundok");
MissObj = new Sound(this);
MissObj.attachSound("soundmiss");
EndObj = new Sound(this);
EndObj.attachSound("end");
Frame 2
stop();
life_mc.LifeUp(3);
life = 3;
score_mc.score_txt = score;
score_mc.hiscore_txt = hiscore;
gotoAndPlay ("setting");
Frame 3
stop();
switch (stage) {
case 1 :
max = 40;
min = 31;
break;
case 2 :
max = 30;
min = 21;
break;
case 3 :
max = 20;
min = 11;
break;
case 4 :
max = 10;
min = 6;
break;
case 5 :
max = 5;
min = 1;
}
stage_txt = (level + "-") + stage;
scope = Math.floor(Math.random() * ((max - min) + 1)) + min;
mintime = 1000 - scope;
maxtime = 1000 + scope;
trace(mintime);
trace(maxtime);
mintime_str = "" + mintime;
maxtime_str = "" + maxtime;
mintime_txt = (mintime_str.substr(0, 1) + ":") + mintime_str.substr(1, 2);
maxtime_txt = (maxtime_str.substr(0, 2) + ":") + maxtime_str.substr(2, 2);
trace(mintime_txt);
trace(maxtime_txt);
nextFrame();
Frame 4
stop();
Frame 5
stop();
timer_mc.gotoAndPlay("start");
Frame 6
stop();
resulttime = timer_mc.resulttime;
resulttime = Math.floor(resulttime / 10);
trace(resulttime);
if ((mintime <= resulttime) and (maxtime >= resulttime)) {
trace("ok");
pluspoint = Math.abs(1000 - resulttime);
pluspoint = 100 - pluspoint;
score = score + pluspoint;
score_mc.score_txt = score;
if (hiscore < score) {
hiscore = score;
score_mc.hiscore_txt = hiscore;
}
if (score >= (lifeupflg * 300)) {
lifeupflg++;
life_mc.LifeUp(1);
life++;
}
if (resulttime == 1000) {
life_mc.LifeUp(1);
life++;
}
stage++;
if (stage > 5) {
level++;
stage = 1;
}
OkSound();
} else {
timer_mc.resultmonkey.gotoAndPlay("miss");
life_mc.LifeDown(1);
life--;
trace("miss");
if (life <= 0) {
gotoAndPlay ("gameover");
}
MissSound();
}
Frame 7
stop();
MissSoundStop();
EndSound();
Frame 13
stop();
Symbol 9 MovieClip [heartdown] Frame 11
stop();
Symbol 10 MovieClip [heartup] Frame 10
stop();
Symbol 18 Button
on (press) {
ClickSound();
gotoAndPlay ("start");
}
on (rollOver) {
FocusSound();
}
Symbol 20 Button
on (press) {
ClickSound();
gotoAndPlay ("help");
}
on (rollOver) {
FocusSound();
}
Symbol 23 MovieClip Frame 1
function LifeView() {
i = 0;
while (i < _parent.life) {
trace("life");
heart_x = i * 12;
heart_y = 0;
if (i >= 4) {
heart_x = heart_x - 48;
heart_y = 12;
}
heartObj = {_x:heart_x, _y:heart_y};
this.attachMovie("heart", "heart_ins" + i, i, heartObj);
i++;
}
}
function LifeDel() {
i = 0;
while (i < _parent.life) {
trace("lifedel");
removeMovieClip("heart_ins" + i);
i++;
}
}
function LifeUp(num) {
i = 0;
while (i < (_parent.life + num)) {
trace("lifeup");
heart_x = i * 12;
heart_y = 0;
if (i >= 4) {
heart_x = heart_x - 48;
heart_y = 12;
}
heartObj = {_x:heart_x, _y:heart_y};
if (i >= _parent.life) {
this.attachMovie("heartup", "heart_ins" + i, i, heartObj);
} else {
this.attachMovie("heart", "heart_ins" + i, i, heartObj);
}
i++;
}
}
function LifeDown(num) {
i = 0;
while (i < _parent.life) {
trace("lifedown");
heart_x = i * 12;
heart_y = 0;
if (i >= 4) {
heart_x = heart_x - 48;
heart_y = 12;
}
heartObj = {_x:heart_x, _y:heart_y};
if (i >= (_parent.life - num)) {
this.attachMovie("heartdown", "heart_ins" + i, i, heartObj);
} else {
this.attachMovie("heart", "heart_ins" + i, i, heartObj);
}
i++;
}
}
stop();
Symbol 28 Button
on (release) {
if (_parent.SOUNDFLG == 0) {
_parent.SOUNDFLG = 1;
this.gotoAndStop(2);
} else if (_parent.SOUNDFLG == 1) {
_parent.SOUNDFLG = 0;
_parent.MainSoundStop();
_parent.EndSoundStop();
this.gotoAndStop(1);
}
}
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 2
stop();
Symbol 33 Button
on (press) {
getURL ("http://game.uki2.ne.jp/pc/", "_blank");
}
Symbol 52 MovieClip Frame 30
stop();
Symbol 54 Button
on (press) {
ClickSound();
gotoAndPlay ("play");
MainSound();
}
on (rollOver) {
FocusSound();
}
Symbol 68 MovieClip Frame 290
stop();
Symbol 71 MovieClip Frame 330
stop();
Symbol 74 Button
on (press) {
clearInterval(StartID);
_parent.MainSoundStop();
_parent.StopSound();
gotoAndPlay ("stop");
}
Symbol 82 MovieClip Frame 10
gotoAndPlay ("ok");
Symbol 82 MovieClip Frame 21
gotoAndPlay ("miss");
Symbol 83 MovieClip Frame 1
function TimeCount() {
tmpobj = new Date();
TMPTIME = tmpobj.getTime();
resulttime = TMPTIME - STARTTIME;
if (((_parent.level == 2) and (resulttime > 8000)) and (mask4 == 0)) {
_parent.maskmonkey4.gotoAndStop(2);
mask4 = 1;
} else if (((_parent.level == 2) and (resulttime > 6000)) and (mask3 == 0)) {
_parent.maskmonkey3.gotoAndStop(2);
mask3 = 1;
} else if (((_parent.level == 2) and (resulttime > 4000)) and (mask2 == 0)) {
_parent.maskmonkey2.gotoAndStop(2);
mask2 = 1;
} else if (((_parent.level == 2) and (resulttime > 2000)) and (mask1 == 0)) {
_parent.maskmonkey1.gotoAndStop(2);
mask1 = 1;
} else if (((_parent.level == 3) and (resulttime > 4000)) and (mask4 == 0)) {
_parent.maskmonkey4.gotoAndStop(2);
mask4 = 1;
} else if (((_parent.level == 3) and (resulttime > 3000)) and (mask3 == 0)) {
_parent.maskmonkey3.gotoAndStop(2);
mask3 = 1;
} else if (((_parent.level == 3) and (resulttime > 2000)) and (mask2 == 0)) {
_parent.maskmonkey2.gotoAndStop(2);
mask2 = 1;
} else if (((_parent.level == 3) and (resulttime > 1000)) and (mask1 == 0)) {
_parent.maskmonkey1.gotoAndStop(2);
mask1 = 1;
}
viewtime = "" + resulttime;
if (viewtime.length == 4) {
viewtime = "0" + viewtime;
} else if (viewtime.length == 3) {
viewtime = "00" + viewtime;
} else if (viewtime.length == 2) {
viewtime = "000" + viewtime;
} else if (viewtime.length == 1) {
viewtime = "0000" + viewtime;
}
viewtime_txt = (viewtime.substr(0, 2) + ":") + viewtime.substr(2, 2);
updateAfterEvent();
}
stop();
Symbol 83 MovieClip Frame 2
stop();
Nowobj = new Date();
STARTTIME = Nowobj.getTime();
trace("\u30B9\u30BF\u30FC\u30C8" + STARTTIME);
StartID = setInterval(TimeCount, 1);
mask1 = 0;
mask2 = 0;
mask3 = 0;
mask4 = 0;
Symbol 83 MovieClip Frame 3
play();
Symbol 83 MovieClip Frame 28
stop();
_parent.gotoAndPlay("result");
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 2
stop();
Symbol 95 Button
on (press) {
ClickSound();
gotoAndPlay ("setting");
}
on (rollOver) {
FocusSound();
}
Symbol 99 Button
on (press) {
_parent.EndSoundStop();
_parent.gotoAndPlay(1);
}
Symbol 103 MovieClip Frame 1
if (_parent.score >= _parent.hiscore) {
scoreupdate = "\u30CF\u30A4\u30B9\u30B3\u30A2\u66F4\u65B0\uFF01\uFF01";
trace(scoreupdate);
_parent.MyObj.data.score = _parent.score;
_parent.MyObj.flush();
}
trace(_parent.MyObj.data.score);
Symbol 108 Button
on (release) {
ClickSound();
gotoAndStop (1);
}