Frame 31
totalBytes = _root.getBytesTotal();
this.onEnterFrame = function () {
loadBytes = _root.getBytesLoaded();
txt = Math.floor((loadBytes / totalBytes) * 100);
if (txt >= 99) {
gotoAndStop (32);
delete this.onEnterFrame;
}
};
Frame 32
stop();
fscommand ("fullscreen", false);
fscommand ("showmenu", false);
fscommand ("allowscale", false);
System.useCodepage = true;
var GameStartFlag = 0;
var NowLevel = 1;
var NowPoint = 0;
var preUserid = "";
var prePoint = 0;
var preEof;
var soundChk = 0;
helpSound = new Sound(this);
helpSound.attachSound("helpSound");
introSound = new Sound(this);
introSound.attachSound("introSound");
introSound.start(0, 100);
preUserid = cUserid;
prePoint = JumSu;
preEof = ChkData;
userid = preUserid;
preJumsu = prePoint;
aaaa = preJumsu;
Frame 33
function initgame() {
now = 0;
if (soundchk == 0) {
bgSound.start(0, 100000);
}
cursorPosition = 1;
nHamTyp = new Array();
isGamePlay = true;
hamNum = 0;
hamNum1 = 0;
Seconds = 0;
hamCount = 0;
jungCount = 0;
xposcount = 1;
gameCount = 1;
chkMovie = 0;
BonusChk = 0;
AddBonusTime = 0;
thisH = 0;
ODap = 0;
nScore = 0;
score = 0;
jumsuCount = 0;
gamelevel = leveljumsu[level];
i = 1;
while (i <= 100) {
attachMovie("blankMC", "addmenu" + i, i + 200);
_root["addmenu" add i]._x = -200;
_root["addmenu" add i]._y = 100;
i++;
}
gameready();
}
function gameready() {
delete hamTyp1[thisH];
i = 0;
while (i <= (_root.hamNum1 + 1)) {
j = 0;
while (j < 4) {
_root.make["ham" + (i + 1)][j].removeMovieClip();
j++;
}
i++;
}
gamestart();
intervalID = setInterval(time_reduce, 1000);
}
function gamestart() {
if (soundchk == 0) {
nextSound.start();
}
if (level > 3) {
hamNum = 8;
} else {
hamNum = random(6) + 3;
}
hamTyp = new Array();
hamTyp[hamCount] = new Array();
i = 0;
while (i < hamNum) {
hamTyp[hamCount].push(random(7) + 2);
i++;
}
hamTyp[hamCount].unshift(9);
hamTyp[hamCount].push(1);
hamTyp[hamCount].reverse();
k = 0;
while (k < 100) {
if (hamCount == k) {
hamTyp1[k] = hamTyp[k];
this["hamNuma" + k] = hamNum;
}
k++;
}
aaa = eval ("addmenu" + (hamCount + 1));
if (chkMovie == 0) {
hamTyp1 = new Array();
hamTyp1[jungCount] = new Array();
hamNum1 = hamNum;
bbb = aaa;
chkMovie = 1;
Seconds = 11;
hamTyp1[_root.jungCount] = hamTyp[_root.jungCount];
}
gameset();
}
function gameset() {
isGamePlay = true;
i = 0;
while (i <= (_root.hamNum + 1)) {
_root.aaa.attachMovie("menu" + _root.hamTyp[hamCount][i], "s" + (i + 1), (i + 20) * (hamCount + 1));
_root.aaa["s" + (i + 1)]._xscale = 90;
_root.aaa["s" + (i + 1)]._yscale = 90;
_root.aaa["s" + (i + 1)]._y = (-i) * 10;
i++;
}
}
function gamepass() {
if (gamelevel <= nScore) {
i = 0;
while (i <= (_root.hamNum1 + 1)) {
_root.bbb["s" + (i + 1)].removeMovieClip();
_root.make["ham" + (i + 1)].removeMovieClip();
i++;
}
clearInterval(intervalID);
hamNum = 0;
hamNum1 = 0;
i = 1;
while (i <= 100) {
this["addmenu" add i].removeMovieClip();
i++;
}
k = 0;
while (k < 15) {
this["hamNuma" + k] = "";
k++;
}
delete _root.nHamTyp;
isGamePlay = false;
thisH = 0;
attachMovie("bonusMC", "bonusMC", 100);
bonusMC._x = 0;
bonusMC._y = 0;
} else {
delete _root.nHamTyp;
isGamePlay = true;
thisH = 0;
if (hamCount == jungCount) {
Seconds = 11;
} else {
Seconds = 0;
}
this["addmenu" add jungCount].removeMovieClip();
i = 0;
while (i <= (_root.hamNum1 + 1)) {
_root.bbb["s" + (i + 1)].removeMovieClip();
_root.make["ham" + (i + 1)].removeMovieClip();
i++;
}
nHamTyp = new Array();
abab = eval ("hamNuma" + jungCount);
hamNum1 = abab;
chkMovie = 1;
bbb = eval ("addmenu" + (jungCount + 1));
}
}
function gamenopass() {
delete _root.nHamTyp;
isGamePlay = true;
i = 0;
while (i <= (_root.thisH + 1)) {
_root.make["ham" + (i + 1)].removeMovieClip();
i++;
}
nHamTyp = new Array();
abab = eval ("hamNuma" + jungCount);
hamNum1 = abab;
chkMovie = 1;
thisH = 0;
}
function time_reduce() {
if (isGamePlay == true) {
Seconds = Seconds + 1;
}
}
function gamerule() {
if (isGamePlay == true) {
if (soundchk == 0) {
hamSound.start(0, 1);
}
_root.make["h" + cursorPosition].duplicateMovieClip("ham" + (_root.thisH + 1), _root.thisH + 10);
_root.make["ham" + (_root.thisH + 1)]._x = 552;
_root.make["ham" + (_root.thisH + 1)]._y = 260 - (_root.thisH * 10);
_root.make["ham" + (_root.thisH + 1)].targetX = 200;
if (_root.thisH > 0) {
_root.make["ham" + (_root.thisH + 1)].targetY = _root.make["ham" + _root.thisH].targetY - _root["sTyp" + _root.nHamTyp[thisH - 1]];
} else {
_root.make["ham" + (_root.thisH + 1)].targetY = 445;
}
_root.make["ham" + (_root.thisH + 1)].isPlay = true;
_root.nHamTyp.push(cursorPosition);
if (cursorPosition == _root.hamTyp1[_root.jungCount][_root.thisH]) {
} else {
if (soundchk == 0) {
badSound.start();
}
jumsuCount = 0;
attachMovie("failMC", "failMC", 1001);
failMC._x = 150;
failMC._y = 150;
}
_root.thisH = _root.thisH + 1;
}
}
function actionresult() {
if (isGamePlay == true) {
isGamePlay = false;
i = 0;
while (i < (hamNum1 + 2)) {
if (_root.nHamTyp[i] != _root.hamTyp1[_root.jungCount][i]) {
isGood = false;
} else {
isGood = true;
}
i++;
}
if (isGood == true) {
if (soundchk == 0) {
goodSound.start();
}
if (_root.jungCount > 4) {
_root.jungCount = _root.jungCount + 1;
} else {
_root.jungCount = _root.jungCount + 1;
}
gameCount = gameCount - 1;
ODap = ODap + 1;
jumsuCount = jumsuCount + 1;
nScore = nScore + (100 * jumsuCount);
score = score + (100 * jumsuCount);
attachMovie("successMC", "successMC", 1001);
successMC._x = 100;
successMC._y = 100;
if (jumsuCount > 1) {
attachMovie("comboMC", "comboMC", 1002);
comboMC._x = 260;
comboMC._y = 180;
}
} else {
if (soundchk == 0) {
badSound.start();
}
jumsuCount = 0;
attachMovie("failMC", "failMC", 1001);
failMC._x = 150;
failMC._y = 150;
}
isGood = false;
}
}
stop();
fscommand ("fullscreen", false);
fscommand ("showmenu", false);
fscommand ("allowscale", false);
System.useCodepage = true;
bgSound = new Sound(this);
bgSound.attachSound("bgSound");
hamSound = new Sound(this);
hamSound.attachSound("hamSound");
nextSound = new Sound(this);
nextSound.attachSound("nextSound");
badSound = new Sound(this);
badSound.attachSound("badSound");
goodSound = new Sound(this);
goodSound.attachSound("goodSound");
leveljumsu = new Array(1500, 4000, 7000, 12000, 20000, 100000, 99999999);
level = 0;
soundchk = 0;
initgame();
this.onEnterFrame = function () {
if (isGamePlay == true) {
if (gameCount > 5) {
isGamePlay = false;
clearInterval(intervalID);
attachMovie("gameover", "gameover", 1010);
gameover._x = 0;
gameover._y = 0;
}
if (level > 3) {
nlevel = 4;
timebar.gotoAndStop((Seconds + 1) * 3);
chkSeconds = 3;
} else if (level == 3) {
nlevel = level;
timebar.gotoAndStop((Seconds + 1) * 2);
chkSeconds = 5;
} else {
nlevel = level;
timebar.gotoAndStop(Seconds + 1);
chkSeconds = 10 - (nlevel * 2);
}
if (Seconds >= chkSeconds) {
hamCount = hamCount + 1;
gameCount = gameCount + 1;
xpos = hamCount;
while (xpos > 0) {
ccc = eval ("addmenu" + xpos);
_root.bbb._x = 20 + (110 * (_root.hamCount - (_root.jungCount + 1)));
if (bbb != ccc) {
_root.ccc._x = 20 + (110 * (_root.hamCount - xpos));
}
xpos--;
}
gamestart();
Seconds = 0;
}
}
};
gameFause.onRelease = function () {
if (isGamePlay == false) {
isGamePlay = true;
this.gotoAndStop(1);
} else {
isGamePlay = false;
this.gotoAndStop(2);
attachMovie("gameFauseMC", "gameFauseMC", 1001);
gameFauseMC._x = 0;
gameFauseMC._y = 0;
}
};
soundMC.onRelease = function () {
if (soundchk == 0) {
soundchk = 1;
this.gotoAndStop(2);
now = bgSound.position / 1000;
stopAllSounds();
} else {
soundchk = 0;
this.gotoAndStop(1);
bgSound.start(now, 100);
}
};
cursorMove = new Object();
cursorMove.onKeyDown = function () {
if (isGamePlay == true) {
if ((Key.getCode() == 36) || (Key.getCode() == 103)) {
cursorPosition = 2;
cursor._x = 12;
cursor._y = 159;
gamerule();
}
if ((Key.getCode() == 38) || (Key.getCode() == 104)) {
cursorPosition = 4;
cursor._x = 91;
cursor._y = 159;
gamerule();
}
if ((Key.getCode() == 33) || (Key.getCode() == 105)) {
cursorPosition = 5;
cursor._x = 170;
cursor._y = 159;
gamerule();
}
if ((Key.getCode() == 37) || (Key.getCode() == 100)) {
cursorPosition = 3;
cursor._x = 12;
cursor._y = 238;
gamerule();
}
if (Key.getCode() == 101) {
cursorPosition = 8;
cursor._x = 91;
cursor._y = 238;
gamerule();
}
if ((Key.getCode() == 39) || (Key.getCode() == 102)) {
cursorPosition = 7;
cursor._x = 170;
cursor._y = 238;
gamerule();
}
if (Key.getCode() == 97) {
cursorPosition = 1;
cursor._x = 12;
cursor._y = 316;
gamerule();
}
if ((Key.getCode() == 40) || (Key.getCode() == 98)) {
cursorPosition = 6;
cursor._x = 91;
cursor._y = 316;
gamerule();
}
if ((Key.getCode() == 34) || (Key.getCode() == 99)) {
cursorPosition = 9;
cursor._x = 170;
cursor._y = 316;
gamerule();
}
if (Key.getCode() == 13) {
actionresult();
}
if (Key.getCode() == 32) {
actionresult();
}
if (Key.isDown(35)) {
actionresult();
}
}
};
Key.addListener(cursorMove);
clickMC.onRelease = function () {
actionresult();
};
Instance of Symbol 220 MovieClip in Frame 33
on (release) {
if (_root.isGamePlay == true) {
_root.cursorPosition = 8;
_root.cursor._x = 91;
_root.cursor._y = 238;
_root.gamerule();
}
}
Symbol 11 MovieClip [comboMC] Frame 1
score1 = _root.jumsuCount;
var s3 = Math.floor((score1 % 1000) / 100);
var s2 = Math.floor((score1 % 100) / 10);
var s1 = Math.floor(score1 % 10);
if (((s3 == 0) && (s2 == 0)) && (s1 != 0)) {
this.attachMovie("combo" + s1, "combo" + s1, 2002);
this["combo" + s1]._x = 50;
this["combo" + s1]._y = 28;
} else if ((s3 == 0) && (s2 != 0)) {
this.attachMovie("combo" + s2, "combo" + s2, 2003);
this["combo" + s2]._x = 30;
this["combo" + s2]._y = 28;
this.attachMovie("combo" + s1, "combo" + s1, 2002);
this["combo" + s1]._x = 55;
this["combo" + s1]._y = 28;
} else if (s3 != 0) {
this.attachMovie("combo" + s2, "combo" + s2, 2004);
this["combo" + s2]._x = 5;
this["combo" + s2]._y = 28;
this.attachMovie("combo" + s1, "combo" + s1, 2003);
this["combo" + s1]._x = 30;
this["combo" + s1]._y = 28;
this.attachMovie("combo" + s1, "combo" + s1, 2002);
this["combo" + s1]._x = 55;
this["combo" + s1]._y = 28;
}
Symbol 11 MovieClip [comboMC] Frame 20
this.removeMovieClip();
Symbol 11 MovieClip [comboMC] Frame 29
this.removeMovieClip();
Symbol 14 MovieClip [combo9] Frame 1
stop();
Symbol 17 MovieClip [combo8] Frame 1
stop();
Symbol 20 MovieClip [combo7] Frame 1
stop();
Symbol 23 MovieClip [combo6] Frame 1
stop();
Symbol 26 MovieClip [combo5] Frame 1
stop();
Symbol 29 MovieClip [combo4] Frame 1
stop();
Symbol 32 MovieClip [combo3] Frame 1
stop();
Symbol 35 MovieClip [combo2] Frame 1
stop();
Symbol 38 MovieClip [combo1] Frame 1
stop();
Symbol 47 MovieClip [bonusJumsuMC] Frame 1
ncoke = _root.AddBonusTime;
ncokejum = _root.AddBonusTime * 100;
Symbol 47 MovieClip [bonusJumsuMC] Frame 30
stop();
_parent.resetting();
this.removeMovieClip();
Symbol 52 MovieClip [bonusClearJumsuMC] Frame 1
ncoke = _root.AddBonusTime;
ncokejum = _root.AddBonusTime * 100;
Symbol 52 MovieClip [bonusClearJumsuMC] Frame 30
stop();
_parent.resetting();
this.removeMovieClip();
Symbol 62 Button
on (release) {
_root.level = 0;
_root.initgame();
gameFause._visible = true;
this.removeMovieClip();
}
Symbol 71 Button
on (release) {
i = 1;
while (i <= 100) {
_root["addmenu" add i].removeMovieClip();
i++;
}
_root.gotoAndStop(3);
Key.removeListener(_root.cursorMove);
_root.attachMovie("introMC", "introMC", 1002);
_root.introMC._x = 0;
_root.introMC._y = 0;
_root.introSound.start(0, 100);
this.removeMovieClip();
}
Symbol 77 Button
on (release) {
loadVar = new LoadVars();
loadVar.CP = 2;
loadVar.send("http://www.fun2fun.co.kr/CpClick.asp?CP=2&", loadVar, "POST");
}
Symbol 80 Button
on (release) {
loadVar = new LoadVars();
loadVar.CP = 2;
loadVar.send("http://www.fun2fun.co.kr/CpClick.asp?CP=2&", loadVar, "POST");
}
Symbol 82 MovieClip [gameover] Frame 1
stop();
_root.bgSound.stop();
score1 = _root.score;
if (_root.preJumsu < score1) {
_root.JumSu = score1;
}
Symbol 90 Button
on (release) {
_root.gotoAndStop("A1");
_root.helpSound.stop();
_root.howgame.removeMovieClip();
}
Symbol 98 MovieClip Frame 1
this.onRelease = function () {
if (_root.BonusChk == 1) {
_root.AddBonusTime = _root.AddBonusTime + 1;
_root.score = _root.score + 100;
this._visible = 0;
}
};
Symbol 101 MovieClip Frame 20
stop();
_root.BonusChk = 1;
Symbol 103 MovieClip Frame 1
stop();
Symbol 104 MovieClip [bonusMC] Frame 1
function time_reduce1() {
BonusSeconds = BonusSeconds + 1;
}
function resetting() {
_root.level = _root.level + 1;
_root.cursorPosition = 1;
_root.nHamTyp = new Array();
_root.isGamePlay = true;
_root.hamNum = 0;
_root.hamNum1 = 0;
_root.Seconds = 0;
_root.hamCount = 0;
_root.jungCount = 0;
_root.xposcount = 1;
_root.gameCount = 1;
_root.chkMovie = 0;
_root.BonusChk = 0;
_root.AddBonusTime = 0;
_root.thisH = 0;
_root.ODap = 0;
_root.jumsuCount = 0;
_root.gamelevel = _root.leveljumsu[_root.level];
i = 1;
while (i <= 100) {
_root["addmenu" add i].removeMovieClip();
_root.attachMovie("blankMC", "addmenu" + i, i + 200);
_root["addmenu" add i]._x = -200;
_root["addmenu" add i]._y = 100;
i++;
}
_root.gameready();
this.removeMovieClip();
}
stop();
if (_root.level == 0) {
levelCount = 21;
} else if (_root.level == 1) {
gotoAndStop(_root.level + 1);
levelCount = 28;
} else if (_root.level == 2) {
gotoAndStop(_root.level + 1);
levelCount = 32;
} else if (_root.level == 3) {
gotoAndStop(_root.level + 1);
levelCount = 45;
} else {
gotoAndStop (5);
levelCount = 50;
}
intervalID1 = setInterval(time_reduce1, 1000);
BonusSeconds = 0;
thisbonusChk = 0;
this.onEnterFrame = function () {
if (thisbonusChk == 0) {
btimer.gotoAndStop(BonusSeconds);
if ((BonusSeconds > 20) || (_root.AddBonusTime == levelCount)) {
thisbonusChk = 1;
clearInterval(intervalID1);
if (_root.AddBonusTime == levelCount) {
_root.score = _root.score + 500;
_root.score = _root.score + (20 - BonusSeconds);
this.attachMovie("bonusClearJumsuMC", "bonusClearJumsuMC", 1200);
bonusClearJumsuMC._x = 130;
bonusClearJumsuMC._y = 120;
} else {
this.attachMovie("bonusJumsuMC", "bonusJumsuMC", 1200);
bonusJumsuMC._x = 130;
bonusJumsuMC._y = 120;
}
}
}
};
Symbol 104 MovieClip [bonusMC] Frame 2
stop();
Symbol 104 MovieClip [bonusMC] Frame 3
stop();
Symbol 104 MovieClip [bonusMC] Frame 4
stop();
Symbol 104 MovieClip [bonusMC] Frame 5
stop();
Symbol 107 MovieClip [failMC] Frame 1
_root.isGamePlay = false;
Symbol 107 MovieClip [failMC] Frame 20
_root.gamenopass();
this.removeMovieClip();
Symbol 110 MovieClip [successMC] Frame 1
_root.isGamePlay = false;
Symbol 110 MovieClip [successMC] Frame 20
_root.gamepass();
this.removeMovieClip();
Symbol 122 MovieClip [gameFauseMC] Frame 1
fauseregame.onRelease = function () {
_root.isGamePlay = true;
_root.gameFause.gotoAndStop(1);
_root.gameFauseMC.removeMovieClip();
};
Symbol 143 Button
on (release) {
_root.introSound.stop();
_root.gotoAndStop("A1");
_root.introMC.removeMovieClip();
}
Symbol 148 Button
on (release) {
this._visible = 0;
_root.attachMovie("howgame", "howgame", 0);
howgame._x = 0;
howgame._y = 0;
_root.introSound.stop();
_root.helpSound.start(0, 10);
}
Symbol 150 Button
on (release) {
loadVar = new LoadVars();
loadVar.CP = 2;
loadVar.send("http://www.fun2fun.co.kr/CpClick.asp?CP=2&", loadVar, "POST");
}
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 2
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 2
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 212 Button
on (release) {
if (_root.isGamePlay == true) {
_root.cursorPosition = 2;
_root.cursor._x = 12;
_root.cursor._y = 159;
_root.gamerule();
}
}
Symbol 213 Button
on (release) {
if (_root.isGamePlay == true) {
_root.cursorPosition = 4;
_root.cursor._x = 91;
_root.cursor._y = 159;
_root.gamerule();
}
}
Symbol 214 Button
on (release) {
if (_root.isGamePlay == true) {
_root.cursorPosition = 5;
_root.cursor._x = 170;
_root.cursor._y = 159;
_root.gamerule();
}
}
Symbol 215 Button
on (release) {
if (_root.isGamePlay == true) {
_root.cursorPosition = 3;
_root.cursor._x = 12;
_root.cursor._y = 238;
_root.gamerule();
}
}
Symbol 216 Button
on (release) {
if (_root.isGamePlay == true) {
_root.cursorPosition = 7;
_root.cursor._x = 170;
_root.cursor._y = 238;
_root.gamerule();
}
}
Symbol 217 Button
on (release) {
if (_root.isGamePlay == true) {
_root.cursorPosition = 1;
_root.cursor._x = 12;
_root.cursor._y = 316;
_root.gamerule();
}
}
Symbol 218 Button
on (release) {
if (_root.isGamePlay == true) {
_root.cursorPosition = 6;
_root.cursor._x = 91;
_root.cursor._y = 316;
_root.gamerule();
}
}
Symbol 219 Button
on (release) {
if (_root.isGamePlay == true) {
_root.cursorPosition = 9;
_root.cursor._x = 170;
_root.cursor._y = 316;
_root.gamerule();
}
}