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;
}
System.useCodePage = true;
fscommand ("showmenu", "fakse");
score = 0;
levelNum = 1;
count = 0;
dataID = "shortcake";
defurl = "http://hpcgi2.nifty.com/game-cgi/ranking_pc/score.cgi?";
stop();
Frame 3
boysSet.reSet();
stop();
Frame 4
stop();
Symbol 14 MovieClip [clearPanel] Frame 1
point = 0;
this.guard.useHandCursor = false;
Symbol 14 MovieClip [clearPanel] Frame 7
_root.stopTimer(this, 2000);
Symbol 14 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 14 MovieClip [clearPanel] Frame 9
_root.stopTimer(this, 3000);
Symbol 14 MovieClip [clearPanel] Frame 15
_root.stageNum++;
_root.gotoAndPlay("next");
this.removeMovieClip();
Symbol 20 MovieClip [unit] Frame 1
this.rank = _root["rank" + this.ID];
this.name = _root["name" + this.ID];
this.score = _root["score" + this.ID];
Symbol 27 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) {
play();
}
Symbol 49 Button
on (press) {
_root.gotoAndStop("opening");
_parent.removeMovieClip();
}
Symbol 54 Button
on (press) {
if (this.name != "") {
play();
}
}
Symbol 64 MovieClip Frame 1
score = _root.score;
stop();
Symbol 64 MovieClip Frame 2
name = "";
stop();
Symbol 64 MovieClip Frame 3
play();
Symbol 64 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 64 MovieClip Frame 10
this.err = _root.err;
stop();
Symbol 65 MovieClip [endPanel] Frame 1
this.guard.useHandCursor = false;
Symbol 65 MovieClip [endPanel] Frame 11
stop();
Symbol 79 Button
on (release) {
play();
}
Symbol 81 Button
on (release) {
_root.helpP(210, 210);
}
Symbol 83 Button
on (release) {
_root.rankP(210, 210);
}
Symbol 97 MovieClip Frame 1
function reSet() {
speed = 30 - /:levelNum;
if (speed <= 2) {
speed = 2;
}
_x = -50;
berry._visible = false;
run();
}
function run() {
var _local1 = _root;
opX = 150 + _local1.randomInt(250);
opY = 250 + _local1.randomInt(130);
this.onEnterFrame = function () {
var _local1 = _root;
saX = opX - _x;
saY = opY - _y;
if ((Math.abs(saX) <= 3) && (Math.abs(saY) <= 3)) {
run();
} else {
_x = (_x + (saX / speed));
_y = (_y + (saY / speed));
}
if (this.hp.hitTest(_local1.berry) && (_local1.berry._currentframe != 3)) {
sa = _local1.berry._x - _x;
berry._x = sa;
berry._visible = true;
_local1.berry.init();
hit();
}
};
}
function hit() {
var _local1 = _root;
bSound.start();
_local1.missSet.gotoAndStop(1);
_local1.score = _local1.score + 100;
_local1.count++;
if (_local1.count >= 3) {
_local1.count = 0;
_local1.levelNum++;
}
this.onEnterFrame = function () {
_x = (_x + 8);
if (_x > 450) {
reSet();
}
};
}
bSound = new Sound(this);
bSound.attachSound("piropiro");
bSound.setVolume(100);
bSound.stop();
Symbol 103 MovieClip Frame 1
speed = 3 + (_root.levelNum / 5);
this.onEnterFrame = function () {
_rotation = (_rotation + speed);
if (_rotation > 80) {
_rotation = 80;
speed = -speed;
} else if (_rotation < 0) {
_rotation = 0;
speed = -speed;
}
};
Symbol 113 MovieClip Frame 1
function reSet() {
var _local1 = this;
_local1.gotoAndStop(3);
timeOut = 300;
startTime = getTimer();
_local1.onEnterFrame = function () {
var _local1 = this;
if (getTimer() > (startTime + timeOut)) {
_local1.gotoAndStop(4);
_local1.onMouseDown = function () {
nage();
};
delete _local1.onEnterFrame;
}
};
}
function nage() {
var _local1 = this;
delete yaji.onEnterFrame;
_root.berry.nage(yaji._rotation);
_local1.gotoAndStop(5);
timeOut = 1000;
startTime = getTimer();
_local1.onEnterFrame = function () {
if (getTimer() > (startTime + timeOut)) {
gotoAndStop (2);
delete this.onEnterFrame;
}
};
delete _local1.onMouseDown;
}
function bad() {
var _local1 = this;
trace("bad");
_root.gameover._alpha = 100;
_local1.gotoAndStop("bad");
delete _local1.onMouseDown;
timeOut = 2000;
startTime = getTimer();
_local1.onEnterFrame = function () {
if (getTimer() > (startTime + timeOut)) {
_root.endP(210, 210);
delete this.onEnterFrame;
}
};
}
reSet();
stop();
Symbol 116 MovieClip Frame 1
function init() {
delete this.onEnterFrame;
_root.pSet.reSet();
this.gotoAndStop(2);
_y = -100;
}
function nage(num) {
var _local1 = _root;
var _local2 = this;
rot = num;
r = (rot * Math.PI) / 180;
ySpeed = -8 * Math.cos(r);
xSpeed = 8 * Math.sin(r);
_x = 125;
_y = 100;
_local2.onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
ySpeed = ySpeed + 0.5;
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (_x >= 450) {
init();
} else if (_y >= (_local1.boysSet._y + 40)) {
bSound.start();
_local1.missSet.nextFrame();
_local2.gotoAndStop(3);
timeOut = 500;
startTime = getTimer();
_local2.onEnterFrame = function () {
var _local1 = _root;
if (getTimer() > (startTime + timeOut)) {
if (_local1.missSet._currentframe >= 4) {
_local1.pSet.bad();
delete _local1.boysSet.onEnterFrame;
delete this.onEnterFrame;
} else {
init();
}
}
};
}
};
}
bSound = new Sound(this);
bSound.attachSound("01");
bSound.setVolume(100);
bSound.stop();
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 126 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();
}
};