Frame 1
function gotoDownloadPage() {
getURL (linkURL, "_blank");
this.gotoAndStop("TITLE");
}
function myGameClearFunc() {
this.myQualified.gotoAndPlay("clear");
}
function myGameOverFunc() {
this.myGameOver.gotoAndPlay("gameover");
}
function playSE(se_code) {
this.mySound.gotoAndPlay(se_code);
}
linkURL = "http://download.games.yahoo.co.jp/detail.php?gameID=214647";
downloadFlag = true;
fscommand ("allowscale", "false");
fscommand ("fullscreen", "false");
fscommand ("showmenu", "false");
stop();
Instance of Symbol 6 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_parent.getBytesLoaded() >= _parent.getBytesTotal()) {
_parent.gotoAndPlay("TITLE");
}
}
Frame 6
stop();
Frame 11
stop();
Frame 16
stop();
Symbol 6 MovieClip Frame 41
this.gotoAndPlay(1);
Symbol 25 MovieClip Frame 1
this.stop();
Symbol 25 MovieClip Frame 14
this.stop();
Symbol 25 MovieClip Frame 24
this.stop();
Symbol 25 MovieClip Frame 175
this.stop();
Symbol 25 MovieClip Frame 183
this.stop();
Symbol 25 MovieClip Frame 218
this.stop();
Symbol 25 MovieClip Frame 254
this.stop();
Symbol 25 MovieClip Frame 345
this.stop();
Symbol 25 MovieClip Frame 352
this.stop();
Symbol 25 MovieClip Frame 392
this.stop();
Symbol 25 MovieClip Frame 423
this.stop();
Symbol 25 MovieClip Frame 456
this.stop();
Symbol 25 MovieClip Frame 487
this.stop();
Symbol 25 MovieClip Frame 535
this.stop();
Symbol 46 Button
on (release) {
_parent.mySound.gotoAndPlay("se041");
_parent.gotoAndPlay("GAME");
this.gotoAndStop("init");
}
Symbol 47 MovieClip Frame 12
_parent.mySound.gotoAndPlay("se009");
Symbol 47 MovieClip Frame 29
_parent.mySound.gotoAndPlay("se009");
Symbol 47 MovieClip Frame 47
_parent.mySound.gotoAndPlay("se010");
Symbol 47 MovieClip Frame 74
this.stop();
Instance of Symbol 32 MovieClip in Symbol 47 MovieClip Frame 74
onClipEvent (load) {
cnt = 90;
oy = _y;
}
onClipEvent (enterFrame) {
if (cnt < 10) {
_rotation = (cnt * 18);
_yscale = (100 - cnt);
_xscale = (100 - cnt);
_y = (_y + 0.2);
} else if (cnt < 20) {
_rotation = (cnt * 18);
_yscale = (80 + cnt);
_xscale = (80 + cnt);
_y = (_y - 0.2);
} else {
_rotation = 0;
_yscale = 100;
_xscale = 100;
_y = oy;
}
cnt = (cnt + 1) % 120;
}
Instance of Symbol 34 MovieClip in Symbol 47 MovieClip Frame 74
onClipEvent (load) {
myColor = new Color(this);
cnt = 0;
}
onClipEvent (enterFrame) {
f = Math.floor(Math.sin((cnt++) / 8) * 32);
myColor.setTransform({rb:f, gb:f, bb:f});
}
Symbol 61 MovieClip Frame 10
this.gotoAndPlay(1);
Symbol 62 MovieClip Frame 1
ox = _parent._parent.ox;
oy = _parent._parent.oy;
this.onEnterFrame = function () {
if (this.hitTest(ox, oy, true) && (_parent._parent.noMoveCnt <= 0)) {
_parent.mover(0, -1);
}
};
Symbol 63 MovieClip Frame 1
ox = _parent._parent.ox;
oy = _parent._parent.oy;
this.onEnterFrame = function () {
if (this.hitTest(ox, oy, true) && (_parent._parent.noMoveCnt <= 0)) {
_parent.mover(0, 1);
}
};
Symbol 67 MovieClip Frame 1
ox = _parent._parent.ox;
oy = _parent._parent.oy;
this.onEnterFrame = function () {
if (this.hitTest(ox, oy, true) && (_parent._parent.noMoveCnt <= 0)) {
_parent.mover(1, 0);
}
};
Symbol 69 MovieClip Frame 1
ox = _parent._parent.ox;
oy = _parent._parent.oy;
this.onEnterFrame = function () {
if (this.hitTest(ox, oy, true) && (_parent._parent.noMoveCnt <= 0)) {
_parent.mover(-1, 0);
}
};
Symbol 77 MovieClip Frame 1
function mover(ax, ay) {
var _local1 = _parent;
if (cnt > 0) {
cnt = -20;
_local1._parent.playSE("se010");
}
_local1.vx = _local1.vx + (ax * moverStr);
_local1.vy = _local1.vy + (ay * moverStr);
}
this.stop();
this.moverStr = _parent.moverStr;
cnt = 0;
Instance of Symbol 73 MovieClip in Symbol 77 MovieClip Frame 5
onClipEvent (load) {
ox = _parent._x;
oy = _parent._y;
f = 0;
s = 0;
v = 2;
}
onClipEvent (enterFrame) {
if (!hitTest(ox, oy, true)) {
f = f + 0.05;
s = (Math.cos(f) * 200) + 100;
if ((s > 100) && (s < 200)) {
s = Math.min(100, Math.max(20, s)) + v;
v = v * -1;
} else {
s = Math.min(100, Math.max(20, s));
}
_yscale = s;
_xscale = s;
} else {
_yscale = 100;
_xscale = 100;
}
}
Instance of Symbol 73 MovieClip in Symbol 77 MovieClip Frame 5
onClipEvent (load) {
ox = _parent._x;
oy = _parent._y;
f = 0;
s = 0;
v = 2;
}
onClipEvent (enterFrame) {
if (!hitTest(ox, oy, true)) {
f = f + 0.05;
s = (Math.cos(f) * 200) + 100;
if ((s > 100) && (s < 200)) {
s = Math.min(100, Math.max(20, s)) + v;
v = v * -1;
} else {
s = Math.min(100, Math.max(20, s));
}
_yscale = s;
_xscale = s;
} else {
_yscale = 100;
_xscale = 100;
}
}
Instance of Symbol 73 MovieClip in Symbol 77 MovieClip Frame 5
onClipEvent (load) {
ox = _parent._x;
oy = _parent._y;
f = 0;
s = 0;
v = 2;
}
onClipEvent (enterFrame) {
if (!hitTest(ox, oy, true)) {
f = f + 0.05;
s = (Math.cos(f) * 200) + 100;
if ((s > 100) && (s < 200)) {
s = Math.min(100, Math.max(20, s)) + v;
v = v * -1;
} else {
s = Math.min(100, Math.max(20, s));
}
_yscale = s;
_xscale = s;
} else {
_yscale = 100;
_xscale = 100;
}
}
Instance of Symbol 73 MovieClip in Symbol 77 MovieClip Frame 5
onClipEvent (load) {
ox = _parent._x;
oy = _parent._y;
f = 0;
s = 0;
v = 2;
}
onClipEvent (enterFrame) {
if (!hitTest(ox, oy, true)) {
f = f + 0.05;
s = (Math.cos(f) * 200) + 100;
if ((s > 100) && (s < 200)) {
s = Math.min(100, Math.max(20, s)) + v;
v = v * -1;
} else {
s = Math.min(100, Math.max(20, s));
}
_yscale = s;
_xscale = s;
} else {
_yscale = 100;
_xscale = 100;
}
}
Instance of Symbol 73 MovieClip in Symbol 77 MovieClip Frame 8
onClipEvent (load) {
ox = _parent._x;
oy = _parent._y;
f = 0;
s = 0;
v = 2;
}
onClipEvent (enterFrame) {
if (!hitTest(ox, oy, true)) {
f = f + 0.05;
s = (Math.cos(f) * 200) + 100;
if ((s > 100) && (s < 200)) {
s = Math.min(100, Math.max(20, s)) + v;
v = v * -1;
} else {
s = Math.min(100, Math.max(20, s));
}
_yscale = s;
_xscale = s;
} else {
_yscale = 100;
_xscale = 100;
}
}
Symbol 79 MovieClip Frame 1
stop();
Instance of Symbol 79 MovieClip "shade" in Symbol 86 MovieClip [mcBall] Frame 1
onClipEvent (load) {
function onGutter(s) {
var _local1 = this;
if (s == "R") {
_local1.gotoAndStop(2);
} else if (s == "L") {
_local1.gotoAndStop(3);
} else {
_local1.gotoAndStop(1);
}
}
}
Instance of Symbol 79 MovieClip "mask" in Symbol 86 MovieClip [mcBall] Frame 1
onClipEvent (load) {
function onGutter(s) {
var _local1 = this;
if (s == "R") {
_local1.gotoAndStop(2);
} else if (s == "L") {
_local1.gotoAndStop(3);
} else {
_local1.gotoAndStop(1);
}
}
}
Symbol 120 MovieClip Frame 1
function setNum(n) {
var _local1 = n;
if (isNaN(_local1)) {
switch (_local1) {
case "+" :
_local1 = 10;
break;
case "-" :
_local1 = 11;
break;
case "*" :
_local1 = 12;
break;
case "." :
_local1 = 13;
break;
default :
_local1 = 14;
}
} else {
_local1 = Math.floor(Math.max(0, Math.min(9, _local1)));
}
this.gotoAndStop(_local1 + 1);
}
this.stop();
Symbol 121 MovieClip Frame 1
function setNum(f) {
var _local1 = f;
var _local2 = this;
_local2.s0.setNum(Math.floor((_local1 / fr) / 10));
_local2.s1.setNum(Math.floor((_local1 / fr) % 10));
_local1 = _local1 % fr;
_local2.s2.setNum(Math.floor((_local1 * 10) / fr));
_local2.s3.setNum(Math.floor((_local1 * 100) / fr) % 10);
}
fr = 30;
Symbol 123 MovieClip Frame 1
function bMiss(x, y, s) {
var _local1 = this;
_local1._visible = true;
_local1._x = x;
_local1._y = y;
_local1.num.setNum(s);
var cnt = 30;
var dy = -8;
var ay = 0.5;
_local1.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y + dy;
if (dy < 0) {
dy = dy + ay;
} else {
_local1._visible = !_local1._visible;
}
if ((cnt--) < 0) {
_local1.onEnterFrame = null;
_local1._visible = false;
}
};
}
this._visible = false;
Symbol 125 MovieClip Frame 1
function bGoal(x, y, s) {
var _local1 = this;
_local1._visible = true;
_local1._x = x;
_local1._y = y;
_local1.num0.setNum(Math.floor(s / 10));
_local1.num1.setNum(s % 10);
var cnt = 30;
var dy = -8;
var ay = 0.5;
_local1.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y + dy;
if (dy < 0) {
dy = dy + ay;
} else {
_local1._visible = !_local1._visible;
}
if ((cnt--) < 0) {
_local1.onEnterFrame = null;
_local1._visible = false;
}
};
}
this._visible = false;
Symbol 129 MovieClip Frame 1
function stageInit(st) {
var _local1 = st;
if (_local1 > nStageMax) {
_parent.myGameClearFunc();
nStage = 0;
} else {
myStageNum.setNum(_local1);
myCourse.gotoAndStop(_local1);
myCourse_.gotoAndStop(_local1);
px = (py = (sx = (sy = 0)));
vx = (vy = (ax = (ay = 0)));
setMyHistory();
myCourse._xscale = (myCourse._yscale = 100 * sc);
myCourse_._xscale = (myCourse_._yscale = 100 * sc);
bOnPlay = false;
if ((_local1 == 8) || (_local1 == 4)) {
nStageReStart = true;
} else {
nStageReStart = false;
}
reStartInit();
noMoveCnt = 0;
}
}
function rollBall() {
var _local2 = this;
var _local1 = 40;
_local2.myBall.eye._rotation = _local2.myBall.eye._rotation - ((vx * vy) * 0.5);
_local2.myBall.eye._x = (Math.floor((_local2.myBall.eye._x + (vx * 1)) + (_local1 * 3)) % (_local1 * 2)) - _local1;
_local2.myBall.eye._y = (Math.floor((_local2.myBall.eye._y + (vy * 1)) + (_local1 * 3)) % (_local1 * 2)) - _local1;
}
function updateTimeRemain(d) {
timeRemain = Math.min(2999, Math.max(0, timeRemain + d));
myTime.setNum(timeRemain);
if (timeRemain == 0) {
bOnPlay = false;
bOver = true;
_parent.myGameOverFunc();
}
}
function setMyHistory() {
var _local1 = 0;
while (_local1 < (myHistory * 2)) {
pHistory[_local1] = px;
pHistory[_local1 + 1] = py;
_local1 = _local1 + 2;
}
}
function reStartInit() {
updateTimeRemain(0);
myBall.onEnterFrame = null;
myBall._xscale = (myBall._yscale = 100);
myBall._rotation = 0;
myBall._x = ox;
myBall._y = oy;
myBall.shade._visible = true;
if (bSwap) {
myBall.swapDepths(myCourse);
bSwap = false;
}
if (nStageReStart) {
px = (py = 0);
} else {
px = pHistory[0];
py = pHistory[1];
}
setMyHistory();
vx = (vy = (ax = (ay = 0)));
bOnPlay = false;
txClickToStart._visible = true;
myArrow._visible = false;
noMoveCnt = 24;
this.onMouseDown = function () {
_parent.playSE("se036");
txClickToStart._visible = false;
bOnPlay = true;
this.onMouseDown = null;
};
}
function bFall() {
if (bOnPlay) {
_parent.playSE("se037");
txMiss.bMiss(ox, oy, dmgFall);
updateTimeRemain((-dmgFall) * 30);
bOnPlay = false;
myBall._visible = true;
myBall.shade._visible = false;
myBall.swapDepths(myCourse);
bSwap = true;
spdFall = 0;
myBall.onEnterFrame = function () {
myBall._xscale = (myBall._yscale = Math.max(0, myBall._xscale - 5));
myBall._rotation = myBall._rotation + 10;
myBall._y = myBall._y + ((vy / 2) + (spdFall++));
myBall._x = myBall._x + (vx / 2);
};
waitCnt = 45;
waitAct = 1;
}
}
function bGoal() {
if (bOnPlay) {
_parent.playSE("se022");
txGoal.bGoal(ox, oy, timeBonus[nStage - 1]);
updateTimeRemain(timeBonus[nStage - 1] * 30);
bOnPlay = false;
waitCnt = 60;
waitAct = 2;
}
}
function moveCourse() {
myCourse.cnt++;
myCourse._x = ox - (px * sc);
myCourse._y = oy - (py * sc);
myCourse_._x = (ox - (px * sc)) + 4;
myCourse_._y = (oy - (py * sc)) + 8;
var _local1 = false;
_local1 = _local1 | myCourse.hitTest(ox + fck, oy, true);
_local1 = _local1 | myCourse.hitTest(ox - fck, oy, true);
_local1 = _local1 | myCourse.hitTest(ox, oy + fck, true);
_local1 = _local1 | myCourse.hitTest(ox, oy - fck, true);
if (!_local1) {
bFall();
}
if (myCourse.myGoal.hitTest(ox, oy, true)) {
bGoal();
}
}
function moveBG() {
myBG._x = ox - ((vx + (ax * 10)) * spdBG);
myBG._y = oy - ((vy + (ay * 10)) * spdBG);
}
ox = (oy = 160);
r0 = 24;
r1 = 192;
px = (py = (sx = (sy = 0)));
vx = (vy = (ax = (ay = 0)));
mu = 0.92;
ae = 120;
sc = 3;
moverStr = 6;
vMax = 12;
spdBG = 80 / vMax;
fck = 4;
bSwap = false;
spdFall = 0;
dmgFall = 5;
myHistory = 8;
pHistory = new Array(myHistory * 2);
nStage = 1;
nStageMax = 8;
timeBonus = new Array(nStageMax);
var i = 0;
while (i < nStageMax) {
timeBonus[i] = 10;
if (i > 2) {
timeBonus[i] = timeBonus[i] + 5;
}
if (i > 5) {
timeBonus[i] = timeBonus[i] + 5;
}
i++;
}
nStageReStart = false;
timeRemain = 1800;
bOnPlay = false;
bOver = false;
noMoveCnt = 0;
waitCnt = 2;
waitAct = 2;
nStage = 0;
this.onEnterFrame = function () {
if (!bOver) {
if (bOnPlay) {
var _local3 = Math.min(r1, Math.max(-r1, _xmouse - ox));
var _local2 = Math.min(r1, Math.max(-r1, _ymouse - oy));
var r = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if (r > r0) {
myArrow._visible = true;
myArrow._x = _local3 + ox;
myArrow._y = _local2 + oy;
var a = ((myArrow._xscale = (myArrow._yscale = 20 + Math.min(80, (r - r0) / 4))));
var b = Math.atan2(_local2, _local3);
myArrow._rotation = ((b * 180) / Math.PI) + 180;
myArrow._alpha = 50;
ax = (Math.cos(b) * a) / ae;
ay = (Math.sin(b) * a) / ae;
} else {
myArrow._visible = false;
ax = (ay = 0);
}
vx = Math.min(vMax, Math.max(-vMax, vx));
vy = Math.min(vMax, Math.max(-vMax, vy));
px = px + vx;
py = py + vy;
vx = (vx + ax) * mu;
vy = (vy + ay) * mu;
var _local1 = 0;
while (_local1 < ((myHistory - 1) * 2)) {
pHistory[_local1] = pHistory[_local1 + 2];
pHistory[_local1 + 1] = pHistory[_local1 + 3];
_local1++;
}
pHistory[(myHistory * 2) - 2] = px;
pHistory[(myHistory * 2) - 1] = py;
rollBall();
updateTimeRemain(-1);
if (noMoveCnt > 0) {
myBall._visible = !myBall._visible;
noMoveCnt--;
} else if (noMoveCnt == 0) {
myBall._visible = true;
}
}
if ((--waitCnt) == 0) {
switch (waitAct) {
case 1 :
waitAct = 0;
reStartInit();
break;
case 2 :
waitAct = 0;
stageInit(++nStage);
break;
}
}
moveCourse();
moveBG();
}
};
Symbol 143 Button
on (release) {
_parent.mySound.gotoAndPlay("se041");
_parent.gotoAndPlay("TITLE");
}
Symbol 147 Button
on (release) {
_parent.mySound.gotoAndPlay("se041");
_parent.gotoDownloadPage();
}
Symbol 148 MovieClip Frame 1
this.stop();
Symbol 148 MovieClip Frame 6
_parent.mySound.gotoAndPlay("bgm018");
Instance of Symbol 134 MovieClip in Symbol 148 MovieClip Frame 6
onClipEvent (load) {
this._alpha = 0;
this._visible = false;
cnt = 0;
w = 0;
var i = 1;
while (i < 12) {
this.star0.duplicateMovieClip("star" + i, i);
i++;
}
ox = 160;
oy = 120;
}
onClipEvent (enterFrame) {
if (cnt == 1) {
this._visible = true;
}
this._alpha = Math.max(_alpha + 10, 100);
var i = 0;
while (i < 12) {
var i2 = ((i * Math.PI) / 6);
this["star" + i]._x = (Math.cos(i2 + (cnt / 8)) * (Math.sin(cnt / 11) + 3)) * w;
this["star" + i]._y = (Math.sin(i2 + (cnt / 8)) * (Math.cos(cnt / 17) + 3)) * w;
i++;
}
cnt++;
w = ((w * 5) + 24) / 6;
if (cnt > 40) {
this._alpha = 100 - ((cnt - 40) * 10);
}
if (cnt > 50) {
this._visible = false;
}
}
Instance of Symbol 136 MovieClip in Symbol 148 MovieClip Frame 6
onClipEvent (load) {
cnt = 0;
oy = this._y;
w = 20;
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha = Math.min(this._alpha + 10, 100);
this._y = oy + (Math.sin((cnt++) / 5) * w);
y = y * 0.8;
if (cnt > 40) {
this._alpha = 100 - ((cnt - 40) * 10);
}
if (cnt > 50) {
this._visible = false;
}
}
Symbol 148 MovieClip Frame 74
if (!_parent.downloadFlag) {
stop();
}
Symbol 148 MovieClip Frame 75
stop();
Symbol 155 Button
on (release) {
_parent.mySound.gotoAndPlay("se041");
this.gotoAndStop("init");
_parent.gotoAndPlay("TITLE");
}
Symbol 156 MovieClip Frame 1
this.stop();
Symbol 156 MovieClip Frame 6
_parent.mySound.gotoAndPlay("se010");
Instance of Symbol 151 MovieClip in Symbol 156 MovieClip Frame 6
onClipEvent (load) {
cnt = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (cnt < 10) {
_alpha = Math.min(100, _alpha + 20);
}
if (cnt > 90) {
_alpha = Math.max(0, _alpha - 20);
}
y = Math.floor(cnt / 8) % 2;
y = y * (Math.sin(((cnt % 8) * Math.PI) / 8) + 1);
if ((cnt % 64) > 48) {
y = y * -3;
}
_y = (_y - y);
cnt++;
}
Symbol 156 MovieClip Frame 145
this.stop();