Frame 1
this._lockroot = true;
cp_id = 2;
my_choice = null;
gLoad = getBytesLoaded();
gByte = getBytesTotal();
vari = Math.floor((100 * gLoad) / gByte);
if (vari >= 100) {
delete gLoad;
delete gByte;
delete vari;
this.gotoAndStop(6);
}
Instance of Symbol 111 MovieClip in Frame 1
onClipEvent (load) {
this._xscale = 0;
}
onClipEvent (enterFrame) {
this._xscale = _parent.vari;
}
Instance of Symbol 121 MovieClip in Frame 1
onClipEvent (load) {
this.onRelease = function () {
getURL ("http://www.dragongem.co.kr/advertisement.do?company=" + _root.cp_id, "_blank");
};
}
Frame 5
this.gotoAndPlay(1);
Frame 6
stop();
Instance of Symbol 139 MovieClip in Frame 6
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_parent.my_choice = 1;
_parent.gotoAndStop(7);
};
}
Instance of Symbol 143 MovieClip in Frame 6
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_parent.my_choice = 2;
_parent.gotoAndStop(7);
};
}
Frame 7
Click = function () {
};
Click.prototype.my_speed = 2;
Click.prototype.my_turnig = function () {
this.onEnterFrame = function () {
var right_end = null;
var left_end = null;
var move_mass = (this.my_speed * this.my_dir);
var next_cal = (Math.floor((((this._x + move_mass) + this._parent.x_offset) + ((this._width / 2) * this.my_dir)) / this._parent.tile_size) + 1);
var next_row = (Math.floor((((this._y + (this._height / 2)) + this._parent.y_offset) + 10) / this._parent.tile_size) + 1);
next_tile = eval ((("tile" + next_row) + "_") + next_cal);
if ((next_tile.my_property == 2) || (next_tile.my_property == 3)) {
this._x = this._x + move_mass;
if ((attack_flag == false) && (jump_flag == false)) {
if ((this.hitTest(this._parent.player.zone) && (this._parent.drop_flag == false)) && (this._parent.damage_flag == false)) {
if (this._parent.attack_flag == false) {
trace("\uCE90\uB9AD\uB370\uBBF8\uC9C01");
this._parent.my_damage(this.my_dir);
} else if ((this._parent.dir_con == "attack_r") && (this.my_dir == 1)) {
trace("\uCE90\uB9AD\uB370\uBBF8\uC9C02");
this._parent.my_damage(this.my_dir);
} else if ((this._parent.dir_con == "attack_l") && (this.my_dir == -1)) {
trace("\uCE90\uB9AD\uB370\uBBF8\uC9C03");
this._parent.my_damage(this.my_dir);
}
}
}
} else {
this.my_dir = this.my_dir * -1;
this.play();
}
};
};
Click.prototype.my_active = function () {
var _local2 = random(2);
if (_local2 == 1) {
this.my_dir = 1;
this.gotoAndStop(2);
} else {
this.my_dir = -1;
}
this.my_turnig();
};
Click.prototype.my_stun = function () {
var my_counter = 10;
this.onEnterFrame = function () {
my_counter = my_counter - 1;
if (my_counter == 0) {
this.my_turnig();
}
};
};
Click.prototype.my_push = function () {
trace("\uD478\uC2DC");
if (this._x >= this._parent.player._x) {
this._x = this._x + 40;
if (this.my_dir == 1) {
this.my_dir = this.my_dir * -1;
this.play();
}
} else {
this._x = this._x - 40;
if (this.my_dir == -1) {
this.my_dir = this.my_dir * -1;
this.play();
}
}
this.my_turnig();
};
MovieClip.prototype.__proto__ = new Click();
function ini2() {
dir_con = "idle_r";
inner_flag = true;
right_flag = false;
left_flag = false;
up_flag = false;
down_flag = false;
get_flag = false;
attack_flag = false;
move_flag = false;
jump_flag = false;
drop_flag = false;
ladder_flag = false;
damage_flag = false;
next_tile1 = null;
next_tile2 = null;
ladder_tile = null;
}
function my_move(dir) {
var move_dir = null;
if (dir == "r") {
dir_con = "move_r";
player.gotoAndStop("move_r");
move_dir = 1;
} else {
dir_con = "move_l";
player.gotoAndStop("move_l");
move_dir = -1;
}
if (((jump_flag == false) && (drop_flag == false)) && (move_flag == false)) {
move_flag = true;
this.onEnterFrame = function () {
if (out_check(move_dir)) {
} else {
var _local2 = move_speed * move_dir;
if ((next_tile1.my_property == 2) || (next_tile2.my_property == 2)) {
player._x = player._x + _local2;
} else {
player._x = player._x + _local2;
trace("\uBC88\uC9C0!!");
this.onEnterFrame = function () {
};
my_drop();
}
}
};
}
}
function my_up_down(dir) {
var move_dir = null;
if (dir == "u") {
move_dir = -1;
} else {
move_dir = 1;
}
if (ladder_check(dir)) {
player.gotoAndStop("ladder");
var keyListener2 = new Object(player);
keyListener2.onKeyUp = function () {
player.inner.stop();
};
keyListener2.onKeyDown = function () {
player.inner.play();
};
Key.addListener(keyListener2);
this.onEnterFrame = function () {
if (ladder_check(dir)) {
ladder_flag = true;
player._x = ladder_tile._x;
player._y = player._y + (move_speed * move_dir);
} else {
trace("\uC704\uC544\uB798 \uC548\uBA39\uB294 \uACF3\uC774\uB2E4~~~");
if (ladder_flag == true) {
ladder_flag = false;
jump_flag = false;
move_flag = false;
if (move_dir == 1) {
player._y = next_tile1._y - tile_size;
} else {
player._y = next_tile1._y - move_speed;
}
Key.removeListener(keyListener2);
if (dir_con == "idle_r") {
player.gotoAndStop("idle_r");
} else {
player.gotoAndStop("idle_l");
}
this.onEnterFrame = function () {
};
}
}
};
}
}
function my_drop() {
var drop_sound = new Sound();
drop_sound.attachSound("drop_sound");
drop_sound.start();
if (dir_con == "move_r") {
player.gotoAndStop("idle_r");
} else {
player.gotoAndStop("idle_l");
}
drop_flag = true;
this.onEnterFrame = function () {
var move_mass = (drop_speed * 1.5);
var x_check_pos1 = (player._x + (player_width / 2));
var x_check_pos2 = (player._x + ((player_width / 2) * -1));
var next_cal1 = (Math.floor((x_check_pos1 + x_offset) / tile_size) + 1);
var next_cal2 = (Math.floor((x_check_pos2 + x_offset) / tile_size) + 1);
var next_row = (Math.floor((((player._y + move_mass) + y_offset) + (player_height / 2)) / tile_size) + 1);
var next_tile1 = eval ((("tile" + next_row) + "_") + next_cal1);
var next_tile2 = eval ((("tile" + next_row) + "_") + next_cal2);
if ((((next_tile1.my_property == 2) || (next_tile2.my_property == 2)) || (next_tile1.my_property == undefined)) || (next_tile2.my_property == undefined)) {
var landing_sound = new Sound();
landing_sound.attachSound("landing_sound");
landing_sound.start();
trace("\uB099\uD558\uC5D0\uC11C \uCC29\uC9C0");
jump_flag = false;
damage_flag = false;
var sneped_pos = (next_tile1._y - (player_height / 2));
drop_flag = false;
player._y = sneped_pos;
this.onEnterFrame = function () {
};
continue_move_check();
} else {
player._y = player._y + move_mass;
}
};
}
function my_jump() {
trace("\uCA5C\uD504!!");
this.onEnterFrame = function () {
};
var _local3 = new Sound();
_local3.attachSound("jump_sound");
_local3.start();
var move_xmass = 0;
if ((right_flag == false) && (left_flag == false)) {
trace("\uC81C\uC790\uB9AC \uC810\uD504!!");
} else if (right_flag == true) {
var move_xmass = move_speed;
} else {
var move_xmass = (move_speed * -1);
}
var counter = 0;
var dir = -1;
this.onEnterFrame = function () {
var _local2 = null;
if (right_flag == true) {
_local2 = 1;
} else {
_local2 = -1;
}
if (!out_check(_local2)) {
if (counter == jump_height) {
dir = dir * -1;
}
if (counter == (jump_height * 2)) {
var _local3 = new Sound();
_local3.attachSound("landing_sound");
_local3.start();
trace("\uC810\uD504\uC5D0\uC11C \uCC29\uC9C0");
damage_flag = false;
jump_flag = false;
if (jump_bottom_check()) {
my_drop();
} else {
continue_move_check();
}
} else if (dir == 1) {
if (!up_stage_check()) {
player._y = player._y + (jump_speed * dir);
player._x = player._x + move_xmass;
} else {
jump_flag = false;
this.onEnterFrame = function () {
};
continue_move_check();
}
} else {
player._y = player._y + (jump_speed * dir);
player._x = player._x + move_xmass;
}
counter = counter + 1;
} else {
trace("\uBCBD\uC5D0\uCDA9\uB3CC!!");
this.onEnterFrame = function () {
};
move_flag = false;
jump_flag = false;
my_drop();
}
};
}
function my_attack() {
this.onEnterFrame = function () {
};
attack_flag = true;
if (((dir_con == "move_r") || (dir_con == "idle_r")) || (dir_con == "attack_r")) {
dir_con = "attack_r";
player.gotoAndPlay("attack_r");
} else {
dir_con = "attack_l";
player.gotoAndPlay("attack_l");
}
}
function reset_form() {
attack_flag = false;
if (damage_flag == false) {
if (continue_move_check()) {
} else if (((dir_con == "attack_r") || (dir_con == "idle_r")) || (dir_con == "move_r")) {
dir_con = "idle_r";
right_flag = false;
left_flag = false;
player.gotoAndStop("idle_r");
} else {
dir_con = "idle_l";
right_flag = false;
left_flag = false;
player.gotoAndStop("idle_l");
}
} else {
damage_flag = false;
if ((dir_con == "idle_r") || (dir_con == "attack_r")) {
dir_con = "idle_r";
player.gotoAndStop("idle_r");
} else {
dir_con = "idle_l";
player.gotoAndStop("idle_l");
}
}
}
function hit_test() {
var long = (enemy_order - 1);
var player_cal = (Math.floor((player._y + y_offset) / tile_size) + 1);
var i = 1;
while (i <= long) {
var what = eval ("enemy" + i);
var what_cal = (Math.floor((what._y + y_offset) / tile_size) + 1);
if (what_cal == player_cal) {
if (dir_con == "attack_r") {
var max_pos = (player._x + attack_range);
var min_pos = player._x;
var what_pos = what._x;
} else {
var max_pos = player._x;
var min_pos = (player._x - attack_range);
var what_pos = what._x;
}
if ((what_pos >= min_pos) && (what_pos <= max_pos)) {
var hit_sound = new Sound();
var what_sound = ("hit_sound" + random(2));
hit_sound.attachSound(what_sound);
hit_sound.start();
trace("\uC801 \uD79B\uD2B8!!");
what.my_push();
what.inner.play();
}
}
i++;
}
}
function continue_move_check() {
if (move_flag == true) {
move_flag = false;
if (right_flag == true) {
my_move("r");
}
if (left_flag == true) {
my_move("l");
}
return(true);
}
return(false);
}
function up_stage_check() {
var x_check_pos1 = (player._x + (player_width / 2));
var x_check_pos2 = (player._x - (player_width / 2));
var next_cal1 = (Math.floor((x_check_pos1 + x_offset) / tile_size) + 1);
var next_cal2 = (Math.floor((x_check_pos2 + x_offset) / tile_size) + 1);
var next_row = (Math.floor(((player._y + y_offset) + (player_height / 2)) / tile_size) + 1);
var next_tile1 = eval ((("tile" + next_row) + "_") + next_cal1);
var next_tile2 = eval ((("tile" + next_row) + "_") + next_cal2);
if ((next_tile1.my_property == 2) || (next_tile2.my_property == 2)) {
var landing_sound = new Sound();
landing_sound.attachSound("landing_sound");
landing_sound.start();
trace("\uACC4\uB2E8 \uC62C\uB77C\uD0C0\uB77C!!");
damage_flag = false;
player._y = next_tile1._y - (player_height / 2);
jump_con = false;
return(true);
}
}
function jump_bottom_check() {
var x_check_pos1 = (player._x + (player_width / 2));
var x_check_pos2 = (player._x - (player_width / 2));
var next_cal1 = (Math.floor((x_check_pos1 + x_offset) / tile_size) + 1);
var next_cal2 = (Math.floor((x_check_pos2 + x_offset) / tile_size) + 1);
var next_row = (Math.floor(((player._y + y_offset) + (player_height / 2)) / tile_size) + 1);
var next_tile1 = eval ((("tile" + next_row) + "_") + next_cal1);
var next_tile2 = eval ((("tile" + next_row) + "_") + next_cal2);
if ((next_tile1.my_property == 1) && (next_tile2.my_property == 1)) {
trace("\uB5A8\uC5B4\uC838\uC57C \uACA0\uB2E4");
return(true);
}
}
function out_check(move_dir) {
next_tile1 = null;
next_tile2 = null;
var move_mass = (move_speed * move_dir);
var x_check_pos1 = ((player._x + move_mass) + ((player_width / 2) * move_dir));
var x_check_pos2 = ((player._x + move_mass) - ((player_width / 2) * move_dir));
next_cal1 = Math.floor((x_check_pos1 + x_offset) / tile_size) + 1;
next_cal2 = Math.floor((x_check_pos2 + x_offset) / tile_size) + 1;
var next_row = (Math.floor(((player._y + y_offset) + (player_height / 2)) / tile_size) + 1);
next_tile1 = eval ((("tile" + next_row) + "_") + next_cal1);
next_tile2 = eval ((("tile" + next_row) + "_") + next_cal2);
if ((next_tile1.my_property == undefined) || (next_tile2.my_property == undefined)) {
inner_flag = false;
trace("\uC7A5\uC678");
this.onEnterFrame = function () {
};
return(true);
}
inner_flag = true;
return(false);
}
function ladder_check(dir) {
next_tile1 = null;
next_tile2 = null;
ladder_tile = null;
var x_check_pos1 = (player._x + (player_width / 2));
var x_check_pos2 = (player._x - (player_width / 2));
next_cal1 = Math.floor((x_check_pos1 + x_offset) / tile_size) + 1;
next_cal2 = Math.floor((x_check_pos2 + x_offset) / tile_size) + 1;
if (dir == "u") {
var next_row = (Math.floor(((player._y + y_offset) + move_speed) / tile_size) + 1);
} else {
var next_row = (Math.floor((((player._y + y_offset) - move_speed) + (player_height / 2)) / tile_size) + 1);
}
next_tile1 = eval ((("tile" + next_row) + "_") + next_cal1);
next_tile2 = eval ((("tile" + next_row) + "_") + next_cal2);
if ((next_tile1.my_property == 3) || (next_tile2.my_property == 3)) {
if (next_tile1.my_property == 3) {
ladder_tile = next_tile1;
} else {
ladder_tile = next_tile2;
}
return(true);
}
return(false);
}
function item_drop(xpos, ypos, id) {
if (xpos < 50) {
xpos = 50;
}
if (xpos >= 750) {
xpos = 750;
}
var item_drop_sound = new Sound(this);
item_drop_sound.attachSound("item_drop");
item_drop_sound.start();
var what = ((("item" + level_num) + "_") + id);
var name = ("item" + (kill_num + 1));
var depth = item_depth;
item_depth = item_depth + 1;
this.attachMovie(what, name, depth);
var item_myself = eval (name);
item_myself._x = xpos;
item_myself._y = ypos;
item_myself.my_expire = 80;
item_myself.my_height = 40;
item_myself.dir = -1;
item_myself.onEnterFrame = function () {
this._y = this._y + (10 * this.dir);
this.my_height = this.my_height - 10;
if (this.my_height == 0) {
this.dir = this.dir * -1;
}
if ((this.dir == 1) && (this.my_height == -40)) {
this.onEnterFrame = function () {
this.my_expire = this.my_expire - 1;
if (this.my_expire == 0) {
this.removeMovieClip();
}
};
}
};
}
function gate_open() {
trace("\uAC8C\uC774\uD2B8 \uC5F4\uB824\uB77C");
var gate_sound = new Sound();
gate_sound.attachSound("gate_sound");
gate_sound.start();
var what = eval (end_gate);
_root.attachMovie("potal", "potal", 2);
potal._x = what._x;
potal._y = what._y;
potal.gotoAndPlay(2);
potal.onRelease = function () {
getURL ("http://www.dragongem.co.kr/advertisement.do?company=" + _root.cp_id, "_blank");
};
what.onEnterFrame = function () {
var temp_cal = (Math.floor((this._parent.player._y + this._parent.y_offset) / this._parent.tile_size) + 1);
var temp_row = (Math.floor((this._parent.player._x + this._parent.x_offset) / this._parent.tile_size) + 1);
var temp_tile = eval ((("this._parent.tile" + temp_cal) + "_") + temp_row);
if (temp_tile == what) {
this._parent.player._name = "temp_player";
level_up();
delete this.onEnterFrame;
}
};
}
function my_damage(dir) {
if (damage_flag == false) {
damage_flag = true;
if (dir == -1) {
left_flag = true;
right_flag = false;
dir_con = "idle_r";
player.gotoAndPlay("damage_l");
} else {
left_flag = false;
right_flag = true;
dir_con = "idle_l";
player.gotoAndPlay("damage_r");
}
ladder_flag = false;
move_flag = false;
if (inner_flag == true) {
my_jump();
} else {
damage_flag = false;
}
player_life = player_life - 1;
bar.energy_bar.play();
if (player_life == 0) {
trace("!!!! GAME OVER !!!!");
player.gotoAndPlay("my_death");
player._name = "temp_player";
stopAllSounds();
var _local2 = new Sound();
_local2.attachSound("bad_ending");
_local2.start();
restart();
this.onEnterFrame = function () {
};
}
}
}
function get_item() {
var long = kill_num;
var i = 1;
while (i <= long) {
var what = eval ("item" + i);
if (what.hitTest(player)) {
trace(what + "\uC544\uD15C \uBA39\uC5C8\uB2F9!!");
var get_item_sound = new Sound();
get_item_sound.attachSound("get_item_sound");
get_item_sound.start();
my_score = my_score + 30;
what.removeMovieClip();
return;
}
i++;
}
}
var keyListener = new Object(this);
keyListener.onKeyDown = function () {
var _local1 = Key.getCode();
switch (_local1) {
case 38 :
if (damage_flag == false) {
my_up_down("u");
}
break;
case 40 :
if (damage_flag == false) {
my_up_down("d");
}
break;
case 37 :
if ((ladder_flag == false) && (damage_flag == false)) {
left_flag = true;
right_flag = false;
if (attack_flag == false) {
my_move("l");
}
}
break;
case 39 :
if ((ladder_flag == false) && (damage_flag == false)) {
right_flag = true;
left_flag = false;
if (attack_flag == false) {
my_move("r");
}
}
break;
case 90 :
trace("\uC544\uC774\uD15C\uB8E8\uD305");
get_item();
break;
case 88 :
if (((((jump_flag == false) && (drop_flag == false)) && (ladder_flag == false)) && (inner_flag == true)) && (damage_flag == false)) {
jump_flag = true;
my_jump();
}
break;
case 67 :
trace("\uC5B4\uD0DD");
if (!(((((attack_flag == false) && (jump_flag == false)) && (drop_flag == false)) && (ladder_flag == false)) && (damage_flag == false))) {
break;
}
my_attack();
}
};
keyListener.onKeyUp = function () {
if (damage_flag == false) {
if (ladder_flag == true) {
this.onEnterFrame = function () {
};
} else if ((jump_flag == false) && (drop_flag == false)) {
var _local2 = Key.getCode();
if ((_local2 == 37) || (_local2 == 39)) {
if ((right_flag == true) || (left_flag == true)) {
right_flag = false;
left_flag = false;
move_flag = false;
if (attack_flag == false) {
if (((dir_con == "move_r") || (dir_con == "idle_r")) || (dir_con == "attack_r")) {
dir_con = "idle_r";
player.gotoAndStop("idle_r");
} else {
dir_con = "idle_l";
player.gotoAndStop("idle_l");
}
}
attack_flag = false;
trace("\uB531\uC11C\uB77C");
this.onEnterFrame = function () {
};
}
} else {
trace((right_flag + "\uCA4C\uBE44") + left_flag);
}
} else {
var _local2 = Key.getCode();
if ((_local2 == 37) || (_local2 == 39)) {
right_flag = false;
left_flag = false;
if (attack_flag == false) {
if (dir_con == "move_r") {
dir_con = "idle_r";
player.gotoAndStop("idle_r");
} else {
dir_con = "idle_l";
player.gotoAndStop("idle_l");
}
}
}
}
}
};
Key.addListener(keyListener);
function ini1() {
loaded_map = [];
stage_width = 800;
stage_height = 600;
tile_size = 40;
tile_width_num = null;
tile_height_num = null;
x_offset = 26;
y_offset = 30;
end_gate = null;
player_width = 40;
player_height = 88;
move_speed = 5;
drop_speed = 20;
jump_height = 6;
jump_speed = 22;
attack_range = 100;
enemy_order = 1;
enemy_depth = 999;
kill_num = 0;
item_depth = 9999;
}
function ini_cal() {
tile_width_num = Math.floor(stage_width / tile_size) + 1;
tile_height_num = Math.floor(stage_height / tile_size) + 1;
}
function setting_tile() {
var long1 = tile_height_num;
var long2 = tile_width_num;
var i = 1;
while (i <= long1) {
var j = 1;
while (j <= long2) {
var name = ((("tile" + i) + "_") + j);
var depth = (((i - 1) * tile_width_num) + j);
var xpos = (((tile_size * (j - 1)) + (tile_size / 2)) - x_offset);
var ypos = (((tile_size * (i - 1)) + (tile_size / 2)) - y_offset);
this.attachMovie("tile", name, depth);
var tile_myself = eval (name);
tile_myself._width = tile_size;
tile_myself._height = tile_size;
tile_myself._x = xpos;
tile_myself._y = ypos;
tile_myself._visible = false;
tile_myself.row_num = i;
tile_myself.cal_num = j;
tile_myself.my_property = null;
j++;
}
i++;
}
}
function parsing_xml(what) {
loaded_map = [];
var my_xml = new XML(this);
my_xml.ignoreWhite = true;
what = what + ".xml";
my_xml.load(what);
my_xml.onLoad = function () {
trace("\uB85C\uB4DC\uC644\uB8CC");
var total_data_core = my_xml.firstChild.childNodes;
var element_length = total_data_core.length;
var i = 0;
while (i < element_length) {
var node = total_data_core[i].firstChild;
var input_arr = node.nodeValue.split(",");
loaded_map.push(input_arr);
node = node.nextSibling;
i++;
}
row_num = loaded_map.length;
cal_num = loaded_map[0].length;
var i = 1;
while (i <= row_num) {
var j = 1;
while (j <= cal_num) {
var temp_num = loaded_map[i - 1][j - 1];
var what = eval ((("tile" + i) + "_") + j);
what.gotoAndStop(temp_num);
what.my_property = temp_num;
if (temp_num == "4") {
player._x = what._x;
player._y = what._y;
var gate_sound = new Sound();
gate_sound.attachSound("gate_sound");
gate_sound.start();
_root.attachMovie("potal", "potal", 2);
potal._x = what._x;
potal._y = what._y;
potal.onRelease = function () {
getURL ("http://www.dragongem.co.kr/advertisement.do?company=" + _root.cp_id, "_blank");
};
}
if (temp_num == "5") {
end_gate = targetPath(what);
}
if (temp_num == "6") {
var id = (random(2) + 1);
var what_image = ((("enemy" + level_num) + "_") + id);
var name = ("enemy" + enemy_order);
var depth = enemy_depth;
enemy_order = enemy_order + 1;
enemy_depth = enemy_depth + 1;
_root.attachMovie(what_image, name, depth);
var enemy_myself = eval (name);
enemy_myself._x = what._x;
enemy_myself._y = what._y;
enemy_myself.my_life = 2;
enemy_myself.id = id;
enemy_myself.my_active();
}
j++;
}
i++;
}
};
}
function level_up() {
stopAllSounds();
if (level_num < 3) {
trace("!!!! STAGE CLEAR !!!!");
level_num = level_num + 1;
for (name in this) {
if ((typeof(eval ("this." + name)) == "movieclip") && (eval ("this." + name)._name != "temp_player")) {
eval ("this." + name).removeMovieClip();
}
}
temp_player._name = "player";
player.gotoAndStop(1);
ini1();
ini_cal();
setting_tile();
parsing_xml("http://flash.jr.naver.com/game2/flash/14/1400/map" + level_num);
loop_sound();
bg.play();
ini2();
player._visible = true;
} else {
trace("!!!! All STAGE CLEAR !!!!");
player._name = "temp_player";
stopAllSounds();
var good_ending_sound = new Sound();
good_ending_sound.attachSound("good_ending");
good_ending_sound.start();
restart();
this.onEnterFrame = function () {
};
}
}
function loop_sound() {
var _local2 = "loop" + level_num;
var _local1 = new Sound();
_local1.attachSound(_local2);
_local1.start(0, 999);
}
function restart() {
var time_obj = new Object(this);
time_obj.interval = function () {
for (name in this) {
if (typeof(eval ("this." + name)) == "movieclip") {
eval ("this." + name).removeMovieClip();
}
}
_root.bg.gotoAndStop("ending");
clearInterval(ID);
};
ID = setInterval(time_obj, "interval", 1000);
}
System.security.loadPolicyFile("http://flash.jr.naver.com/crossdomain.xml");
level_num = 1;
my_score = 0;
player_life = 10;
if (my_choice == 1) {
wait1._name = "player";
wait2.swapDepths(1221);
wait2.removeMovieClip();
} else {
wait2._name = "player";
wait1.swapDepths(1221);
wait1.removeMovieClip();
}
ini1();
ini_cal();
setting_tile();
parsing_xml("http://flash.jr.naver.com/game2/flash/14/1400/map" + level_num);
loop_sound();
ini2();
Instance of Symbol 121 MovieClip in Frame 7
onClipEvent (load) {
this.onRelease = function () {
getURL ("http://www.dragongem.co.kr/advertisement.do?company=" + _root.cp_id, "_blank");
};
}
Instance of Symbol 190 MovieClip "wait1" in Frame 7
onClipEvent (load) {
this.swapDepths(6666);
}
Instance of Symbol 214 MovieClip "wait2" in Frame 7
onClipEvent (load) {
this.swapDepths(6665);
}
Symbol 22 MovieClip [tile] Frame 1
stop();
Symbol 22 MovieClip [tile] Frame 2
stop();
Symbol 22 MovieClip [tile] Frame 3
stop();
Symbol 22 MovieClip [tile] Frame 4
stop();
Symbol 22 MovieClip [tile] Frame 5
stop();
Symbol 22 MovieClip [tile] Frame 6
stop();
Symbol 30 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 5
_parent.my_life = _parent.my_life - 1;
if (_parent.my_life == 0) {
trace("\uD55C\uB188 \uC18C\uBA78!!");
_parent._parent.item_drop(_parent._x, _parent._y, _parent.id);
_parent._parent.kill_num = _parent._parent.kill_num + 1;
if (_parent._parent.kill_num == (_parent._parent.enemy_order - 1)) {
trace("\uBAA8\uB4E0 \uC801\uC758 \uC18C\uBA78!!");
_parent._parent.gate_open();
}
_parent.removeMovieClip();
}
Symbol 31 MovieClip [enemy3_2] Frame 1
stop();
Symbol 31 MovieClip [enemy3_2] Frame 2
stop();
Symbol 40 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 5
_parent.my_life = _parent.my_life - 1;
if (_parent.my_life == 0) {
trace("\uD55C\uB188 \uC18C\uBA78!!");
_parent._parent.item_drop(_parent._x, _parent._y, _parent.id);
_parent._parent.kill_num = _parent._parent.kill_num + 1;
if (_parent._parent.kill_num == (_parent._parent.enemy_order - 1)) {
trace("\uBAA8\uB4E0 \uC801\uC758 \uC18C\uBA78!!");
_parent._parent.gate_open();
}
_parent.removeMovieClip();
}
Symbol 41 MovieClip [enemy3_1] Frame 1
stop();
Symbol 41 MovieClip [enemy3_1] Frame 2
stop();
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 5
_parent.my_life = _parent.my_life - 1;
if (_parent.my_life == 0) {
trace("\uD55C\uB188 \uC18C\uBA78!!");
_parent._parent.item_drop(_parent._x, _parent._y, _parent.id);
_parent._parent.kill_num = _parent._parent.kill_num + 1;
if (_parent._parent.kill_num == (_parent._parent.enemy_order - 1)) {
trace("\uBAA8\uB4E0 \uC801\uC758 \uC18C\uBA78!!");
_parent._parent.gate_open();
}
_parent.removeMovieClip();
}
Symbol 51 MovieClip [enemy2_2] Frame 1
stop();
Symbol 51 MovieClip [enemy2_2] Frame 2
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 5
_parent.my_life = _parent.my_life - 1;
if (_parent.my_life == 0) {
trace("\uD55C\uB188 \uC18C\uBA78!!");
_parent._parent.item_drop(_parent._x, _parent._y, _parent.id);
_parent._parent.kill_num = _parent._parent.kill_num + 1;
if (_parent._parent.kill_num == (_parent._parent.enemy_order - 1)) {
trace("\uBAA8\uB4E0 \uC801\uC758 \uC18C\uBA78!!");
_parent._parent.gate_open();
}
_parent.removeMovieClip();
}
Symbol 62 MovieClip [enemy2_1] Frame 1
stop();
Symbol 62 MovieClip [enemy2_1] Frame 2
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 5
_parent.my_life = _parent.my_life - 1;
if (_parent.my_life == 0) {
trace("\uD55C\uB188 \uC18C\uBA78!!");
_parent._parent.item_drop(_parent._x, _parent._y, _parent.id);
_parent._parent.kill_num = _parent._parent.kill_num + 1;
if (_parent._parent.kill_num == (_parent._parent.enemy_order - 1)) {
trace("\uBAA8\uB4E0 \uC801\uC758 \uC18C\uBA78!!");
_parent._parent.gate_open();
}
_parent.removeMovieClip();
}
Symbol 71 MovieClip [enemy1_2] Frame 1
stop();
Symbol 71 MovieClip [enemy1_2] Frame 2
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 5
_parent.my_life = _parent.my_life - 1;
if (_parent.my_life == 0) {
trace("\uD55C\uB188 \uC18C\uBA78!!");
_parent._parent.item_drop(_parent._x, _parent._y, _parent.id);
_parent._parent.kill_num = _parent._parent.kill_num + 1;
if (_parent._parent.kill_num == (_parent._parent.enemy_order - 1)) {
trace("\uBAA8\uB4E0 \uC801\uC758 \uC18C\uBA78!!");
_parent._parent.gate_open();
}
_parent.removeMovieClip();
}
Symbol 81 MovieClip [enemy1_1] Frame 1
stop();
Symbol 81 MovieClip [enemy1_1] Frame 2
stop();
Symbol 88 MovieClip [potal] Frame 1
stop();
Symbol 88 MovieClip [potal] Frame 2
play();
Symbol 88 MovieClip [potal] Frame 13
this.gotoAndPlay(2);
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
stop();
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 2
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
stop();
Symbol 155 MovieClip Frame 3
stop();
Symbol 155 MovieClip Frame 4
stop();
Instance of Symbol 133 MovieClip in Symbol 155 MovieClip Frame 4
onClipEvent (load) {
this.onRelease = function () {
stopAllSounds();
_parent._parent.gotoAndStop(6);
};
}
Symbol 173 MovieClip Frame 4
stop();
Symbol 173 MovieClip Frame 8
stop();
Symbol 182 MovieClip Frame 1
play();
Symbol 182 MovieClip Frame 6
this.gotoAndPlay(1);
Symbol 190 MovieClip Frame 6
stop();
Symbol 190 MovieClip Frame 12
stop();
Symbol 190 MovieClip Frame 19
stop();
Symbol 190 MovieClip Frame 26
stop();
Instance of Symbol 173 MovieClip in Symbol 190 MovieClip Frame 27
onClipEvent (load) {
if (_parent.combo == undefined) {
_parent.combo = 15;
_parent.onEnterFrame = function () {
this.combo = this.combo - 1;
if (this.combo == 0) {
delete this.combo;
delete this.onEnterFrame;
}
};
} else {
delete _parent.combo;
delete _parent.onEnterFrame;
this.gotoAndPlay("step2");
}
}
Symbol 190 MovieClip Frame 29
_parent.hit_test();
Symbol 190 MovieClip Frame 33
_parent.reset_form();
stop();
Symbol 190 MovieClip Frame 36
_parent.hit_test();
Symbol 190 MovieClip Frame 40
_parent.reset_form();
stop();
Symbol 190 MovieClip Frame 57
_parent.reset_form();
stop();
Symbol 190 MovieClip Frame 74
_parent.reset_form();
stop();
Symbol 190 MovieClip Frame 80
stop();
Symbol 190 MovieClip Frame 122
stop();
Symbol 201 MovieClip Frame 4
stop();
Symbol 201 MovieClip Frame 8
stop();
Symbol 209 MovieClip Frame 1
play();
Symbol 209 MovieClip Frame 6
this.gotoAndPlay(1);
Symbol 214 MovieClip Frame 6
stop();
Symbol 214 MovieClip Frame 12
stop();
Symbol 214 MovieClip Frame 19
stop();
Symbol 214 MovieClip Frame 26
stop();
Instance of Symbol 201 MovieClip in Symbol 214 MovieClip Frame 27
onClipEvent (load) {
if (_parent.combo == undefined) {
_parent.combo = 15;
_parent.onEnterFrame = function () {
this.combo = this.combo - 1;
if (this.combo == 0) {
delete this.combo;
delete this.onEnterFrame;
}
};
} else {
delete _parent.combo;
delete _parent.onEnterFrame;
this.gotoAndPlay("step2");
}
}
Symbol 214 MovieClip Frame 29
_parent.hit_test();
Symbol 214 MovieClip Frame 33
_parent.reset_form();
stop();
Instance of Symbol 201 MovieClip in Symbol 214 MovieClip Frame 34
onClipEvent (load) {
if (_parent.combo == undefined) {
_parent.combo = 15;
_parent.onEnterFrame = function () {
this.combo = this.combo - 1;
if (this.combo == 0) {
delete this.combo;
delete this.onEnterFrame;
}
};
} else {
delete _parent.combo;
delete _parent.onEnterFrame;
this.gotoAndPlay("step2");
}
}
Symbol 214 MovieClip Frame 36
_parent.hit_test();
Symbol 214 MovieClip Frame 40
_parent.reset_form();
stop();
Symbol 214 MovieClip Frame 57
_parent.reset_form();
stop();
Symbol 214 MovieClip Frame 74
_parent.reset_form();
stop();
Symbol 214 MovieClip Frame 80
stop();
Symbol 214 MovieClip Frame 122
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 2
stop();
Symbol 231 MovieClip Frame 3
stop();
Symbol 231 MovieClip Frame 4
stop();
Symbol 231 MovieClip Frame 5
stop();
Symbol 231 MovieClip Frame 6
stop();
Symbol 231 MovieClip Frame 7
stop();
Symbol 231 MovieClip Frame 8
stop();
Symbol 231 MovieClip Frame 9
stop();
Symbol 231 MovieClip Frame 10
stop();
Symbol 231 MovieClip Frame 11
stop();
Symbol 231 MovieClip Frame 12
stop();
Symbol 231 MovieClip Frame 13
stop();
Symbol 231 MovieClip Frame 14
stop();
Symbol 231 MovieClip Frame 15
stop();
Symbol 231 MovieClip Frame 16
stop();
Symbol 231 MovieClip Frame 17
stop();
Symbol 237 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 2
stop();