Frame 1
function certify() {
switch (_root.run) {
case 0 :
break;
case 1 :
case 2 :
this.startPoint = _url.indexOf(".");
this.sndPoint = _url.indexOf(":");
this.comTAG = "cyworld.nate.com";
this.thisGameURL = "http://211.219.154.25";
if (_url.substring(this.startPoint + 1, (this.startPoint + 1) + this.comTAG.length) == "cyworld.nate.com") {
} else if (_url.substring(this.sndPoint + 1, ((this.sndPoint + 1) + this.comTAG.length) + 2) == "//cyworld.nate.com") {
} else if (_url.substring(this.startPoint + 1, (this.startPoint + 1) + (this.comTAG.length - 5)) == "cyworld.com") {
} else if (_url.substring(this.sndPoint + 1, ((this.sndPoint + 1) + this.comTAG.length) - 3) == "//cyworld.com") {
} else if (_url.substr(0, this.thisGameURL.length) == this.thisGameURL) {
} else {
stopAllSounds();
this.gotoAndStop(1);
}
if (secureMovie.auth_ret) {
} else {
stopAllSounds();
this.gotoAndStop(1);
}
break;
case 3 :
if (_parent._url.indexOf("http://itemimgs.naver.com") == 0) {
break;
}
this.unloadMovie();
getURL ("http://flash.hangame.com");
}
}
function nextFrameGo() {
preloader_mc.preloader_mc.init(false, false, 5000);
_root.demoTime = 15000;
}
function nextFrame() {
gotoAndStop ("\uD0C0\uC774\uD2C0");
}
function initGame() {
if (_root.gems.lv_r0.MESSAGE != undefined) {
getURL (("javascript:alert('" + _root.gems.lv_r0.MESSAGE) + "')");
}
}
function startGame() {
if (_root.gems.lv_r1.MESSAGE != undefined) {
getURL (("javascript:alert('" + _root.gems.lv_r1.MESSAGE) + "')");
}
if ((_root.gems.lv_r1.RC > 0) && (_root.eventid != undefined)) {
gotoAndStop ("\uAC8C\uC784");
} else if (_root.eventid == undefined) {
gotoAndStop ("\uAC8C\uC784");
}
}
function resetGame() {
if (_root.gems.lv_r2.MESSAGE != undefined) {
getURL (("javascript:alert('" + _root.gems.lv_r2.MESSAGE) + "')");
}
if ((_root.gems.lv_r2.RC > 0) && (_root.eventid != undefined)) {
mc_gameover.gotoAndStop(2);
} else if (_root.eventid == undefined) {
mc_gameover.gotoAndStop(2);
}
}
stop();
run = 0;
_lockroot = true;
Stage.scaleMode = "noScale";
Stage.align = "TL";
var gems = new GemsData();
this.attachMovie("mcSecure", "secureMovie", 1);
this.createEmptyMovieClip("mc_sound", 2);
mc_sound.start = function (id) {
var _local2 = new Sound(this);
_local2.attachSound(id);
if (this.volume != undefined) {
_local2.setVolume(this.volume);
}
_local2.start();
};
mc_sound.setVolume = function (volume) {
this.volume = volume;
};
mc_sound.setVolume(100);
this.createEmptyMovieClip("mc_music", 3);
mc_music.start = function (id) {
if (id == this.id) {
return(undefined);
}
if (this.id != undefined) {
this.end();
}
if (this[id] == undefined) {
var _local3 = new Sound(this);
_local3.attachSound(id);
_local3.onSoundComplete = function () {
this.start();
};
this[id] = _local3;
}
this.id = id;
this[id].start();
};
mc_music.pause = function () {
this.offset = this[this.id].position / 1000;
this.end();
};
mc_music.resume = function () {
this[this.id].start(this.offset, 1);
};
mc_music.end = function () {
this[this.id].stop(this.id);
};
mc_music.setVolume = function (volume) {
this[this.id].setVolume(volume);
};
nextFrameGo();
Frame 2
function startCheck() {
trace("\uC2A4\uD0C0\uD2B8\uC774\uBCA4\uD2B8");
var _local2 = _root.gems.getLoadVars();
_local2.mode = 1;
_root.gems.sendData(_local2, _root.gems.lv_r1);
}
certify();
bgm.stop();
btn_help.onRelease = function () {
_root.gotoAndStop("\uB3C4\uC6C0\uB9D0");
};
btn_start.onRelease = function () {
startCheck();
};
Frame 3
function startCheck() {
trace("\uC2A4\uD0C0\uD2B8\uC774\uBCA4\uD2B8");
var _local2 = _root.gems.getLoadVars();
_local2.mode = 1;
_root.gems.sendData(_local2, _root.gems.lv_r1);
}
certify();
btn_start.onRelease = function () {
startCheck();
};
tf_help.htmlText = "<b><font color='#144D8F'>\u25C0\uBABD\uD0A4 \uC544\uC77C\uB79C\uB4DC\u25B6</font></b>\n\n\uC11C\uCEE4\uC2A4 \uC6D0\uC22D\uC774 '\uD06C\uB8E8'~\n\uBAA8\uCC98\uB7FC \uD734\uAC00\uB97C \uBC1B\uC544\uC11C \uBABD\uD0A4 \uC544\uC77C\uB79C\uB4DC\uC5D0 \uC654\uC5B4\uC694. \uC12C\uB4E4\uC744 \uB6F0\uC5B4\uB2E4\uB2C8\uBA70 \uC2DD\uB7C9\uC744 \uBAA8\uC73C\uB294 \uAC83\uC774 \uBABD\uD0A4 \uC544\uC77C\uB79C\uB4DC\uC758 \uADDC\uCE59. \uD3B8\uC548\uD55C \uD734\uAC00\uB97C \uC990\uAE30\uB824\uBA74, \uC2DD\uB7C9\uC744 \uB9CE\uC774 \uBAA8\uC544\uC57C\uACA0\uC8E0?^^ \uC624\uB298\uB3C4 \uC5F4\uC2EC\uD788 \uB6F0\uBA74\uC11C \uB9DB\uC788\uB294 \uBC14\uB098\uB098\uB97C \uBAA8\uC544\uBCF4\uC544\uC694~~ \n\uCC38, \uC218\uC601\uC5D4 \uC601~~\uC18C\uC9C8\uC774 \uC5C6\uB294 \uAD00\uACC4\uB85C \uBC14\uB2E4\uC5D4 \uBE60\uC9C0\uC9C0 \uC54A\uAC8C \uD574\uC8FC\uC138\uC694~;;;\n\n<b><font color='#144D8F'>\u25C0\uAC8C\uC784\uBC29\uBC95\u25B6</font></b>\n\n\uBC14\uB2E4\uC758 \uC804\uCCB4 \uC9C0\uB3C4\uB97C \uBCF4\uACE0 \uBC14\uB098\uB098\uC12C\n\uBC0F \uC544\uC774\uD15C \uC12C\uC758 \uC704\uCE58\uB97C \uD30C\uC545\uD55C \uD6C4\uC5D0\n\uD1A0\uB07C\uB97C \uC810\uD504\uC2DC\uCF1C \uC12C\uC704\uC5D0 \uB193\uC778 \uB2F9\uADFC\n\uBC0F \uC544\uC774\uD15C\uC744 \uBAA8\uC73C\uB294 \uAC8C\uC784.\n\uB9C8\uC6B0\uC2A4\uB97C \uD68C\uC804\uD558\uC5EC \uBC29\uD5A5\uC744 \uACB0\uC815\uD6C4\n\uC67C\uCABD\uBC84\uD2BC\uC744 \uD074\uB9AD\uD558\uBA74 \uC810\uD504\uB97C \uD55C\uB2E4.\n\uC774\uB54C \uBC84\uD2BC\uC744 \uC624\uB798 \uB204\uB974\uACE0 \uC788\uB294 \uB9CC\uD07C\n\uBA40\uB9AC \uC810\uD504\uB97C \uD558\uAC8C \uB418\uBBC0\uB85C \uC12C\uC5D0 \uC815\uD655\uD788 \uCC29\uC9C0\uD560 \uC218 \uC788\uB3C4\uB85D \uBC29\uD5A5\uACFC \uAC70\uB9AC\uB97C \uACB0\uC815\uD558\uC5EC \uC8FC\uB294 \uAC83\uC774 \uD3EC\uC778\uD2B8~!!\n\n<b><font color='#144D8F'>\u25C0\uD301\u25B6</font></b>\n\n- \uAE30\uBCF8\uC801\uC778 LIFE\uB294 3\uAC1C\uAC00 \uC8FC\uC5B4\uC9C0\uBA70\n \uBC14\uB2E4\uC5D0 \uBE60\uC9C0\uBA74 \uD55C\uAC1C\uC529 \uAC10\uC18C\uD55C\uB2E4.\n \uD558\uD2B8 \uC544\uC774\uD15C\uC744 \uD68D\uB4DD\uD558\uBA74 \uB77C\uC774\uD504\n \uAC00 \uCD94\uAC00\uB41C\uB2E4.(\uCD5C\uB300 5\uAC1C)\n- \uC2A4\uD14C\uC774\uC9C0\uBCC4 \uBBF8\uC158\uC73C\uB85C \uC8FC\uC5B4\uC9C0\uB294\n \uBC14\uB098\uB098 \uAC1C\uC218\uB97C \uCC44\uC6CC\uC57C \uC2A4\uD14C\uC774\uC9C0\n \uD074\uB9AC\uC5B4!!\n- \uC6B0\uCE21 \uD558\uB2E8\uC758 ZOOM(\uC90C)\uBC84\uD2BC\uC744\n \uB204\uB974\uBA74 \uC804\uCCB4\uC9C0\uB3C4\uB97C \uBCFC \uC218 \uC788\uB2E4.\n- \uC57C\uC790\uC5F4\uB9E4\uC640 \uD30C\uC778\uC560\uD50C \uC544\uC774\uD15C\uC744\n \uD68D\uB4DD\uD558\uBA74 \uBC14\uB098\uB098\uBCF4\uB2E4 \uB9CE\uC740 \uC810\uC218\n \uB97C \uC5BB\uC744 \uC218 \uC788\uB2E4.\n- \uC288\uD37C\uB9E8 \uC544\uC774\uD15C\uC744 \uD68D\uB4DD\uD558\uBA74 \uACF5\uC911\n \uC5D0 \uB72C \uC0C1\uD0DC\uC5D0\uC11C \uBC29\uD5A5\uC804\uD658\uC774 \uAC00\uB2A5\n \uD558\uB2E4.\n- LIFE\uAC00 \uBAA8\uB450 \uC18C\uC9C4\uB418\uBA74 \uAC8C\uC784\uC624\uBC84.\n\n<b><font color='#144D8F'>\u25C0\uC870\uC791\uD0A4\u25B6</font></b>\n\n\uB9C8\uC6B0\uC2A4";
Frame 4
function initScore() {
secureMovie.varObj.addVars("score", this, 0);
}
function addScore(n) {
secureMovie.varObj.encodeVars("score", this, n);
}
function saveScore() {
trace("score : " + _root.score);
var _local2 = _root.gems.getLoadVars();
_local2.mode = 2;
_local2.score = Base64.encode(_root.score + "");
_root.gems.sendData(_local2, _root.gems.lv_r2);
}
function stopDemo() {
Mouse.show();
this.nextFrame();
}
certify();
if (_root.run == 3) {
_global.ServerConnection.onGameStart();
}
ScoreSending = function () {
mc_hint.gotoAndStop("saving");
};
ScoreSendingFailed = function () {
mc_hint.gotoAndStop("fail");
};
ScoreSendingOk = function (usename, ranking, score) {
mc_hint.gotoAndStop("success");
gameEndView.use_name = usename;
gameEndView.ranking = ranking;
gameEndView.score = score;
gameEndView.gotoAndStop(2);
gameEndView.i = 0;
gameEndView.onEnterFrame = function () {
this.i++;
if (this.i == 30) {
this._visible = true;
delete this.onEnterFrame;
}
};
};
function reset() {
jumpSpeedZ = 0.2;
jumpSpeedXY = 6;
backSpeedZ = 2.2;
}
function down() {
if (user.isButton) {
return(undefined);
}
if (user.process == "jump") {
jump();
} else if (user.process == "fall") {
fall();
}
}
function myOnKeyDown() {
if (Key.isDown(32)) {
if ((((!isZoom) && (user.process == "rotate")) && (userMove)) && (!isDie)) {
zoomMap();
}
}
}
function zoomMap() {
userMove = false;
isZoom = true;
sound_zoom.play();
user._visible = false;
shadow._visible = false;
jumpCnt = 0;
var isPlus = true;
var oldx = showmap.back._x;
var oldy = showmap.back._y;
var tx = user.backMC._x;
var ty = user.backMC._y;
var xmov = ((-(showmap.back._x - backBaseX)) / 30);
var ymov = ((-(showmap.back._y - backBaseY)) / 30);
_root.showmap.back.attachMovie("showuser", "showuser", getNextDepth(_root.showmap.back));
var _local4 = _root.showmap.back.showuser;
var _local5 = centerList[level - 1] * 6;
var _local3 = new Object();
_local3.x = user._x;
_local3.y = user._y;
_root.showmap.back.globalToLocal(_local3);
_local4._x = _local3.x;
_local4._y = _local3.y;
_local4._rotation = user._rotation - 90;
this.onEnterFrame = function () {
if (isPlus) {
jumpCnt++;
} else {
jumpCnt--;
}
if (isPlus && (jumpCnt <= 30)) {
showmap._xscale = showmap._xscale - (backSpeedZ + 0.4);
showmap._yscale = showmap._yscale - (backSpeedZ + 0.4);
showmap.back._x = showmap.back._x + xmov;
showmap.back._y = showmap.back._y + ymov;
}
if (isPlus && (jumpCnt >= 55)) {
isPlus = false;
xmov = xmov * -1;
ymov = ymov * -1;
}
if ((!isPlus) && (jumpCnt < 30)) {
showmap._xscale = showmap._xscale + (backSpeedZ + 0.4);
showmap._yscale = showmap._yscale + (backSpeedZ + 0.4);
showmap.back._x = showmap.back._x + xmov;
showmap.back._y = showmap.back._y + ymov;
}
if ((!isPlus) && (jumpCnt <= 0)) {
showmap._xscale = 100;
showmap._yscale = 100;
_root.showmap.back.showuser.removeMovieClip();
if (user.backMC._type != 2) {
showmap.back._x = oldx;
showmap.back._y = oldy;
} else {
showmap.back._x = oldx + (tx - user.backMC._x);
showmap.back._y = oldy + (ty - user.backMC._y);
}
user._visible = true;
delete this.onEnterFrame;
gamestart();
}
};
}
function firstZoomMap() {
user.gotoAndStop("normal");
jumpCnt = 45;
this.onEnterFrame = function () {
jumpCnt--;
if (jumpCnt < (zoomCNt / 2)) {
showmap._xscale = showmap._xscale + 2;
showmap._yscale = showmap._yscale + 2;
user._xscale = user._xscale + 2;
user._yscale = user._yscale + 2;
}
if (jumpCnt <= 0) {
delete this.onEnterFrame;
firstgamestart();
}
};
}
function firstgamestart() {
var _local2 = _root.getAngle(Math.atan2(_root._ymouse - user._y, _root._xmouse - user._x)) - 180;
_root.user._rotation = _local2;
_root.shadow._rotation = _local2;
startTime = getTimer();
user.backMC.isOn = false;
user.backMC = "";
user.process = "rotate";
isZoom = false;
isGameStart = true;
userMove = true;
user.gotoAndStop("normal");
}
function gamestart() {
var _local2 = _root.getAngle(Math.atan2(_root._ymouse - user._y, _root._xmouse - user._x)) - 180;
_root.user._rotation = _local2;
_root.shadow._rotation = _local2;
user.process = "rotate";
isZoom = false;
isGameStart = true;
userMove = true;
user.gotoAndStop("normal");
}
function getListItem(bList, block) {
if (bList == undefined) {
return(-1);
}
var _local1 = 0;
while (_local1 < bList.length) {
if (bList[_local1] == block) {
return(_local1);
}
_local1++;
}
return(-1);
}
function deleteOne(bList, block) {
var _local1 = getListItem(bList, block);
if (_local1 > -1) {
bList.splice(_local1, 1);
}
}
function initMap() {
_root.shadow._visible = false;
lifeCheck();
bgm.play();
showmap.back._x = backBaseX;
showmap.back._y = backBaseY;
user._x = baseX;
user._y = baseY;
while (mapArr.length > 0) {
var _local20 = mapArr.shift();
if ((_type == 2) || (_type == 3)) {
delete _local20.onEnterFrame;
}
_local20.removeMovieClip();
}
while (itemArr.length > 0) {
var _local20 = itemArr.shift();
_local20.removeMovieClip();
}
while (itemArr2.length > 0) {
var _local20 = itemArr2.shift();
_local20.removeMovieClip();
}
var _local21 = (random(12) % 3) + 1;
var _local3 = ((level >= 20) ? 20 : (level));
var _local4 = 0;
while (_local4 < (itempos[_local3 - 1].length / 6)) {
var _local9 = _local4 * 6;
var _local15 = itempos[_local3 - 1][_local9];
var _local13 = itempos[_local3 - 1][_local9 + 1];
var _local18 = itempos[_local3 - 1][_local9 + 2];
var _local16 = itempos[_local3 - 1][_local9 + 3];
var _type = itempos[_local3 - 1][_local9 + 4];
var _local17 = itempos[_local3 - 1][_local9 + 5];
var _local19 = (random(12) % 3) + 1;
_root.showmap.back.attachMovie("t", "t" + _local4, getNextDepth(_root.showmap.back));
var _local5 = _root.showmap.back["t" + _local4];
if (_type == 4) {
_local5.gotoAndStop("tice");
} else {
_local5.gotoAndStop("t" + _local21);
}
_local5.island.gotoAndStop(_local19);
_local5._xscale = _local17;
_local5._yscale = _local17;
_local5._x = _local15;
_local5._y = _local13;
_local5.x1 = _local15;
_local5.y1 = _local13;
_local5.x2 = _local18;
_local5.y2 = _local16;
_local5._type = _type;
_local5._scale = _local17;
_local5.isOn = false;
mapArr.push(_local5);
if (_type == "2") {
_local5.movex = ((_local15 > _local18) ? -1 : 1);
_local5.movey = ((_local13 > _local16) ? -1 : 1);
_local5.movex = ((_local15 == _local18) ? 0 : (_local5.movex * 2));
_local5.movey = ((_local13 == _local16) ? 0 : (_local5.movey * 2));
_local5.onEnterFrame = function () {
if (((!_root.isGameStart) || (!_root.userMove)) || (_root.isZoom)) {
return(undefined);
}
if (((this.x1 < this.x2) && (this._x > this.x2)) || ((this.x1 > this.x2) && (this._x < this.x2))) {
this._x = this.x2;
this._y = this.y2;
this.movex = this.movex * -1;
} else if (((this.x1 < this.x2) && (this._x < this.x1)) || ((this.x1 > this.x2) && (this._x > this.x1))) {
this._x = this.x1;
this._y = this.y1;
this.movex = this.movex * -1;
}
if (((this.y1 < this.y2) && (this._y > this.y2)) || ((this.y1 > this.y2) && (this._y < this.y2))) {
this._x = this.x2;
this._y = this.y2;
this.movey = this.movey * -1;
} else if (((this.y1 < this.y2) && (this._y < this.y1)) || ((this.y1 > this.y2) && (this._y > this.y1))) {
this._x = this.x1;
this._y = this.y1;
this.movey = this.movey * -1;
}
if (this.isOn) {
_root.showmap.back._x = _root.showmap.back._x - this.movex;
_root.showmap.back._y = _root.showmap.back._y - this.movey;
}
this._x = this._x + this.movex;
this._y = this._y + this.movey;
if (this.moveMC != undefined) {
this.moveMC._x = this.moveMC._x + this.movex;
this.moveMC._y = this.moveMC._y + this.movey;
}
};
}
if (_type == "3") {
_local5.movescale = -2;
_local5.onEnterFrame = function () {
if (((!_root.isGameStart) || (!_root.userMove)) || (_root.isZoom)) {
return(undefined);
}
if (this.isOn && (!_root.isDie)) {
_root.blockCheck();
}
this._xscale = this._xscale + this.movescale;
this._yscale = this._yscale + this.movescale;
if ((this._xscale <= 170) || (this._xscale >= this._scale)) {
this.movescale = this.movescale * -1;
}
};
}
if (_type == "5") {
_local5.movescale = -2;
_local5.onEnterFrame = function () {
if (((!_root.isGameStart) || (!_root.userMove)) || (_root.isZoom)) {
return(undefined);
}
if (this.isOn) {
if (!_root.isDie) {
_root.blockCheck();
}
this._xscale = this._xscale + this.movescale;
this._yscale = this._yscale + this.movescale;
} else if (this._scale > this._xscale) {
this._xscale = this._xscale + Math.abs(this.movescale);
this._yscale = this._yscale + Math.abs(this.movescale);
}
};
}
_local4++;
}
_local4 = 0;
while (_local4 < mapItem[_local3 - 1].length) {
var _local6 = 0;
while (_local6 < mapItem[_local3 - 1].length) {
var _local10 = random(mapItem[_local3 - 1].length);
var _local14 = mapItem[_local3 - 1][_local6];
mapItem[_local3 - 1][_local6] = mapItem[_local3 - 1][_local10];
mapItem[_local3 - 1][_local10] = _local14;
_local6++;
}
_local4++;
}
if (mapItem[_local3 - 1][centerList[_local3 - 1]] > 0) {
_local4 = 0;
while (_local4 < mapItem[_local3 - 1].length) {
if ((mapItem[_local3 - 1][_local4] == 0) && (_local4 != centerList[_local3 - 1])) {
mapItem[_local3 - 1][_local4] = mapItem[_local3 - 1][centerList[_local3 - 1]];
mapItem[_local3 - 1][centerList[_local3 - 1]] = 0;
break;
}
_local4++;
}
}
_local4 = 0;
while (_local4 < mapItem[_local3 - 1].length) {
var _local7 = _local4 * 6;
var _local11 = _local7 + 1;
var _local12 = itempos[_local3 - 1][_local7 + 4];
if (mapItem[_local3 - 1][_local4] == 1) {
_root.showmap.back.attachMovie("mc_item", "mc_item" + _local4, getNextDepth(_root.showmap.back));
var _local8 = _root.showmap.back["mc_item" + _local4];
_local8._x = itempos[_local3 - 1][_local7];
_local8._y = itempos[_local3 - 1][_local11];
_local8._visible = true;
_local8.itemNum = mapItem[_local3 - 1][_local4];
if (_local12 == "2") {
_root.showmap.back["t" + _local4].moveMC = _local8;
}
itemArr.push(_local8);
} else if (mapItem[_local3 - 1][_local4] == 2) {
_root.showmap.back.attachMovie("mc_life", "mc_life" + _local4, getNextDepth(_root.showmap.back));
var _local8 = _root.showmap.back["mc_life" + _local4];
_local8._x = itempos[_local3 - 1][_local7];
_local8._y = itempos[_local3 - 1][_local11];
_local8._visible = true;
_local8.itemNum = mapItem[_local3 - 1][_local4];
if (_local12 == "2") {
_root.showmap.back["t" + _local4].moveMC = _local8;
}
itemArr2.push(_local8);
} else if (mapItem[_local3 - 1][_local4] == 3) {
_root.showmap.back.attachMovie("mc_cabbage", "mc_cabbage" + _local4, getNextDepth(_root.showmap.back));
var _local8 = _root.showmap.back["mc_cabbage" + _local4];
_local8._x = itempos[_local3 - 1][_local7];
_local8._y = itempos[_local3 - 1][_local11];
_local8._visible = true;
_local8.itemNum = mapItem[_local3 - 1][_local4];
if (_local12 == "2") {
_root.showmap.back["t" + _local4].moveMC = _local8;
}
itemArr2.push(_local8);
} else if (mapItem[_local3 - 1][_local4] == 4) {
_root.showmap.back.attachMovie("mc_clover", "mc_clover" + _local4, getNextDepth(_root.showmap.back));
var _local8 = _root.showmap.back["mc_clover" + _local4];
_local8._x = itempos[_local3 - 1][_local7];
_local8._y = itempos[_local3 - 1][_local11];
_local8._visible = true;
_local8.itemNum = mapItem[_local3 - 1][_local4];
if (_local12 == "2") {
_root.showmap.back["t" + _local4].moveMC = _local8;
}
itemArr2.push(_local8);
} else if (mapItem[_local3 - 1][_local4] == 5) {
_root.showmap.back.attachMovie("mc_Smark", "mc_Smark" + _local4, getNextDepth(_root.showmap.back));
var _local8 = _root.showmap.back["mc_Smark" + _local4];
_local8._x = itempos[_local3 - 1][_local7];
_local8._y = itempos[_local3 - 1][_local11];
_local8._visible = true;
_local8.itemNum = mapItem[_local3 - 1][_local4];
if (_local12 == "2") {
_root.showmap.back["t" + _local4].moveMC = _local8;
}
itemArr2.push(_local8);
}
_local4++;
}
setScoreNumber();
setMissionNumber();
setStageNumber();
user._xscale = user._xscale - zoomCNt;
user._yscale = user._yscale - zoomCNt;
showmap._xscale = showmap._xscale - zoomCNt;
showmap._yscale = showmap._yscale - zoomCNt;
_root.stageStart.gotoAndPlay(1);
}
function gameover() {
bgm.stop();
sound_end.play();
life = 3;
level = 1;
isDie = false;
user.process = "";
userMove = false;
user.isDown = false;
user.isFall = false;
user.backMC = "";
jumpCnt = 0;
showmap.back._x = backBaseX;
showmap.back._y = backBaseY;
user._x = baseX;
user._y = baseY;
_root.addScore(0);
_root.saveScore();
_root.isGameStart = false;
_root.btstart._visible = true;
_root.btstart.enabled = true;
}
function getAngle(pRadian) {
return(57.2957795130823 * pRadian);
}
function gamecheck() {
user.isSuperMan = false;
if (life > 0) {
lifeCheck();
showmap.back._x = backBaseX;
showmap.back._y = backBaseY;
user._x = baseX;
user._y = baseY;
isDie = false;
if (user.isSuperMan) {
user.gotoAndStop("supernormal");
} else {
user.gotoAndStop("normal");
}
} else {
lifeCheck();
gameover();
}
}
function lifeCheck() {
var _local2 = 1;
while (_local2 <= maxlife) {
if (life >= _local2) {
_root["life" + _local2]._visible = true;
} else {
_root["life" + _local2]._visible = false;
}
_local2++;
}
}
function setScoreNumber() {
var _local4 = gamescore.toString().split("");
_local4.reverse();
var _local2 = 0;
while (_local2 < 10) {
var _local3 = _local4[_local2];
if (_local3 eq "undefined") {
_local3 = 0;
}
_root.scoreG["s" + _local2].gotoAndStop("s" + _local3);
_local2++;
}
}
function setMissionNumber() {
var _local4 = itemArr.length.toString().split("");
_local4.reverse();
var _local2 = 0;
while (_local2 < 2) {
var _local3 = _local4[_local2];
if (_local3 eq "undefined") {
_local3 = 0;
}
_root.mission["m" + _local2].gotoAndStop("s" + _local3);
_local2++;
}
}
function setStageNumber() {
var _local4 = level.toString().split("");
_local4.reverse();
var _local2 = 0;
while (_local2 < 2) {
var _local3 = _local4[_local2];
if (_local3 eq "undefined") {
_local3 = 0;
}
_root.stage["st" + _local2].gotoAndStop("s" + _local3);
_local2++;
}
}
function timerCheck() {
totalTimes = totalTimes - 1;
if (totalTimes <= 0) {
game_over();
}
time_bar.limitTime._xscale = (100 * totalTimes) / (times * 40);
}
function scoreMCClear() {
_root.mc_Plus_score.removeMovieClip();
}
function iceItemCheck() {
var _local1 = 0;
while (_local1 < itemArr.length) {
var _local2 = itemArr[_local1];
if (_local2.hitTest(user)) {
user.isHit = true;
user.delitem = _local2;
break;
}
_local1++;
}
_local1 = 0;
while (_local1 < itemArr2.length) {
var _local2 = itemArr2[_local1];
if (_local2.hitTest(user)) {
user.isHit = true;
user.delitem = _local2;
break;
}
_local1++;
}
}
function removeItems(itemB) {
sound_items.play();
_root.showmap.back.attachMovie("mc_carrot_effect", "mc_carrot_effect", getNextDepth(_root.showmap.back));
_root.showmap.back.mc_carrot_effect._x = itemB._x;
_root.showmap.back.mc_carrot_effect._y = itemB._y;
_root.attachMovie("mc_Plus_score", "mc_Plus_score", getNextDepth(_root));
_root.mc_Plus_score._x = user._x;
_root.mc_Plus_score._y = user._y - 20;
switch (itemB.itemNum) {
case 1 :
deleteOne(itemArr, itemB);
_root.mc_Plus_score.play();
break;
case 2 :
deleteOne(itemArr2, itemB);
_root.mc_Plus_score.gotoAndStop("life");
if (life < 5) {
life++;
}
lifeCheck();
_root.mc_Plus_score.itemM.play();
break;
case 3 :
deleteOne(itemArr2, itemB);
_root.mc_Plus_score.gotoAndStop("s500");
gamescore = gamescore + 500;
_root.addScore(500);
_root.mc_Plus_score.itemM.play();
break;
case 4 :
deleteOne(itemArr2, itemB);
_root.mc_Plus_score.gotoAndStop("s1000");
gamescore = gamescore + 1000;
_root.addScore(1000);
_root.mc_Plus_score.itemM.play();
break;
case 5 :
deleteOne(itemArr2, itemB);
_root.mc_Plus_score.gotoAndStop("superman");
superMan();
_root.mc_Plus_score.itemM.play();
}
setMissionNumber();
setScoreNumber();
itemB.removeMovieClip();
}
function itemCheck() {
userMove = false;
var _local4 = false;
var _local3 = 0;
while (_local3 < itemArr.length) {
var _local2 = itemArr[_local3];
if (_local2.hitTest(user)) {
_local4 = true;
_root.showmap.back.attachMovie("mc_carrot_effect", "mc_carrot_effect", getNextDepth(_root.showmap.back));
_root.showmap.back.mc_carrot_effect._x = _local2._x;
_root.showmap.back.mc_carrot_effect._y = _local2._y;
_root.attachMovie("mc_Plus_score", "mc_Plus_score", getNextDepth(_root));
_root.mc_Plus_score._x = user._x;
_root.mc_Plus_score._y = user._y - 20;
_root.mc_Plus_score.play();
sound_item.play();
deleteOne(itemArr, _local2);
_local2.removeMovieClip();
gamescore = gamescore + 100;
_root.addScore(100);
setMissionNumber();
setScoreNumber();
}
_local3++;
}
if (itemArr.length > 0) {
userMove = true;
}
_local3 = 0;
while (_local3 < itemArr2.length) {
var _local2 = itemArr2[_local3];
if (_local2.hitTest(user)) {
_local4 = true;
sound_items.play();
_root.showmap.back.attachMovie("mc_carrot_effect", "mc_carrot_effect", getNextDepth(_root.showmap.back));
_root.showmap.back.mc_carrot_effect._x = _local2._x;
_root.showmap.back.mc_carrot_effect._y = _local2._y;
_root.attachMovie("mc_Plus_score", "mc_Plus_score", getNextDepth(_root));
_root.mc_Plus_score._x = user._x;
_root.mc_Plus_score._y = user._y - 20;
deleteOne(itemArr2, _local2);
switch (_local2.itemNum) {
case 2 :
_root.mc_Plus_score.gotoAndStop("life");
if (life < 5) {
life++;
}
lifeCheck();
break;
case 3 :
_root.mc_Plus_score.gotoAndStop("s500");
gamescore = gamescore + 500;
_root.addScore(500);
break;
case 4 :
_root.mc_Plus_score.gotoAndStop("s1000");
gamescore = gamescore + 1000;
_root.addScore(1000);
break;
case 5 :
_root.mc_Plus_score.gotoAndStop("superman");
superMan();
}
setMissionNumber();
setScoreNumber();
_local2.removeMovieClip();
}
_root.mc_Plus_score.itemM.play();
_local3++;
}
if (!_local4) {
if (user.backMC._type == 4) {
sound_ice.play();
} else {
if (!user.isSoundOn) {
sound_fall.play();
}
user.isSoundOn = true;
}
}
}
function superMan() {
user.gotoAndStop("superman");
user.isSuperMan = true;
user.superManCnt = 0;
}
function clearcheck() {
if (itemArr.length <= 0) {
gameClear();
}
}
function gameClear() {
bgm.stop();
sound_gameclear.play();
var _local2 = int(1000 - ((getTimer() - startTime) / 1000));
gamescore = gamescore + _local2;
_root.addScore(_local2);
setScoreNumber();
userMove = false;
level++;
user.isSuperMan = false;
user.superManCnt = 0;
user.gotoAndStop("normal");
stageClearMsg._visible = true;
stageClearMsg.gotoAndPlay(1);
}
function moveBack() {
vRadian = user._rotation * 0.017453;
speedX = jumpSpeedXY * Math.cos(vRadian);
speedY = jumpSpeedXY * Math.sin(vRadian);
showmap.back._x = showmap.back._x + speedX;
showmap.back._y = showmap.back._y + speedY;
}
function moveBack2() {
vRadian = user._rotation * 0.017453;
speedX = user.slidespeed * Math.cos(vRadian);
speedY = user.slidespeed * Math.sin(vRadian);
showmap.back._x = showmap.back._x + speedX;
showmap.back._y = showmap.back._y + speedY;
}
function jump() {
if (user.isSuperMan) {
user.gotoAndStop("superman");
} else {
user.gotoAndStop("jumping");
}
user.speedZ = jumpSpeedZ;
if (jumpCnt == 0) {
sound_jump.play();
}
jumpCnt++;
if (jumpCnt < upanddown) {
showmap._xscale = showmap._xscale - backSpeedZ;
showmap._yscale = showmap._yscale - backSpeedZ;
_root.shadow._xscale = _root.shadow._xscale - shadowMove;
_root.shadow._yscale = _root.shadow._yscale - shadowMove;
_root.shadow._x = _root.shadow._x + shadowMovex;
_root.shadow._y = _root.shadow._y + shadowMovey;
} else {
if (!user.isSuperMan) {
user.gotoAndStop("tumble");
}
if (!user.isSoundOn) {
user.isSoundOn = true;
sound_tumble.play();
}
user.user_char.play();
}
moveBack();
if (jumpCnt >= maxtop) {
user.powers = maxtop;
user.process = "fall";
user.isDown = false;
user.isFall = true;
}
}
function blockCheck() {
if (isZoom) {
return(undefined);
}
var _local4 = false;
var _local3 = 0;
while (_local3 < mapArr.length) {
var _local2 = mapArr[_local3];
if (_local2.island.hitarea.hitTest(user._x, user._y, true)) {
_local4 = true;
_local2.isOn = true;
user.backMC = _local2;
if (_local2._type == 4) {
user.isSlide = true;
moveBack2();
}
break;
}
_local3++;
}
if (_local4) {
if (user.isSuperMan) {
user.gotoAndStop("supernormal");
} else {
user.gotoAndStop("normal");
}
if (!user.isSlide) {
itemCheck();
} else {
if (!user.isSoundOn) {
sound_ice.play();
}
user.isSoundOn = true;
iceItemCheck();
}
if (user.backMC._type != 4) {
var _local5 = _root.getAngle(Math.atan2(_root._ymouse - user._y, _root._xmouse - user._x)) - 180;
_root.user._rotation = _local5;
_root.shadow._rotation = _local5;
}
} else {
isDie = true;
isHit = false;
user.isSlide = false;
delitem = null;
life--;
if (life < 1) {
isOver = true;
}
sound_die.play();
user.gotoAndStop("death");
user.char.play();
user.process = "rotate";
user.backMC.isOn = false;
user.backMC = "";
}
}
function fall() {
user.isSoundOn = false;
if (jumpCnt <= 0) {
mote._visible = true;
mote._x = user._x;
mote._y = user._y;
mote.play();
_root.shadow._visible = false;
user.process = "rotate";
user.isDown = false;
user.isFall = false;
user.isDire = !user.isDire;
user.rotate = user.rotate * -1;
jumpCnt = 0;
blockCheck();
reset();
} else {
user.speedZ = jumpSpeedZ;
if (jumpCnt < upanddown) {
showmap._xscale = showmap._xscale + backSpeedZ;
showmap._yscale = showmap._yscale + backSpeedZ;
_root.shadow._xscale = _root.shadow._xscale + shadowMove;
_root.shadow._yscale = _root.shadow._yscale + shadowMove;
_root.shadow._x = _root.shadow._x - shadowMovex;
_root.shadow._y = _root.shadow._y - shadowMovey;
}
jumpCnt--;
moveBack();
}
}
function getNextDepth(mc) {
var _local2 = 0;
for (name in mc) {
var _local1 = mc[name].getDepth();
if (_local1 > _local2) {
_local2 = _local1;
}
}
return(_local2 + 1);
}
stop();
var isPause = false;
var jumpCnt = 0;
var jumpSpeedZ = 0.2;
var jumpSpeedXY = 6;
var backSpeedZ = 2.2;
var scalex = this._width;
var scaley = this._height;
var baseX = showmap._x;
var baseY = showmap._y;
var backBaseX = showmap.back._x;
var backBaseY = showmap.back._y;
var life = 3;
var level = 1;
var isGameStart = false;
var userMove = false;
var isZoom = true;
var isOver = false;
var gamescore = 0;
var mapItem = new Array();
var mis = 0;
var itemArr = new Array();
var itemArr2 = new Array();
var mapArr = new Array();
var itempos = new Array();
var upanddown = 17;
var maxtop = 19;
var isDie = false;
var shadowMove = 3;
var shadowMovex = 3;
var shadowMovey = 4;
var maxlife = 5;
var centerList = [1, 3, 5, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 12, 7, 12, 12, 12];
var zoomCNt = 80;
var startTime = 0;
var isSound = true;
var pauseTime = 0;
var isClear = false;
_root.initScore();
stageClearMsg._visible = false;
shadow._visible = false;
mote._visible = false;
pauseMC._visible = false;
sound_btn.onPress = function () {
if (!userMove) {
return(undefined);
}
user.backMC.isOn = true;
_root.isSound = !_root.isSound;
if (isSound) {
bgm.play();
} else {
bgm.stop();
}
};
pause_btn.onPress = function () {
if (isGameStart) {
if ((_root.isZoom || (_root.user.process != "rotate")) || (!userMove)) {
return(undefined);
}
pauseMC._visible = true;
pauseTime = getTimer();
isGameStart = false;
userMove = false;
if (isSound) {
bgm.stop();
}
} else {
user.backMC.isOn = true;
pauseMC._visible = false;
startTime = startTime + pauseTime;
isGameStart = true;
userMove = true;
if (isSound) {
bgm.play();
}
}
};
bgm.stop();
var bgm = new Sound(this);
bgm.attachSound("\uBC30\uACBD\uC74C\uC545");
bgm.play = function () {
if (isSound) {
this.start(0, 99999);
this.setVolume(80);
}
};
var sound_gameclear = new Sound(this);
sound_gameclear.attachSound("\uC2A4\uD14C\uC774\uC9C0\uD074\uB9AC\uC5B4");
sound_gameclear.play = function () {
if (isSound) {
this.start();
this.setVolume(80);
}
};
var sound_gamestart = new Sound(this);
sound_gamestart.attachSound("\uC2A4\uD14C\uC774\uC9C0\uC2DC\uC791");
sound_gamestart.play = function () {
if (isSound) {
this.start();
this.setVolume(80);
}
};
var sound_item = new Sound(this);
sound_item.attachSound("\uCC29\uC9C0\uD6C4\uB2F9\uADFC\uBA39\uC5C8\uC744\uB54C");
sound_item.play = function () {
if (isSound) {
this.start();
this.setVolume(80);
}
};
var sound_die = new Sound(this);
sound_die.attachSound("\uBB3C");
sound_die.play = function () {
if (isSound) {
this.start();
this.setVolume(80);
}
};
var sound_fall = new Sound(this);
sound_fall.attachSound("\uCC29\uC9C0");
sound_fall.play = function () {
if (isSound) {
this.start();
this.setVolume(80);
}
};
var sound_items = new Sound(this);
sound_items.attachSound("\uBAA8\uB4E0\uC544\uC774\uD15C");
sound_items.play = function () {
if (isSound) {
this.start();
this.setVolume(80);
}
};
var sound_zoom = new Sound(this);
sound_zoom.attachSound("\uC90C");
sound_zoom.play = function () {
if (isSound) {
this.start();
this.setVolume(80);
}
};
var sound_ice = new Sound(this);
sound_ice.attachSound("\uC5BC\uC74C");
sound_ice.play = function () {
if (isSound) {
this.start();
this.setVolume(80);
}
};
var sound_jump = new Sound(this);
sound_jump.attachSound("\uC810\uD504");
sound_jump.play = function () {
if (isSound) {
this.start();
this.setVolume(80);
}
};
var sound_end = new Sound(this);
sound_end.attachSound("gameend");
sound_end.play = function () {
if (isSound) {
this.start();
this.setVolume(80);
}
};
var sound_tumble = new Sound(this);
sound_tumble.attachSound("\uB364\uBE14\uB9C1");
sound_tumble.play = function () {
if (isSound) {
this.start();
this.setVolume(80);
}
};
setScoreNumber();
setMissionNumber();
setStageNumber();
var myListener = new Object();
myListener.onKeyDown = myOnKeyDown;
Key.addListener(myListener);
btZoom.onPress = function () {
if ((((!isZoom) && (user.process != "fall")) && (userMove)) && (!isDie)) {
zoomMap();
}
};
mapItem[0] = [1, 0];
mapItem[1] = [1, 1, 1, 0, 0, 0];
mapItem[2] = [1, 1, 1, 1, 0, 0, 0];
mapItem[3] = [1, 1, 1, 1, 1, 2, 0, 1, 0];
mapItem[4] = [1, 1, 1, 1, 1, 2, 3, 3, 0, 0, 0];
mapItem[5] = [1, 1, 1, 1, 1, 2, 3, 1, 3, 0, 1, 4];
mapItem[6] = [1, 1, 1, 1, 1, 2, 3, 1, 3, 0, 1, 4];
mapItem[7] = [1, 1, 1, 1, 1, 2, 3, 1, 3, 0, 1, 4];
mapItem[8] = [1, 1, 1, 1, 1, 2, 3, 1, 0, 1, 1, 4];
mapItem[9] = [1, 1, 1, 1, 1, 2, 3, 1, 0, 1, 4, 5];
mapItem[9] = [1, 1, 1, 1, 1, 2, 3, 1, 0, 1, 4, 5];
mapItem[10] = [1, 1, 1, 1, 1, 2, 3, 1, 0, 4, 1, 4, 5, 1];
mapItem[11] = [1, 1, 1, 1, 1, 2, 3, 1, 0, 4, 1, 4, 5, 1, 1, 1];
mapItem[12] = [1, 1, 1, 1, 1, 2, 3, 1, 0, 4, 1, 4, 5, 1, 1, 1, 3];
mapItem[13] = [1, 1, 1, 1, 1, 2, 3, 1, 0, 4, 1, 4, 5, 1, 1, 1, 3];
mapItem[14] = [1, 1, 1, 1, 1, 2, 3, 1, 0, 4, 1, 4, 5, 1, 1, 1, 3];
mapItem[15] = [1, 1, 1, 1, 1, 2, 3, 1, 0, 4, 1, 4, 5, 1, 1, 1, 3, 3];
mapItem[16] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 2, 3, 3, 4, 5, 4, 4];
mapItem[17] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 2, 3, 3, 4, 5, 4, 4];
mapItem[18] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 2, 3, 3, 4, 5, 4, 4];
mapItem[19] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 2, 3, 3, 4, 5, 4, 4];
itempos[0] = ["660", "900", "660", "900", "1", "1000", "1000", "900", "1000", "900", "1", "1000"];
itempos[1] = ["943", "697", "943", "697", "1", "530", "1165", "732", "1165", "732", "1", "450", "780", "831", "780", "831", "1", "530", "1017", "873", "1017", "873", "1", "360", "1232", "934", "1232", "934", "1", "600", "941", "1109", "941", "1109", "1", "600"];
itempos[2] = ["1154", "704", "1154", "704", "1", "520", "904", "720", "904", "720", "1", "450", "768", "895", "768", "895", "1", "520", "779", "1100", "925", "1100", "2", "400", "1201", "1103", "1201", "1103", "1", "566", "1026", "924", "1026", "924", "1", "600", "1211", "888", "1211", "888", "1", "400"];
itempos[3] = ["1154", "704", "1154", "704", "1", "520", "904", "720", "904", "720", "1", "500", "725", "895", "725", "895", "1", "580", "779", "1100", "925", "1100", "2", "440", "802", "506", "802", "506", "1", "600", "1026", "924", "1026", "924", "1", "600", "1293", "840", "1293", "980", "2", "440", "896", "1320", "896", "1320", "1", "600", "1404", "1165", "1404", "1165", "1", "600"];
itempos[4] = ["1117", "579", "1117", "579", "1", "560", "891", "709", "891", "709", "1", "500", "725", "895", "725", "895", "1", "560", "779", "1100", "925", "1100", "2", "440", "519", "458", "519", "458", "1", "600", "1026", "924", "1026", "924", "1", "700", "1341", "864", "1341", "864", "3", "680", "861", "1330", "861", "1330", "1", "600", "1348", "1130", "1348", "1130", "1", "600", "542", "624", "542", "824", "2", "440", "508", "1151", "508", "1151", "3", "936"];
itempos[5] = ["1117", "579", "1117", "579", "1", "560", "891", "709", "891", "709", "1", "500", "725", "895", "725", "895", "1", "560", "782", "1113", "902", "1113", "2", "440", "747", "528", "747", "528", "1", "600", "1026", "924", "1026", "924", "1", "700", "1259", "1032", "1259", "1032", "3", "744", "861", "1330", "861", "1330", "1", "600", "1312", "1302", "1312", "1302", "1", "600", "566", "700", "566", "700", "1", "400", "508", "1151", "508", "1151", "3", "936", "1379", "748", "1379", "748", "1", "400"];
itempos[6] = ["1153", "615", "1153", "615", "1", "560", "891", "709", "891", "709", "1", "500", "725", "895", "725", "895", "4", "600", "782", "1113", "902", "1113", "2", "440", "747", "528", "747", "528", "1", "600", "1026", "924", "1026", "924", "1", "600", "1259", "1032", "1259", "1032", "3", "744", "861", "1330", "861", "1330", "1", "600", "1312", "1260", "1312", "1260", "1", "600", "566", "700", "566", "700", "1", "450", "508", "1151", "508", "1151", "3", "936", "1379", "748", "1379", "748", "4", "500"];
itempos[7] = ["1153", "615", "1153", "615", "1", "508", "891", "709", "891", "709", "5", "400", "725", "895", "725", "895", "4", "508", "782", "1113", "902", "1113", "2", "338", "747", "528", "747", "528", "1", "566", "1026", "924", "1026", "924", "1", "566", "1259", "1032", "1259", "1032", "3", "744", "861", "1330", "861", "1330", "1", "566", "1312", "1302", "1312", "1302", "1", "566", "566", "700", "566", "700", "1", "338", "508", "1151", "508", "1151", "3", "936", "1379", "748", "1379", "748", "4", "400"];
itempos[8] = ["1153", "615", "1153", "615", "1", "508", "891", "709", "891", "709", "5", "400", "725", "895", "725", "895", "4", "508", "1066", "1177", "1066", "1177", "1", "338", "747", "528", "747", "528", "1", "566", "1026", "924", "1026", "924", "1", "566", "1341", "1032", "1341", "1032", "3", "744", "846", "1378", "846", "1378", "5", "566", "1312", "1302", "1312", "1302", "1", "566", "566", "700", "566", "700", "1", "338", "508", "1151", "508", "1151", "3", "936", "1379", "748", "1379", "748", "4", "400"];
itempos[9] = ["1065", "715", "1065", "715", "1", "508", "881", "731", "881", "731", "5", "400", "1293", "619", "1293", "619", "3", "600", "860", "1127", "990", "1127", "2", "338", "796", "483", "796", "483", "1", "560", "1026", "924", "1026", "924", "1", "560", "1279", "961", "1279", "961", "3", "700", "875", "1276", "875", "1276", "5", "560", "1254", "1256", "1254", "1256", "4", "560", "652", "652", "652", "652", "2", "338", "628", "1093", "628", "1093", "3", "700", "819", "915", "819", "915", "4", "500"];
itempos[10] = ["1026", "924", "1026", "924", "5", "560", "1285", "647", "1285", "647", "3", "560", "797", "715", "797", "715", "3", "530", "1030", "720", "1030", "720", "4", "430", "890", "1075", "890", "1075", "4", "430", "1056", "1267", "1056", "1267", "3", "600", "1240", "972", "1240", "972", "5", "500", "937", "540", "937", "540", "5", "330", "842", "884", "842", "884", "1", "300", "742", "1150", "742", "1150", "4", "360", "1353", "846", "1353", "846", "1", "330", "1100", "1092", "1231", "1092", "2", "233", "1304", "1186", "1304", "1356", "2", "233", "687", "895", "687", "995", "2", "233"];
itempos[11] = ["968", "883", "968", "883", "1", "266", "678", "575", "678", "575", "3", "433", "942", "507", "942", "507", "4", "366", "802", "539", "802", "729", "2", "300", "960", "694", "960", "694", "5", "466", "1133", "649", "1133", "649", "5", "366", "1299", "751", "1299", "900", "2", "300", "645", "832", "645", "832", "4", "400", "822", "872", "822", "872", "3", "433", "1112", "837", "1112", "837", "5", "433", "719", "1011", "719", "1011", "4", "366", "904", "1040", "904", "1040", "5", "466", "1066", "1214", "1066", "1214", "4", "366", "650", "1176", "650", "1176", "5", "433", "1139", "1048", "1139", "1048", "3", "533", "893", "1196", "893", "1196", "1", "300"];
itempos[12] = ["993", "910", "993", "910", "1", "266", "1108", "685", "1108", "885", "2", "266", "944", "785", "944", "785", "5", "400", "1246", "1021", "1246", "1021", "4", "400", "866", "1059", "998", "1059", "2", "300", "774", "962", "774", "962", "5", "466", "807", "643", "987", "643", "2", "286", "1074", "578", "1074", "578", "4", "333", "1279", "771", "1279", "771", "5", "400", "624", "727", "624", "727", "4", "400", "764", "431", "764", "431", "4", "400", "581", "1113", "581", "1113", "5", "533", "1244", "537", "1244", "537", "1", "300", "634", "389", "634", "389", "4", "333", "489", "761", "489", "761", "3", "333", "1126", "404", "1126", "404", "3", "333", "1177", "1247", "1177", "1247", "4", "333"];
itempos[13] = ["993", "910", "993", "910", "1", "266", "1088", "592", "1088", "892", "2", "266", "924", "776", "924", "776", "3", "400", "1357", "1062", "1357", "1062", "4", "333", "846", "1099", "996", "1099", "2", "300", "1185", "1073", "1185", "1073", "4", "466", "774", "464", "774", "714", "2", "333", "964", "478", "964", "478", "4", "333", "1315", "635", "1315", "635", "3", "400", "624", "727", "624", "727", "5", "400", "1016", "293", "1016", "293", "3", "400", "676", "1054", "676", "1054", "3", "500", "1223", "766", "1223", "766", "1", "300", "589", "380", "589", "380", "4", "333", "489", "761", "489", "761", "5", "333", "1148", "404", "1148", "404", "5", "333", "1139", "1229", "1139", "1229", "4", "333"];
itempos[14] = ["993", "910", "993", "910", "1", "266", "1054", "638", "1054", "638", "4", "266", "924", "776", "924", "776", "5", "400", "1126", "931", "1126", "931", "4", "333", "846", "1076", "996", "1076", "2", "300", "1322", "1091", "1322", "1091", "5", "466", "816", "625", "816", "625", "4", "333", "964", "498", "964", "498", "1", "333", "1262", "372", "1262", "372", "1", "400", "533", "618", "533", "618", "3", "400", "924", "299", "924", "299", "5", "400", "676", "1054", "676", "1054", "3", "500", "1105", "766", "1105", "766", "4", "300", "660", "442", "660", "642", "2", "333", "489", "761", "489", "761", "5", "333", "1232", "663", "1232", "663", "1", "333", "778", "833", "778", "833", "4", "333"];
itempos[15] = ["1525", "730", "1525", "930", "2", "333", "1262", "372", "1262", "372", "1", "400", "723", "442", "723", "442", "4", "333", "941", "498", "941", "498", "1", "333", "553", "618", "553", "618", "5", "400", "1054", "638", "1054", "638", "4", "266", "1278", "599", "1278", "599", "5", "333", "489", "761", "489", "761", "5", "333", "927", "729", "927", "729", "5", "333", "1105", "766", "1105", "766", "5", "300", "1323", "833", "1323", "833", "4", "333", "778", "847", "778", "847", "4", "333", "1003", "920", "1003", "920", "1", "333", "1188", "949", "1188", "949", "4", "300", "676", "1054", "676", "1054", "3", "500", "846", "1076", "996", "1076", "2", "300", "1308", "1076", "1308", "1076", "5", "366", "951", "1282", "951", "1282", "4", "400"];
itempos[16] = ["640", "651", "640", "651", "4", "400", "980", "630", "820", "630", "2", "160", "1270", "549", "1270", "549", "1", "160", "1120", "679", "1120", "679", "5", "350", "1438", "657", "1438", "657", "5", "350", "820", "789", "820", "789", "4", "400", "687", "898", "687", "898", "5", "250", "1000", "892", "1000", "892", "4", "320", "1283", "834", "1283", "834", "3", "400", "1510", "950", "1510", "750", "2", "160", "724", "1090", "724", "1090", "3", "400", "957", "1126", "957", "1126", "1", "160", "1132", "1046", "1132", "1046", "4", "380", "1474", "1104", "1474", "1104", "4", "380", "669", "1260", "669", "1260", "4", "320", "889", "1266", "889", "1266", "5", "350", "1106", "1255", "1106", "1255", "4", "300", "1289", "1189", "1289", "1189", "4", "300"];
itempos[17] = ["1258", "1149", "1458", "1149", "2", "333", "1273", "643", "1273", "643", "3", "400", "754", "457", "754", "457", "4", "333", "941", "542", "941", "542", "5", "333", "570", "894", "570", "894", "5", "400", "1054", "682", "1054", "682", "4", "266", "1225", "436", "1225", "436", "4", "333", "541", "693", "541", "693", "4", "333", "864", "753", "864", "753", "5", "333", "1141", "810", "1141", "810", "4", "300", "1354", "777", "1354", "977", "2", "333", "831", "945", "831", "945", "4", "333", "1003", "920", "1003", "920", "1", "333", "1188", "993", "1188", "993", "4", "300", "669", "1106", "669", "1106", "3", "450", "536", "1285", "736", "1285", "2", "300", "995", "1313", "995", "1313", "4", "366", "937", "1125", "937", "1125", "5", "400"];
itempos[18] = ["1258", "1149", "1258", "1149", "4", "333", "1273", "643", "1273", "643", "3", "400", "754", "457", "754", "457", "4", "333", "941", "542", "941", "542", "5", "333", "570", "894", "570", "894", "5", "400", "1054", "682", "1054", "682", "4", "266", "1225", "436", "1225", "436", "4", "333", "541", "693", "541", "693", "4", "333", "864", "753", "864", "753", "4", "333", "1141", "810", "1141", "810", "4", "300", "1354", "777", "1354", "977", "4", "333", "831", "945", "831", "945", "4", "333", "1003", "920", "1003", "920", "4", "333", "1188", "993", "1188", "993", "4", "300", "669", "1106", "669", "1106", "3", "350", "536", "1285", "786", "1285", "2", "200", "1005", "1280", "1185", "1280", "2", "160", "937", "1125", "937", "1125", "4", "333"];
itempos[19] = ["1146", "1246", "1346", "1246", "2", "333", "1362", "534", "1362", "834", "2", "366", "812", "442", "572", "442", "2", "333", "971", "660", "971", "660", "3", "333", "482", "874", "482", "999", "2", "300", "1100", "682", "1100", "682", "4", "266", "1010", "504", "1210", "504", "2", "333", "487", "693", "487", "493", "2", "333", "827", "715", "827", "715", "4", "333", "1141", "810", "1141", "810", "4", "300", "1387", "1000", "1387", "1122", "2", "333", "816", "890", "816", "890", "4", "333", "1003", "920", "1003", "920", "4", "333", "1188", "993", "1188", "993", "5", "300", "688", "1055", "688", "1055", "4", "366", "536", "1285", "766", "1285", "2", "300", "961", "1257", "961", "1257", "4", "333", "912", "1099", "912", "1099", "3", "333"];
initMap();
Instance of Symbol 234 MovieClip "showmap" in Frame 4
onClipEvent (load) {
this.useHandCursor = false;
}
on (press) {
_root.user.backMC.isOn = false;
_root.user.isSoundOn = false;
if ((((_root._xmouse > xp) && (_root._xmouse < (xp + _root.sound_btn._width))) && (_root._ymouse > yp)) && (_root._ymouse < (yp + _root.sound_btn._height))) {
_root.user.backMC.isOn = true;
_root.user.isButton = true;
} else if ((((_root._xmouse > xxp) && (_root._xmouse < (xxp + _root.btZoom._width))) && (_root._ymouse > yyp)) && (_root._ymouse < (yyp + _root.btZoom._height))) {
_root.user.isButton = true;
} else if ((((_root._xmouse > xxxp) && (_root._xmouse < (xxxp + _root.pause_btn._width))) && (_root._ymouse > yyyp)) && (_root._ymouse < (yyyp + _root.pause_btn._height))) {
isButton = true;
} else {
_root.user.isButton = false;
}
if (((_root.isDie || (_root.user.isSlide)) || (!_root.userMove)) || (_root.user.isButton)) {
return(undefined);
}
if ((!_root.isGameStart) || (_root.isZoom)) {
_root.user.process = "rotate";
return(undefined);
}
if (_root.user.process == "fall") {
return(undefined);
}
if (_parent.isPause) {
return(undefined);
}
if (_root.user.process == "rotate") {
_root.shadow._x = this._x;
_root.shadow._y = this._y;
}
_root.user.process = "jump";
_root.shadow._visible = true;
}
on (release) {
if (_root.user.process == "jump") {
_root.user.powers = _root.jumpCnt;
}
if ((_root.isDie || (_root.user.isSlide)) || (!_root.userMove)) {
return(undefined);
}
if ((!_root.isGameStart) || (_root.isZoom)) {
_root.user.process = "rotate";
return(undefined);
}
if (_parent.isPause) {
return(undefined);
}
if (_root.user.process != "rotate") {
_root.user.process = "fall";
}
_root.shadow._visible = true;
}
onClipEvent (mouseMove) {
var xp = _root.sound_btn._x;
var yp = _root.sound_btn._y;
var xxp = _root.btZoom._x;
var yyp = _root.btZoom._y;
var xxxp = _root.pause_btn._x;
var yyyp = _root.pause_btn._y;
if ((((_root._xmouse > xp) && (_root._xmouse < (xp + _root.sound_btn._width))) && (_root._ymouse > yp)) && (_root._ymouse < (yp + _root.sound_btn._height))) {
_root.user.backMC.isOn = true;
_root.user.isButton = true;
} else if ((((_root._xmouse > xxp) && (_root._xmouse < (xxp + _root.btZoom._width))) && (_root._ymouse > yyp)) && (_root._ymouse < (yyp + _root.btZoom._height))) {
_root.user.isButton = true;
} else if ((((_root._xmouse > xxxp) && (_root._xmouse < (xxxp + _root.pause_btn._width))) && (_root._ymouse > yyyp)) && (_root._ymouse < (yyyp + _root.pause_btn._height))) {
_root.user.isButton = true;
} else {
isButton = false;
}
if (_root.user.isSlide || (!_root.userMove)) {
return(undefined);
}
if (_root.user.process != "rotate") {
if (!_root.user.isSuperMan) {
return(undefined);
}
}
var rotate = (_root.getAngle(Math.atan2(_root._ymouse - _root.user._y, _root._xmouse - _root.user._x)) - 180);
_root.user._rotation = rotate;
_root.shadow._rotation = rotate;
}
Instance of Symbol 267 MovieClip "user" in Frame 4
onClipEvent (load) {
var speedZ = 0;
var process = "";
var rotate = 7;
var isDire = false;
var backMC = null;
var delitem = null;
var isSuperMan = false;
var superManCnt = 0;
var superTime = 60;
var powers = 0;
var isSlide = false;
var slidespeed = 5;
var isSoundOn = false;
var isButton = false;
var isHit = false;
}
onClipEvent (enterFrame) {
if (isSlide) {
if (powers > 0) {
slidespeed = slidespeed - 0.2;
var vRadian = (this._rotation * 0.017453);
var slideX = (slidespeed * Math.cos(vRadian));
var slideY = (slidespeed * Math.sin(vRadian));
_root.showmap.back._x = _root.showmap.back._x + slideX;
_root.showmap.back._y = _root.showmap.back._y + slideY;
_root.blockCheck();
powers = powers - 2;
} else {
if (isHit) {
if (!_root.isDie) {
_root.removeItems(delitem);
}
delitem = null;
}
isHit = false;
powers = 0;
slidespeed = 5;
isSlide = false;
}
return(undefined);
}
if (isSuperMan) {
superManCnt++;
if (superManCnt > ((superTime - 10) * 30)) {
_root.user.char.wing.gotoAndStop("caution");
}
if (superManCnt >= (superTime * 30)) {
_root.user.char.wing.gotoAndStop("normal");
isSuperMan = false;
superManCnt = 0;
user.gotoAndStop("normal");
}
}
if (((!_root.isGameStart) || (_root.isZoom)) || (!_root.userMove)) {
return(undefined);
}
if (process == "jump") {
_root.down();
} else if (process == "fall") {
_root.fall();
} else if (process == "rotate") {
_root.shadow._visible = false;
}
}
Instance of Symbol 272 MovieClip "btstart" in Frame 4
on (release) {
_root.btstart._visible = false;
_root.btstart.enabled = false;
}
Instance of Symbol 376 MovieClip "gameEndView" in Frame 4
onClipEvent (load) {
this._visible = 0;
}
Frame 5
stop();
certify();
bgm.stop();
hompyMasters = hompyMaster.split("||");
hompyURLs = hompyURL.split("||");
hompyTops = hompyTop.split("||");
hompyScores = hompyScore.split("||");
if (hompyMasters.length <= 2) {
info3._visible = false;
if (hompyMasters.length <= 1) {
info2._visible = false;
if ((((hompyMasters.length == 0) || (!hompyMasters)) || (hompyMasters[0] == null)) || (hompyMasters[0] == "")) {
info1._visible = false;
}
}
}
Instance of Symbol 390 MovieClip "info1" in Frame 5
onClipEvent (load) {
this.num = 0;
}
Instance of Symbol 390 MovieClip "info2" in Frame 5
onClipEvent (load) {
this.num = 1;
}
Instance of Symbol 390 MovieClip "info3" in Frame 5
onClipEvent (load) {
this.num = 2;
}
Symbol 23 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 1
stop();
Symbol 31 MovieClip [mc_Smark] Frame 1
stop();
Symbol 35 MovieClip [mc_life] Frame 1
stop();
Symbol 60 MovieClip Frame 16
_root.scoreMCClear();
Symbol 62 MovieClip Frame 16
_root.scoreMCClear();
Symbol 64 MovieClip Frame 16
_root.scoreMCClear();
Symbol 66 MovieClip Frame 16
_root.scoreMCClear();
Symbol 68 MovieClip Frame 16
_root.scoreMCClear();
Symbol 69 MovieClip [mc_Plus_score] Frame 1
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 95 MovieClip [mc_item] Frame 1
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 110 MovieClip [stageGage_mc] Frame 1
#initclip 4
function stageClass() {
this.init();
}
stageClass.prototype = new MovieClip();
stageClass.prototype.init = function () {
this.step_txt._visible = false;
if (!this.useStage) {
this._visible = false;
}
this.data = 0;
};
stageClass.prototype.setStage = function (str) {
this.step_txt.text = parseInt(str);
if (this.limit < this.step_txt.text) {
this.step_txt.text = this.limit;
}
this.setNumber(this.step_txt.text);
};
stageClass.prototype.getStage = function () {
return(parseInt(this.step_txt.text));
};
stageClass.prototype.setNumber = function (p) {
var _local4 = p.toString().split("");
_local4.reverse();
var _local2 = 0;
while (_local2 < 2) {
var _local3 = _local4[_local2];
if (_local3 eq "undefined") {
_local3 = 0;
}
this["mc_number" + _local2].gotoAndStop(int(parseInt(_local3) + 1));
if (parseInt(_local3) == 0) {
if (parseInt(_local4[_local2 + 1]) > 0) {
this["mc_number" + _local2]._visible = true;
} else {
this["mc_number" + _local2]._visible = false;
}
} else {
this["mc_number" + _local2]._visible = true;
}
_local2++;
}
};
stageClass.prototype.addProperty("data", stageClass.prototype.getStage, stageClass.prototype.setStage);
Object.registerClass("stageGage_mc", stageClass);
#endinitclip
stop();
Symbol 111 MovieClip [mcSecure] Frame 1
if (_root.run == 1) {
this.urls = _url.split("");
var i = (urls.length - 1);
while (i >= 0) {
if (urls[i] == "/") {
break;
}
i--;
}
url = "";
var k = 0;
while (k <= i) {
url = url + urls[k];
k++;
}
this.loadMovie(url + "loadSecurity.swf");
} else {
auth_ret = 1;
varObj = new Object();
varObj.addVars = function (nm, lev, val) {
lev[nm] = val;
};
varObj.encodeVars = function (nm, lev, val) {
lev[nm] = lev[nm] + val;
};
SendScore = function (n) {
switch (_root.run) {
case 0 :
_root.ScoreSendingOk();
break;
case 2 :
_root.stopDemo();
break;
case 3 :
_root.mc_hint.gotoAndStop("naver");
_global.GAME = new Object();
_global.GAME.score = n;
_global.ServerConnection.onGameOver();
}
};
}
Symbol 123 MovieClip Frame 1
stop();
Symbol 125 MovieClip [monsterGage_mc] Frame 1
#initclip 7
function monsterGageClass() {
this.init();
this.root = this._parent;
}
monsterGageClass.prototype = new MovieClip();
monsterGageClass.prototype.init = function () {
var _local2 = 0;
while (_local2 < this.slimit) {
this["s" + _local2].gotoAndStop(1);
_local2++;
}
this.score = 0;
this.setNumber(this.score);
};
monsterGageClass.prototype.getData = function () {
return(parseInt(this.score));
};
monsterGageClass.prototype.setData = function (num) {
if (num eq undefined) {
return(undefined);
}
this.score = num;
if (this.score < 0) {
this.score = 0;
}
this.score;
this.setNumber(this.score);
};
monsterGageClass.prototype.setNumber = function (p) {
var _local4 = p.toString().split("");
_local4.reverse();
var _local2 = 0;
while (_local2 < 4) {
var _local3 = _local4[_local2];
if (_local3 eq "undefined") {
_local3 = 0;
}
this["mc_number" + _local2].gotoAndStop(int(parseInt(_local3) + 1));
if (parseInt(_local3) == 0) {
if ((parseInt(_local4[_local2 + 1]) > 0) || (_local2 == 0)) {
this["mc_number" + _local2]._visible = true;
} else {
this["mc_number" + _local2]._visible = false;
}
} else {
this["mc_number" + _local2]._visible = true;
}
_local2++;
}
};
monsterGageClass.prototype.addProperty("data", monsterGageClass.prototype.getData, monsterGageClass.prototype.setData);
Object.registerClass("monsterGage_mc", monsterGageClass);
#endinitclip
stop();
Symbol 129 MovieClip [energy_mc] Frame 1
#initclip 5
function energyClass() {
energyC = this;
energyC.energyBarw = energyC.energyBar._width;
energyC.init(100);
}
energyClass.prototype = new MovieClip();
energyClass.prototype.init = function (num) {
energyC.limit = num;
energyC.energy = num;
energyC.timerTxt.text = energyC.limit;
energyC.energyBar._width = energyC.energyBarw;
energyC.per = energyC.energyBarw / 100;
};
energyClass.prototype.setData = function (n) {
energyC.energy = n;
energyC.energyBar._width = n * energyC.per;
if (energyC.energy >= energyC.limit) {
energyC.energy = 100;
energyC.energyBar._width = energyC.energyBarw;
} else if (energyC.energy <= 0) {
energyC.energy = 0;
energyC.energyBar._width = 0;
}
};
energyClass.prototype.getData = function (n) {
return(energyC.energy);
};
energyClass.prototype.addProperty("data", energyClass.prototype.getData, energyClass.prototype.setData);
energyClass.prototype.checkEmpty = function () {
if (this.data > 0) {
return(false);
}
return(true);
};
energyClass.prototype.addProperty("isEmpty", energyClass.prototype.checkEmpty, null);
Object.registerClass("energy_mc", energyClass);
#endinitclip
stop();
Symbol 133 MovieClip [scoreGage_mc] Frame 1
#initclip 6
function scoreClass() {
this.times = 0;
this.init();
this.root = this._parent;
}
scoreClass.prototype = new MovieClip();
scoreClass.prototype.init = function () {
var _local2 = 0;
while (_local2 < this.slimit) {
this["s" + _local2].gotoAndStop(1);
_local2++;
}
this.score_txt.text = 0;
this.score = 0;
this.times = 0;
this.setNumber(this.score_txt.text);
this.root.initScore();
};
scoreClass.prototype.getData = function () {
return(this.score);
};
scoreClass.prototype.setData = function (num) {
this.score = num;
if (this.score < 0) {
this.score = 0;
}
this.score_txt.text = this.score;
this.setNumber(this.score);
};
scoreClass.prototype.setNumber = function (p) {
var _local6 = p * 1000;
var _local5 = _local6;
var _local4 = _local5.toString().split("");
_local4.reverse();
var _local2 = 0;
while (_local2 < 11) {
var _local3 = _local4[_local2];
if (_local3 eq "undefined") {
_local3 = 0;
}
this["mc_number" + _local2].gotoAndStop(int(parseInt(_local3) + 1));
_local2++;
}
};
scoreClass.prototype.addProperty("data", scoreClass.prototype.getData, scoreClass.prototype.setData);
Object.registerClass("scoreGage_mc", scoreClass);
#endinitclip
stop();
Symbol 138 MovieClip [mc_carrot_effect] Frame 15
stop();
if (!_root.isDie) {
_root.clearcheck();
}
this.removeMovieClip();
Instance of Symbol 150 MovieClip "hit" in Symbol 151 MovieClip [arrow_mc] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 157 MovieClip [preloader_progressbar] Frame 1
#initclip 3
function progressbarClass() {
progressbar = this;
with (progressbar) {
}
}
progressbarClass.prototype = new MovieClip();
progressbarClass.prototype.init = function (iconFlag, txtFlag, time) {
progressbar.time = parseInt(time);
with (progressbar) {
if (iconFlag) {
icon_mc._visible = true;
} else {
icon_mc._visible = false;
}
if (txtFlag) {
progress_txt._visible = true;
} else {
progress_txt._visible = false;
}
progress_txt.text = 0;
initx = (progress_stick_mc._x = progress_stick_mask._x - progress_stick_mc._width);
icon_mc._x = progress_stick_mc._x + progress_stick_mc._width;
encress = progress_stick_mc._width / 100;
testime = getTimer();
}
progressbar.onEnterFrame = function () {
if (_root.getBytesLoaded() >= ((_root.getBytesTotal() * 1) / 10)) {
progressbar.timeP = int(getTimer() - progressbar.testime);
progressbar.start();
delete this.onEnterFrame;
}
};
};
progressbarClass.prototype.start = function () {
var root = _root;
progressbar.t_ = getTimer();
var total = root.getBytesTotal();
root.onEnterFrame = function () {
if (((progressbar.time < 1000) || (progressbar.time < (progressbar.timeP * 10))) || (progressbar.time eq undefined)) {
progressbar.percent = (root.getBytesLoaded() * 100) / total;
} else {
progressbar.percent = int(((getTimer() - progressbar.t_) * 100) / progressbar.time);
}
if (parseInt(progressbar.progress_txt.text) >= 100) {
delete this.onEnterFrame;
with (progressbar) {
if (progress_stick_mc._x > progress_stick_mask._x) {
progress_stick_mc._x = progress_stick_mask._x;
icon_mc._x = progress_stick_mask._width + progress_stick_mask._x;
}
}
_root.nextFrame();
} else {
with (progressbar) {
progress_txt.text = percent;
if (progress_stick_mc._x < (progress_stick_mask._x - (encress * 4))) {
progress_stick_mc._x = initx + (encress * percent);
icon_mc._x = progress_stick_mc._x + progress_stick_mc._width;
}
if (progress_stick_mc._x >= progress_stick_mask._x) {
progress_stick_mc._x = progress_stick_mask._x;
icon_mc._x = progress_stick_mask._width + progress_stick_mask._x;
}
}
}
};
};
Object.registerClass("preloader_progressbar", progressbarClass);
#endinitclip
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 391 MovieClip [__Packages.GemsData] Frame 0
class GemsData
{
var flashVars, variables, lv_r0, lv_r1, lv_r2;
function GemsData () {
flashVars = "";
variables = new Array();
lv_r0 = new LoadVars();
lv_r0.onLoad = function (success) {
_root.loadText.text = "INIT-Load-lv_r0 : " + this;
trace("INIT-Load-lv_r0 : " + unescape(this));
if (success) {
if (((this.MESSAGE != undefined) && (this.MESSAGE != null)) && (this.MESSAGE.length > 0)) {
getURL (("JavaScript:alert('" + this.MESSAGE) + "');");
var _local3 = _root.attachMovie("mc_msgBox", "mc_msgBox", 1000);
_local3.message = this.MESSAGE;
_local3.gotoAndStop("error");
}
if (this.RC > 0) {
_root.initGame();
} else if (this.MESSAGE == undefined) {
getURL ("JavaScript:alert('\uC11C\uBC84\uB85C\uBD80\uD130 \uC815\uBCF4\uB97C \uC77D\uC5B4\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.');");
var _local3 = _root.attachMovie("mc_msgBox", "mc_msgBox", 1000);
_local3.message = "\uC11C\uBC84\uB85C\uBD80\uD130 \uC815\uBCF4\uB97C \uC77D\uC5B4\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.";
_local3.gotoAndStop("error");
}
} else {
getURL ("JavaScript:alert('\uC11C\uBC84\uC640 \uC5F0\uACB0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.'); window.close();");
var _local3 = _root.attachMovie("mc_msgBox", "mc_msgBox", 1000);
_local3.message = "\uC11C\uBC84\uC640 \uC5F0\uACB0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.";
_local3.gotoAndStop("error");
}
};
lv_r1 = new LoadVars();
lv_r1.onLoad = function (success) {
_root.loadText.text = "START-Load-lv_r1 : " + this;
trace("START-Load-lv_r1 : " + unescape(this));
if (success) {
if (((this.MESSAGE != undefined) && (this.MESSAGE != null)) && (this.MESSAGE.length > 0)) {
getURL (("JavaScript:alert('" + this.MESSAGE) + "');");
var _local3 = _root.attachMovie("mc_msgBox", "mc_msgBox", 1000);
_local3.message = this.MESSAGE;
_local3.gotoAndStop("error");
}
if (this.RC > 0) {
_root.startGame();
if ((this.SEQ != undefined) && (this.SEQ.length > 0)) {
_root.seq = this.SEQ;
}
} else if (this.MESSAGE == undefined) {
getURL ("JavaScript:alert('\uC11C\uBC84\uB85C\uBD80\uD130 \uC815\uBCF4\uB97C \uC77D\uC5B4\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.');");
var _local3 = _root.attachMovie("mc_msgBox", "mc_msgBox", 1000);
_local3.message = "\uC11C\uBC84\uB85C\uBD80\uD130 \uC815\uBCF4\uB97C \uC77D\uC5B4\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.";
_local3.gotoAndStop("error");
}
} else {
getURL ("JavaScript:alert('\uC11C\uBC84\uC640 \uC5F0\uACB0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.'); window.close();");
var _local3 = _root.attachMovie("mc_msgBox", "mc_msgBox", 1000);
_local3.message = "\uC11C\uBC84\uC640 \uC5F0\uACB0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.";
_local3.gotoAndStop("error");
}
};
lv_r2 = new LoadVars();
lv_r2.onLoad = function (success) {
_root.loadText.text = "SAVE-Load-lv_r2 : " + unescape(this);
trace("SAVE-Load-lv_r2 : " + unescape(this));
if (success) {
if (((this.MESSAGE != undefined) && (this.MESSAGE != null)) && (this.MESSAGE.length > 0)) {
getURL (("JavaScript:alert('" + this.MESSAGE) + "');");
var _local3 = _root.attachMovie("mc_msgBox", "mc_msgBox", 1000);
_local3.message = this.MESSAGE;
_local3.gotoAndStop("error");
}
if ((this.RC != undefined) && (this.RC > 0)) {
if (this.NEXTURL != undefined) {
if (_root.target_window != undefined) {
getURL (this.NEXTURL, _root.target_window);
} else {
getURL (this.NEXTURL);
}
} else {
_root.resetGame();
}
} else if (this.MESSAGE == undefined) {
getURL ("JavaScript:alert('\uC11C\uBC84\uB85C\uBD80\uD130 \uC815\uBCF4\uB97C \uC77D\uC5B4\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.');");
var _local3 = _root.attachMovie("mc_msgBox", "mc_msgBox", 1000);
_local3.message = "\uC11C\uBC84\uB85C\uBD80\uD130 \uC815\uBCF4\uB97C \uC77D\uC5B4\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.";
_local3.gotoAndStop("error");
}
} else {
getURL ("JavaScript:alert('\uC11C\uBC84\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4'); window.close();");
var _local3 = _root.attachMovie("mc_msgBox", "mc_msgBox", 1000);
_local3.message = "\uC11C\uBC84\uC640 \uC5F0\uACB0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.";
_local3.gotoAndStop("error");
}
};
for (var _local4 in _root) {
if ((((((_local4.indexOf("$version") >= 0) || (_local4.indexOf("flashVars") >= 0)) || (typeof(_root[_local4]) == "movieclip")) || (typeof(_root[_local4]) == "object")) || (typeof(_root[_local4]) == "undefined")) || (typeof(_root[_local4]) == "function")) {
continue;
}
if (flashVars.length > 0) {
flashVars = flashVars + "&";
}
flashVars = flashVars + ((_local4 + "=") + _root[_local4]);
var _local3 = new Object();
_local3.name = _local4;
_local3.value = _root[_local4];
variables.push(_local3);
}
var _local8 = new LoadVars();
_local8.onLoad = function (success) {
if (success) {
if ((this.GAME_ID != null) && (this.GAME_ID.length > 0)) {
_root.game_id = this.GAME_ID;
}
if ((this.RECORD_SERVER != null) && (this.RECORD_SERVER.length > 0)) {
_root.server_page = this.RECORD_SERVER;
}
if ((this.PAGE_NEXTLINK != null) && (this.PAGE_NEXTLINK.length > 0)) {
_root.page_nextlink = this.PAGE_NEXTLINK;
}
if ((this.TARGET_WINDOW != null) && (this.TARGET_WINDOW.length > 0)) {
_root.target_window = this.TARGET_WINDOW;
}
if (((_root.mcPreLoader != null) && (this.PRE_LOADER != null)) && (this.PRE_LOADER.length > 0)) {
var _local4 = new MovieClipLoader();
var _local3 = new Object();
_local3.onLoadComplete = function (MC) {
MC._alpha = 100;
};
var err = false;
_local3.onLoadError = function (MC, code) {
if (!err) {
err = true;
_root.onEnterFrame = function () {
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
return(undefined);
}
delete _root.onEnterFrame;
_root.nextFrameGo();
};
}
};
_local4.addListener(_local3);
_local4.loadClip(this.PRE_LOADER, _root.mcPreLoader);
} else {
_root.onEnterFrame = function () {
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
return(undefined);
}
delete _root.onEnterFrame;
_root.nextFrameGo();
};
}
} else {
_root.onEnterFrame = function () {
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
return(undefined);
}
delete _root.onEnterFrame;
_root.nextFrameGo();
};
}
};
if (_root.eventid != undefined) {
trace("GEMS: EVENT MODE");
_local8.load("game.cfg");
} else {
trace("GEMS: DEMO MODE");
_root.nextFrameGo();
}
}
function getLoadVars() {
var _local4 = new LoadVars();
var _local3 = 0;
while (_local3 < variables.length) {
_local4[variables[_local3].name] = variables[_local3].value;
_local3++;
}
if ((_root.seq != null) && (_root.seq.length > 0)) {
_local4.seq = _root.seq;
}
_local4.flashVars = flashVars;
_local4.gameid = _root.game_id;
return(_local4);
}
function sendData(lv_s, lv_r) {
trace("SEND");
if (_root.eventid == undefined) {
_root.sendText.text = "Send : DEMO?";
trace("DEMO");
if (lv_r == lv_r0) {
trace("mode = init");
_root.initGame();
} else if (lv_r == lv_r1) {
trace("mode = start");
_root.startGame();
} else if (lv_r == lv_r2) {
trace("mode = reset");
_root.resetGame();
}
return(undefined);
}
if (((_root.server_page == undefined) || (_root.server_page == null)) || (_root.server_page.length == 0)) {
return(undefined);
}
if (((lv_s.mode == 2) && (_root.seq != undefined)) && (_root.seq.length > 0)) {
lv_s.seq = _root.seq;
delete _root.seq;
}
_root.sendText.text = "Send : " + lv_s;
trace("send = " + lv_s);
lv_s.sendAndLoad(_root.server_page, lv_r, "POST");
}
}
Symbol 392 MovieClip [__Packages.Base64] Frame 0
class Base64
{
function Base64 () {
}
static function encode(code) {
var _local1 = 0;
var _local4 = code.length;
var _local3 = "";
while (_local4 > 2) {
_local3 = _local3 + table[code.charCodeAt(0 + _local1) >> 2];
_local3 = _local3 + table[((code.charCodeAt(0 + _local1) & 3) << 4) + (code.charCodeAt(1 + _local1) >> 4)];
_local3 = _local3 + table[((code.charCodeAt(1 + _local1) & 15) << 2) + (code.charCodeAt(2 + _local1) >> 6)];
_local3 = _local3 + table[code.charCodeAt(2 + _local1) & 63];
_local1 = _local1 + 3;
_local4 = _local4 - 3;
}
if (_local4 != 0) {
_local3 = _local3 + table[code.charCodeAt(0 + _local1) >> 2];
if (_local4 > 1) {
_local3 = _local3 + table[((code.charCodeAt(0 + _local1) & 3) << 4) + (code.charCodeAt(1 + _local1) >> 4)];
_local3 = _local3 + table[(code.charCodeAt(1 + _local1) & 15) << 2];
_local3 = _local3 + pad;
} else {
_local3 = _local3 + table[(code.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 178 MovieClip Frame 14
stop();
Symbol 226 MovieClip Frame 1
function moveCursor() {
var _local2 = Math.floor(((mc_bar._height - btn_cursor._height) / (_root.tf_help.maxscroll - 1)) * (_root.tf_help.scroll - 1));
if (_local2 < 0) {
btn_cursor._y = 0;
} else if (_local2 > (mc_bar._height - btn_cursor._height)) {
btn_cursor._y = mc_bar._height - btn_cursor._height;
} else {
btn_cursor._y = _local2;
}
}
btn_up.onRelease = function () {
_root.tf_help.scroll--;
moveCursor();
};
btn_down.onRelease = function () {
_root.tf_help.scroll++;
moveCursor();
};
btn_cursor.onPress = function () {
isPressing = true;
};
this.onMouseUp = function () {
isPressing = false;
moveCursor();
};
this.onMouseMove = function () {
if ((isPressing && (_ymouse >= 0)) && (_ymouse <= (mc_bar._height - btn_cursor._height))) {
btn_cursor._y = _ymouse;
_root.tf_help.scroll = Math.round(((btn_cursor._y / (mc_bar._height - btn_cursor._height)) * (_root.tf_help.maxscroll - 1)) + 1);
}
};
Symbol 236 MovieClip Frame 11
stop();
Symbol 241 MovieClip Frame 10
stop();
_root.gamecheck();
Symbol 254 MovieClip Frame 15
stop();
if (_root.user.isSuperMan) {
_root.user.gotoAndStop("superman");
} else {
_root.user.gotoAndStop("jumping");
}
Symbol 267 MovieClip Frame 1
stop();
Symbol 280 Button
on (release) {
if (_root.isGameStart) {
if (_root.isZoom || (_root.user.process != "rotate")) {
return(undefined);
}
_root.pauseMC._visible = true;
_root.pauseTime = getTimer();
_root.isGameStart = false;
_root.userMove = false;
if (_root.isSound) {
_root.bgm.stop();
}
} else {
_root.user.backMC.isOn = true;
_root.pauseMC._visible = false;
_root.startTime = _root.startTime + _root.pauseTime;
_root.isGameStart = true;
_root.userMove = true;
if (_root.isSound) {
_root.bgm.play();
}
}
}
Symbol 290 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 2
Symbol 294 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 2
stop();
Instance of Symbol 294 MovieClip "_btn" in Symbol 295 MovieClip Frame 1
on (release) {
root = _parent._parent;
root.pause = !root.pause;
var _sound = GetSound();
if (root.pause) {
this.gotoAndStop("off");
_sound.pause = 1;
root.pause_mc._visible = true;
} else {
trace("\uC77C\uC2DC\uC815\uC9C0\uD574\uC7AC");
this.gotoAndStop("on");
_sound.pause;
root.pause_mc._visible = false;
}
root.timerGage_mc.pause();
root.map_mc.pause();
}
onClipEvent (load) {
root = _parent._parent;
root.pause = false;
}
Symbol 298 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 2
Symbol 316 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 1
var svv = _root.level.toString().split("");
svv.reverse();
var i = 0;
while (i < 2) {
var n = svv[i];
if (n eq "undefined") {
stagenum["stageNum" + i]._visible = false;
} else {
stagenum["stageNum" + i].gotoAndStop("s" + n);
}
i++;
}
Symbol 319 MovieClip Frame 15
var svv = _root.level.toString().split("");
svv.reverse();
var i = 0;
while (i < 2) {
var n = svv[i];
if (n eq "undefined") {
stagenums["stageNum" + i]._visible = false;
} else {
stagenums["stageNum" + i].gotoAndStop("s" + n);
}
i++;
}
Symbol 319 MovieClip Frame 41
stop();
_root.firstZoomMap();
Symbol 322 MovieClip Frame 77
stop();
if (_root.isGameStart) {
_root.initMap();
}
Symbol 332 MovieClip Frame 1
stop();
this._visible = false;
Symbol 332 MovieClip Frame 2
this._visible = 1;
Symbol 332 MovieClip Frame 35
stop();
_root.stopDemo();
Symbol 335 MovieClip Frame 1
totalTime = 30;
time1 = getTimer();
width = masks._width;
x = masks._x;
speed = width / totalTime;
masks.onEnterFrame = function () {
if ((getTimer() - time1) >= 1000) {
totalTime--;
time1 = getTimer();
this._x = this._x + speed;
if ((totalTime / _root.demoTime) <= 0.433333333333333) {
textF = new TextFormat();
textF.color = "0xFFFFFF";
nums.setTextFormat(textF);
}
if (totalTime == 0) {
delete totalTime;
sorry.play();
this.onEnterFrame = null;
}
}
};
Symbol 336 MovieClip Frame 1
if (_root.run != 2) {
stop();
}
Symbol 336 MovieClip Frame 2
stop();
Symbol 346 Button
on (release) {
_root.secureMovie.SendScore(_root.score);
}
Symbol 352 Button
on (release) {
_root.gotoAndStop("\uD0C0\uC774\uD2C0");
}
Symbol 353 MovieClip Frame 1
stop();
this._visible = false;
Symbol 353 MovieClip Frame 2
this._visible = true;
Symbol 353 MovieClip Frame 5
this._visible = true;
Symbol 365 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 1
stop();
this._visible = false;
Symbol 367 MovieClip Frame 2
function setNumber(pNumber) {
if (isNaN(pNumber)) {
pNumber = 0;
}
var _local4 = pNumber.toString();
totalFigures = _local4.length;
var _local3 = 1;
while (_local3 <= totalFigures) {
this["mc_number" + _local3].targetframe = Number(_local4.charAt(totalFigures - _local3)) + 1;
_local3++;
}
this.onEnterFrame = function () {
if (curFigure <= totalFigures) {
if (this["mc_number" + curFigure]._currentframe < this["mc_number" + curFigure].targetframe) {
this["mc_number" + curFigure].gotoAndStop(this["mc_number" + curFigure]._currentframe + 1);
} else {
curFigure++;
}
} else {
_root.secureMovie.SendScore(_root.score);
delete this.onEnterFrame;
}
};
}
this._visible = true;
totalFigures = 0;
curFigure = 1;
setNumber(_root.score);
Symbol 375 Button
on (release) {
_root.gotoAndStop("\uD0C0\uC774\uD2C0");
}
Symbol 376 MovieClip Frame 1
stop();
this._visible = false;
Symbol 376 MovieClip Frame 2
msg1.htmlText = _root.score + "\uC810</b> \uC785\uB2C8\uB2E4.";
tFormat = new TextFormat();
tFormat.align = "center";
msg1.setTextFormat(tFormat);
msg2.setTextFormat(tFormat);
Symbol 383 Button
on (release) {
_root.gotoAndStop("\uD0C0\uC774\uD2C0");
}
Symbol 389 Button
on (release) {
getURL (("javascript:person_info_game(" + _root.hompyURLs[this.num]) + ");");
}
Symbol 390 MovieClip Frame 1
msg1 = _root.hompyMasters[this.num] + "\uB2D8\uC758 \uBBF8\uB2C8\uD648\uD53C";
msg2 = ((("1\uC704: " + _root.hompyTops[this.num]) + "(") + _root.hompyScores[this.num]) + "\uC810)";