Frame 1
function DispatchGameData() {
var _local1 = _root;
_local1.score = _local1.scoreTxt + 969696;
this.loadVariables((_local1.dir + "game_record.") + _local1.scripttype, "POST");
}
Stage.showMenu = false;
fscommand ("showmenu", "true");
fscommand ("trapallkeys", "true");
Frame 5
stop();
Frame 19
stop();
Frame 20
function init() {
var _local1 = this;
k = 100;
gg = false;
gh = false;
scoreTxt = 0;
time = 60;
firstCh = 1;
lastCh = 1;
totalCh = 80;
a = 1700;
o = true;
b = getTimer() + a;
cherryspeed = 10;
wid1 = _local1.back._x - (_local1.back._width / 2);
wid2 = _local1.back._x + (_local1.back._width / 2);
hei1 = _local1.back._y - (_local1.back._height / 2);
hei2 = _local1.back._y + (_local1.back._height / 2);
i = firstCh;
while (i <= lastCh) {
_local1["kh" + i].gotoAndStop(1);
i++;
}
}
function CountM() {
trace("\uC2DC\uAC04\uC774 \uC62C\uB77C\uAC00\uB77C");
_global.tim = _global.tim + 10;
}
function dropcherry() {
var _local1 = this;
if (getTimer() > (b - (Math.random() * 700))) {
if (lastCh <= totalCh) {
if (Math.random() < 0.2) {
attachMovie("cherry2", "cherry" + lastCh, lastCh);
_local1["cherry" + lastCh].type = "bad";
} else {
attachMovie("cherry1", "cherry" + lastCh, lastCh);
_local1["cherry" + lastCh].type = "good";
}
f = int(Math.random() * _local1["cherry" + cherry]._totalFrames) + 1;
_local1["cherry" + cherry].gotoAndStop(f);
_local1["cherry" + lastCh]._x = 0;
_local1["cherry" + lastCh]._y = (Math.random() * 220) + 60;
b = getTimer() + a;
if (cherryspeed < 20) {
cherryspeed = cherryspeed + 0.5;
}
lastCh++;
}
}
}
function moveCh() {
var _local1 = this;
i = firstCh;
while (i <= lastCh) {
x = _local1["cherry" + i]._x + cherryspeed;
y = _local1["cherry" + i]._y;
if (x > 730) {
removeCh(i);
} else if (_local1["cherry" + i].hitTest(_local1.bubbler.ch)) {
if (_local1["cherry" + i].type == "bad") {
scoreTxt = scoreTxt - 20;
} else {
scoreTxt = scoreTxt + 10;
}
gg = true;
ff = i;
} else if (_local1.kh.hitTest(_local1.bubbler.ch)) {
gh = true;
}
_local1["cherry" + i]._x = _local1["cherry" + i]._x + cherryspeed;
i++;
}
}
function removeCh(n) {
var _local1 = n;
var _local2 = this;
_local2["cherry" + _local1].removeMovieClip();
firstCh = _local1 + 1;
if ((_local1 == totalCh) || (time == 0)) {
_local2["cherry" + _local1].removeMovieClip();
_local2["bb" + _local1].removeMovieClip();
_local2.bubbler.removeMovieClip();
_local2.gotoAndStop("gameover");
}
}
stop();
init();
Instance of Symbol 79 MovieClip "bubbler" in Frame 20
onClipEvent (mouseMove) {
this.startDrag(true);
updateAfterEvent();
}
onClipEvent (load) {
_global.tim = 61;
st = getTimer();
}
onClipEvent (enterFrame) {
_parent.dropcherry();
_parent.moveCh();
_parent.removeCh();
tnow = Math.ceil((getTimer() - st) / 1000);
_parent.time = _global.tim - tnow;
}
Frame 28
stop();
stopAllSounds();
i = firstCh;
while (i <= lastCh) {
this["cherry" + i].removeMovieClip();
i++;
}
k = 1;
while (k <= 100) {
this["bb" + k].removeMovieClip();
k++;
}
if (_root.dbconnect == "yes") {
DispatchGameData();
}
Instance of Symbol 9 MovieClip in Symbol 10 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._x <= 700) {
_parent._x = _parent._x + 5;
} else {
_parent.removeMovieClip();
}
}
Instance of Symbol 9 MovieClip in Symbol 11 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._x <= 700) {
_root["cherry" + _root.ff].gotoAndStop(2);
} else {
_parent.removeMovieClip();
}
}
Instance of Symbol 13 MovieClip in Symbol 14 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._x <= 700) {
_parent._parent.CountM();
_root.kh.gotoAndStop(2);
} else {
_parent.removeMovieClip();
}
}
Symbol 15 MovieClip [bb] Frame 1
stop();
Symbol 15 MovieClip [bb] Frame 2
stop();
Symbol 15 MovieClip [bb] Frame 3
stop();
Symbol 15 MovieClip [bb] Frame 4
stop();
Symbol 17 MovieClip Frame 1
stop();
Instance of Symbol 7 MovieClip in Symbol 17 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Math.random() < 0.3) {
if ((_parent._y >= 30) and (_parent._y <= 240)) {
if (Math.random() < 0.8) {
_parent._y = _parent._y - 5;
} else {
_parent._y = _parent._y - 8;
}
}
}
}
Symbol 17 MovieClip Frame 2
stop();
Instance of Symbol 16 MovieClip in Symbol 17 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Math.random() < 0.3) {
if ((_parent._y >= 30) and (_parent._y <= 240)) {
if (Math.random() < 0.8) {
_parent._y = _parent._y - 5;
} else {
_parent._y = _parent._y - 8;
}
}
}
}
Instance of Symbol 9 MovieClip in Symbol 20 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._x <= 700) {
_parent._x = _parent._x + 5;
} else {
_parent.removeMovieClip();
}
}
Instance of Symbol 17 MovieClip in Symbol 20 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Math.random() < 0.3) {
if ((_parent._y >= 30) and (_parent._y <= 240)) {
if (Math.random() < 0.8) {
_parent._y = _parent._y - 5;
} else {
_parent._y = _parent._y - 8;
}
}
}
}
Symbol 21 MovieClip [cherry2] Frame 1
stop();
Instance of Symbol 17 MovieClip in Symbol 21 MovieClip [cherry2] Frame 1
onClipEvent (enterFrame) {
if (Math.random() < 0.3) {
if ((_parent._y >= 30) and (_parent._y <= 240)) {
if (Math.random() < 0.8) {
_parent._y = _parent._y - 5;
} else {
_parent._y = _parent._y - 8;
}
}
}
}
Symbol 21 MovieClip [cherry2] Frame 2
stop();
Instance of Symbol 20 MovieClip in Symbol 21 MovieClip [cherry2] Frame 2
onClipEvent (enterFrame) {
if (Math.random() < 0.3) {
if ((_parent._y >= 30) and (_parent._y <= 240)) {
if (Math.random() < 0.8) {
_parent._y = _parent._y - 5;
} else {
_parent._y = _parent._y - 8;
}
}
}
}
Instance of Symbol 9 MovieClip in Symbol 24 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._x <= 700) {
_parent._x = _parent._x + 5;
} else {
_parent.removeMovieClip();
}
}
Symbol 25 MovieClip [cherry1] Frame 1
stop();
Instance of Symbol 23 MovieClip in Symbol 25 MovieClip [cherry1] Frame 1
onClipEvent (enterFrame) {
if (Math.random() < 0.3) {
if ((_parent._y >= 30) and (_parent._y <= 240)) {
if (Math.random() < 0.8) {
_parent._y = _parent._y - 5;
} else {
_parent._y = _parent._y - 8;
}
}
}
}
Symbol 25 MovieClip [cherry1] Frame 2
stop();
Instance of Symbol 24 MovieClip in Symbol 25 MovieClip [cherry1] Frame 2
onClipEvent (enterFrame) {
if (Math.random() < 0.3) {
if ((_parent._y >= 30) and (_parent._y <= 240)) {
if (Math.random() < 0.8) {
_parent._y = _parent._y - 5;
} else {
_parent._y = _parent._y - 8;
}
}
}
}
Symbol 28 MovieClip [timer] Frame 1
_root.o = true;
Symbol 28 MovieClip [timer] Frame 59
stop();
_root.o = false;
Symbol 33 MovieClip [kh] Frame 1
q = -1000;
w = 100;
stop();
Instance of Symbol 28 MovieClip [timer] in Symbol 33 MovieClip [kh] Frame 1
onClipEvent (enterFrame) {
_parent.q = this.z._x;
_parent.w = this.z._y;
}
Symbol 33 MovieClip [kh] Frame 2
stop();
trace(_parent.time);
_parent.CountM();
Instance of Symbol 32 MovieClip in Symbol 33 MovieClip [kh] Frame 2
onClipEvent (load) {
if (_root.gh == true) {
_x = _parent.q;
_y = _parent.w;
}
}
onClipEvent (enterFrame) {
if (_root.gh == true) {
if (this._x <= 740) {
this._x = this._x + 7;
} else {
_root.gh = false;
_parent.removeMovieClip();
}
}
}
Symbol 38 Button
on (release) {
getURL ("http://www.game24.co.kr", "_blank");
}
Symbol 42 Button
on (release) {
this.gotoAndPlay("play");
}
Symbol 59 Button
on (release) {
_parent.gotoAndStop("start");
}
Symbol 60 MovieClip Frame 45
stop();
Symbol 67 Button
on (release) {
_parent.bubbler.gotoAndPlay("ani");
}
on (press) {
_parent.bubbler.gotoAndPlay("ani");
}
Symbol 69 Button
on (press) {
_parent.bubbler.gotoAndPlay("ani");
}
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 9
_root.attachMovie("bb", "bb" + _root.k, _root.k);
_root["bb" + _root.k]._x = _root.bubbler._x + 25;
_root["bb" + _root.k]._y = _root.bubbler._y - 73;
if (_root.gg == true) {
_root.gg = false;
_root["bb" + _root.k]._visible = false;
_root["bb" + _root.k].gotoAndStop(2);
} else if (_root.gh == true) {
_root["bb" + _root.k]._visible = false;
_root["bb" + _root.k].gotoAndStop(3);
} else {
_root["bb" + _root.k].gotoAndStop(1);
}
_root.k++;
Symbol 87 Button
on (release) {
this.gotoAndPlay("play");
}