Frame 1
function timeOut() {
this.mc_score.goResult();
this.gotoAndPlay("RESULT");
}
sndCola = new Sound(_root.mc_sndCola);
sndCola.attachSound("sndCola");
sndCola.setVolume(0);
sndCola.stop();
Instance of Symbol 21 MovieClip in Frame 1
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i >= 100) {
i = 0;
}
this.attachMovie("mc_awa", "mc_awa" + i, i);
this["mc_awa" + i]._x = -92 + Math.ceil(185 * Math.random());
this["mc_awa" + i]._y = -60;
i++;
if (i >= 100) {
i = 0;
}
this.attachMovie("mc_awa", "mc_awa" + i, i);
this["mc_awa" + i]._x = -92 + Math.ceil(185 * Math.random());
this["mc_awa" + i]._y = -60;
}
Instance of Symbol 56 MovieClip "mc_timer" in Frame 1
onClipEvent (load) {
seigenTime = 60;
targetObject = "_root";
}
Instance of Symbol 66 MovieClip "mc_push" in Frame 1
onClipEvent (load) {
startY = this._y;
bCola = false;
}
onClipEvent (enterFrame) {
if (bCola == true) {
_root.mc_jagu.cola(this.value());
_root.mc_cup.cola(this.value());
} else {
this._y = this._y + ((this.startY - this._y) * 1.1);
}
}
Frame 10
this.stop();
Frame 11
this.play();
sndCola.stop();
Instance of Symbol 80 MovieClip "mc_jagu" in Frame 11
onClipEvent (enterFrame) {
if (bStop == true) {
if ((getTimer() - _root.mc_push.stopTime) >= 200) {
this.gotoAndStop("Lv0");
bStop = false;
}
}
}
Instance of Symbol 86 MovieClip "mc_cup" in Frame 11
onClipEvent (enterFrame) {
if (bStop == true) {
if (600 >= (getTimer() - _root.mc_push.stopTime)) {
this.gotoAndStop(_currentframe + volume);
} else {
bStop = false;
hanbetsu();
}
}
}
Frame 20
this.stop();
Frame 21
sndCola.start();
Frame 29
this.stop();
Symbol 4 MovieClip [mc_batten] Frame 1
sndObj = new Sound(this);
sndObj.setVolume(50);
Symbol 4 MovieClip [mc_batten] Frame 10
_parent.gotoAndStop(1);
_parent.unlock();
this.removeMovieClip();
Symbol 7 MovieClip [mc_maru] Frame 1
sndObj = new Sound(this);
sndObj.setVolume(50);
Symbol 7 MovieClip [mc_maru] Frame 10
_root.mc_score.scoreUP();
_parent.gotoAndStop(1);
_parent.unlock();
this.removeMovieClip();
Symbol 11 MovieClip [mc_awa] Frame 10
this.removeMovieClip();
Symbol 21 MovieClip Frame 1
this.stop();
Symbol 44 MovieClip Frame 1
function goComment(label) {
this.gotoAndStop(label);
}
this.stop();
if (0 >= _parent.score) {
goComment("kiwo");
} else if (2 >= _parent.score) {
goComment("umu");
} else if (6 >= _parent.score) {
goComment("mada");
} else if (11 >= _parent.score) {
goComment("ita");
} else if (15 >= _parent.score) {
goComment("yoi");
} else if (19 >= _parent.score) {
goComment("tentyo");
} else if (29 >= _parent.score) {
goComment("shikou");
} else {
goComment("god");
}
Symbol 44 MovieClip Frame 30
function goComment(label) {
this.gotoAndStop(label);
}
this.stop();
if (0 >= _parent.score) {
goComment("baka");
} else if (2 >= _parent.score) {
goComment("gaki");
} else if (6 >= _parent.score) {
goComment("mada");
} else if (12 >= _parent.score) {
goComment("ganba");
} else if (18 >= _parent.score) {
goComment("yoi");
} else if (24 >= _parent.score) {
goComment("erai");
} else if (29 >= _parent.score) {
goComment("tentyo");
} else {
goComment("god");
}
Symbol 44 MovieClip Frame 50
function goComment(label) {
this.gotoAndStop(label);
}
this.stop();
if (0 >= _parent.score) {
goComment("pep");
} else if (2 >= _parent.score) {
goComment("baka");
} else if (6 >= _parent.score) {
goComment("mada");
} else if (11 >= _parent.score) {
goComment("ita");
} else if (15 >= _parent.score) {
goComment("yoi");
} else if (19 >= _parent.score) {
goComment("tentyo");
} else if (29 >= _parent.score) {
goComment("shikou");
} else {
goComment("god");
}
Symbol 48 Button
on (press) {
this.reset();
_root.gotoAndPlay("RUNNING");
_root.mc_timer.startTimer();
}
Symbol 49 MovieClip Frame 1
function scoreUP() {
score++;
this.attachMovie("mc_cup", "mc_cup" + score, score);
if (6 >= score) {
this["mc_cup" + score]._x = 20;
this["mc_cup" + score]._y = (-50 * score) + 25;
} else if (12 >= score) {
this["mc_cup" + score]._x = 50;
this["mc_cup" + score]._y = (-50 * (score - 6)) + 25;
} else if (18 >= score) {
this["mc_cup" + score]._x = 80;
this["mc_cup" + score]._y = (-50 * (score - 12)) + 25;
} else if (24 >= score) {
this["mc_cup" + score]._x = 110;
this["mc_cup" + score]._y = (-50 * (score - 18)) + 25;
} else if (30 >= score) {
this["mc_cup" + score]._x = 140;
this["mc_cup" + score]._y = (-50 * (score - 24)) + 25;
}
}
function reset() {
this.gotoAndStop("START");
}
function goResult() {
this.gotoAndStop("RESULT");
}
this.stop();
score = 0;
Symbol 49 MovieClip Frame 11
this.stop();
Symbol 49 MovieClip Frame 21
this.play();
Symbol 49 MovieClip Frame 35
i = 0;
while (score >= i) {
this["mc_cup" + i].removeMovieClip();
i++;
}
Symbol 49 MovieClip Frame 43
this.stop();
Symbol 56 MovieClip Frame 1
function startTimer() {
bActive = 1;
remainTime = seigenTime;
time2disp(remainTime);
startTime = getTimer();
}
function stopTimer() {
bActive = 0;
}
function action() {
if (bActive) {
var nowTime = Math.floor((getTimer() - startTime) / 1000);
remainTime = seigenTime - nowTime;
time2disp(remainTime);
if (0 >= remainTime) {
remainTime = 0;
time2disp(remainTime);
bActive = 0;
eval (targetObject).timeOut();
}
}
}
function value() {
return(remainTime());
}
function time2disp(sec, min) {
if (sec >= 60) {
min++;
sec = sec - 60;
time2disp(sec, min);
} else {
if (min == null) {
min = 0;
}
dispMin = min;
if (sec < 10) {
dispSec = "0" + sec;
} else {
dispSec = sec;
}
}
}
remainTime = seigenTime;
bActive = 0;
Symbol 56 MovieClip Frame 2
this.action();
Symbol 56 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 1);
Symbol 59 Button
on (press) {
this.gotoAndPlay("RUNNING");
_root.mc_timer.startTimer();
}
Symbol 65 Button
on (press) {
this.startCola();
}
on (release, releaseOutside) {
this.stopCola();
}
Symbol 66 MovieClip Frame 1
function startCola() {
bCola = true;
this.startDrag(false, _x, startY, _x, startY + 26);
_root.sndCola.start();
}
function stopCola() {
bCola = false;
this.stopDrag();
stopTime = getTimer();
_root.mc_jagu.stopCola();
_root.mc_cup.stopCola();
_root.sndCola.stop();
}
function value() {
if (4 >= (_y - startY)) {
return(1);
}
if (18 >= (_y - startY)) {
return(2);
}
return(3);
}
this.stop();
Symbol 80 MovieClip Frame 1
function cola(num) {
this.gotoAndStop("Lv" + num);
}
function stopCola() {
bStop = true;
}
this.stop();
_root.sndCola.setVolume(0);
Symbol 80 MovieClip Frame 6
this.stop();
_root.sndCola.setVolume(30);
Symbol 80 MovieClip Frame 11
this.stop();
_root.sndCola.setVolume(50);
Symbol 80 MovieClip Frame 16
this.stop();
_root.sndCola.setVolume(80);
Symbol 86 MovieClip Frame 1
function cola(lv) {
if (bLock == false) {
var _local1 = 1;
switch (lv) {
case _local1 :
volume = 1;
break;
case 2 :
volume = 3;
break;
case 3 :
volume = 8;
}
this.gotoAndStop(_currentframe + volume);
}
}
function stopCola() {
bLock = true;
bStop = true;
}
function hanbetsu() {
if ((_currentframe >= 81) && (88 >= _currentframe)) {
this.attachMovie("mc_maru", "mc_maru", 0);
this.mc_maru._y = -43;
} else {
this.attachMovie("mc_batten", "mc_batten", 0);
this.mc_batten._y = -43;
}
}
function unlock() {
bLock = false;
}
this.stop();
bStop = false;
bLock = false;
volume = 0;
Instance of Symbol 67 MovieClip "mc_empty" in Symbol 86 MovieClip Frame 1
onClipEvent (load) {
i = 0;
}
onClipEvent (enterFrame) {
i++;
if (i >= 100) {
i = 0;
}
this.attachMovie("mc_awa", "mc_awa" + i, i);
this["mc_awa" + i]._x = -20 + Math.ceil(40 * Math.random());
this["mc_awa" + i]._y = -10;
i++;
if (i >= 100) {
i = 0;
}
this.attachMovie("mc_awa", "mc_awa" + i, i);
this["mc_awa" + i]._x = -20 + Math.ceil(40 * Math.random());
this["mc_awa" + i]._y = -10;
}
Symbol 94 MovieClip Frame 595
this.gotoAndPlay(10);