Frame 1
function nextFrameGo() {
play();
}
stop();
System.useCodepage = true;
var gems = new GemsData();
Frame 2
function _reload() {
box.removeMovieClip();
gotoAndPlay (1);
}
stop();
var runtime = 0;
button_play.enabled = false;
_root.initGame = function () {
button_play.enabled = true;
};
_root.startGame = function () {
play();
};
_root.resetGame = function () {
};
_root.isStart = function () {
var _local2 = _root;
var _local1 = _local2.gems.getLoadVars();
_local1.mode = 1;
_local2.gems.sendData(_local1, _local2.gems.lv_r1);
};
var lv = _root.gems.getLoadVars();
lv.mode = 0;
_root.gems.sendData(lv, _root.gems.lv_r0);
Instance of Symbol 246 MovieClip "rule" in Frame 2
onClipEvent (load) {
this._visible = 0;
}
Frame 3
function reload() {
gotoAndPlay (2);
}
this.stop();
_root.startGame = function () {
board.reset();
};
Symbol 12 MovieClip [Base64] Frame 1
function encode(code) {
var _local2 = code;
var _local1 = 0;
_local2 = _local2 + "";
var len = _local2.length;
var _local3 = "";
while (len > 2) {
_local3 = _local3 + table[_local2.charCodeAt(0 + _local1) >> 2];
_local3 = _local3 + table[((_local2.charCodeAt(0 + _local1) & 3) << 4) + (_local2.charCodeAt(1 + _local1) >> 4)];
_local3 = _local3 + table[((_local2.charCodeAt(1 + _local1) & 15) << 2) + (_local2.charCodeAt(2 + _local1) >> 6)];
_local3 = _local3 + table[_local2.charCodeAt(2 + _local1) & 63];
_local1 = _local1 + 3;
len = len - 3;
}
if (len != 0) {
_local3 = _local3 + table[_local2.charCodeAt(0 + _local1) >> 2];
if (len > 1) {
_local3 = _local3 + table[((_local2.charCodeAt(0 + _local1) & 3) << 4) + (_local2.charCodeAt(1 + _local1) >> 4)];
_local3 = _local3 + table[(_local2.charCodeAt(1 + _local1) & 15) << 2];
_local3 = _local3 + pad;
} else {
_local3 = _local3 + table[(_local2.charCodeAt(0 + _local1) & 3) << 4];
_local3 = _local3 + pad;
_local3 = _local3 + pad;
}
}
return(_local3);
}
function serverComm(mode, score, lvRecv) {
var _local2 = _root;
var _local3 = new LoadVars();
_local3.mode = mode;
_local3.gameid = _local2.game_id;
_local3.eventid = _local2.eventid;
_local3.playerid = _local2.playerid;
i = 1;
while (i <= 10) {
var _local1 = "param" + i;
if ((_local2[_local1] != null) && (_local2[_local1] != undefined)) {
_local3[_local1] = _local2[_local1];
}
i++;
}
_local3.seq = _local2.seq;
_local3.score = this.encode(score);
if (_local2._mode_demo) {
_local3.sendAndLoad("http://hosting.neocrew.co.kr/netgame/comm.php", lvRecv, "POST");
} else {
_local3.sendAndLoad(_local2.server_page, lvRecv, "POST");
}
}
this.stop();
var table = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/", ""];
var pad = "=";
Symbol 18 Button
on (release) {
submit_btn.enabled = false;
save();
}
Symbol 22 Button
on (release) {
cancel_btn.enabled = false;
_parent._reload();
}
Symbol 32 Button
on (release) {
submit_btn.enabled = false;
_root.isStart();
}
Symbol 40 Button
on (release) {
this.removeMovieClip();
}
Symbol 45 Button
on (release) {
submit_btn.enabled = false;
_parent._reload();
}
Symbol 48 MovieClip [mc_msgBox] Frame 1
function save() {
if (message.text.length == 0) {
_parent._reload();
} else {
var _local1 = new LoadVars();
var _local2 = new LoadVars();
_local2.onLoad = function (success) {
if (success) {
if (this.RC > 0) {
_parent._reload();
} else {
gotoAndPlay ("error");
message.text = this.MESSAGE;
}
} else {
gotoAndPlay ("error");
box.message.text = "\uC11C\uBC84\uC640 \uD1B5\uC2E0\uC774 \uBD88\uAC00\uB2A5\uD569\uB2C8\uB2E4.";
}
};
_local1.mode = 2;
_local1.score = score.text;
_local1.remark = message.text;
_local1.sendAndLoad(_root.my_url, _local2, "POST");
}
}
this.stop();
this._x = (_parent.width - this._width) >> 1;
this._y = (_parent.height - this._height) >> 1;
this.stop();
frame = "hiscore";
submit_btn.enabled = false;
message.onChanged = function () {
if (message.length > 0) {
submit_btn.enabled = true;
} else {
submit_btn.enabled = false;
}
};
Symbol 48 MovieClip [mc_msgBox] Frame 9
this.stop();
frame = "gameOver";
submit_btn.enabled = true;
Symbol 48 MovieClip [mc_msgBox] Frame 17
this.stop();
frame = "error";
submit_btn.enabled = true;
Symbol 48 MovieClip [mc_msgBox] Frame 24
this.stop();
frame = "buy";
submit_btn.enabled = true;
Symbol 51 MovieClip Frame 1
stop();
Symbol 63 MovieClip [e_bullet_2] Frame 1
function erase() {
_parent.erase(this);
this.removeMovieClip();
}
function explode() {
erase();
}
Instance of Symbol 51 MovieClip in Symbol 63 MovieClip [e_bullet_2] Frame 1
onClipEvent (load) {
var bullet = _parent;
var enemy_bullet = bullet._parent;
var stages = enemy_bullet._parent;
var flight = stages.flight;
var speed = 5;
bullet.damage = 1;
}
onClipEvent (enterFrame) {
bullet._x = bullet._x - speed;
if ((bullet._x + bullet._width) < 0) {
bullet.erase();
} else {
flight.checkHit(bullet);
}
}
Symbol 63 MovieClip [e_bullet_2] Frame 8
this.stop();
Symbol 65 MovieClip [e_bullet_1] Frame 1
function erase() {
_parent.erase(this);
this.removeMovieClip();
}
function explode() {
erase();
}
this.stop();
Instance of Symbol 51 MovieClip in Symbol 65 MovieClip [e_bullet_1] Frame 1
onClipEvent (load) {
var bullet = _parent;
var enemy_bullet = bullet._parent;
var stages = enemy_bullet._parent;
var flight = stages.flight;
var speed = 12;
bullet.damage = 1;
}
onClipEvent (enterFrame) {
bullet._x = bullet._x - speed;
if ((bullet._x + bullet._width) < 0) {
bullet.erase();
} else {
flight.checkHit(bullet);
}
}
Symbol 66 MovieClip [under_map] Frame 1
function add_map() {
var _local1 = 10;
var _local2 = maps.length;
if ((_local2 > 0) && (maps[_local2 - 1].position() > board.width)) {
return(false);
}
if (_local2 > 0) {
do {
var b = false;
i = 0;
while (i < _local2) {
if (_local1 == maps[i].getDepth()) {
_local1++;
b = true;
}
i++;
}
} while (b);
}
var map_name = ("under_map_" + String(++kind));
kind = kind % 3;
var name = ("map_" + String(_local1));
var _local3 = attachMovie(map_name, name, _local1);
_local3.position = function () {
var _local1 = this;
return(Math.floor((_local1._x + _local1.bg._x) + _local1.bg._width));
};
_local3._x = ((_local2 > 0) ? (maps[_local2 - 1].position() - 1) : 0);
_local3._y = 0;
maps.push(_local3);
return(true);
}
function erase_map(map) {
var _local1 = map;
i = 0;
while (i < maps.length) {
if (maps[i] == _local1) {
maps.splice(i, 1);
_local1.removeMovieClip();
return;
}
i++;
}
}
stop();
var kind = 0;
Instance of Symbol 51 MovieClip in Symbol 66 MovieClip [under_map] Frame 1
onClipEvent (load) {
var map = _parent;
var stages = map._parent;
var board = stages._parent;
map.stages = map._parent;
map.board = map.stages._parent;
map.maps = new Array();
while (map.add_map()) {
}
}
onClipEvent (enterFrame) {
while (map.add_map()) {
}
}
Symbol 67 MovieClip [stages] Frame 1
this.stop();
Instance of Symbol 51 MovieClip in Symbol 67 MovieClip [stages] Frame 1
onClipEvent (load) {
var stages = _parent;
stages.attachMovie("under_map", "under_map", 100);
stages.attachMovie("my_bullet_board", "my_bullet", 200);
stages.attachMovie("item", "item", 400);
stages.attachMovie("enemy_bullet_board", "enemy_bullet", 500);
stages.attachMovie("enemy", "enemy", 600);
stages.attachMovie("upper_map", "upper_map", 700);
stages.attachMovie("fuel_gage", "fuel_gage", 800);
stages.attachMovie("sounds", "sound", 900);
stages.attachMovie("flight", "flight", 300);
}
Symbol 68 MovieClip [upper_map] Frame 1
function add_cloud() {
var _local1 = 10;
var _local2 = clouds.length;
if ((_local2 > 0) && (clouds[_local2 - 1]._x > board.width)) {
return(false);
}
if (_local2 > 0) {
do {
var b = false;
i = 0;
while (i < _local2) {
if (_local1 == clouds[i].getDepth()) {
_local1++;
b = true;
}
i++;
}
} while (b);
}
var kind = (Math.floor(Math.random() * 3) + 1);
var cloud_name = ("cloud_" + String(kind));
var name = ("cloud_" + String(_local1));
var _local3 = attachMovie(cloud_name, name, _local1);
_local3._x = ((_local2 > 0) ? (clouds[_local2 - 1]._x + clouds[_local2 - 1]._width) : 0);
_local3._x = _local3._x + Math.floor((Math.random() * _local3._width) - (_local3._width >> 1));
_local3._y = Math.floor((Math.random() * _local3._height) - (_local3._height >> 1));
_local3.speed = Math.floor(Math.random() * 2) + 2;
clouds.push(_local3);
return(true);
}
function erase_cloud(cloud) {
var _local1 = cloud;
i = 0;
while (i < clouds.length) {
if (clouds[i] == _local1) {
clouds.splice(i, 1);
_local1.removeMovieClip();
return;
}
i++;
}
}
function add_ground() {
var _local1 = 100;
var _local2 = grounds.length;
if ((_local2 > 0) && (grounds[_local2 - 1].position() > board.width)) {
return(false);
}
if (_local2 > 0) {
do {
var b = false;
i = 0;
while (i < _local2) {
if (_local1 == grounds[i].getDepth()) {
_local1++;
b = true;
}
i++;
}
} while (b);
}
var kind = (Math.floor(Math.random() * 3) + 1);
var ground_name = ("ground_" + String(kind));
var name = ("ground_" + String(_local1));
var _local3 = attachMovie(ground_name, name, _local1);
var L = 5;
var W = 30;
if (kind == 2) {
L = 5;
W = 40;
} else if (kind == 3) {
L = 5;
W = 25;
}
_local3.left = L;
_local3.width = W;
_local3.position = function () {
var _local1 = this;
return((_local1._x - _local1.left) + _local1.width);
};
_local3._x = ((_local2 > 0) ? (grounds[_local2 - 1].position() - 2) : 0);
_local3._y = board.height + Math.floor(Math.random() * ((_local3._height * 3) / 4));
grounds.push(_local3);
return(true);
}
function erase_ground(ground) {
var _local1 = ground;
i = 0;
while (i < grounds.length) {
if (grounds[i] == _local1) {
grounds.splice(i, 1);
_local1.removeMovieClip();
return;
}
i++;
}
}
function ground_speed(accel) {
speed = 6 * accel;
this.accel = accel;
}
this.stop();
Instance of Symbol 51 MovieClip in Symbol 68 MovieClip [upper_map] Frame 1
onClipEvent (load) {
var map = _parent;
var stages = map._parent;
var board = stages._parent;
map.stages = map._parent;
map.board = map.stages._parent;
map.clouds = new Array();
map.grounds = new Array();
map.ground_speed(1);
while (map.add_cloud()) {
}
while (map.add_ground()) {
}
}
onClipEvent (enterFrame) {
map.add_cloud();
while (map.add_ground()) {
}
}
Symbol 74 MovieClip [flight_explode] Frame 1
onLoad = function () {
if (_parent.stages.sound.isOn) {
var _local1 = new Sound(this);
_local1.attachSound("sound_my_explosion");
_local1.start();
}
};
this.onLoad();
Symbol 74 MovieClip [flight_explode] Frame 5
_parent.removeMovieClip();
Symbol 85 MovieClip [flight] Frame 1
function shot() {
if (reload <= 0) {
reload = reload_time;
my_bullet.shot(this);
}
}
function supply_fuel() {
if (stages.sound.isOn) {
sound_fuel.start();
}
fuel = fuel_max;
}
function supply_bomb() {
if (stages.sound.isOn) {
sound_bomb.start();
}
bombs++;
fuel_gage.bomb_stock();
}
function bomb() {
if (bombs > 0) {
bomb_current = bombs--;
fuel_gage.bomb_stock();
my_bullet.bomb(this);
}
}
function fast_reload() {
if (stages.sound.isOn) {
sound_speed.start();
}
change_time = getTimer();
reload_time = reload_fast;
map.ground_speed(2);
}
function slow_reload() {
reload_time = reload_slow;
map.ground_speed(1);
}
function checkHit(mc) {
if (this.HitArea.hitTest(mc)) {
mc.explode();
explode();
checkHit = null;
}
}
function explode() {
this.gotoAndStop("explode");
}
onUnload = function () {
board.reload();
};
this.stop();
Instance of Symbol 51 MovieClip "process" in Symbol 85 MovieClip [flight] Frame 1
onClipEvent (load) {
var flight = _parent;
flight.stages = flight._parent;
flight.board = flight.stages._parent;
flight.my_bullet = flight.stages.my_bullet;
flight.map = flight.stages.upper_map;
flight.fuel_max = 2700;
flight.fuel = flight.fuel_max;
flight.fuel_gage = flight.stages.fuel_gage;
flight.reload_fast = 5;
flight.reload_slow = flight.reload_fast << 1;
flight.reload_time = flight.reload_slow;
flight.reload = flight.reload_time;
flight.change_time;
flight.change_limit = 15000;
flight.bombs_max = 5;
flight.bombs_current = 1;
flight.bombs = flight.bombs_current;
flight.sound_fuel = new Sound(flight);
flight.sound_fuel.attachSound("sound_fuel_item");
flight.sound_bomb = new Sound(flight);
flight.sound_bomb.attachSound("sound_bomb_item");
flight.sound_speed = new Sound(flight);
flight.sound_speed.attachSound("sound_speed_item");
var stages = flight.stages;
var board = flight.board;
var fuel_gage = stages.fuel_gage;
fuel_gage.bomb_stock();
var accel = 1;
var max_speed = 12;
flight._x = 50;
flight._y = (board.height - flight._height) >> 1;
var speed = 0;
var shot = false;
var steer = 0;
var bomb = true;
var timescore = function () {
flight.fuel_gage.score(1);
};
var intervalTimeScore = setInterval(timescore, 1000);
var tek = getTimer();
}
onClipEvent (unload) {
clearInterval(intervalTimeScore);
}
onClipEvent (keyDown) {
switch (Key.getCode()) {
case 32 :
shot = true;
break;
case 38 :
steer = steer | 1;
break;
case 40 :
case 37 :
case 39 :
steer = steer | 2;
break;
case 17 :
if (!bomb) {
break;
}
bomb = false;
flight.bomb();
}
}
onClipEvent (keyUp) {
switch (Key.getCode()) {
case 32 :
shot = false;
break;
case 38 :
steer = steer & 2;
break;
case 40 :
case 37 :
case 39 :
steer = steer & 1;
break;
case 17 :
bomb = true;
}
}
onClipEvent (enterFrame) {
switch (steer) {
case 1 :
if (Math.abs(speed) < max_speed) {
speed = speed - accel;
}
flight.gotoAndStop("up");
break;
case 2 :
if (Math.abs(speed) < max_speed) {
speed = speed + accel;
}
flight.gotoAndStop("down");
break;
default :
speed = 0;
flight.gotoAndStop("base");
}
if (flight.fuel > 0) {
var ctek = getTimer();
var ave = ((ctek - tek) / 30);
tek = ctek;
flight._y = flight._y + (speed * ave);
} else {
flight._y++;
}
flight.fuel--;
if (flight._y < 0) {
flight._y = 0;
} else if (flight._y > board.height) {
flight._y = board.height;
}
fuel_gage.remain(flight.fuel);
flight.reload--;
if (shot) {
flight.shot();
}
if ((flight.reload_time == flight.reload_fast) && ((getTimer() - flight.change_time) > flight.change_limit)) {
flight.slow_reload();
}
}
Symbol 85 MovieClip [flight] Frame 2
this.stop();
Symbol 85 MovieClip [flight] Frame 3
this.stop();
Symbol 85 MovieClip [flight] Frame 4
this.stop();
Symbol 87 MovieClip [mask] Frame 1
this.stop();
Symbol 90 MovieClip [bullet] Frame 1
function erase() {
_parent.erase(this);
}
this.stop();
Instance of Symbol 51 MovieClip in Symbol 90 MovieClip [bullet] Frame 1
onClipEvent (load) {
var bullet = _parent;
var my_bullet = bullet._parent;
var stages = my_bullet._parent;
var enemy = stages.enemy;
var board = stages._parent;
var speed = 12;
bullet.damage = 1;
if (stages.sound.isOn) {
var sound_ex = new Sound(this);
sound_ex.attachSound("sound_my_shoot");
sound_ex.start();
}
}
onClipEvent (enterFrame) {
bullet._x = bullet._x + speed;
if (bullet._x > board.width) {
bullet.erase();
} else {
enemy.checkHit(bullet);
}
}
Symbol 91 MovieClip [enemy_bullet_board] Frame 1
function shot(caric, flight) {
var _local1 = 10;
var _local2 = bullets.length;
if (_local2 > 0) {
do {
var b = false;
i = 0;
while (i < _local2) {
if (_local1 == bullets[i].getDepth()) {
_local1++;
b = true;
}
i++;
}
} while (b);
}
var name = ("ebullet_" + String(_local1));
var _local3 = attachMovie("e_bullet_" + String(caric.kind), name, _local1);
_local3.flight = flight;
_local3._x = caric._x;
_local3._y = caric._y;
bullets.push(_local3);
}
function erase(bullet) {
var _local1 = bullet;
i = 0;
while (i < bullets.length) {
if (bullets[i] == _local1) {
bullets.splice(i, 1);
return;
}
i++;
}
}
function allErase() {
toggleHighQuality();
}
this.stop();
var bullets = new Array();
Symbol 92 MovieClip [my_bullet_board] Frame 1
function shot(flight) {
var _local1 = 100;
var _local2 = bullets.length;
if (_local2 > 0) {
do {
var b = false;
i = 0;
while (i < _local2) {
if (_local1 == bullets[i].getDepth()) {
_local1++;
b = true;
}
i++;
}
} while (b);
}
var name = ("bullet_" + String(_local1));
var _local3 = attachMovie("bullet", name, _local1);
_local3.flight = flight;
_local3._x = flight._x + 20;
_local3._y = flight._y;
bullets.push(_local3);
}
function bomb(flight) {
var _local1 = attachMovie("bomb", "bomb", 10);
_local1._x = flight._x;
_local1._y = flight._y;
}
function erase(bullet) {
var _local1 = bullet;
i = 0;
while (i < bullets.length) {
if (bullets[i] == _local1) {
bullets.splice(i, 1);
_local1.removeMovieClip();
return;
}
i++;
}
}
this.stop();
var bullets = new Array();
Symbol 93 MovieClip [enemy] Frame 1
function create() {
var _local1 = 10;
var _local2 = carics.length;
if (_local2 > 0) {
do {
var b = false;
i = 0;
while (i < _local2) {
if (_local1 == carics[i].getDepth()) {
_local1++;
b = true;
}
i++;
}
} while (b);
}
var name = ("caric_" + String(_local1));
var kind = (Math.floor(Math.random() * kind_max) + 1);
var caric_name = ("caric_" + String(kind));
var _local3 = attachMovie(caric_name, name, _local1);
_local3.flight = flight;
carics.push(_local3);
return(_local3);
}
function erase(caric) {
var _local2 = caric;
var _local1 = carics.length;
i = 0;
while (i < _local1) {
if (carics[i] == _local2) {
carics.splice(i, 1);
return(true);
}
i++;
}
return(false);
}
function checkHit(bullet) {
var _local1 = bullet;
var _local2 = carics.length;
i = 0;
while (i < _local2) {
if ((carics[i]._x < board.width) && (carics[i].hitTest(_local1))) {
carics[i].hit(_local1.damage);
_local1.erase();
return;
}
i++;
}
}
function allHit(bomb) {
var _local2 = bomb;
while (carics.length > 0) {
var _local1 = carics.shift();
_local1.hit(_local2.damage);
}
enemy_bullet.allErase();
}
this.stop();
Instance of Symbol 51 MovieClip in Symbol 93 MovieClip [enemy] Frame 1
onClipEvent (load) {
var enemy = _parent;
var time = getTimer();
var lap = ((Math.floor(Math.random() * 4) + 2) * 1000);
enemy.carics = new Array();
enemy.stage = enemy._parent;
enemy.board = enemy.stage._parent;
enemy.enemy_bullet = enemy.stage.enemy_bullet;
enemy.flight = enemy.stage.flight;
enemy.fuel_gage = enemy.stage.fuel_gage;
enemy.kind_max = 3;
}
onClipEvent (enterFrame) {
if ((getTimer() - time) > lap) {
enemy.create();
time = getTimer();
lap = (Math.floor(Math.random() * 4) + 1) * (1000 / enemy.stage.upper_map.accel);
}
}
Symbol 107 MovieClip Frame 1
onLoad = function () {
if (_parent.stages.sound.isOn) {
var _local1 = new Sound(this);
_local1.attachSound("sound_monster_explosion_3");
_local1.start();
}
};
this.onLoad();
Symbol 107 MovieClip Frame 5
this.stop();
_parent.erase();
Symbol 108 MovieClip [caric_3] Frame 1
function hit(damage) {
armor = armor - damage;
if (armor <= 0) {
delete hit;
fuel_gage.score(point);
this.explode();
} else if (stages.sound.isOn) {
impact.start();
this.gotoAndPlay("hit");
}
}
function erase() {
delete erase;
_parent.erase(this);
this.removeMovieClip();
}
function explode() {
delete explode;
this.gotoAndStop("explode");
}
onLoad = function () {
kind = 2;
point = 30;
impact = new Sound(this);
impact.attachSound("sound_monster_impact");
};
this.onLoad();
onUnload = function () {
var _local2 = this;
if ((_local2._x + _local2._width) > 0) {
var _local1 = ((flight.fuel < 300) ? 2 : 4);
if (Math.floor(Math.random() * _local1) == 0) {
item.create(_local2);
}
}
};
this.stop();
Instance of Symbol 51 MovieClip in Symbol 108 MovieClip [caric_3] Frame 1
onClipEvent (load) {
var caric = _parent;
var enemy = caric._parent;
var stages = enemy._parent;
var board = stages._parent;
var flight = stages.flight;
var map = stages.upper_map;
var item = stages.item;
var bullet_board = stages.enemy_bullet;
var accel_x = 2;
var accel_y = (Math.floor(Math.random() * 3) - 1);
caric.stages = stages;
caric.fuel_gage = stages.fuel_gage;
caric.item = item;
caric._x = board.width + caric._width;
caric._y = Math.floor(((Math.random() * board.height) * 2) / 3);
caric.armor = 4;
var shot = function () {
bullet_board.shot(caric, flight);
};
var intervalShot = setInterval(shot, Math.floor(((Math.random() * 3) + 3) * 1000));
var turn = function () {
accel_y = Math.floor(Math.random() * 3) - 1;
};
var intervalTurn = setInterval(turn, Math.floor(((Math.random() * 3) + 3) * 1000));
var tek = getTimer();
}
onClipEvent (enterFrame) {
if ((caric._x + caric._width) < 0) {
caric.erase();
} else {
var ctek = getTimer();
var ave = ((ctek - tek) / 30);
tek = ctek;
caric._x = caric._x - ((accel_x * map.accel) * ave);
caric._y = caric._y + (accel_y * ave);
if (caric._y > (board.height - caric._height)) {
caric._y = board.height - caric._height;
accel_y = accel_y * -1;
} else if (caric._y < 0) {
caric._y = 0;
accel_y = accel_y * -1;
}
flight.checkHit(caric);
}
}
onClipEvent (unload) {
clearInterval(intervalShot);
clearInterval(intervalTurn);
}
Symbol 108 MovieClip [caric_3] Frame 5
if (armor > 0) {
this.gotoAndPlay("base");
}
Symbol 108 MovieClip [caric_3] Frame 6
this.stop();
Symbol 122 MovieClip Frame 1
onLoad = function () {
if (_parent.stages.sound.isOn) {
var _local1 = new Sound(this);
_local1.attachSound("sound_monster_explosion_2");
_local1.start();
}
};
this.onLoad();
Symbol 122 MovieClip Frame 5
this.stop();
_parent.erase();
Symbol 123 MovieClip [caric_2] Frame 1
function hit(damage) {
armor = armor - damage;
if (armor <= 0) {
delete hit;
fuel_gage.score(point);
this.explode();
} else if (stages.sound.isOn) {
impact.start();
this.gotoAndPlay("hit");
}
}
function erase() {
delete erase;
_parent.erase(this);
this.removeMovieClip();
}
function explode() {
delete explode;
this.gotoAndStop("explode");
}
onLoad = function () {
kind = 1;
point = 20;
impact = new Sound(this);
impact.attachSound("sound_monster_impact");
};
this.onLoad();
onUnload = function () {
var _local2 = this;
if ((_local2._x + _local2._width) > 0) {
var _local1 = ((flight.fuel < 300) ? 2 : 4);
if (Math.floor(Math.random() * _local1) == 0) {
item.create(_local2);
}
}
};
this.stop();
Instance of Symbol 51 MovieClip in Symbol 123 MovieClip [caric_2] Frame 1
onClipEvent (load) {
var caric = _parent;
var enemy = caric._parent;
var stages = enemy._parent;
var board = stages._parent;
var flight = stages.flight;
var map = stages.upper_map;
var item = stages.item;
var bullet_board = stages.enemy_bullet;
var accel_x = 4;
var accel_y = (Math.floor(Math.random() * 3) - 1);
caric.stages = stages;
caric.flight = flight;
caric.fuel_gage = stage.fuel_gage;
caric.item = item;
caric._x = board.width + caric._width;
caric._y = Math.floor(((Math.random() * board.height) * 2) / 3);
caric.armor = 1;
var shot = function () {
bullet_board.shot(caric, flight);
};
var intervalShot = setInterval(shot, Math.floor(((Math.random() * 3) + 1) * 1000));
var turn = function () {
accel_y = Math.floor(Math.random() * 3) - 1;
};
var intervalTurn = setInterval(turn, Math.floor(((Math.random() * 3) + 1) * 1000));
var tek = getTimer();
}
onClipEvent (enterFrame) {
if ((caric._x + caric._width) < 0) {
caric.erase();
} else {
var ctek = getTimer();
var ave = ((ctek - tek) / 30);
tek = ctek;
caric._x = caric._x - ((accel_x * map.accel) * ave);
caric._y = caric._y + (accel_y * ave);
if (caric._y > (board.height - caric._height)) {
caric._y = board.height - caric._height;
accel_y = accel_y * -1;
} else if (caric._y < 0) {
caric._y = 0;
accel_y = accel_y * -1;
}
flight.checkHit(caric);
}
}
onClipEvent (unload) {
clearInterval(intervalShot);
clearInterval(intervalTurn);
}
Symbol 123 MovieClip [caric_2] Frame 5
if (armor > 0) {
this.gotoAndPlay("base");
}
Symbol 123 MovieClip [caric_2] Frame 6
this.stop();
Symbol 137 MovieClip Frame 1
onLoad = function () {
if (_parent.stages.sound.isOn) {
var _local1 = new Sound(this);
_local1.attachSound("sound_monster_explosion_1");
_local1.start();
}
};
this.onLoad();
Symbol 137 MovieClip Frame 5
this.stop();
_parent.erase();
Symbol 138 MovieClip [caric_1] Frame 1
function hit(damage) {
armor = armor - damage;
if (armor <= 0) {
delete hit;
fuel_gage.score(point);
this.explode();
} else if (stages.sound.isOn) {
impact.start();
this.gotoAndPlay("hit");
}
}
function explode() {
delete explode;
this.gotoAndStop("explode");
}
function erase() {
delete erase;
_parent.erase(this);
this.removeMovieClip();
}
onLoad = function () {
kind = 0;
point = 10;
impact = new Sound(this);
impact.attachSound("sound_monster_impact");
};
this.onLoad();
onUnload = function () {
var _local2 = this;
if ((_local2._x + _local2._width) > 0) {
var _local1 = ((flight.fuel < 300) ? 2 : 4);
if (Math.floor(Math.random() * _local1) == 0) {
item.create(_local2);
}
}
};
this.stop();
Instance of Symbol 51 MovieClip in Symbol 138 MovieClip [caric_1] Frame 1
onClipEvent (load) {
var caric = _parent;
var enemy = caric._parent;
var stages = enemy._parent;
var flight = stages.flight;
var map = stages.upper_map;
var item = stages.item;
var board = stages._parent;
var accel_x = 6;
var accel_y = (Math.floor(Math.random() * 7) - 3);
caric.stages = stages;
caric.fuel_gage = stages.fuel_gage;
caric.item = item;
caric._x = board.width + caric._width;
caric._y = Math.floor(((Math.random() * board.height) * 2) / 3);
caric.armor = 2;
var turn = function () {
accel_x = Math.floor(Math.random() * 10) + 10;
accel_y = Math.floor(Math.random() * 7) - 3;
};
var intervalTurn = setInterval(turn, Math.floor(((Math.random() * 3) + 1) * 1000));
var tek = getTimer();
}
onClipEvent (enterFrame) {
if ((caric._x + caric._width) < 0) {
caric.erase();
} else {
var ctek = getTimer();
var ave = ((ctek - tek) / 30);
tek = ctek;
caric._x = caric._x - ((accel_x * map.accel) * ave);
caric._y = caric._y + (accel_y * ave);
if (caric._y > (board.height - caric._height)) {
caric._y = board.height - caric._height;
accel_y = accel_y * -1;
} else if (caric._y < 0) {
caric._y = 0;
accel_y = accel_y * -1;
}
flight.checkHit(caric);
}
}
onClipEvent (unload) {
clearInterval(intervalTurn);
}
Symbol 138 MovieClip [caric_1] Frame 5
if (armor > 0) {
this.gotoAndPlay("base");
}
Symbol 138 MovieClip [caric_1] Frame 6
this.stop();
Symbol 140 MovieClip [fuel_gage_bar] Frame 1
this.stop();
this._alpha = 80;
Symbol 142 MovieClip Frame 1
this.stop();
onLoad = function () {
this._alpha = 70;
};
this.onLoad();
Symbol 145 MovieClip Frame 1
function add_score(point) {
this.point = this.point + point;
score.text = String(this.point);
}
this.stop();
onLoad = function () {
this._alpha = 70;
point = 0;
score.text = String(point);
};
this.onLoad();
Symbol 146 MovieClip [fuel_gage] Frame 1
function remain() {
fuel_case.bar._width = (width * flight.fuel) / flight.fuel_max;
}
function bomb_stock() {
var _local3 = 100;
while (bombs.length > 0) {
var _local1 = bombs.shift();
_local1.removeMovieClip();
}
i = 0;
while (i < flight.bombs) {
var _local2 = "bomb_" + String(i);
var _local1 = attachMovie("bomb_mark", _local2, _local3++);
_local1._x = (-_local1._width) - ((_local1._width + 2) * i);
_local1._y = 15;
bombs.push(_local1);
i++;
}
}
function score(point) {
this.score_case.add_score(point);
}
function getScore() {
return(this.score_case.point);
}
stop();
var stages = _parent;
var flight = stages.flight;
var width = fuel_case.bar._width;
var bombs = new Array();
this._x = 445;
this._y = 15;
Symbol 147 MovieClip [item] Frame 1
function create(caric) {
var _local1 = 10;
var _local2 = arr_item.length;
var kind = ((flight.fuel > 300) ? (Math.floor(Math.random() * kind_max) + 1) : 1);
if ((kind == 2) && (flight.bombs >= flight.bombs_max)) {
} else {
if (_local2 > 0) {
do {
var b = false;
i = 0;
while (i < _local2) {
if (_local1 == arr_item[i].getDepth()) {
_local1++;
b = true;
}
i++;
}
} while (b);
}
var name = ("item_" + String(_local1));
var item_name = ("item_" + String(kind));
var _local3 = attachMovie(item_name, name, _local1);
_local3._x = caric._x;
_local3._y = caric._y;
_local3.flight = flight;
arr_item.push(_local3);
return(_local3);
}
return(undefined);
}
function erase(item) {
var _local1 = item;
var _local2 = arr_item.length;
i = 0;
while (i < _local2) {
if (arr_item[i] == _local1) {
arr_item.splice(i, 1);
_local1.removeMovieClip();
return(true);
}
i++;
}
return(false);
}
this.stop();
var arr_item = new Array();
var stages = _parent;
var flight = stages.flight;
var kind_max = 3;
Symbol 154 MovieClip [item_3] Frame 1
function bonus() {
flight.fast_reload();
}
function erase() {
_parent.erase(this);
}
this.stop();
Instance of Symbol 51 MovieClip in Symbol 154 MovieClip [item_3] Frame 1
onClipEvent (load) {
var me = _parent;
me.kind = 3;
var speed = me._parent._parent.upper_map.speed;
}
onClipEvent (enterFrame) {
me._x = me._x - speed;
if (me.hitTest(me.flight)) {
me.bonus();
me.erase();
} else if ((me._x + me._width) < 0) {
me.erase();
}
}
Symbol 160 MovieClip [item_2] Frame 1
function bonus() {
flight.supply_bomb();
}
function erase() {
_parent.erase(this);
}
this.stop();
Instance of Symbol 51 MovieClip in Symbol 160 MovieClip [item_2] Frame 1
onClipEvent (load) {
var me = _parent;
me.kind = 2;
var speed = me._parent._parent.upper_map.speed;
}
onClipEvent (enterFrame) {
me._x = me._x - speed;
if (me.hitTest(me.flight)) {
me.bonus();
me.erase();
} else if ((me._x + me._width) < 0) {
me.erase();
}
}
Symbol 164 MovieClip [item_1] Frame 1
function bonus() {
flight.supply_fuel();
}
function erase() {
_parent.erase(this);
}
this.stop();
Instance of Symbol 51 MovieClip in Symbol 164 MovieClip [item_1] Frame 1
onClipEvent (load) {
var me = _parent;
me.kind = 1;
var speed = me._parent._parent.upper_map.speed;
}
onClipEvent (enterFrame) {
me._x = me._x - speed;
if (me.hitTest(me.flight)) {
me.bonus();
me.erase();
} else if ((me._x + me._width) < 0) {
me.erase();
}
}
Symbol 171 MovieClip [bomb] Frame 1
onLoad = function () {
_alpha = 60;
bullet_board = _parent;
stages = bullet_board._parent;
enemy = stages.enemy;
damage = 5;
if (stages.sound.isOn) {
var _local1 = new Sound(this);
_local1.attachSound("sound_bomb");
_local1.start();
}
enemy.allHit(this);
};
this.onLoad();
onEnterFrame = function () {
this._x = this._x + 50;
this._alpha = this._alpha - 10;
};
Symbol 171 MovieClip [bomb] Frame 9
this.removeMovieClip();
Symbol 174 MovieClip [cloud_1] Frame 1
function erase() {
_parent.erase_cloud(this);
}
this.stop();
Instance of Symbol 51 MovieClip in Symbol 174 MovieClip [cloud_1] Frame 1
onClipEvent (load) {
var cloud = _parent;
var map = cloud._parent;
var tek = getTimer();
}
onClipEvent (enterFrame) {
var ctek = getTimer();
var ave = ((ctek - tek) / 30);
tek = ctek;
cloud._x = cloud._x - ((cloud.speed * map.accel) * ave);
if ((cloud._x + cloud._width) < 0) {
cloud.erase();
}
}
Symbol 177 MovieClip [cloud_2] Frame 1
function erase() {
_parent.erase_cloud(this);
}
this.stop();
Instance of Symbol 51 MovieClip in Symbol 177 MovieClip [cloud_2] Frame 1
onClipEvent (load) {
var cloud = _parent;
var map = cloud._parent;
var tek = getTimer();
cloud._alpha = 80;
}
onClipEvent (enterFrame) {
var ctek = getTimer();
var ave = ((ctek - tek) / 30);
tek = ctek;
cloud._x = cloud._x - ((cloud.speed * map.accel) * ave);
if ((cloud._x + cloud._width) < 0) {
cloud.erase();
}
}
Symbol 180 MovieClip [cloud_3] Frame 1
function erase() {
_parent.erase_cloud(this);
}
this.stop();
Instance of Symbol 51 MovieClip in Symbol 180 MovieClip [cloud_3] Frame 1
onClipEvent (load) {
var cloud = _parent;
var map = cloud._parent;
var tek = getTimer();
}
onClipEvent (enterFrame) {
var ctek = getTimer();
var ave = ((ctek - tek) / 30);
tek = ctek;
cloud._x = cloud._x - ((cloud.speed * map.accel) * ave);
if ((cloud._x + cloud._width) < 0) {
cloud.erase();
}
}
Symbol 183 MovieClip [ground_1] Frame 1
function erase() {
_parent.erase_ground(this);
}
this.stop();
Instance of Symbol 51 MovieClip in Symbol 183 MovieClip [ground_1] Frame 1
onClipEvent (load) {
var ground = _parent;
var map = ground._parent;
var stages = map._parent;
var flight = stages.flight;
var tek = getTimer();
var feed = function () {
var _local1 = getTimer();
var _local2 = (_local1 - tek) / 30;
tek = _local1;
ground._x = ground._x - Math.floor(map.speed * _local2);
if ((ground._x + ground._width) < 0) {
ground.erase();
} else if (ground.HitArea.hitTest(flight.HitArea)) {
flight.explode();
}
};
}
onClipEvent (enterFrame) {
if (map.speed > 0) {
feed();
}
}
Symbol 186 MovieClip [ground_2] Frame 1
function erase() {
_parent.erase_ground(this);
}
this.stop();
Instance of Symbol 51 MovieClip in Symbol 186 MovieClip [ground_2] Frame 1
onClipEvent (load) {
var ground = _parent;
var map = ground._parent;
var stages = map._parent;
var flight = stages.flight;
var tek = getTimer();
var feed = function () {
var _local1 = getTimer();
var _local2 = (_local1 - tek) / 30;
tek = _local1;
ground._x = ground._x - Math.floor(map.speed * _local2);
if ((ground._x + ground._width) < 0) {
ground.erase();
} else if (ground.HitArea.hitTest(flight.HitArea)) {
flight.explode();
}
};
}
onClipEvent (enterFrame) {
if (map.speed > 0) {
feed();
}
}
Symbol 189 MovieClip [ground_3] Frame 1
function erase() {
_parent.erase_ground(this);
}
this.stop();
Instance of Symbol 51 MovieClip in Symbol 189 MovieClip [ground_3] Frame 1
onClipEvent (load) {
var ground = _parent;
var map = ground._parent;
var stages = map._parent;
var flight = stages.flight;
var tek = getTimer();
var feed = function () {
var _local1 = getTimer();
var _local2 = (_local1 - tek) / 30;
tek = _local1;
ground._x = ground._x - Math.floor(map.speed * _local2);
if ((ground._x + ground._width) < 0) {
ground.erase();
} else if (ground.HitArea.hitTest(flight.HitArea)) {
flight.explode();
}
};
}
onClipEvent (enterFrame) {
if (map.speed > 0) {
feed();
}
}
Symbol 193 MovieClip [under_map_1] Frame 1
function erase() {
_parent.erase_map(this);
}
onEnterFrame = function () {
if (this.position() < 0) {
this.erase();
}
};
Symbol 193 MovieClip [under_map_1] Frame 451
this._x = this._x + bg._x;
gotoAndPlay (1);
Symbol 197 MovieClip [under_map_2] Frame 1
function erase() {
_parent.erase_map(this);
}
onEnterFrame = function () {
if (this.position() < 0) {
this.erase();
}
};
Symbol 197 MovieClip [under_map_2] Frame 450
this._x = this._x + bg._x;
gotoAndPlay (1);
Symbol 201 MovieClip [under_map_3] Frame 1
function erase() {
_parent.erase_map(this);
}
onEnterFrame = function () {
if (this.position() < 0) {
this.erase();
}
};
Symbol 201 MovieClip [under_map_3] Frame 450
this._x = this._x + bg._x;
gotoAndPlay (1);
Symbol 204 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 2
stop();
Symbol 205 MovieClip [sounds] Frame 1
function turnOff() {
isOn = false;
bg.setVolume(0);
}
function turnOn() {
isOn = true;
bg.setVolume(100);
}
onUnload = function () {
turnOff();
};
onLoad = function () {
var _local1 = this;
var _local2 = _parent;
_local1._x = _local2._parent.width - _local1._width;
_local1._y = _local2._parent.height - _local1._height;
isOn = true;
bg = _local2._parent.bg;
turnOn();
};
this.onLoad();
Instance of Symbol 204 MovieClip "soundOff" in Symbol 205 MovieClip [sounds] Frame 1
on (release) {
if (_parent.isOn) {
_parent.turnOff();
this.gotoAndStop("off");
} else {
_parent.turnOn();
this.gotoAndStop("on");
}
}
Symbol 206 MovieClip [board] Frame 1
function reset() {
box.removeMovieClip();
bg = new Sound(this);
bg.onSoundComplete = function () {
this.start();
};
bg.attachSound("sound_bg");
bg.start();
initGame();
}
function initGame() {
var _local1 = this;
_local1.attachMovie("stages", "stages", 100);
_local1.attachMovie("mask", "mask", 200);
_local1.setMask(mask);
_local1.width = _local1.mask._width;
_local1.height = _local1.mask._height;
}
function reload() {
var _local3 = _root;
stages.upper_map.speed = 0;
delete stages.enemy.create;
bg.stop();
var _local2 = attachMovie("mc_msgBox", "box", 1000);
_local2.gotoAndPlay("gameOver");
_local2.score.text = stages.fuel_gage.getScore().toString();
var _local1 = _local3.gems.getLoadVars();
_local1.mode = 2;
_local1.score = Base64.encode(stages.fuel_gage.getScore().toString());
_local3.gems.sendData(_local1, _local3.gems.lv_r2);
}
function _reload() {
_parent.reload();
}
this.stop();
reset();
Symbol 211 MovieClip [scr] Frame 1
commt._visible = false;
Symbol 247 MovieClip [__Packages.Base64] Frame 0
class Base64
{
function Base64 () {
}
static function encode(code) {
var _local2 = code;
var _local1 = 0;
var len = _local2.length;
var _local3 = "";
while (len > 2) {
_local3 = _local3 + table[_local2.charCodeAt(0 + _local1) >> 2];
_local3 = _local3 + table[((_local2.charCodeAt(0 + _local1) & 3) << 4) + (_local2.charCodeAt(1 + _local1) >> 4)];
_local3 = _local3 + table[((_local2.charCodeAt(1 + _local1) & 15) << 2) + (_local2.charCodeAt(2 + _local1) >> 6)];
_local3 = _local3 + table[_local2.charCodeAt(2 + _local1) & 63];
_local1 = _local1 + 3;
len = len - 3;
}
if (len != 0) {
_local3 = _local3 + table[_local2.charCodeAt(0 + _local1) >> 2];
if (len > 1) {
_local3 = _local3 + table[((_local2.charCodeAt(0 + _local1) & 3) << 4) + (_local2.charCodeAt(1 + _local1) >> 4)];
_local3 = _local3 + table[(_local2.charCodeAt(1 + _local1) & 15) << 2];
_local3 = _local3 + pad;
} else {
_local3 = _local3 + table[(_local2.charCodeAt(0 + _local1) & 3) << 4];
_local3 = _local3 + pad;
_local3 = _local3 + pad;
}
}
return(_local3);
}
static var table = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/", ""];
static var pad = "=";
}
Symbol 248 MovieClip [__Packages.GemsData] Frame 0
class GemsData
{
var aLoadVar;
function GemsData () {
var _local1 = _root;
var _local2 = this;
_local2.flashVars = "";
_local2.variables = new Array();
_local2.lv_r0 = new LoadVars();
_local2.lv_r1 = new LoadVars();
_local2.lv_r2 = new LoadVars();
for (var name in _local1) {
if ((((((name.indexOf("$version") >= 0) || (name.indexOf("flashVars") >= 0)) || (typeof(_local1[name]) == "movieclip")) || (typeof(_local1[name]) == "object")) || (typeof(_local1[name]) == "undefined")) || (typeof(_local1[name]) == "function")) {
continue;
}
if (_local2.flashVars.length > 0) {
_local2.flashVars = _local2.flashVars + "&";
}
_local2.flashVars = _local2.flashVars + ((name + "=") + _local1[name]);
var _local3 = new Object();
_local3.name = name;
_local3.value = _local1[name];
_local2.variables.push(_local3);
}
var lvcfg = new LoadVars();
lvcfg.onLoad = function (success) {
var _local1 = this;
var _local2 = _root;
trace("GEMS CFG: " + _local1);
if (success) {
if ((_local1.GAME_ID != null) && (_local1.GAME_ID.length > 0)) {
_local2.game_id = _local1.GAME_ID;
}
if ((_local1.RECORD_SERVER != null) && (_local1.RECORD_SERVER.length > 0)) {
_local2.server_page = _local1.RECORD_SERVER;
}
if ((_local1.PAGE_NEXTLINK != null) && (_local1.PAGE_NEXTLINK.length > 0)) {
_local2.page_nextlink = _local1.PAGE_NEXTLINK;
}
if ((_local1.TARGET_WINDOW != null) && (_local1.TARGET_WINDOW.length > 0)) {
_local2.target_window = _local1.TARGET_WINDOW;
}
if ((_local1.DEFAULT_MESSAGE != null) && (_local1.DEFAULT_MESSAGE.length > 0)) {
_local2.DEFAULT_MESSAGE = _local1.DEFAULT_MESSAGE;
}
if (((_local1.PRE_LOADER == null) && (_local1.PRELOADER != null)) && (_local1.PRELOADER.length > 0)) {
_local1.PRE_LOADER = _local1.PRELOADER;
}
if (((_local2.mcPreLoader != null) && (_local1.PRE_LOADER != null)) && (_local1.PRE_LOADER.length > 0)) {
var _stime = getTimer();
_local2.onEnterFrame = function () {
var _local1 = _root;
if (_local1.getBytesLoaded() < _local1.getBytesTotal()) {
} else if ((getTimer() - _stime) > 5000) {
delete _local1.onEnterFrame;
_local1.nextFrameGo();
}
};
loadMovie (_local1.PRE_LOADER, _local2.mcPreLoader);
} else {
_local2.onEnterFrame = function () {
var _local1 = _root;
if (_local1.getBytesLoaded() < _local1.getBytesTotal()) {
} else {
delete _local1.onEnterFrame;
_local1.nextFrameGo();
}
};
}
} else {
_local2.onEnterFrame = function () {
var _local1 = _root;
if (_local1.getBytesLoaded() < _local1.getBytesTotal()) {
} else {
delete _local1.onEnterFrame;
_local1.nextFrameGo();
}
};
}
};
if ((_local1.eventid != undefined) && (_local1.eventid != "")) {
_local1.debug("GEMS: EVENT MODE");
lvcfg.load("game.cfg");
} else {
_local1.debug("GEMS: DEMO MODE");
_local1.nextFrameGo();
}
}
function getVar(name) {
return(aLoadVar[name]);
}
function getLoadVars() {
var _local2 = this;
var _local3 = new LoadVars();
var _local1 = 0;
while (_local1 < _local2.variables.length) {
_local3[_local2.variables[_local1].name] = _local2.variables[_local1].value;
_local1++;
}
if ((_root.seq != null) && (_root.seq.length > 0)) {
_local3.seq = _root.seq;
}
_local3.flashVars = _local2.flashVars;
_local3.gameid = _root.game_id;
return(_local3);
}
function sendData(lv_s, lv_r) {
var _local1 = this;
var _local2 = _root;
var _local3 = lv_r;
trace("SEND");
if ((_local2.eventid == undefined) || (_local2.eventid == "")) {
_local2.debug("DEMO DATA");
if (_local3 == _local1.lv_r0) {
trace("mode = init");
_local2.initGame();
} else if (_local3 == _local1.lv_r1) {
trace("mode = start");
_local2.startGame();
} else if (_local3 == _local1.lv_r2) {
trace("mode = reset");
_local2.resetGame();
}
} else if (((_local2.server_page == undefined) || (_local2.server_page == null)) || (_local2.server_page.length == 0)) {
} else {
if (((lv_s.mode == 2) && (_local2.seq != undefined)) && (_local2.seq.length > 0)) {
lv_s.seq = _local2.seq;
delete _local2.seq;
}
if (_local3 == _local1.lv_r0) {
_local3 = (_local1.lv_r0 = new LoadVars());
_local1.lv_r0.onLoad = function (success) {
var _local1 = this;
var _local2 = _root;
_local2.debug("INIT: " + _local1);
if (success) {
_local1.aLoadVar = new Object();
for (var _local3 in _local1) {
_local1.aLoadVar[_local3] = _local1[_local3];
}
if (((_local1.MESSAGE != undefined) && (_local1.MESSAGE != null)) && (_local1.MESSAGE.length > 0)) {
var box = _local2.attachMovie("mc_msgBox", "mc_msgBox", 1000);
box.message = _local1.MESSAGE;
box.gotoAndStop("error");
}
if ((_local1.RC != undefined) && (_local1.RC > 0)) {
if (((_local1.NEXTURL != undefined) && (_local1.NEXTURL != null)) && (_local1.NEXTURL.length > 0)) {
if (((_local2.target_window != undefined) && (_local2.target_window != null)) && (_local2.target_window.length > 0)) {
getURL (_local1.NEXTURL, _local2.target_window);
} else {
getURL (_local1.NEXTURL);
}
} else {
_local2.initGame();
}
} else if ((_local1.MESSAGE == undefined) || (_local1.MESSAGE == null)) {
var box = _local2.attachMovie("mc_msgBox", "mc_msgBox", 1000);
box.message = ((_local2.DEFAULT_MESSAGE != undefined) ? _local2.DEFAULT_MESSAGE : "\uC11C\uBC84\uB85C\uBD80\uD130 \uC815\uBCF4\uB97C \uC77D\uC5B4\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");
box.gotoAndStop("error");
}
} else {
var box = _local2.attachMovie("mc_msgBox", "mc_msgBox", 1000);
box.message = ((_local2.DEFAULT_MESSAGE != undefined) ? (_local2.DEFAULT_MESSAGE) : "\uC11C\uBC84\uC640 \uC5F0\uACB0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");
box.gotoAndStop("error");
getURL (("JavaScript:alert('" + box.message) + "');");
}
};
} else if (_local3 == _local1.lv_r1) {
_local3 = (_local1.lv_r1 = new LoadVars());
_local1.lv_r1.onLoad = function (success) {
var _local1 = this;
var _local2 = _root;
_local2.debug("START: " + _local1.toString());
if (success) {
_local1.aLoadVar = new Object();
for (var _local3 in _local1) {
_local1.aLoadVar[_local3] = _local1[_local3];
}
if (((_local1.MESSAGE != undefined) && (_local1.MESSAGE != null)) && (_local1.MESSAGE.length > 0)) {
var box = _local2.attachMovie("mc_msgBox", "mc_msgBox", 1000);
box.message = _local1.MESSAGE;
box.gotoAndStop("error");
}
if ((_local1.RC != undefined) && (_local1.RC > 0)) {
if (((_local1.NEXTURL != undefined) && (_local1.NEXTURL != null)) && (_local1.NEXTURL.length > 0)) {
if (((_local2.target_window != undefined) && (_local2.target_window != null)) && (_local2.target_window.length > 0)) {
getURL (_local1.NEXTURL, _local2.target_window);
} else {
getURL (_local1.NEXTURL);
}
} else {
if ((_local1.SEQ != undefined) && (_local1.SEQ.length > 0)) {
_local2.seq = _local1.SEQ;
}
_local2.startGame();
}
} else if ((_local1.MESSAGE == undefined) || (_local1.MESSAGE == null)) {
var box = _local2.attachMovie("mc_msgBox", "mc_msgBox", 1000);
box.message = ((_local2.DEFAULT_MESSAGE != undefined) ? _local2.DEFAULT_MESSAGE : "\uC11C\uBC84\uB85C\uBD80\uD130 \uC815\uBCF4\uB97C \uC77D\uC5B4\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");
box.gotoAndStop("error");
}
} else {
var box = _local2.attachMovie("mc_msgBox", "mc_msgBox", 1000);
box.message = ((_local2.DEFAULT_MESSAGE != undefined) ? (_local2.DEFAULT_MESSAGE) : "\uC11C\uBC84\uC640 \uC5F0\uACB0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");
box.gotoAndStop("error");
getURL (("JavaScript:alert('" + box.message) + "');");
}
};
} else if (_local3 == _local1.lv_r2) {
_local3 = (_local1.lv_r2 = new LoadVars());
_local1.lv_r2.onLoad = function (success) {
var _local1 = this;
var _local2 = _root;
_local2.debug("SAVE: " + _local1.toString());
if (success) {
_local1.aLoadVar = new Object();
for (var _local3 in _local1) {
_local1.aLoadVar[_local3] = _local1[_local3];
}
if (((_local1.MESSAGE != undefined) && (_local1.MESSAGE != null)) && (_local1.MESSAGE.length > 0)) {
var box = _local2.attachMovie("mc_msgBox", "mc_msgBox", 1000);
box.message = _local1.MESSAGE;
box.gotoAndStop("error");
}
if ((_local1.RC != undefined) && (_local1.RC > 0)) {
if (((_local1.NEXTURL != undefined) && (_local1.NEXTURL != null)) && (_local1.NEXTURL.length > 0)) {
if (((_local2.target_window != undefined) && (_local2.target_window != null)) && (_local2.target_window.length > 0)) {
getURL (_local1.NEXTURL, _local2.target_window);
} else {
getURL (_local1.NEXTURL);
}
} else {
_local2.resetGame();
}
} else if ((_local1.MESSAGE == undefined) || (_local1.MESSAGE == null)) {
var box = _local2.attachMovie("mc_msgBox", "mc_msgBox", 1000);
box.message = ((_local2.DEFAULT_MESSAGE != undefined) ? _local2.DEFAULT_MESSAGE : "\uC11C\uBC84\uB85C\uBD80\uD130 \uC815\uBCF4\uB97C \uC77D\uC5B4\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.");
box.gotoAndStop("error");
}
} else {
var box = _local2.attachMovie("mc_msgBox", "mc_msgBox", 1000);
box.message = ((_local2.DEFAULT_MESSAGE != undefined) ? _local2.DEFAULT_MESSAGE : "\uC11C\uBC84\uC640 \uC5F0\uACB0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");
box.gotoAndStop("error");
getURL (("JavaScript:alert('" + box.message) + "');");
}
};
}
lv_s.sendAndLoad(_local2.server_page, _local3, "POST");
}
}
}
Symbol 220 Button
on (press) {
_root.rule._visible = 1;
}
Symbol 226 Button
on (release) {
button_play.enabled = false;
_root.isStart();
}
Symbol 234 Button
on (press) {
_root.rule._visible = 0;
}