Frame 1
System.security.allowDomain("www.adgame.co.kr");
stop();
_global._r = this;
_quality = "BEST";
_global._r = this;
fscommand ("allowscale", false);
Stage.showMenu = false;
MovieClip.prototype.tabEnabled = false;
Button.prototype.tabEnabled = false;
MovieClip.prototype.smoothMove = function (speed, targetx, targety) {
var _local1 = this;
_local1._x = _local1._x + (speed * (targetx - _local1._x));
_local1._y = _local1._y + (speed * (targety - _local1._y));
};
this.createEmptyMovieClip("sound_mc", 1);
sound_mc._x = (sound_mc._y = -100);
sound_mc.loadMovie("nuguri_sound.swf", 1);
skip_b._visible = 0;
load_mc.onEnterFrame = function () {
var _local1 = this;
var _local2 = sound_mc.getBytesLoaded() + _local1._parent.getBytesLoaded();
var gBT = (sound_mc.getBytesTotal() + _local1._parent.getBytesTotal());
var _local3 = (_local2 / gBT) * 100;
trace(_local2);
if (_local2 > 4) {
if (_local3 >= 99) {
_global._rsound = sound_mc;
gotoAndStop ("intro");
_local1.onEnterFrame = null;
} else {
_local1.bar_mc._x = _local1.st + (_local1.wd * Math.round(_local3));
}
}
};
Frame 2
_rsound.s_chrmove.stop();
_rsound.s_loop1.stop();
Frame 11
stop();
send_mc.removeMovieClip();
this.createEmptyMovieClip("send_mc", 100);
var gameURLNumV = _root._url.length;
var jdiv = _root._url.slice(Number(gameURLNumV - 6), Number(gameURLNumV - 4));
log_link_url = "http://www.adgame.co.kr/kumkang/game/effect_check.asp?chk=link&div=" + jdiv;
log_start_url = "http://www.adgame.co.kr/kumkang/game/effect_check.asp?chk=start&div=" + jdiv;
event_page_url = "http://www.kumkang.com/news/kumkang/event_main.asp";
start_f = function () {
if (_root.gameType == "web") {
}
};
start_f();
Symbol 4 MovieClip [type0] Frame 1
this.onEnterFrame = function () {
var _local1 = this;
if (_local1.count >= 11) {
_local1.onEnterFrame = null;
} else {
_local1.down2();
}
};
Symbol 13 MovieClip Frame 1
stop();
st = 52;
end = 312;
wd = (end - st) / 100;
Symbol 38 Button
on (release) {
_rsound.s_loop1.stop();
_r.gotoAndPlay("replay");
}
Symbol 40 MovieClip Frame 90
_rsound.s_loop1.start(0, 999);
Symbol 40 MovieClip Frame 124
stop();
Symbol 66 MovieClip Frame 6
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 2
stop();
Symbol 79 MovieClip Frame 3
stop();
Symbol 79 MovieClip Frame 4
stop();
Symbol 79 MovieClip Frame 5
stop();
Symbol 79 MovieClip Frame 6
stop();
Symbol 80 MovieClip Frame 1
stop();
_rsound.s_chrmove.stop();
_rsound.s_chrmove.onSoundComplete = null;
Symbol 80 MovieClip Frame 10
_rsound.s_chrmove.start(0, 1);
_rsound.s_chrmove.onSoundComplete = function () {
this.start(0, 1);
};
Symbol 80 MovieClip Frame 20
_rsound.s_chrmove.stop();
_rsound.s_chrmove.onSoundComplete = null;
Symbol 80 MovieClip Frame 31
_rsound.s_chrmove.stop();
_rsound.s_chrmove.onSoundComplete = null;
Symbol 81 MovieClip [mainchr] Frame 1
stop();
Symbol 107 MovieClip [chrdie] Frame 45
_game.diealive();
this.removeMovieClip();
Symbol 123 MovieClip [chrend] Frame 20
stop();
timeb = 0;
tb = _inter.time_bar;
_rsound.s_trr.start(0, 99);
this.onEnterFrame = function () {
if (tb._xscale < 100) {
_inter.time = _inter.time + 2;
tb._width = _inter.time;
_game.addscore(_game.timepoint);
} else {
_rsound.s_trr.stop();
_rsound.s_trrend.start(0, 1);
this.onEnterFrame = null;
play();
}
};
Symbol 123 MovieClip [chrend] Frame 40
_game.levelup();
this.removeMovieClip();
Symbol 216 MovieClip [boom0] Frame 1
_game.itemdel();
Symbol 216 MovieClip [boom0] Frame 2
_rsound.s_eat.start(0, 1);
Symbol 216 MovieClip [boom0] Frame 31
this.removeMovieClip();
Symbol 222 MovieClip [boom1] Frame 2
_rsound.s_bird.start(0, 1);
Symbol 222 MovieClip [boom1] Frame 31
_game.attachred(this._x, this._y);
this.removeMovieClip();
Symbol 225 MovieClip [boom2] Frame 2
_rsound.s_eat.start(0, 1);
Symbol 225 MovieClip [boom2] Frame 30
_game.addscore(_game.tongpoint);
this.removeMovieClip();
Symbol 238 Button
on (release) {
_game.replay();
}
Symbol 241 Button
on (release) {
getURL ("javascript:close()");
}
Symbol 246 Button
on (release) {
gotoAndStop (1);
}
Symbol 247 MovieClip Frame 1
stop();
Symbol 250 MovieClip [pop_gameover] Frame 1
_global._reg = this;
Symbol 250 MovieClip [pop_gameover] Frame 12
stop();
_rsound.s_loop1.start(0, 9999);
Symbol 250 MovieClip [pop_gameover] Frame 31
stop();
_rsound.s_loop1.start(0, 9999);
Symbol 261 MovieClip [pop_level] Frame 67
stop();
_rsound.s_loop2.start(0, 9999);
_rsound.s_loop2.setVolume(0);
_rsound.setVol("loop2", 100, 2);
_game.init();
this.removeMovieClip();
Symbol 261 MovieClip [pop_level] Frame 135
_rsound.s_loop3.start(0, 9999);
_rsound.s_loop3.setVolume(0);
_rsound.setVol("loop3", 100, 2);
_game.init();
this.removeMovieClip();
Symbol 261 MovieClip [pop_level] Frame 202
_rsound.s_loop2.start(0, 9999);
_rsound.s_loop2.setVolume(0);
_rsound.setVol("loop2", 100, 2);
_game.init();
this.removeMovieClip();
Symbol 270 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 1
this.score_mc._visible = 0;
this.score_mc.score_txt.text = 0;
_global._intertop = this;
soundall = new Sound(_rsound);
stog = true;
soundtog_mc.onPress = function () {
if (stog) {
soundall.setVolume(0);
this.gotoAndStop(2);
} else {
soundall.setVolume(100);
this.gotoAndStop(1);
}
stog = !stog;
};
Symbol 281 MovieClip Frame 16
this.score_mc._visible = 1;
Symbol 281 MovieClip Frame 18
stop();
Symbol 281 MovieClip Frame 19
this.score_mc._visible = 0;
Symbol 281 MovieClip Frame 34
this.score_mc._visible = 1;
Symbol 281 MovieClip Frame 36
stop();
Symbol 281 MovieClip Frame 37
this.score_mc._visible = 0;
Symbol 281 MovieClip Frame 52
this.score_mc._visible = 1;
Symbol 281 MovieClip Frame 53
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 1
stop();
_global._interbottom = this;
Symbol 291 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 1
_global._inter = this;
stop();
reset_f = function () {
time = 0;
time_bar._width = time;
};
time = 0;
dtime = 0.05;
time_bar._width = time;
this.onEnterFrame = function () {
if (!_game.pause) {
time = time + dtime;
time_bar._width = time;
}
};
Symbol 299 MovieClip Frame 1
this._visible = 0;
Symbol 300 MovieClip Frame 1
this._visible = 0;
Symbol 315 MovieClip Frame 1
this._visible = 0;
Symbol 318 MovieClip Frame 1
this._visible = 0;
Symbol 320 MovieClip Frame 1
this._visible = 0;
Symbol 345 MovieClip Frame 1
var curn = (++_game.itemplus);
if (curn > 11) {
curn = curn - 10;
}
gotoAndStop(curn);
Symbol 349 MovieClip Frame 1
var i = 1;
while (i < 6) {
var cur = this["eat" + i];
cur.ch = 0;
i++;
}
this.eat11.ch = random(2) + 1;
this.eat12.ch = random(2) + 1;
Symbol 354 MovieClip Frame 1
this._visible = 0;
bottom3_mc.dir = 1;
bottom3_mc.speed = 2;
bottom3_mc.move = true;
bottom3_mc.onEnterFrame = function () {
var _local1 = this;
if (!_game.pause) {
if ((_local1._x < 35) || (_local1._x > 214)) {
_local1.dir = _local1.dir * -1;
}
var _local2 = _local1.speed * _local1.dir;
_local1._x = _local1._x + _local2;
_game.bottom_copy.mc1._x = _game.bottom_copy.mc1._x + _local2;
}
};
bottom11_mc.dir = 1;
bottom11_mc.speed = 3;
bottom11_mc.move = true;
bottom11_mc.onEnterFrame = function () {
var _local1 = this;
if (!_game.pause) {
if ((_local1._x < 270) || (_local1._x > 430)) {
_local1.dir = _local1.dir * -1;
}
var _local2 = _local1.speed * _local1.dir;
_local1._x = _local1._x + _local2;
_game.bottom_copy.mc2._x = _game.bottom_copy.mc2._x + _local2;
}
};
Symbol 362 MovieClip Frame 1
this._visible = 0;
Symbol 363 MovieClip Frame 1
this._visible = 0;
Symbol 366 MovieClip Frame 1
var i = 1;
while (i < 6) {
var cur = this["eat" + i];
cur.ch = 0;
i++;
}
this.eat11.ch = random(2) + 1;
this.eat12.ch = random(2) + 1;
this.eat13.ch = random(2) + 1;
Symbol 371 MovieClip Frame 1
this._visible = 0;
bottom13_mc.movedown = true;
bottom14_mc.movedown = true;
bottom15_mc.movedown = true;
bottom16_mc.movedown = true;
bottom8_mc.movedown = true;
bottom13_mc.bottom = 537;
bottom14_mc.bottom = 537;
bottom15_mc.bottom = 537;
bottom16_mc.bottom = 537;
bottom8_mc.bottom = 537;
bottom9_mc.dir = 1;
bottom9_mc.speed = 2;
bottom9_mc.moveY = true;
bottom9_mc.onEnterFrame = function () {
var _local1 = this;
if (!_game.pause) {
if ((_local1._y < 337) || (_local1._y > 497)) {
_local1.dir = _local1.dir * -1;
}
var _local2 = _local1.speed * _local1.dir;
_local1._y = _local1._y + _local2;
_game.bottom_copy.bottom9_mc._y = _game.bottom_copy.bottom9_mc._y + _local2;
}
};
bottom4_mc.dir = 1;
bottom4_mc.speed = 2;
bottom4_mc.moveX = true;
bottom4_mc.onEnterFrame = function () {
var _local1 = this;
if (!_game.pause) {
if ((_local1._x < 116) || (_local1._x > 327)) {
_local1.dir = _local1.dir * -1;
}
var _local2 = _local1.speed * _local1.dir;
_local1._x = _local1._x + _local2;
_game.bottom_copy.bottom4_mc._x = _game.bottom_copy.bottom4_mc._x + _local2;
}
};
bottom8_mc.tog = true;
bottom11_mc.init = function () {
var _local1 = this;
_local1.dir = 1;
_local1.speed = 2;
_local1.moveX = true;
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_game.pause) {
if ((_local1._x < 270) || (_local1._x > 370)) {
_local1.dir = _local1.dir * -1;
}
var _local2 = _local1.speed * _local1.dir;
_local1._x = _local1._x + _local2;
_game.bottom_copy.bottom11_mc._x = _game.bottom_copy.bottom11_mc._x + _local2;
}
};
};
y13 = this.bottom13_mc._y;
y14 = this.bottom14_mc._y;
y15 = this.bottom15_mc._y;
y16 = this.bottom16_mc._y;
cy13 = _game.bottom_copy.bottom13_mc._y;
cy14 = _game.bottom_copy.bottom14_mc._y;
cy15 = _game.bottom_copy.bottom15_mc._y;
cy16 = _game.bottom_copy.bottom16_mc._y;
init = function () {
var _local1 = this;
_local1.bottom13_mc._y = y13;
_local1.bottom14_mc._y = y14;
_local1.bottom15_mc._y = y15;
_local1.bottom16_mc._y = y16;
_game.bottom_copy.bottom13_mc._y = cy13;
_game.bottom_copy.bottom14_mc._y = cy14;
_game.bottom_copy.bottom15_mc._y = cy15;
_game.bottom_copy.bottom16_mc._y = cy16;
};
Symbol 388 MovieClip Frame 1
this._visible = 0;
Symbol 389 MovieClip Frame 1
this._visible = 0;
Symbol 392 MovieClip Frame 1
var i = 1;
while (i < 6) {
var cur = this["eat" + i];
cur.ch = 0;
i++;
}
this.eat11.ch = random(2) + 1;
this.eat12.ch = random(2) + 1;
Symbol 393 MovieClip Frame 1
_global._game = this;
Gr = 0.98;
itemplus = 1;
game = {life:4, w:600, h:500};
replay = function () {
_r.gotoAndStop("intro");
};
this.createEmptyMovieClip("boombox", 10000, {_x:0, _y:0});
reddep = 0;
attachred = function (xx, yy) {
var _local2 = this;
reddep++;
var _local1 = dead_mc.attachMovie("attachred", "attachred" + reddep, 10 + reddep, {_x:xx, _y:yy});
_local1.dir = 1;
_local1.speed = 2;
_local1._xscale = -100;
_local1.xmin = wall_l_1._x + (_local1._width / 2);
_local1.xmax = wall_r_1._x - (_local1._width / 2);
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_game.pause) {
if ((_local1._x < _local1.xmin) || (_local1._x > _local1.xmax)) {
_local1.dir = _local1.dir * -1;
_local1._xscale = _local1._xscale * -1;
}
_local1._x = _local1._x + (_local1.dir * _local1.speed);
}
};
};
itemdel = function () {
trace("\uC544\uC774\uD15C\uBA38\uAC83\uB124" + _interbottom.item_txt.text);
item = item - 1;
trace("item==" + item);
_interbottom.item_txt.text = Number(_interbottom.item_txt.text) + 1;
addscore(itempoint);
};
leveluppause = function () {
if ((lev == 1) || (lev == 3)) {
_rsound.s_loop2.stop();
} else {
_rsound.s_loop3.stop();
}
trace("\uB808\uBCA8\uD074\uB9AC\uC5B4");
boombox.attachMovie("chrend", "chrend", 100, {_x:mainchr_mc._x, _y:mainchr_mc._y});
mainchr_mc.mc.gotoAndStop("jump");
mainchr_mc._visible = 0;
mainchr_mc._x = (mainchr_mc._y = -500);
this.pause = true;
this.mainchr_mc.pause = true;
G_mc.pause = true;
};
levelup = function () {
if (lev == 3) {
gameover();
} else {
trace("\uB808\uBCA8 \uC5C5\uD588\uB2E4");
lev++;
gotoAndStop("lev" + lev);
}
};
gamelose = function () {
_rsound.s_loop3.stop();
_rsound.s_loop2.stop();
this.attachMovie("pop_gameover", "pop_over", 500011, {_x:(game.w / 2) - 230, _y:(game.h / 2) - 125});
pop_over.gotoAndPlay("gameover");
pop_over.item_txt.text = _interbottom.item_txt.text;
pop_over.score_txt.text = _intertop.score_mc.score_txt.text;
trace("\uBABD\uB545\uB514\uC84C\uB2E4 \uACE0\uB9C8\uD574\uB77C");
};
gameover = function () {
_rsound.s_loop3.stop();
_rsound.s_loop2.stop();
this.attachMovie("pop_gameover", "pop_over", 500010, {_x:(game.w / 2) - 230, _y:(game.h / 2) - 125});
pop_over.gotoAndPlay("gameclear");
pop_over.item_txt.text = _interbottom.item_txt.text;
pop_over.score_txt.text = _intertop.score_mc.score_txt.text;
trace("\uC874\uB098\uC218\uACE0\uD588\uB2E4 \uC539\uC0C8\uC57C \uACE0\uB9DD\uD574\uB77C");
};
score = 0;
tongpoint = 2000;
itempoint = 1000;
diepoint = -444;
timepoint = 100;
addscore = function (k) {
score = score + k;
if (score < 0) {
score = 0;
}
_intertop.score_mc.score_txt.text = score;
};
this.pause = false;
diepause = function () {
_rsound.s_die.start(0, 1);
addscore(diepoint);
boombox.attachMovie("chrdie", "chrdie", 100, {_x:mainchr_mc._x, _y:mainchr_mc._y});
mainchr_mc.mc.gotoAndStop("jump");
mainchr_mc._visible = 0;
mainchr_mc._x = (mainchr_mc._y = -500);
this.pause = true;
this.mainchr_mc.pause = true;
G_mc.pause = true;
_interbottom["life" + game.life].gotoAndStop(2);
game.life = game.life - 1;
trace(game.life + "\uB9C8\uB9AC \uB0A8\uC558\uB2E4");
};
diealive = function () {
if (game.life < 0) {
gamelose();
} else {
_rsound.s_in.start(0, 1);
with (mainchr_mc) {
vy = 0;
_xscale = 100;
_visible = 1;
_x = 50;
_y = 500;
jump = false;
speed = 3;
jumpspeed = -10;
upspeed = 3;
onsadari = false;
curonsadari = 0;
curonsadarimc = 0;
dw = _width / 2;
}
bottombox_mc.init();
for (var z in dead_mc) {
if (dead_mc[z].getDepth() >= 10) {
dead_mc[z].removeMovieClip();
}
}
this.pause = false;
this.mainchr_mc.pause = false;
this.G_mc.pause = false;
}
};
Symbol 393 MovieClip Frame 2
stop();
lev = 1;
item = 5;
_interbottom.item_txt.text = 0;
_inter.reset_f();
this.attachMovie("mainchr", "mainchr_mc", 500000, {_x:-100, _y:_100});
mainchr_mc.init = function () {
var _local1 = this;
trace("\uCE90\uB9AD\uCD08\uAE30\uD654");
_local1.pause = false;
_local1._x = 50;
_local1._y = 500;
_local1.jump = false;
_local1.speed = 3;
_local1.jumpspeed = -10;
_local1.upspeed = 3;
_local1.onsadari = false;
_local1.curonsadari = 0;
_local1.curonsadarimc = 0;
_local1.dw = _local1._width / 2;
_local1.moveRL = function (dir) {
var _local1 = this;
var _local2 = _local1._x + (_local1.speed * dir);
if ((_local2 - _local1.dw) < wall_l_1._x) {
_local2 = wall_l_1._x + _local1.dw;
} else if ((_local2 + _local1.dw) > wall_r_1._x) {
_local2 = wall_r_1._x - _local1.dw;
}
_local1._x = _local2;
if (!_local1.jump) {
_local1.mc.gotoAndStop("run");
}
_local1._xscale = dir * 100;
};
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1.pause) {
_local1.onkey = false;
if (Key.isDown(32) && (!_local1.onsadari)) {
if (!_local1.jump) {
_local1.jumpup();
}
}
if (Key.isDown(39) && (!_local1.onsadari)) {
_local1.moveRL(1);
_local1.onkey = true;
}
if (Key.isDown(37) && (!_local1.onsadari)) {
_local1.moveRL(-1);
_local1.onkey = true;
}
if (Key.isDown(38)) {
_local1.chsadari();
_local1.moveU();
}
if (Key.isDown(40)) {
_local1.chsadari();
_local1.moveD();
}
if (((!_local1.onkey) && (!_local1.onsadari)) && (!_local1.jump)) {
_local1.mc.gotoAndStop("stop");
}
if (_local1.jump) {
_local1.mc.gotoAndStop("jump");
}
if (_local1.onsadari) {
_local1.mc.gotoAndStop("sadari");
}
_local1.hitdead();
_local1.hiteat();
}
};
_local1.hiteat = function () {
var _local1 = this;
if (eat_mc.hitTest(_local1._x, _local1._y, true)) {
for (var z in eat_mc) {
if (eat_mc[z].hitTest(_local1._x, _local1._y, true)) {
trace("\uC5C4\uC368\uC838\uB77C");
boombox.attachMovie("boom" + eat_mc[z].ch, "boom" + eat_mc[z].ch, eat_mc[z].ch + 1, {_x:eat_mc[z]._x, _y:eat_mc[z]._y});
if ((eat_mc[z].ch == 0) && (item == 1)) {
leveluppause();
}
eat_mc[z].swapDepths(1);
eat_mc[z].removeMovieClip();
}
}
}
};
_local1.hitdead = function () {
var _local1 = this;
if (dead_mc.hitTest(_local1._x, _local1._y, true)) {
trace("\uBC1C\uB85C\uC8FD\uC5C8\uB2E4");
diepause();
} else if (_local1.onsadari && (dead_mc.hitTest(_local1._x, _local1._y - 40, true))) {
trace("\uB300\uAC00\uB9AC\uB85C\uC8FD\uC5C8\uB2E4");
diepause();
}
};
_local1.moveD = function () {
var _local1 = this;
if (_local1.onsadari) {
if (_local1.curonsadari == "sadariup") {
_local1.onsadari = false;
} else {
_rsound.s_sa.start(0, 1);
_local1.mc.mc.play();
_local1._x = _local1.curonsadarimc._x;
_local1._y = _local1._y + _local1.upspeed;
}
}
};
_local1.moveU = function () {
var _local1 = this;
if (_local1.onsadari) {
if (_local1.curonsadari == "sadaridown") {
_local1.onsadari = false;
} else {
_rsound.s_sa.start(0, 1);
_local1.mc.mc.play();
_local1._x = _local1.curonsadarimc._x;
_local1._y = _local1._y - _local1.upspeed;
}
}
};
_local1.chsadari = function () {
var _local1 = this;
if (sadariup.hitTest(_local1._x, _local1._y, true)) {
_local1.curonsadari = "sadariup";
} else if (sadaridown.hitTest(_local1._x, _local1._y, true)) {
_local1.curonsadari = "sadaridown";
} else {
_local1.curonsadari = 0;
}
if ((!_local1.onsadari) && (_game[_local1.curonsadari])) {
_local1.jump = false;
_local1.onsadari = true;
for (var _local2 in _game[_local1.curonsadari]) {
if (_game[_local1.curonsadari][_local2].hitTest(_local1._x, _local1._y, true)) {
_local1.curonsadarimc = _game[_local1.curonsadari][_local2];
}
}
}
};
_local1.jumpup = function () {
var _local1 = this;
_rsound.s_jump.start(0, 1);
_local1.jump = true;
_local1._y = _local1._y - 1;
_local1.vy = _local1.jumpspeed;
};
};
bottom_arr = [];
for (var z in bottombox_mc) {
if (typeof(bottombox_mc[z]) == "movieclip") {
bottom_arr.push(bottombox_mc[z]._name);
}
}
this.createEmptyMovieClip("G_mc", 1001);
G_mc.pause = false;
G_mc.onEnterFrame = function () {
if ((!this.pause) && (!mainchr_mc.onsadari)) {
for (var _local2 in G_mc_arr) {
cur_mc = G_mc_arr[_local2];
hit_bot = "";
if (cur_mc.vy >= 0) {
if (bottombox_mc.hitTest(cur_mc._x, cur_mc._y, true)) {
for (var _local1 in bottom_arr) {
if (bottombox_mc[bottom_arr[_local1]].hitTest(cur_mc._x, cur_mc._y, true)) {
hit_bot = bottombox_mc[bottom_arr[_local1]];
}
}
}
}
if (hit_bot ne "") {
cur_mc._y = hit_bot._y;
cur_mc.vy = 0;
cur_mc.jump = false;
} else {
cur_mc.jump = true;
cur_mc.vy = cur_mc.vy + Gr;
cur_mc._y = cur_mc._y + cur_mc.vy;
}
}
}
};
redbottom_arr = [2, 10, 5];
redbottomsp_arr = [2.5, 2, 1.5];
redchrdep = 0;
for (var z in redbottom_arr) {
redchrdep++;
var rand = random(3);
var curbmc = bottombox_mc[("bottom" + redbottom_arr[z]) + "_mc"];
var curred = dead_mc.attachMovie("redchr" + rand, "redchr" + redchrdep, redchrdep);
curred._x = curbmc._x;
curred._y = curbmc._y;
curred.dir = (random(2) ? 1 : -1);
curred.speed = redbottomsp_arr[rand];
curred._xscale = (100 * curred.dir) * -1;
curred.bound_obj = curbmc.getBounds(this);
curred.onEnterFrame = function () {
var _local1 = this;
if (!_game.pause) {
if (((_local1._x - (_local1._width / 2)) < _local1.bound_obj.xMin) || ((_local1._x + (_local1._width / 2)) > _local1.bound_obj.xMax)) {
_local1.dir = _local1.dir * -1;
_local1._xscale = _local1._xscale * -1;
}
_local1._x = _local1._x + (_local1.speed * _local1.dir);
}
};
}
init = function () {
this.pause = false;
mainchr_mc.init();
G_mc_arr = [mainchr_mc];
};
this.attachMovie("pop_level", "pop_level", 500020);
pop_level._x = (game.w / 2) - (pop_level._width / 2);
pop_level._y = (game.h / 2) - (pop_level._height / 2);
pop_level.gotoAndPlay("level" + lev);
trace("\uB798\uB514..");
this.pause = true;
Symbol 393 MovieClip Frame 11
lev = 2;
item = 5;
_intertop.gotoAndPlay("level" + lev);
this.attachMovie("mainchr", "mainchr_mc", 500000, {_x:-100, _y:-100});
_inter.reset_f();
mainchr_mc.init = function () {
var _local1 = this;
_local1.pause = false;
_local1._x = 50;
_local1._y = 500;
_local1.jump = false;
_local1.speed = 3;
_local1.jumpspeed = -10;
_local1.upspeed = 3;
_local1.onsadari = false;
_local1.curonsadari = 0;
_local1.curonsadarimc = 0;
_local1.dw = _local1._width / 2;
_local1.moveRL = function (dir) {
var _local1 = this;
var _local2 = _local1._x + (_local1.speed * dir);
if ((_local2 - _local1.dw) < wall_l_1._x) {
_local2 = wall_l_1._x + _local1.dw;
} else if ((_local2 + _local1.dw) > wall_r_1._x) {
_local2 = wall_r_1._x - _local1.dw;
}
_local1._x = _local2;
if (!_local1.jump) {
_local1.mc.gotoAndStop("run");
}
_local1._xscale = dir * 100;
};
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1.pause) {
_local1.onkey = false;
if (Key.isDown(32) && (!_local1.onsadari)) {
if (!_local1.jump) {
_local1.jumpup();
}
}
if (Key.isDown(39) && (!_local1.onsadari)) {
_local1.moveRL(1);
_local1.onkey = true;
}
if (Key.isDown(37) && (!_local1.onsadari)) {
_local1.moveRL(-1);
_local1.onkey = true;
}
if (Key.isDown(38)) {
_local1.chsadari();
_local1.moveU();
}
if (Key.isDown(40)) {
_local1.chsadari();
_local1.moveD();
}
if (((!_local1.onkey) && (!_local1.onsadari)) && (!_local1.jump)) {
_local1.mc.gotoAndStop("stop");
}
if (_local1.jump) {
_local1.mc.gotoAndStop("jump");
}
if (_local1.onsadari) {
_local1.mc.gotoAndStop("sadari");
}
_local1.hitdead();
_local1.hiteat();
}
};
_local1.hiteat = function () {
var _local1 = this;
if (eat_mc.hitTest(_local1._x, _local1._y, true)) {
for (var z in eat_mc) {
if (eat_mc[z].hitTest(_local1._x, _local1._y, true)) {
trace("\uC5C4\uC368\uC838\uB77C");
boombox.attachMovie("boom" + eat_mc[z].ch, "boom" + eat_mc[z].ch, eat_mc[z].ch + 1, {_x:eat_mc[z]._x, _y:eat_mc[z]._y});
if ((eat_mc[z].ch == 0) && (item == 1)) {
leveluppause();
}
eat_mc[z].swapDepths(1);
eat_mc[z].removeMovieClip();
}
}
}
};
_local1.hitdead = function () {
var _local1 = this;
if (dead_mc.hitTest(_local1._x, _local1._y, true)) {
trace("\uBC1C\uB85C\uC8FD\uC5C8\uB2E4");
diepause();
} else if (_local1.onsadari && (dead_mc.hitTest(_local1._x, _local1._y - 40, true))) {
trace("\uB300\uAC00\uB9AC\uB85C\uC8FD\uC5C8\uB2E4");
diepause();
}
};
_local1.moveD = function () {
var _local1 = this;
if (_local1.onsadari) {
if (_local1.curonsadari == "sadariup") {
_local1.onsadari = false;
} else {
_rsound.s_sa.start(0, 1);
_local1.mc.mc.play();
_local1._x = _local1.curonsadarimc._x;
_local1._y = _local1._y + _local1.upspeed;
}
}
};
_local1.moveU = function () {
var _local1 = this;
if (_local1.onsadari) {
if (_local1.curonsadari == "sadaridown") {
_local1.onsadari = false;
} else {
_rsound.s_sa.start(0, 1);
_local1.mc.mc.play();
_local1._x = _local1.curonsadarimc._x;
_local1._y = _local1._y - _local1.upspeed;
}
}
};
_local1.chsadari = function () {
var _local1 = this;
if (sadariup.hitTest(_local1._x, _local1._y, true)) {
_local1.curonsadari = "sadariup";
} else if (sadaridown.hitTest(_local1._x, _local1._y, true)) {
_local1.curonsadari = "sadaridown";
} else {
_local1.curonsadari = 0;
}
if ((!_local1.onsadari) && (_game[_local1.curonsadari])) {
_local1.jump = false;
_local1.onsadari = true;
for (var _local2 in _game[_local1.curonsadari]) {
if (_game[_local1.curonsadari][_local2].hitTest(_local1._x, _local1._y, true)) {
_local1.curonsadarimc = _game[_local1.curonsadari][_local2];
}
}
}
};
_local1.jumpup = function () {
var _local1 = this;
_rsound.s_jump.start(0, 1);
_local1.jump = true;
_local1._y = _local1._y - 1;
_local1.vy = _local1.jumpspeed;
};
};
bottom_arr = [];
for (var z in bottombox_mc) {
if (typeof(bottombox_mc[z]) == "movieclip") {
bottom_arr.push(bottombox_mc[z]._name);
}
}
this.createEmptyMovieClip("G_mc", 1001);
G_mc.pause = false;
G_mc.onEnterFrame = function () {
if ((!this.pause) && (!mainchr_mc.onsadari)) {
for (var _local2 in G_mc_arr) {
cur_mc = G_mc_arr[_local2];
hit_bot = "";
if (cur_mc.vy >= 0) {
if (bottombox_mc.hitTest(cur_mc._x, cur_mc._y, true)) {
for (var _local1 in bottom_arr) {
if (bottombox_mc[bottom_arr[_local1]].hitTest(cur_mc._x, cur_mc._y, true)) {
hit_bot = bottombox_mc[bottom_arr[_local1]];
}
}
}
}
if (hit_bot ne "") {
cur_mc._y = hit_bot._y;
cur_mc.vy = 0;
cur_mc.jump = false;
if (hit_bot.move) {
cur_mc._x = cur_mc._x + (hit_bot.speed * hit_bot.dir);
}
} else {
cur_mc.jump = true;
cur_mc.vy = cur_mc.vy + Gr;
cur_mc._y = cur_mc._y + cur_mc.vy;
}
}
}
};
redbottom_arr = [9, 10];
redbottomsp_arr = [2.5, 2, 1.5];
redchrdep = 0;
for (var z in redbottom_arr) {
redchrdep++;
var rand = random(3);
var curbmc = bottombox_mc[("bottom" + redbottom_arr[z]) + "_mc"];
var curred = dead_mc.attachMovie("redchr" + rand, "redchr" + redchrdep, redchrdep);
curred._x = curbmc._x;
curred._y = curbmc._y;
curred.dir = (random(2) ? 1 : -1);
curred.speed = redbottomsp_arr[rand];
curred._xscale = (100 * curred.dir) * -1;
curred.bound_obj = curbmc.getBounds(this);
curred.onEnterFrame = function () {
var _local1 = this;
if (!_game.pause) {
if (((_local1._x - (_local1._width / 2)) < _local1.bound_obj.xMin) || ((_local1._x + (_local1._width / 2)) > _local1.bound_obj.xMax)) {
_local1.dir = _local1.dir * -1;
_local1._xscale = _local1._xscale * -1;
}
_local1._x = _local1._x + (_local1.speed * _local1.dir);
}
};
}
G_mc_arr = [];
init = function () {
this.pause = false;
mainchr_mc.init();
G_mc_arr = [mainchr_mc];
};
this.attachMovie("pop_level", "pop_level", 500020);
pop_level._x = (game.w / 2) - (pop_level._width / 2);
pop_level._y = (game.h / 2) - (pop_level._height / 2);
pop_level.gotoAndPlay("level" + lev);
trace("\uB798\uB514..");
this.pause = true;
Symbol 393 MovieClip Frame 21
lev = 3;
item = 4;
_intertop.gotoAndPlay("level" + lev);
this.attachMovie("mainchr", "mainchr_mc", 500000, {_x:-100, _y:-100});
_inter.reset_f();
mainchr_mc.init = function () {
var _local1 = this;
_local1.pause = false;
_local1._x = 50;
_local1._y = 500;
_local1.jump = false;
_local1.speed = 3;
_local1.jumpspeed = -10;
_local1.upspeed = 3;
_local1.onsadari = false;
_local1.curonsadari = 0;
_local1.curonsadarimc = 0;
_local1.dw = _local1._width / 2;
_local1.moveRL = function (dir) {
var _local1 = this;
var _local2 = _local1._x + (_local1.speed * dir);
if ((_local2 - _local1.dw) < wall_l_1._x) {
_local2 = wall_l_1._x + _local1.dw;
} else if ((_local2 + _local1.dw) > wall_r_1._x) {
_local2 = wall_r_1._x - _local1.dw;
}
_local1._x = _local2;
if (!_local1.jump) {
_local1.mc.gotoAndStop("run");
}
_local1._xscale = dir * 100;
};
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1.pause) {
_local1.onkey = false;
if (Key.isDown(32) && (!_local1.onsadari)) {
if (!_local1.jump) {
_local1.jumpup();
}
}
if (Key.isDown(39) && (!_local1.onsadari)) {
_local1.moveRL(1);
_local1.onkey = true;
}
if (Key.isDown(37) && (!_local1.onsadari)) {
_local1.moveRL(-1);
_local1.onkey = true;
}
if (Key.isDown(38)) {
_local1.chsadari();
_local1.moveU();
}
if (Key.isDown(40)) {
_local1.chsadari();
_local1.moveD();
}
if (((!_local1.onkey) && (!_local1.onsadari)) && (!_local1.jump)) {
_local1.mc.gotoAndStop("stop");
}
if (_local1.jump) {
_local1.mc.gotoAndStop("jump");
}
if (_local1.onsadari) {
_local1.mc.gotoAndStop("sadari");
}
_local1.hitdead();
_local1.hiteat();
}
};
_local1.hiteat = function () {
var _local1 = this;
if (eat_mc.hitTest(_local1._x, _local1._y, true)) {
for (var z in eat_mc) {
if (eat_mc[z].hitTest(_local1._x, _local1._y, true)) {
trace("\uC5C4\uC368\uC838\uB77C");
boombox.attachMovie("boom" + eat_mc[z].ch, "boom" + eat_mc[z].ch, eat_mc[z].ch + 1, {_x:eat_mc[z]._x, _y:eat_mc[z]._y});
if ((eat_mc[z].ch == 0) && (item == 1)) {
leveluppause();
}
eat_mc[z].swapDepths(1);
eat_mc[z].removeMovieClip();
}
}
}
};
_local1.hitdead = function () {
var _local1 = this;
if (dead_mc.hitTest(_local1._x, _local1._y, true)) {
trace("\uBC1C\uB85C\uC8FD\uC5C8\uB2E4");
diepause();
} else if (_local1.onsadari && (dead_mc.hitTest(_local1._x, _local1._y - 40, true))) {
trace("\uB300\uAC00\uB9AC\uB85C\uC8FD\uC5C8\uB2E4");
diepause();
}
};
_local1.moveD = function () {
var _local1 = this;
if (_local1.onsadari) {
if (_local1.curonsadari == "sadariup") {
_local1.onsadari = false;
} else {
_rsound.s_sa.start(0, 1);
_local1.mc.mc.play();
_local1._x = _local1.curonsadarimc._x;
_local1._y = _local1._y + _local1.upspeed;
}
}
};
_local1.moveU = function () {
var _local1 = this;
if (_local1.onsadari) {
if (_local1.curonsadari == "sadaridown") {
_local1.onsadari = false;
} else {
_rsound.s_sa.start(0, 1);
_local1.mc.mc.play();
_local1._x = _local1.curonsadarimc._x;
_local1._y = _local1._y - _local1.upspeed;
}
}
};
_local1.chsadari = function () {
var _local1 = this;
if (sadariup.hitTest(_local1._x, _local1._y, true)) {
_local1.curonsadari = "sadariup";
} else if (sadaridown.hitTest(_local1._x, _local1._y, true)) {
_local1.curonsadari = "sadaridown";
} else {
_local1.curonsadari = 0;
}
if ((!_local1.onsadari) && (_game[_local1.curonsadari])) {
_local1.jump = false;
_local1.onsadari = true;
for (var _local2 in _game[_local1.curonsadari]) {
if (_game[_local1.curonsadari][_local2].hitTest(_local1._x, _local1._y, true)) {
_local1.curonsadarimc = _game[_local1.curonsadari][_local2];
}
}
}
};
_local1.jumpup = function () {
var _local1 = this;
_rsound.s_jump.start(0, 1);
_local1.jump = true;
_local1._y = _local1._y - 1;
_local1.vy = _local1.jumpspeed;
};
};
bottom_arr = [];
for (var z in bottombox_mc) {
if (typeof(bottombox_mc[z]) == "movieclip") {
bottom_arr.push(bottombox_mc[z]._name);
}
}
this.createEmptyMovieClip("G_mc", 1001);
G_mc.pause = false;
G_mc.onEnterFrame = function () {
if ((!this.pause) && (!mainchr_mc.onsadari)) {
for (var _local3 in G_mc_arr) {
cur_mc = G_mc_arr[_local3];
hit_bot = "";
if (cur_mc.vy >= 0) {
if (bottombox_mc.hitTest(cur_mc._x, cur_mc._y, true)) {
for (var _local2 in bottom_arr) {
if (bottombox_mc[bottom_arr[_local2]].hitTest(cur_mc._x, cur_mc._y, true)) {
hit_bot = bottombox_mc[bottom_arr[_local2]];
}
}
}
}
if (hit_bot ne "") {
cur_mc._y = hit_bot._y;
cur_mc.vy = 0;
cur_mc.jump = false;
if (hit_bot.moveX) {
cur_mc._x = cur_mc._x + (hit_bot.speed * hit_bot.dir);
}
if (hit_bot.moveY) {
cur_mc._y = cur_mc._y + (hit_bot.speed * hit_bot.dir);
}
if (hit_bot.movedown) {
if (hit_bot._y < hit_bot.bottom) {
var _local1 = 2;
hit_bot._y = hit_bot._y + _local1;
cur_mc._y = cur_mc._y + _local1;
_game.bottom_copy[hit_bot._name]._y = _game.bottom_copy[hit_bot._name]._y + _local1;
}
}
if (hit_bot.tog) {
bottombox_mc.bottom11_mc.init();
hit_bot.tog = false;
}
} else {
cur_mc.jump = true;
cur_mc.vy = cur_mc.vy + Gr;
cur_mc._y = cur_mc._y + cur_mc.vy;
}
}
}
};
redbottom_arr = [6, 10];
redbottomsp_arr = [2.5, 2, 1.5];
redchrdep = 0;
for (var z in redbottom_arr) {
redchrdep++;
var rand = random(3);
var curbmc = bottombox_mc[("bottom" + redbottom_arr[z]) + "_mc"];
var curred = dead_mc.attachMovie("redchr" + rand, "redchr" + redchrdep, redchrdep);
curred._x = curbmc._x;
curred._y = curbmc._y;
curred.dir = (random(2) ? 1 : -1);
curred.speed = redbottomsp_arr[rand];
curred._xscale = (100 * curred.dir) * -1;
curred.bound_obj = curbmc.getBounds(this);
curred.onEnterFrame = function () {
var _local1 = this;
if (!_game.pause) {
if (((_local1._x - (_local1._width / 2)) < _local1.bound_obj.xMin) || ((_local1._x + (_local1._width / 2)) > _local1.bound_obj.xMax)) {
_local1.dir = _local1.dir * -1;
_local1._xscale = _local1._xscale * -1;
}
_local1._x = _local1._x + (_local1.speed * _local1.dir);
}
};
}
G_mc_arr = [];
init = function () {
this.pause = false;
mainchr_mc.init();
G_mc_arr = [mainchr_mc];
};
this.attachMovie("pop_level", "pop_level", 500020);
pop_level._x = (game.w / 2) - (pop_level._width / 2);
pop_level._y = (game.h / 2) - (pop_level._height / 2);
pop_level.gotoAndPlay("level" + lev);
trace("\uB798\uB514..");
this.pause = true;