Frame 1
trace("-------------------------");
trace("Start : loading");
if (this.getBytesLoaded() >= this.getBytesTotal()) {
this.gotoAndPlay("opening");
} else {
this.gotoAndPlay("loading");
}
Instance of Symbol 60 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
_root.txtPercent = Math.round((loaded / total) * 100) + "%";
} else {
_root.gotoAndPlay(2);
}
}
Frame 2
gotoAndPlay (1);
Frame 3
function soundOn() {
soundon = "yes";
_root.blockHitSound = new Sound(this);
_root.blockHitSound.attachSound("blockHitSoundM");
_root.lineThrowSound = new Sound(this);
_root.lineThrowSound.attachSound("lineThrowSoundM");
_root.lineDrawSound = new Sound(this);
_root.lineDrawSound.attachSound("lineDrawSoundM");
_root.boomSound = new Sound(this);
_root.boomSound.attachSound("boomSoundM");
_root.heartHitSound = new Sound(this);
_root.heartHitSound.attachSound("heartHitSoundM");
_root.startSound = new Sound(this);
_root.startSound.attachSound("startSoundM");
_root.buttonSound = new Sound(this);
_root.buttonSound.attachSound("buttonSoundM");
_root.readySound = new Sound(this);
_root.readySound.attachSound("readySoundM");
_root.gameOverSound = new Sound(this);
_root.gameOverSound.attachSound("gameOverSoundM");
_root.titleSound = new Sound(this);
_root.titleSound.attachSound("titleSoundM");
_root.backSound = new Sound(this);
_root.backSound.attachSound("backSoundM");
_root.backSound.setVolume(50);
if (nowF == "title") {
_root.titleSound.start(0, 999);
} else if (nowF == "roundClear") {
_root.roundClearSound.start(0, 999);
} else if (nowF == "main") {
_root.backSound.start(0, 999);
}
}
function soundOff() {
soundon = "no";
delete _root.blockHitSound;
delete _root.lineThrowSound;
delete _root.boomSound;
delete _root.heartHitSound;
delete _root.startSound;
delete _root.buttonSound;
delete _root.readySound;
_root.lineDrawSound.stop();
delete _root.lineDrawSound;
_root.backSound.stop();
delete _root.backSound;
_root.titleSound.stop();
delete _root.titleSound;
_root.gameOverSound.stop();
delete _root.gameOverSound;
}
nowF == "noting";
trace(newline);
trace("-------------------------");
trace("Start : opening");
_root.soundOn();
this.opening.onLoad = function () {
var _local1 = 0;
trace("Load OK : opening logo ");
};
this.opening.onEnterFrame = function () {
if (this.is_opening_played) {
this._parent.gotoAndPlay("titleF");
}
};
Instance of Symbol 75 MovieClip "opening" in Frame 3
/* no clip actions */
Frame 4
stop();
Frame 5
nowF = "title";
if (soundon == "yes") {
_root.titleSound = new Sound(this);
_root.titleSound.attachSound("titleSoundM");
}
_root.titleSound.start(0, 999);
Frame 23
stop();
Frame 25
function readyGame() {
blockArr = new Array();
var _local2 = 1;
while (_local2 <= blockAcroN) {
blockArr[_local2] = new Array();
var _local1 = 1;
while (_local1 <= blockVertN) {
blockArr[_local2][_local1] = "no";
_local1++;
}
_local2++;
}
game_score = 0;
dep = 1;
chareMake();
}
function reStartReadyF() {
nowF = "noting";
round++;
backN = (((round % 3) == 0) ? 3 : (round % 3));
_root.back_mc.gotoAndStop(backN);
dep = 1;
_root.roundClearSound.stop();
delete _root.roundClearSound;
_root.readySound.start();
ready_mc.gotoAndPlay(2);
}
function chareMake() {
userDreg = "no";
_root.blockMakeF();
nowTime = maxTime;
attachMovie("start", "start_mc", dep++);
_root.start_mc._x = 200;
_root.start_mc._y = 150;
_root.startSound.start();
_root.start_mc.gotoAndPlay(2);
timeDn = 100 / parseInt(nowTime);
_root.heartMakeF();
}
function blockMakeF() {
this.createEmptyMovieClip("blockTotal_mc", dep++);
var _local4 = 1;
while (_local4 <= 4) {
var _local3 = 1;
while (_local3 <= blockVertN) {
blockTotal_mc.attachMovie("block_mc", (("block_" + _local4) + "_") + _local3, dep++);
blockArr[_local4][_local3] = random(4) + 1;
_root.blockTotal_mc[(("block_" + _local4) + "_") + _local3].gotoAndStop(blockArr[_local4][_local3] + "F");
if (blockArr[_local4][_local3] == 6) {
_root.blockTotal_mc[(("block_" + _local4) + "_") + _local3].blHear_mc.gotoAndStop(random(4) + 1);
}
_root.blockTotal_mc[(("block_" + _local4) + "_") + _local3]._x = blockStartX + (_local4 * 37);
_root.blockTotal_mc[(("block_" + _local4) + "_") + _local3]._y = blockStartY + (_local3 * 37);
_local3++;
}
_local4++;
}
startBlockN = blockMaxN + 1;
blockMaxN = blockMaxN + blockVertN;
}
function heartMakeF() {
_root.nextHeart_mc.removeMovieClip();
userDreg = "yes";
this.attachMovie("heart", "heart_mc", 500001);
_root.heartKindN = _root.nextHeartKindN;
_root.heart_mc.gotoAndStop(_root.heartKindN + "F");
_root.heart_mc._x = heartX;
_root.heart_mc._y = heartY;
this.attachMovie("heart", "nextHeart_mc", 600003);
colorArr = new Array();
var _local4 = 1;
while (_local4 <= blockAcroN) {
var _local3 = 1;
while (_local3 <= blockVertN) {
if ((((blockArr[_local4][_local3] == 1) || (blockArr[_local4][_local3] == 2)) || (blockArr[_local4][_local3] == 3)) || (blockArr[_local4][_local3] == 4)) {
colorArr.push(blockArr[_local4][_local3]);
}
_local3++;
}
_local4++;
}
if (colorArr.length >= 1) {
_root.nextHeartKindN = colorArr[random(colorArr.length - 1)];
} else {
_root.nextHeartKindN = random(4) + 1;
}
_root.nextHeart_mc.gotoAndStop(_root.nextHeartKindN + "F");
_root.nextHeart_mc._x = nextHeartX;
_root.nextHeart_mc._y = nextHeartY;
}
function heartTrowF(heTrX, heTrY) {
function throwSetF() {
var _local3 = 0;
while (_local3 < 100) {
mu = _local3 / 100;
mum1 = 1 - mu;
mum13 = (mum1 * mum1) * mum1;
mu3 = (mu * mu) * mu;
x = (((mum13 * p1._x) + ((((3 * mu) * mum1) * mum1) * control._x)) + ((((3 * mu) * mu) * mum1) * control2._x)) + (mu3 * p2._x);
y = (((mum13 * p1._y) + ((((3 * mu) * mum1) * mum1) * control._y)) + ((((3 * mu) * mu) * mum1) * control2._y)) + (mu3 * p2._y);
_local3++;
}
var _local4 = 50;
if (currentPointCount < _local4) {
amu = currentPointCount / _local4;
amum1 = 1 - amu;
amum13 = (amum1 * amum1) * amum1;
amu3 = (amu * amu) * amu;
xPos = (((amum13 * startX) + ((((3 * amu) * amum1) * amum1) * controlX)) + ((((3 * amu) * amu) * amum1) * controlX2)) + (amu3 * endX);
yPos = (((amum13 * startY) + ((((3 * amu) * amum1) * amum1) * controlY)) + ((((3 * amu) * amu) * amum1) * controlY2)) + (amu3 * endY);
var _local5 = Math.atan2(mc._x - xPos, mc._y - yPos);
var _local6 = (-(180 * _local5)) / Math.PI;
mc._x = xPos;
mc._y = yPos;
currentPointCount++;
} else {
clearInterval(throwInter);
if ((((heTrX > 0) && (heTrX < 8)) && (heTrY > 0)) && (heTrY < 9)) {
mc._x = blockStartX + (heTrX * 37);
mc._y = blockStartY + (heTrY * 37);
delete this.onEnterFrame;
_root.blockHitF(heTrX, heTrY);
} else {
mc._x = blockStartX + (heTrX * 37);
mc._y = blockStartY + (heTrY * 37);
delete this.onEnterFrame;
_root.lineTurnF();
}
currentPointCount = 0;
}
updateAfterEvent();
}
throwVis = "yes";
_root.line_mc.gotoAndPlay("trowF");
mc = _root.heart_mc;
mc._x = 311.4;
mc._y = 133;
startX = mc._x;
startY = mc._y;
var endX = (blockStartX + (heTrX * 37));
var endY = (blockStartY + (heTrY * 37));
controlX = startX;
controlX2 = endX + ((startX - endX) / 3);
if (endY < startY) {
controlY = (controlY2 = endY - 50);
} else {
controlY = (controlY2 = startY - 50);
}
var x;
var y;
var xPos;
var yPos;
currentPointCount = 0;
throwInter = setInterval(throwSetF, 1);
}
function blockHitF(Yn, Xn) {
if (_root.heartKindN == blockArr[Yn][Xn]) {
_root.blockHitSound.start();
_root.gameScoreF();
blockArr[Yn][Xn] = "no";
_root.heart_mc.removeMovieClip();
_root.blockTotal_mc[(("block_" + Yn) + "_") + Xn].gotoAndPlay("hideF");
_root.blockRemoveF(Yn, Xn);
blockReInter = setInterval(blockPropF, 200);
} else if (blockArr[Yn][Xn] == boomN) {
_root.boomSound.start();
_root.gameScoreF();
blockArr[Yn][Xn] = "no";
_root.heart_mc.removeMovieClip();
_root.blockTotal_mc[(("block_" + Yn) + "_") + Xn].gotoAndPlay("hideF");
_root.boomRemovF(Yn, Xn);
blockReInter = setInterval(blockPropF, 200);
} else if (blockArr[Yn][Xn] == 6) {
_root.heartHitSound.start();
nowFraN = _root.blockTotal_mc[(("block_" + Yn) + "_") + Xn].blHear_mc._currentframe;
_root.blockTotal_mc[(("block_" + Yn) + "_") + Xn].blHear_mc.gotoAndStop(nowFraN);
_root.heart_mc.removeMovieClip();
_root.heartAllChageF(nowFraN);
} else {
_root.lineTurnF();
}
}
function heartAllChageF(heartAllN) {
var _local3 = 1;
while (_local3 <= blockVertN) {
var _local2 = 1;
while (_local2 <= blockVertN) {
if ((blockArr[_local2][_local3] != "no") && (blockArr[_local2][_local3] != undefined)) {
blockArr[_local2][_local3] = heartAllN;
_root.blockTotal_mc[(("block_" + _local2) + "_") + _local3].gotoAndStop(heartAllN + "F");
}
_local2++;
}
_local3++;
}
_root.lineTurnF();
}
function boomRemovF(y, x) {
if (x > 0) {
if ((blockArr[y][x - 1] != "no") && (blockArr[y][x - 1] != undefined)) {
_root.gameScoreF();
blockArr[y][x - 1] = "no";
_root.blockTotal_mc[(("block_" + y) + "_") + (x - 1)].gotoAndPlay("hideF");
}
}
if (x <= blockVertN) {
if ((blockArr[y][x + 1] != "no") && (blockArr[y][x + 1] != undefined)) {
_root.gameScoreF();
blockArr[y][x + 1] = "no";
_root.blockTotal_mc[(("block_" + y) + "_") + (x + 1)].gotoAndPlay("hideF");
}
}
if (y > 0) {
if ((blockArr[y - 1][x] != "no") && (blockArr[y - 1][x] != undefined)) {
_root.gameScoreF();
blockArr[y - 1][x] = "no";
_root.blockTotal_mc[(("block_" + (y - 1)) + "_") + x].gotoAndPlay("hideF");
}
if (x <= blockVertN) {
if ((blockArr[y - 1][x + 1] != "no") && (blockArr[y - 1][x + 1] != undefined)) {
_root.gameScoreF();
blockArr[y - 1][x + 1] = "no";
_root.blockTotal_mc[(("block_" + (y - 1)) + "_") + (x + 1)].gotoAndPlay("hideF");
}
}
if (x > 0) {
if ((blockArr[y - 1][x - 1] != "no") && (blockArr[y - 1][x - 1] != undefined)) {
_root.gameScoreF();
blockArr[y - 1][x - 1] = "no";
_root.blockTotal_mc[(("block_" + (y - 1)) + "_") + (x - 1)].gotoAndPlay("hideF");
}
}
}
if (y <= blockAcroN) {
if ((blockArr[y + 1][x] != "no") && (blockArr[y + 1][x] != undefined)) {
_root.gameScoreF();
blockArr[y + 1][x] = "no";
_root.blockTotal_mc[(("block_" + (y + 1)) + "_") + x].gotoAndPlay("hideF");
}
if (x > 0) {
if ((blockArr[y + 1][x - 1] != "no") && (blockArr[y + 1][x - 1] != undefined)) {
_root.gameScoreF();
blockArr[y + 1][x - 1] = "no";
_root.blockTotal_mc[(("block_" + (y + 1)) + "_") + (x - 1)].gotoAndPlay("hideF");
}
}
if (x <= blockVertN) {
if ((blockArr[y + 1][x + 1] != "no") && (blockArr[y + 1][x + 1] != undefined)) {
_root.gameScoreF();
blockArr[y + 1][x + 1] = "no";
_root.blockTotal_mc[(("block_" + (y + 1)) + "_") + (x + 1)].gotoAndPlay("hideF");
}
}
}
}
function blockRemoveF(y, x) {
if ((blockArr[y][x - 1] == _root.heartKindN) && (x > 0)) {
_root.gameScoreF();
blockArr[y][x - 1] = "no";
_root.blockTotal_mc[(("block_" + y) + "_") + (x - 1)].gotoAndPlay("hideF");
blockRemoveF(y, x - 1);
}
if ((blockArr[y][x + 1] == _root.heartKindN) && (x <= blockVertN)) {
_root.gameScoreF();
blockArr[y][x + 1] = "no";
_root.blockTotal_mc[(("block_" + y) + "_") + (x + 1)].gotoAndPlay("hideF");
blockRemoveF(y, x + 1);
}
if ((blockArr[y - 1][x] == _root.heartKindN) && (y > 0)) {
_root.gameScoreF();
blockArr[y - 1][x] = "no";
_root.blockTotal_mc[(("block_" + (y - 1)) + "_") + x].gotoAndPlay("hideF");
blockRemoveF(y - 1, x);
}
if ((blockArr[y + 1][x] == _root.heartKindN) && (y <= blockAcroN)) {
_root.gameScoreF();
blockArr[y + 1][x] = "no";
_root.blockTotal_mc[(("block_" + (y + 1)) + "_") + x].gotoAndPlay("hideF");
blockRemoveF(y + 1, x);
}
}
function blockPropF() {
clearInterval(blockReInter);
var _local2 = 1;
while (_local2 <= blockVertN) {
var _local5 = 1;
while (_local5 <= blockVertN) {
if (blockArr[_local5][_local2] == "no") {
onelineArr = new Array();
var _local4 = _local5;
while (_local4 <= blockVertN) {
if ((blockArr[_local4][_local2] != "no") && (blockArr[_local4][_local2] != undefined)) {
onelineArr.push(_local4);
onelineArr.push(blockArr[_local4][_local2]);
}
_local4++;
}
reN = 0;
var _local3 = _local5;
while (_local3 <= blockVertN) {
if (onelineArr[reN] != undefined) {
newN = onelineArr[reN];
blockArr[_local3][_local2] = onelineArr[++reN];
chN = newN - _local3;
_root.blockTotal_mc[(("block_" + newN) + "_") + _local2]._x = _root.blockTotal_mc[(("block_" + newN) + "_") + _local2]._x - (chN * 37);
_root.blockTotal_mc[(("block_" + newN) + "_") + _local2]._name = (("block_" + _local3) + "_") + _local2;
reN++;
} else {
blockArr[_local3][_local2] = "no";
}
_local3++;
}
break;
}
_local5++;
}
_local2++;
}
binBlockArr = new Array();
var _local7 = 1;
while (_local7 <= blockAcroN) {
var _local6 = 1;
while (_local6 <= blockVertN) {
if ((blockArr[_local7][_local6] != "no") && (blockArr[_local7][_local6] != undefined)) {
binBlockArr.push(blockArr[_local7][_local6]);
}
_local6++;
}
_local7++;
}
if (binBlockArr.length > 0) {
_root.lineTurnF();
} else {
clearInterval(blockTimeInter);
ui_mc.timer_mc.in_mc._xscale = 0;
newLineVis = "yse";
newBlockInter = setInterval(newBlockMakeF, 200);
}
}
function turnF() {
clearInterval(turnInter);
_root.heart_mc.removeMovieClip();
if (endVis == "no") {
_root.heartMakeF();
}
throwVis = "no";
}
function startGame() {
nowF = "main";
if (soundon == "yes") {
_root.backSound = new Sound(this);
_root.backSound.attachSound("backSoundM");
}
_root.backSound.start(0, 999);
blockTimeInter = setInterval(interTimeF, 500);
gameEnd = "no";
}
function reStart() {
sendN = random(3) + 1;
gameEnd = "no";
}
function interTimeF() {
nowTime--;
if (nowTime == 0) {
clearInterval(blockTimeInter);
ui_mc.timer_mc.in_mc._xscale = 0;
newLineVis = "yse";
if (throwVis == "no") {
_root.newBlockMakeF();
}
} else {
ui_mc.timer_mc.in_mc._xscale = parseInt(nowTime) * timeDn;
}
}
function lineTurnF() {
if (newLineVis == "no") {
turnInter = setInterval(turnF, 150);
} else {
newBlockMakeF();
}
}
function newBlockMakeF() {
clearInterval(newBlockInter);
endVis = "no";
var _local3 = blockAcroN;
while (_local3 >= 1) {
var _local2 = 1;
while (_local2 <= blockVertN) {
if ((blockArr[_local3][_local2] != "no") && (blockArr[_local3][_local2] != undefined)) {
if (_local3 == blockAcroN) {
endVis = "yes";
}
mc = _root.blockTotal_mc[(("block_" + _local3) + "_") + _local2];
blockArr[_local3 + 1][_local2] = blockArr[_local3][_local2];
_root.blockTotal_mc[(("block_" + _local3) + "_") + _local2]._name = (("block_" + (_local3 + 1)) + "_") + _local2;
mc._x = mc._x + 37;
}
_local2++;
}
_local3--;
}
a = 1;
var _local4 = 1;
while (_local4 <= blockVertN) {
blockTotal_mc.attachMovie("block_mc", (("block_" + a) + "_") + _local4, dep++);
afBlockN = random(6) + 1;
if (afBlockN == 6) {
blockArr[a][_local4] = ((random(6) == 1) ? 6 : (random(4) + 1));
} else if (afBlockN == 5) {
blockArr[a][_local4] = ((random(6) == 1) ? 5 : (random(4) + 1));
} else {
blockArr[a][_local4] = afBlockN;
}
if (blockArr[a][_local4] == 6) {
_root.blockTotal_mc[(("block_" + a) + "_") + _local4].blHear_mc.gotoAndStop(random(4) + 1);
}
_root.blockTotal_mc[(("block_" + a) + "_") + _local4].gotoAndStop(blockArr[a][_local4] + "F");
_root.blockTotal_mc[(("block_" + a) + "_") + _local4]._x = blockStartX + (a * 37);
_root.blockTotal_mc[(("block_" + a) + "_") + _local4]._y = blockStartY + (_local4 * 37);
_local4++;
}
if (endVis == "yes") {
clearInterval(throwInter);
clearInterval(heartInter);
Mouse.removeListener(mouseListener);
_root.userDreg = "no";
_root.user_mc.gotoAndStop("waitF");
_root.user_mc.stopDrag();
_root.lineDrawSound.stop();
delete _root.lineDrawSound;
gameOverInter = setInterval(gameOverF, 3000);
} else {
if (hanlineN > 8) {
nowTime = maxTime - 50;
} else if (hanlineN > 4) {
nowTime = maxTime - 40;
} else {
nowTime = maxTime - 30;
}
timeDn = 100 / parseInt(nowTime);
hanlineN++;
if (hanlineN > 4) {
gameDan++;
}
blockTimeInter = setInterval(interTimeF, 500);
}
newLineVis = "no";
if (throwVis == "yes") {
_root.turnF();
}
}
function gameScoreF() {
game_score = game_score + (10 * gameDan);
}
function gameOverF() {
clearInterval(blockTimeInter);
clearInterval(throwInter);
clearInterval(heartInter);
Mouse.removeListener(mouseListener);
_root.userDreg = "no";
_root.user_mc.gotoAndStop("waitF");
_root.user_mc.stopDrag();
_root.lineDrawSound.stop();
delete _root.lineDrawSound;
nowF = "noting";
_root.backSound.stop();
delete _root.backSound;
clearInterval(gameOverInter);
canvas_mc.clear();
canvas2_mc.clear();
_root.user_mc.removeMovieClip();
_root.heart_mc.removeMovieClip();
_root.blockTotal_mc.removeMovieClip();
_root.demo_clip.removeMovieClip();
removeMovieClip(_root.start_mc);
_root.gameOverSound.start();
_root.gotoAndStop("gameOver");
}
function titleMoveF() {
_root.gameOverSound.stop();
_root.gameOver_mc.removeMovieClip();
_root.heart_mc.removeMovieClip();
_root.next_mc.removeMovieClip();
_root.ui_mc.removeMovieClip();
_root.nextHeart_mc.removeMovieClip();
gotoAndPlay ("titleF");
}
demo_clip.swapDepths(600200);
nowF = "noting";
_root.titleSound.stop();
delete _root.titleSound;
_root.readySound.start();
_root.next_mc.gotoAndStop(1);
attachMovie("ui", "ui_mc", 20000);
_root.ui_mc._x = 197.9;
_root.ui_mc._y = 13.6;
userLocaX = 293.3;
userLocaY = 100;
blockStartX = -18.5;
blockStartY = -16;
newBlockStartX = -55.5;
newBlockStartY = -53;
heartX = 298.4;
heartY = 133;
nextHeartX = 365.9;
nextHeartY = 238.3;
blockPuchCountN = 30;
startBlockN = 1;
blockAcroN = 7;
blockVertN = 8;
blockMaxN = blockAcroN * blockVertN;
maxTime = 60;
hanlineN = 0;
gameDan = 1;
user_mc.swapDepths(500010);
title_mc.swapDepths(300000);
next_mc.swapDepths(600000);
_root.nextHeartKindN = random(4) + 1;
boomN = 5;
throwVis = "no";
newLineVis = "no";
endVis = "no";
Frame 33
function startFrame() {
clearInterval(readyInter);
gotoAndStop ("gameF");
}
stop();
readyInter = setInterval(startFrame, 1000);
Frame 34
function heartMoveF() {
user = _root.user_mc;
if (user._x < 300.3) {
user._x = 300.3;
}
if (user._x > 375.3) {
user._x = 375.3;
}
if (user._y < 45) {
user._y = 45;
}
if (user._y > 170) {
user._y = 170;
}
if (user._y <= 65.8) {
user.gotoAndStop("rightDrawF2");
} else if (user._y <= 81.7) {
user.gotoAndStop("rightDrawF1");
} else if (user._y <= 107) {
user.gotoAndStop("drawF");
} else if (user._y <= 146.7) {
user.gotoAndStop("leftDrawF1");
} else if (user._y <= 170) {
user.gotoAndStop("leftDrawF2");
}
_root.heart_mc._x = _root.user_mc._x + 5.1;
_root.heart_mc._y = _root.user_mc._y + 33;
}
function combackF() {
combackN++;
if (combackN == 11) {
clearInterval(combackInter);
_root.user_mc.gotoAndStop("waitF");
} else {
_root.user_mc._x = _root.user_mc._x - puDanX;
_root.user_mc._y = _root.user_mc._y - puDanY;
}
}
function heartRotF(usX, usY) {
stX = 300.3;
stY = 45;
throX = 0;
throY = 0;
chX = 10;
if ((usX >= 260) && (usX <= (stX + 2))) {
throX = 7;
} else if ((usX > (stX + 2)) && (usX <= (stX + (chX * (++throX))))) {
throX = 7;
} else if ((usX > (stX + (chX + throX))) && (usX <= (stX + (chX * (++throX))))) {
throX = 6;
} else if ((usX > (stX + (chX + throX))) && (usX <= (stX + (chX * (++throX))))) {
throX = 5;
} else if ((usX > (stX + (chX + throX))) && (usX <= (stX + (chX * (++throX))))) {
throX = 4;
} else if ((usX > (stX + (chX + throX))) && (usX <= (stX + (chX * (++throX))))) {
throX = 3;
} else if ((usX > (stX + (chX + throX))) && (usX <= (stX + (chX * (++throX))))) {
throX = 2;
} else if ((usX > (stX + (chX + throX))) && (usX <= (stX + (chX * (++throX))))) {
throX = 1;
} else if ((usX > (stX + (chX + throX))) && (usX <= 410)) {
throX = 1;
}
chY = 15;
if ((usY >= 0) && (usY <= (stY + 2))) {
throY = 8;
} else if ((usY > (stY + 2)) && (usY <= (stY + (chY * (++throY))))) {
throY = 8;
} else if ((usY > (stY + (chY * throY))) && (usY <= (stY + (chY * (++throY))))) {
throY = 7;
} else if ((usY > (stY + (chY * throY))) && (usY <= (stY + (chY * (++throY))))) {
throY = 6;
} else if ((usY > (stY + (chY * throY))) && (usY <= (stY + (chY * (++throY))))) {
throY = 5;
} else if ((usY > (stY + (chY * throY))) && (usY <= (stY + (chY * (++throY))))) {
throY = 4;
} else if ((usY > (stY + (chY * throY))) && (usY <= (stY + (chY * (++throY))))) {
throY = 3;
} else if ((usY > (stY + (chY * throY))) && (usY <= (stY + (chY * (++throY))))) {
throY = 2;
} else if ((usY > (stY + (chY * throY))) && (usY <= (stY + (chY * (++throY))))) {
throY = 1;
} else if ((usY > (stY + (chY * throY))) && (usY <= 310)) {
throY = 1;
}
_root.heartTrowF(throX, throY);
}
stop();
readyGame();
_root.user_mc.user_btn.onPress = function () {
if (_root.userDreg == "yes") {
_root.user_mc.startDrag();
if (soundon == "yes") {
_root.lineDrawSound = new Sound(this);
_root.lineDrawSound.attachSound("lineDrawSoundM");
}
_root.lineDrawSound.start(0, 999);
heartInter = setInterval(heartMoveF, 5);
line_mc.gotoAndStop(2);
Mouse.addListener(mouseListener);
lineX = _root.user_mc._x + 10;
lineY = _root.user_mc._y + 40;
_root.createEmptyMovieClip("canvas_mc", -1);
canvas_mc.lineStyle(2, 16760855, 100);
canvas_mc.moveTo(297.9, 71);
canvas_mc.lineTo(lineX, lineY);
_root.createEmptyMovieClip("canvas2_mc", -2);
canvas2_mc.lineStyle(2, 16760855, 100);
canvas2_mc.moveTo(297.9, 197);
canvas2_mc.lineTo(lineX, lineY);
updateAfterEvent();
}
};
var mouseListener = new Object();
mouseListener.onMouseMove = function () {
lineX = _root.user_mc._x + 10;
lineY = _root.user_mc._y + 40;
_root.createEmptyMovieClip("canvas_mc", -1);
canvas_mc.lineStyle(2, 16760855, 100);
canvas_mc.moveTo(297.9, 71);
canvas_mc.lineTo(lineX, lineY);
_root.createEmptyMovieClip("canvas2_mc", -2);
canvas2_mc.lineStyle(2, 16760855, 100);
canvas2_mc.moveTo(297.9, 197);
canvas2_mc.lineTo(lineX, lineY);
updateAfterEvent();
};
mouseListener.onMouseUp = function () {
if (_root.userDreg == "yes") {
clearInterval(heartInter);
Mouse.removeListener(mouseListener);
_root.userDreg = "no";
canvas_mc.clear();
canvas2_mc.clear();
_root.user_mc.stopDrag();
_root.lineDrawSound.stop();
delete _root.lineDrawSound;
_root.lineThrowSound.start();
_root.heartRotF(_root.user_mc._x, _root.user_mc._y);
puStartX = _root.user_mc._x;
puStartY = _root.user_mc._y;
puDanX = (puStartX - _root.userLocaX) / 10;
puDanY = (puStartY - _root.userLocaY) / 10;
combackN = 0;
combackInter = setInterval(combackF, 50);
}
};
Frame 35
function saveAgainF() {
clearInterval(saveAgainInter);
gameOver_mc.gotoAndStop("saveAgain");
}
function saveAgain() {
_root.buttonSound.start();
_root.pointSave.load((((((((callUrl + "?game_seq=") + game_seq) + "&point=") + point) + "&mem_id=") + mem_id) + "&game_point=") + _root.game_score);
gameOver_mc.gotoAndStop(1);
}
function resultF() {
clearInterval(resultInter);
gameOver_mc.gotoAndStop("result");
}
gameOver_mc.swapDepths(600800);
callUrl = "i_game_end_exec.php";
gameOver_mc.gotoAndStop("result");
ScoreSending = function () {
sendingResult = "\uC810\uC218 \uC804\uC1A1\uC911";
};
_root.pointSave.load((((((((callUrl + "?game_seq=") + game_seq) + "&point=") + point) + "&mem_id=") + mem_id) + "&game_point=") + _root.game_score);
Symbol 14 MovieClip [start] Frame 1
stop();
Symbol 14 MovieClip [start] Frame 2
play();
Symbol 14 MovieClip [start] Frame 22
_root.startGame();
Symbol 33 MovieClip Frame 1
stop();
Symbol 35 MovieClip [block_mc] Frame 1
testN = new String(this);
testN = testN.split("_");
test = (testN[3] + ",") + testN[4];
stop();
Symbol 35 MovieClip [block_mc] Frame 13
removeMovieClip(this);
stop();
Symbol 53 MovieClip [heart] Frame 1
stop();
Symbol 75 MovieClip Frame 192
this.is_opening_played = 1;
stop();
Symbol 80 Button
on (release) {
_root.buttonSound.start();
Selection.setFocus("_root.user1_mc.in_mc.in_txt");
gotoAndStop ("\uC0AC\uC6B4\uB4DC\uB054");
_root.soundOff();
}
Symbol 82 Button
on (release) {
_root.buttonSound.start();
Selection.setFocus("_root.user1_mc.in_mc.in_txt");
gotoAndStop ("\uC0AC\uC6B4\uB4DC\uCF2C");
_root.soundOn();
}
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 2
stop();
Symbol 96 MovieClip Frame 8
stop();
Symbol 97 Button
on (release) {
gotoAndPlay ("ready");
}
on (rollOver) {
_root.buttonSound.start();
}
Symbol 99 MovieClip Frame 8
stop();
Symbol 100 Button
on (release) {
gotoAndStop ("help");
}
on (rollOver) {
_root.buttonSound.start();
}
Symbol 104 MovieClip Frame 5
stop();
Symbol 105 Button
on (release) {
gotoAndPlay ("ready");
}
on (rollOver) {
_root.buttonSound.start();
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 13
function startFrame() {
clearInterval(readyInter);
_root.chareMake();
gotoAndStop (1);
}
stop();
readyInter = setInterval(startFrame, 1000);
Symbol 236 MovieClip Frame 5
stop();
Symbol 239 Button
on (release) {
_root.reStartReadyF();
gotoAndStop (1);
}
on (rollOver) {
_root.buttonSound.start();
}
Symbol 240 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 16
_root.secureMovie.varObj.encodeVars("game_score", _root, _root.temp);
Symbol 240 MovieClip Frame 19
stop();
Symbol 250 MovieClip Frame 5
stop();
Symbol 251 Button
on (release) {
_root.saveAgain();
}
on (rollOver) {
_root.buttonSound.start();
}
Symbol 255 MovieClip Frame 5
stop();
Symbol 257 Button
on (release) {
_root.titleMoveF();
}
on (rollOver) {
_root.buttonSound.start();
}
Symbol 258 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 2
stop();
Symbol 258 MovieClip Frame 3
stop();
Symbol 258 MovieClip Frame 4
stop();
Symbol 258 MovieClip Frame 5
msg = ((((((use_name + "\uB2D8\uC758 \uC810\uC218\uB294 ") + score) + "\uC810 \uC785\uB2C8\uB2E4.") + newline) + "\uD604\uC7AC\uC21C\uC704\uB294 ") + ranking) + "\uC704 \uC785\uB2C8\uB2E4.";