Frame 1 (515 B)
stop();
Stage.showMenu = false;
message = "";
surl = "http://panyroom.jr.naver.com/game/gameset.php";
sendVars = new LoadVars();
sendVars.gameid = gameid;
sendVars.sendAndLoad(surl, sendVars, "POST");
this.onEnterFrame = function () {
message = sendVars.message;
code = sendVars.code;
ld = getBytesLoaded();
to = getBytesTotal();
loading = (ld + " / ") + to;
if (((ld == to) && (message == "panypang")) && (gameid == "gift")) {
_root.gotoAndStop(2);
}
gotoAndStop (2);
};
Frame 2 (47 B)
stop();
this.onEnterFrame = function () {
};
Frame 3 (47 B)
stop();
this.onEnterFrame = function () {
};
Frame 4 (65 B)
stop();
this.onEnterFrame = function () {
};
gotoAndStop (3);
Frame 5 (65 B)
stop();
this.onEnterFrame = function () {
};
gotoAndStop (6);
Frame 6 (47 B)
stop();
this.onEnterFrame = function () {
};
Symbol 10 MovieClip [15g] Frame 1 (11 B)
gram = 15;
Symbol 12 MovieClip [65g] Frame 1 (11 B)
gram = 65;
Symbol 14 MovieClip [20g] Frame 1 (11 B)
gram = 20;
Symbol 17 MovieClip [35g] Frame 1 (11 B)
gram = 35;
Symbol 20 MovieClip [55g] Frame 1 (11 B)
gram = 55;
Symbol 23 MovieClip [10g] Frame 1 (11 B)
gram = 10;
Symbol 25 MovieClip [25g] Frame 1 (11 B)
gram = 25;
Symbol 28 MovieClip [30g] Frame 1 (11 B)
gram = 30;
Symbol 31 MovieClip [50g] Frame 1 (11 B)
gram = 50;
Symbol 34 MovieClip [40g] Frame 1 (20 B)
stop();
gram = 40;
Symbol 36 MovieClip [45g] Frame 1 (11 B)
gram = 45;
Symbol 38 MovieClip [60g] Frame 1 (11 B)
gram = 60;
Symbol 48 MovieClip Frame 1 (8 B)
stop();
Symbol 48 MovieClip Frame 2 (8 B)
stop();
Symbol 52 MovieClip Frame 1 (609 B)
stop();
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onPress = function () {
gotoAndStop (3);
};
this.onReleaseOutside = function () {
gotoAndStop (1);
};
this.onRelease = function () {
gotoAndStop (1);
_root.gotoAndStop(2);
};
this.onEnterFrame = function () {
an = an + 10;
ana = Math.sin((Math.PI/180) * an) * 100;
if (an >= 360) {
an = an - 360;
}
arr_mc._yscale = ana;
arr_mc._alpha = Math.abs(ana / 2) + 50;
if (ana > 0) {
arr_mc.gotoAndStop(1);
} else {
arr_mc.gotoAndStop(2);
}
};
Symbol 52 MovieClip Frame 2 (609 B)
stop();
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onPress = function () {
gotoAndStop (3);
};
this.onReleaseOutside = function () {
gotoAndStop (1);
};
this.onRelease = function () {
gotoAndStop (1);
_root.gotoAndStop(2);
};
this.onEnterFrame = function () {
an = an + 20;
ana = Math.sin((Math.PI/180) * an) * 100;
if (an >= 360) {
an = an - 360;
}
arr_mc._yscale = ana;
arr_mc._alpha = Math.abs(ana / 2) + 50;
if (ana > 0) {
arr_mc.gotoAndStop(1);
} else {
arr_mc.gotoAndStop(2);
}
};
Symbol 52 MovieClip Frame 3 (560 B)
stop();
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onPress = function () {
gotoAndStop (3);
};
this.onReleaseOutside = function () {
gotoAndStop (1);
};
this.onRelease = function () {
gotoAndStop (1);
_root.gotoAndStop(2);
};
this.onEnterFrame = function () {
an = 90;
ana = Math.sin((Math.PI/180) * an) * 100;
arr_mc._yscale = ana;
arr_mc._alpha = Math.abs(ana / 2) + 50;
if (ana > 0) {
arr_mc.gotoAndStop(1);
} else {
arr_mc.gotoAndStop(2);
}
};
Symbol 133 MovieClip Frame 1 (484 B)
stop();
if (_parent._parent._parent._parent.facial == "1") {
gotoAndStop (1);
} else if (_parent._parent._parent._parent.facial == "2") {
gotoAndStop (2);
} else if (_parent._parent._parent._parent.facial == "3") {
gotoAndStop (3);
} else if (_parent._parent._parent._parent.facial == "4") {
gotoAndStop (4);
} else if (_parent._parent._parent._parent.facial == "5") {
gotoAndStop (5);
} else if (_parent._parent._parent._parent.facial == "6") {
gotoAndStop (6);
}
Symbol 167 MovieClip Frame 1 (368 B)
stop();
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onPress = function () {
gotoAndStop (3);
};
this.onDragOut = function () {
gotoAndStop (1);
};
this.onReleaseOutside = function () {
gotoAndStop (1);
};
this.onRelease = function () {
gotoAndStop (1);
_root.gotoAndStop(3);
};
Symbol 182 MovieClip Frame 1 (368 B)
stop();
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onPress = function () {
gotoAndStop (3);
};
this.onDragOut = function () {
gotoAndStop (1);
};
this.onReleaseOutside = function () {
gotoAndStop (1);
};
this.onRelease = function () {
gotoAndStop (1);
_root.gotoAndStop(6);
};
Symbol 297 MovieClip Frame 1 (484 B)
stop();
if (_parent._parent._parent._parent.facial == "1") {
gotoAndStop (1);
} else if (_parent._parent._parent._parent.facial == "2") {
gotoAndStop (2);
} else if (_parent._parent._parent._parent.facial == "3") {
gotoAndStop (3);
} else if (_parent._parent._parent._parent.facial == "4") {
gotoAndStop (4);
} else if (_parent._parent._parent._parent.facial == "5") {
gotoAndStop (5);
} else if (_parent._parent._parent._parent.facial == "6") {
gotoAndStop (6);
}
Symbol 336 MovieClip Frame 1 (41.87 KiB) ● ● ● ●
function now_select(select, inout) {
if (inout == "in") {
i = 1;
while (i < 31) {
if (_parent["gift" + i] == 0) {
_parent["gift" + i] = select;
i = 31;
}
i++;
}
} else {
ok = "no";
_parent.gift31 = 0;
i = 1;
while (i < 31) {
if (((ok == "no") && (!(_parent["gift" + i] === 0))) && (_parent["gift" + i] == select)) {
_parent["gift" + i] = _parent["gift" + (i + 1)];
ok = "yes";
} else if (ok == "yes") {
_parent["gift" + i] = _parent["gift" + (i + 1)];
}
i++;
}
bbak_sound.start();
}
}
stop();
take_sound = new Sound();
take_sound.attachSound("take");
bbak_sound = new Sound();
bbak_sound.attachSound("bbak");
out_gram = 400;
total_gram = 0;
total_gift = 0;
_parent.gift1 = 0;
_parent.gift2 = 0;
_parent.gift3 = 0;
_parent.gift4 = 0;
_parent.gift5 = 0;
_parent.gift6 = 0;
_parent.gift7 = 0;
_parent.gift8 = 0;
_parent.gift9 = 0;
_parent.gift10 = 0;
_parent.gift11 = 0;
_parent.gift12 = 0;
_parent.gift13 = 0;
_parent.gift14 = 0;
_parent.gift15 = 0;
_parent.gift16 = 0;
_parent.gift17 = 0;
_parent.gift18 = 0;
_parent.gift19 = 0;
_parent.gift20 = 0;
_parent.gift21 = 0;
_parent.gift22 = 0;
_parent.gift23 = 0;
_parent.gift24 = 0;
_parent.gift25 = 0;
_parent.gift26 = 0;
_parent.gift27 = 0;
_parent.gift28 = 0;
_parent.gift29 = 0;
_parent.gift30 = 0;
i = 1;
while (i < 41) {
this["old_x" + i] = this["t_gift" + i]._x;
this["old_y" + i] = this["t_gift" + i]._y;
this["old_dep" + i] = this["t_gift" + i].getDepth();
i++;
}
this.onEnterFrame = function () {
t_gift1.onPress = function () {
t_gift1.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift1)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift1.gram;
now_select(t_gift1.gram, "in");
}
old_dep = t_gift1.getDepth();
t_gift1.swapDepths(100000);
};
t_gift1.onRelease = function () {
t_gift1.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift1)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift1.gram;
t_gift1._x = old_x1;
t_gift1._y = old_y1;
now_select(t_gift1.gram, "out");
}
t_gift1.swapDepths(old_dep1);
};
t_gift1.onReleaseOutside = function () {
t_gift1.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift1)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift1.gram;
t_gift1._x = old_x1;
t_gift1._y = old_y1;
now_select(t_gift1.gram, "out");
}
t_gift1.swapDepths(old_dep1);
};
t_gift2.onPress = function () {
t_gift2.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift2)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift2.gram;
now_select(t_gift2.gram, "in");
}
old_dep = t_gift2.getDepth();
t_gift2.swapDepths(100000);
};
t_gift2.onRelease = function () {
t_gift2.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift2)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift2.gram;
t_gift2._x = old_x2;
t_gift2._y = old_y2;
now_select(t_gift2.gram, "out");
}
t_gift2.swapDepths(old_dep2);
};
t_gift2.onReleaseOutside = function () {
t_gift2.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift2)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift2.gram;
t_gift2._x = old_x2;
t_gift2._y = old_y2;
now_select(t_gift2.gram, "out");
}
t_gift2.swapDepths(old_dep2);
};
t_gift3.onPress = function () {
t_gift3.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift3)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift3.gram;
now_select(t_gift3.gram, "in");
}
old_dep = t_gift3.getDepth();
t_gift3.swapDepths(100000);
};
t_gift3.onRelease = function () {
t_gift3.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift3)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift3.gram;
t_gift3._x = old_x3;
t_gift3._y = old_y3;
now_select(t_gift3.gram, "out");
}
t_gift3.swapDepths(old_dep3);
};
t_gift3.onReleaseOutside = function () {
t_gift3.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift3)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift3.gram;
t_gift3._x = old_x3;
t_gift3._y = old_y3;
now_select(t_gift3.gram, "out");
}
t_gift3.swapDepths(old_dep3);
};
t_gift4.onPress = function () {
t_gift4.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift4)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift4.gram;
now_select(t_gift4.gram, "in");
}
old_dep = t_gift4.getDepth();
t_gift4.swapDepths(100000);
};
t_gift4.onRelease = function () {
t_gift4.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift4)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift4.gram;
t_gift4._x = old_x4;
t_gift4._y = old_y4;
now_select(t_gift4.gram, "out");
}
t_gift4.swapDepths(old_dep4);
};
t_gift4.onReleaseOutside = function () {
t_gift4.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift4)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift4.gram;
t_gift4._x = old_x4;
t_gift4._y = old_y4;
now_select(t_gift4.gram, "out");
}
t_gift4.swapDepths(old_dep4);
};
t_gift5.onPress = function () {
t_gift5.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift5)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift5.gram;
now_select(t_gift5.gram, "in");
}
old_dep = t_gift5.getDepth();
t_gift5.swapDepths(100000);
};
t_gift5.onRelease = function () {
t_gift5.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift5)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift5.gram;
t_gift5._x = old_x5;
t_gift5._y = old_y5;
now_select(t_gift5.gram, "out");
}
t_gift5.swapDepths(old_dep5);
};
t_gift5.onReleaseOutside = function () {
t_gift5.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift5)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift5.gram;
t_gift5._x = old_x5;
t_gift5._y = old_y5;
now_select(t_gift5.gram, "out");
}
t_gift5.swapDepths(old_dep5);
};
t_gift6.onPress = function () {
t_gift6.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift6)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift6.gram;
now_select(t_gift6.gram, "in");
}
old_dep = t_gift6.getDepth();
t_gift6.swapDepths(100000);
};
t_gift6.onRelease = function () {
t_gift6.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift6)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift6.gram;
t_gift6._x = old_x6;
t_gift6._y = old_y6;
now_select(t_gift6.gram, "out");
}
t_gift6.swapDepths(old_dep6);
};
t_gift6.onReleaseOutside = function () {
t_gift6.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift6)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift6.gram;
t_gift6._x = old_x6;
t_gift6._y = old_y6;
now_select(t_gift6.gram, "out");
}
t_gift6.swapDepths(old_dep6);
};
t_gift7.onPress = function () {
t_gift7.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift7)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift7.gram;
now_select(t_gift7.gram, "in");
}
old_dep = t_gift7.getDepth();
t_gift7.swapDepths(100000);
};
t_gift7.onRelease = function () {
t_gift7.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift7)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift7.gram;
t_gift7._x = old_x7;
t_gift7._y = old_y7;
now_select(t_gift7.gram, "out");
}
t_gift7.swapDepths(old_dep7);
};
t_gift7.onReleaseOutside = function () {
t_gift7.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift7)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift7.gram;
t_gift7._x = old_x7;
t_gift7._y = old_y7;
now_select(t_gift7.gram, "out");
}
t_gift7.swapDepths(old_dep7);
};
t_gift8.onPress = function () {
t_gift8.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift8)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift8.gram;
now_select(t_gift8.gram, "in");
}
old_dep = t_gift8.getDepth();
t_gift8.swapDepths(100000);
};
t_gift8.onRelease = function () {
t_gift8.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift8)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift8.gram;
t_gift8._x = old_x8;
t_gift8._y = old_y8;
now_select(t_gift8.gram, "out");
}
t_gift8.swapDepths(old_dep8);
};
t_gift8.onReleaseOutside = function () {
t_gift8.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift8)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift8.gram;
t_gift8._x = old_x8;
t_gift8._y = old_y8;
now_select(t_gift8.gram, "out");
}
t_gift8.swapDepths(old_dep8);
};
t_gift9.onPress = function () {
t_gift9.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift9)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift9.gram;
now_select(t_gift9.gram, "in");
}
old_dep = t_gift9.getDepth();
t_gift9.swapDepths(100000);
};
t_gift9.onRelease = function () {
t_gift9.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift9)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift9.gram;
t_gift9._x = old_x9;
t_gift9._y = old_y9;
now_select(t_gift9.gram, "out");
}
t_gift9.swapDepths(old_dep9);
};
t_gift9.onReleaseOutside = function () {
t_gift9.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift9)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift9.gram;
t_gift9._x = old_x9;
t_gift9._y = old_y9;
now_select(t_gift9.gram, "out");
}
t_gift9.swapDepths(old_dep9);
};
t_gift10.onPress = function () {
t_gift10.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift10)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift10.gram;
now_select(t_gift10.gram, "in");
}
old_dep = t_gift10.getDepth();
t_gift10.swapDepths(100000);
};
t_gift10.onRelease = function () {
t_gift10.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift10)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift10.gram;
t_gift10._x = old_x10;
t_gift10._y = old_y10;
now_select(t_gift10.gram, "out");
}
t_gift10.swapDepths(old_dep10);
};
t_gift10.onReleaseOutside = function () {
t_gift10.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift10)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift10.gram;
t_gift10._x = old_x10;
t_gift10._y = old_y10;
now_select(t_gift10.gram, "out");
}
t_gift10.swapDepths(old_dep10);
};
t_gift11.onPress = function () {
t_gift11.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift11)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift11.gram;
now_select(t_gift11.gram, "in");
}
old_dep = t_gift11.getDepth();
t_gift11.swapDepths(100000);
};
t_gift11.onRelease = function () {
t_gift11.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift11)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift11.gram;
t_gift11._x = old_x11;
t_gift11._y = old_y11;
now_select(t_gift11.gram, "out");
}
t_gift11.swapDepths(old_dep11);
};
t_gift11.onReleaseOutside = function () {
t_gift11.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift11)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift11.gram;
t_gift11._x = old_x11;
t_gift11._y = old_y11;
now_select(t_gift11.gram, "out");
}
t_gift11.swapDepths(old_dep11);
};
t_gift12.onPress = function () {
t_gift12.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift12)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift12.gram;
now_select(t_gift12.gram, "in");
}
old_dep = t_gift12.getDepth();
t_gift12.swapDepths(100000);
};
t_gift12.onRelease = function () {
t_gift12.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift12)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift12.gram;
t_gift12._x = old_x12;
t_gift12._y = old_y12;
now_select(t_gift12.gram, "out");
}
t_gift12.swapDepths(old_dep12);
};
t_gift12.onReleaseOutside = function () {
t_gift12.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift12)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift12.gram;
t_gift12._x = old_x12;
t_gift12._y = old_y12;
now_select(t_gift12.gram, "out");
}
t_gift12.swapDepths(old_dep12);
};
t_gift13.onPress = function () {
t_gift13.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift13)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift13.gram;
now_select(t_gift13.gram, "in");
}
old_dep = t_gift13.getDepth();
t_gift13.swapDepths(100000);
};
t_gift13.onRelease = function () {
t_gift13.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift13)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift13.gram;
t_gift13._x = old_x13;
t_gift13._y = old_y13;
now_select(t_gift13.gram, "out");
}
t_gift13.swapDepths(old_dep13);
};
t_gift13.onReleaseOutside = function () {
t_gift13.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift13)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift13.gram;
t_gift13._x = old_x13;
t_gift13._y = old_y13;
now_select(t_gift13.gram, "out");
}
t_gift13.swapDepths(old_dep13);
};
t_gift14.onPress = function () {
t_gift14.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift14)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift14.gram;
now_select(t_gift14.gram, "in");
}
old_dep = t_gift14.getDepth();
t_gift14.swapDepths(100000);
};
t_gift14.onRelease = function () {
t_gift14.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift14)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift14.gram;
t_gift14._x = old_x14;
t_gift14._y = old_y14;
now_select(t_gift14.gram, "out");
}
t_gift14.swapDepths(old_dep14);
};
t_gift14.onReleaseOutside = function () {
t_gift14.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift14)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift14.gram;
t_gift14._x = old_x14;
t_gift14._y = old_y14;
now_select(t_gift14.gram, "out");
}
t_gift14.swapDepths(old_dep14);
};
t_gift15.onPress = function () {
t_gift15.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift15)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift15.gram;
now_select(t_gift15.gram, "in");
}
old_dep = t_gift15.getDepth();
t_gift15.swapDepths(100000);
};
t_gift15.onRelease = function () {
t_gift15.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift15)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift15.gram;
t_gift15._x = old_x15;
t_gift15._y = old_y15;
now_select(t_gift15.gram, "out");
}
t_gift15.swapDepths(old_dep15);
};
t_gift15.onReleaseOutside = function () {
t_gift15.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift15)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift15.gram;
t_gift15._x = old_x15;
t_gift15._y = old_y15;
now_select(t_gift15.gram, "out");
}
t_gift15.swapDepths(old_dep15);
};
t_gift16.onPress = function () {
t_gift16.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift16)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift16.gram;
now_select(t_gift16.gram, "in");
}
old_dep = t_gift16.getDepth();
t_gift16.swapDepths(100000);
};
t_gift16.onRelease = function () {
t_gift16.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift16)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift16.gram;
t_gift16._x = old_x16;
t_gift16._y = old_y16;
now_select(t_gift16.gram, "out");
}
t_gift16.swapDepths(old_dep16);
};
t_gift16.onReleaseOutside = function () {
t_gift16.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift16)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift16.gram;
t_gift16._x = old_x16;
t_gift16._y = old_y16;
now_select(t_gift16.gram, "out");
}
t_gift16.swapDepths(old_dep16);
};
t_gift17.onPress = function () {
t_gift17.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift17)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift17.gram;
now_select(t_gift17.gram, "in");
}
old_dep = t_gift17.getDepth();
t_gift17.swapDepths(100000);
};
t_gift17.onRelease = function () {
t_gift17.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift17)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift17.gram;
t_gift17._x = old_x17;
t_gift17._y = old_y17;
now_select(t_gift17.gram, "out");
}
t_gift17.swapDepths(old_dep17);
};
t_gift17.onReleaseOutside = function () {
t_gift17.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift17)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift17.gram;
t_gift17._x = old_x17;
t_gift17._y = old_y17;
now_select(t_gift17.gram, "out");
}
t_gift17.swapDepths(old_dep17);
};
t_gift18.onPress = function () {
t_gift18.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift18)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift18.gram;
now_select(t_gift18.gram, "in");
}
old_dep = t_gift18.getDepth();
t_gift18.swapDepths(100000);
};
t_gift18.onRelease = function () {
t_gift18.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift18)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift18.gram;
t_gift18._x = old_x18;
t_gift18._y = old_y18;
now_select(t_gift18.gram, "out");
}
t_gift18.swapDepths(old_dep18);
};
t_gift18.onReleaseOutside = function () {
t_gift18.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift18)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift18.gram;
t_gift18._x = old_x18;
t_gift18._y = old_y18;
now_select(t_gift18.gram, "out");
}
t_gift18.swapDepths(old_dep18);
};
t_gift19.onPress = function () {
t_gift19.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift19)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift19.gram;
now_select(t_gift19.gram, "in");
}
old_dep = t_gift19.getDepth();
t_gift19.swapDepths(100000);
};
t_gift19.onRelease = function () {
t_gift19.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift19)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift19.gram;
t_gift19._x = old_x19;
t_gift19._y = old_y19;
now_select(t_gift19.gram, "out");
}
t_gift19.swapDepths(old_dep19);
};
t_gift19.onReleaseOutside = function () {
t_gift19.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift19)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift19.gram;
t_gift19._x = old_x19;
t_gift19._y = old_y19;
now_select(t_gift19.gram, "out");
}
t_gift19.swapDepths(old_dep19);
};
t_gift20.onPress = function () {
t_gift20.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift20)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift20.gram;
now_select(t_gift20.gram, "in");
}
old_dep = t_gift20.getDepth();
t_gift20.swapDepths(100000);
};
t_gift20.onRelease = function () {
t_gift20.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift20)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift20.gram;
t_gift20._x = old_x20;
t_gift20._y = old_y20;
now_select(t_gift20.gram, "out");
}
t_gift20.swapDepths(old_dep20);
};
t_gift20.onReleaseOutside = function () {
t_gift20.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift20)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift20.gram;
t_gift20._x = old_x20;
t_gift20._y = old_y20;
now_select(t_gift20.gram, "out");
}
t_gift20.swapDepths(old_dep20);
};
t_gift21.onPress = function () {
t_gift21.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift21)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift21.gram;
now_select(t_gift21.gram, "in");
}
old_dep = t_gift21.getDepth();
t_gift21.swapDepths(100000);
};
t_gift21.onRelease = function () {
t_gift21.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift21)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift21.gram;
t_gift21._x = old_x21;
t_gift21._y = old_y21;
now_select(t_gift21.gram, "out");
}
t_gift21.swapDepths(old_dep21);
};
t_gift21.onReleaseOutside = function () {
t_gift21.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift21)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift21.gram;
t_gift21._x = old_x21;
t_gift21._y = old_y21;
now_select(t_gift21.gram, "out");
}
t_gift21.swapDepths(old_dep21);
};
t_gift22.onPress = function () {
t_gift22.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift22)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift22.gram;
now_select(t_gift22.gram, "in");
}
old_dep = t_gift22.getDepth();
t_gift22.swapDepths(100000);
};
t_gift22.onRelease = function () {
t_gift22.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift22)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift22.gram;
t_gift22._x = old_x22;
t_gift22._y = old_y22;
now_select(t_gift22.gram, "out");
}
t_gift22.swapDepths(old_dep22);
};
t_gift22.onReleaseOutside = function () {
t_gift22.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift22)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift22.gram;
t_gift22._x = old_x22;
t_gift22._y = old_y22;
now_select(t_gift22.gram, "out");
}
t_gift22.swapDepths(old_dep22);
};
t_gift23.onPress = function () {
t_gift23.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift23)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift23.gram;
now_select(t_gift23.gram, "in");
}
old_dep = t_gift23.getDepth();
t_gift23.swapDepths(100000);
};
t_gift23.onRelease = function () {
t_gift23.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift23)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift23.gram;
t_gift23._x = old_x23;
t_gift23._y = old_y23;
now_select(t_gift23.gram, "out");
}
t_gift23.swapDepths(old_dep23);
};
t_gift23.onReleaseOutside = function () {
t_gift23.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift23)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift23.gram;
t_gift23._x = old_x23;
t_gift23._y = old_y23;
now_select(t_gift23.gram, "out");
}
t_gift23.swapDepths(old_dep23);
};
t_gift24.onPress = function () {
t_gift24.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift24)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift24.gram;
now_select(t_gift24.gram, "in");
}
old_dep = t_gift24.getDepth();
t_gift24.swapDepths(100000);
};
t_gift24.onRelease = function () {
t_gift24.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift24)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift24.gram;
t_gift24._x = old_x24;
t_gift24._y = old_y24;
now_select(t_gift24.gram, "out");
}
t_gift24.swapDepths(old_dep24);
};
t_gift24.onReleaseOutside = function () {
t_gift24.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift24)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift24.gram;
t_gift24._x = old_x24;
t_gift24._y = old_y24;
now_select(t_gift24.gram, "out");
}
t_gift24.swapDepths(old_dep24);
};
t_gift25.onPress = function () {
t_gift25.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift25)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift25.gram;
now_select(t_gift25.gram, "in");
}
old_dep = t_gift25.getDepth();
t_gift25.swapDepths(100000);
};
t_gift25.onRelease = function () {
t_gift25.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift25)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift25.gram;
t_gift25._x = old_x25;
t_gift25._y = old_y25;
now_select(t_gift25.gram, "out");
}
t_gift25.swapDepths(old_dep25);
};
t_gift25.onReleaseOutside = function () {
t_gift25.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift25)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift25.gram;
t_gift25._x = old_x25;
t_gift25._y = old_y25;
now_select(t_gift25.gram, "out");
}
t_gift25.swapDepths(old_dep25);
};
t_gift26.onPress = function () {
t_gift26.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift26)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift26.gram;
now_select(t_gift26.gram, "in");
}
old_dep = t_gift26.getDepth();
t_gift26.swapDepths(100000);
};
t_gift26.onRelease = function () {
t_gift26.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift26)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift26.gram;
t_gift26._x = old_x26;
t_gift26._y = old_y26;
now_select(t_gift26.gram, "out");
}
t_gift26.swapDepths(old_dep26);
};
t_gift26.onReleaseOutside = function () {
t_gift26.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift26)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift26.gram;
t_gift26._x = old_x26;
t_gift26._y = old_y26;
now_select(t_gift26.gram, "out");
}
t_gift26.swapDepths(old_dep26);
};
t_gift27.onPress = function () {
t_gift27.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift27)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift27.gram;
now_select(t_gift27.gram, "in");
}
old_dep = t_gift27.getDepth();
t_gift27.swapDepths(100000);
};
t_gift27.onRelease = function () {
t_gift27.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift27)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift27.gram;
t_gift27._x = old_x27;
t_gift27._y = old_y27;
now_select(t_gift27.gram, "out");
}
t_gift27.swapDepths(old_dep27);
};
t_gift27.onReleaseOutside = function () {
t_gift27.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift27)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift27.gram;
t_gift27._x = old_x27;
t_gift27._y = old_y27;
now_select(t_gift27.gram, "out");
}
t_gift27.swapDepths(old_dep27);
};
t_gift28.onPress = function () {
t_gift28.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift28)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift28.gram;
now_select(t_gift28.gram, "in");
}
old_dep = t_gift28.getDepth();
t_gift28.swapDepths(100000);
};
t_gift28.onRelease = function () {
t_gift28.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift28)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift28.gram;
t_gift28._x = old_x28;
t_gift28._y = old_y28;
now_select(t_gift28.gram, "out");
}
t_gift28.swapDepths(old_dep28);
};
t_gift28.onReleaseOutside = function () {
t_gift28.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift28)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift28.gram;
t_gift28._x = old_x28;
t_gift28._y = old_y28;
now_select(t_gift28.gram, "out");
}
t_gift28.swapDepths(old_dep28);
};
t_gift29.onPress = function () {
t_gift29.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift29)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift29.gram;
now_select(t_gift29.gram, "in");
}
old_dep = t_gift29.getDepth();
t_gift29.swapDepths(100000);
};
t_gift29.onRelease = function () {
t_gift29.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift29)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift29.gram;
t_gift29._x = old_x29;
t_gift29._y = old_y29;
now_select(t_gift29.gram, "out");
}
t_gift29.swapDepths(old_dep29);
};
t_gift29.onReleaseOutside = function () {
t_gift29.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift29)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift29.gram;
t_gift29._x = old_x29;
t_gift29._y = old_y29;
now_select(t_gift29.gram, "out");
}
t_gift29.swapDepths(old_dep29);
};
t_gift30.onPress = function () {
t_gift30.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift30)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift30.gram;
now_select(t_gift30.gram, "in");
}
old_dep = t_gift30.getDepth();
t_gift30.swapDepths(100000);
};
t_gift30.onRelease = function () {
t_gift30.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift30)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift30.gram;
t_gift30._x = old_x30;
t_gift30._y = old_y30;
now_select(t_gift30.gram, "out");
}
t_gift30.swapDepths(old_dep30);
};
t_gift30.onReleaseOutside = function () {
t_gift30.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift30)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift30.gram;
t_gift30._x = old_x30;
t_gift30._y = old_y30;
now_select(t_gift30.gram, "out");
}
t_gift30.swapDepths(old_dep30);
};
t_gift31.onPress = function () {
t_gift31.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift31)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift31.gram;
now_select(t_gift31.gram, "in");
}
old_dep = t_gift31.getDepth();
t_gift31.swapDepths(100000);
};
t_gift31.onRelease = function () {
t_gift31.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift31)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift31.gram;
t_gift31._x = old_x31;
t_gift31._y = old_y31;
now_select(t_gift31.gram, "out");
}
t_gift31.swapDepths(old_dep31);
};
t_gift31.onReleaseOutside = function () {
t_gift31.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift31)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift31.gram;
t_gift31._x = old_x31;
t_gift31._y = old_y31;
now_select(t_gift31.gram, "out");
}
t_gift31.swapDepths(old_dep31);
};
t_gift32.onPress = function () {
t_gift32.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift32)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift32.gram;
now_select(t_gift32.gram, "in");
}
old_dep = t_gift32.getDepth();
t_gift32.swapDepths(100000);
};
t_gift32.onRelease = function () {
t_gift32.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift32)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift32.gram;
t_gift32._x = old_x32;
t_gift32._y = old_y32;
now_select(t_gift32.gram, "out");
}
t_gift32.swapDepths(old_dep32);
};
t_gift32.onReleaseOutside = function () {
t_gift32.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift32)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift32.gram;
t_gift32._x = old_x32;
t_gift32._y = old_y32;
now_select(t_gift32.gram, "out");
}
t_gift32.swapDepths(old_dep32);
};
t_gift33.onPress = function () {
t_gift33.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift33)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift33.gram;
now_select(t_gift33.gram, "in");
}
old_dep = t_gift33.getDepth();
t_gift33.swapDepths(100000);
};
t_gift33.onRelease = function () {
t_gift33.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift33)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift33.gram;
t_gift33._x = old_x33;
t_gift33._y = old_y33;
now_select(t_gift33.gram, "out");
}
t_gift33.swapDepths(old_dep33);
};
t_gift33.onReleaseOutside = function () {
t_gift33.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift33)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift33.gram;
t_gift33._x = old_x33;
t_gift33._y = old_y33;
now_select(t_gift33.gram, "out");
}
t_gift33.swapDepths(old_dep33);
};
t_gift34.onPress = function () {
t_gift34.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift34)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift34.gram;
now_select(t_gift34.gram, "in");
}
old_dep = t_gift34.getDepth();
t_gift34.swapDepths(100000);
};
t_gift34.onRelease = function () {
t_gift34.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift34)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift34.gram;
t_gift34._x = old_x34;
t_gift34._y = old_y34;
now_select(t_gift34.gram, "out");
}
t_gift34.swapDepths(old_dep34);
};
t_gift34.onReleaseOutside = function () {
t_gift34.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift34)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift34.gram;
t_gift34._x = old_x34;
t_gift34._y = old_y34;
now_select(t_gift34.gram, "out");
}
t_gift34.swapDepths(old_dep34);
};
t_gift35.onPress = function () {
t_gift35.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift35)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift35.gram;
now_select(t_gift35.gram, "in");
}
old_dep = t_gift35.getDepth();
t_gift35.swapDepths(100000);
};
t_gift35.onRelease = function () {
t_gift35.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift35)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift35.gram;
t_gift35._x = old_x35;
t_gift35._y = old_y35;
now_select(t_gift35.gram, "out");
}
t_gift35.swapDepths(old_dep35);
};
t_gift35.onReleaseOutside = function () {
t_gift35.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift35)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift35.gram;
t_gift35._x = old_x35;
t_gift35._y = old_y35;
now_select(t_gift35.gram, "out");
}
t_gift35.swapDepths(old_dep35);
};
t_gift36.onPress = function () {
t_gift36.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift36)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift36.gram;
now_select(t_gift36.gram, "in");
}
old_dep = t_gift36.getDepth();
t_gift36.swapDepths(100000);
};
t_gift36.onRelease = function () {
t_gift36.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift36)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift36.gram;
t_gift36._x = old_x36;
t_gift36._y = old_y36;
now_select(t_gift36.gram, "out");
}
t_gift36.swapDepths(old_dep36);
};
t_gift36.onReleaseOutside = function () {
t_gift36.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift36)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift36.gram;
t_gift36._x = old_x36;
t_gift36._y = old_y36;
now_select(t_gift36.gram, "out");
}
t_gift36.swapDepths(old_dep36);
};
t_gift37.onPress = function () {
t_gift37.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift37)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift37.gram;
now_select(t_gift37.gram, "in");
}
old_dep = t_gift37.getDepth();
t_gift37.swapDepths(100000);
};
t_gift37.onRelease = function () {
t_gift37.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift37)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift37.gram;
t_gift37._x = old_x37;
t_gift37._y = old_y37;
now_select(t_gift37.gram, "out");
}
t_gift37.swapDepths(old_dep37);
};
t_gift37.onReleaseOutside = function () {
t_gift37.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift37)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift37.gram;
t_gift37._x = old_x37;
t_gift37._y = old_y37;
now_select(t_gift37.gram, "out");
}
t_gift37.swapDepths(old_dep37);
};
t_gift38.onPress = function () {
t_gift38.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift38)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift38.gram;
now_select(t_gift38.gram, "in");
}
old_dep = t_gift38.getDepth();
t_gift38.swapDepths(100000);
};
t_gift38.onRelease = function () {
t_gift38.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift38)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift38.gram;
t_gift38._x = old_x38;
t_gift38._y = old_y38;
now_select(t_gift38.gram, "out");
}
t_gift38.swapDepths(old_dep38);
};
t_gift38.onReleaseOutside = function () {
t_gift38.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift38)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift38.gram;
t_gift38._x = old_x38;
t_gift38._y = old_y38;
now_select(t_gift38.gram, "out");
}
t_gift38.swapDepths(old_dep38);
};
t_gift39.onPress = function () {
t_gift39.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift39)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift39.gram;
now_select(t_gift39.gram, "in");
}
old_dep = t_gift39.getDepth();
t_gift39.swapDepths(100000);
};
t_gift39.onRelease = function () {
t_gift39.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift39)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift39.gram;
t_gift39._x = old_x39;
t_gift39._y = old_y39;
now_select(t_gift39.gram, "out");
}
t_gift39.swapDepths(old_dep39);
};
t_gift39.onReleaseOutside = function () {
t_gift39.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift39)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift39.gram;
t_gift39._x = old_x39;
t_gift39._y = old_y39;
now_select(t_gift39.gram, "out");
}
t_gift39.swapDepths(old_dep39);
};
t_gift40.onPress = function () {
t_gift40.startDrag();
take_sound.start();
if (!_parent.drag_area.hitTest(t_gift40)) {
total_gift = total_gift + 1;
total_gram = total_gram + t_gift40.gram;
now_select(t_gift40.gram, "in");
}
old_dep = t_gift40.getDepth();
t_gift40.swapDepths(100000);
};
t_gift40.onRelease = function () {
t_gift40.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift40)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift40.gram;
t_gift40._x = old_x40;
t_gift40._y = old_y40;
now_select(t_gift40.gram, "out");
}
t_gift40.swapDepths(old_dep40);
};
t_gift40.onReleaseOutside = function () {
t_gift40.stopDrag();
if ((!_parent.drag_area.hitTest(t_gift40)) || (total_gram > out_gram)) {
total_gift = total_gift - 1;
total_gram = total_gram - t_gift40.gram;
t_gift40._x = old_x40;
t_gift40._y = old_y40;
now_select(t_gift40.gram, "out");
}
t_gift40.swapDepths(old_dep40);
};
};
Symbol 342 MovieClip Frame 1 (1.57 KiB) ●
stop();
this.onRollOut = function () {
gotoAndStop (1);
};
this.onPress = function () {
gotoAndStop (2);
};
this.onDragOut = function () {
gotoAndStop (1);
};
this.onReleaseOutside = function () {
gotoAndStop (1);
};
this.onRelease = function () {
gotoAndStop (1);
if (_root.list_mc._currentframe == 1) {
_root.list_mc.gotoAndStop(2);
} else if (_root.list_mc._currentframe == 2) {
_root.list_mc.gotoAndStop(3);
} else if (_root.list_mc._currentframe == 3) {
_root.list_mc.gotoAndStop(4);
} else if (_root.list_mc._currentframe == 4) {
_root.list_mc.gotoAndStop(5);
} else if (_root.list_mc._currentframe == 5) {
_root.list_mc.gotoAndStop(6);
} else if (_root.list_mc._currentframe == 6) {
_root.list_mc.gotoAndStop(7);
} else if (_root.list_mc._currentframe == 7) {
_root.list_mc.gotoAndStop(8);
} else if (_root.list_mc._currentframe == 8) {
_root.list_mc.gotoAndStop(9);
} else if (_root.list_mc._currentframe == 9) {
_root.list_mc.gotoAndStop(10);
} else if (_root.list_mc._currentframe == 10) {
_root.list_mc.gotoAndStop(11);
} else if (_root.list_mc._currentframe == 11) {
_root.list_mc.gotoAndStop(12);
} else if (_root.list_mc._currentframe == 12) {
_root.list_mc.gotoAndStop(13);
} else if (_root.list_mc._currentframe == 13) {
_root.list_mc.gotoAndStop(14);
} else if (_root.list_mc._currentframe == 14) {
_root.list_mc.gotoAndStop(15);
} else if (_root.list_mc._currentframe == 15) {
_root.list_mc.gotoAndStop(16);
} else if (_root.list_mc._currentframe == 16) {
_root.list_mc.gotoAndStop(1);
}
};
Symbol 383 MovieClip Frame 1 (8 B)
stop();
Symbol 383 MovieClip Frame 12 (33 B)
stop();
_parent.gotoAndStop(3);
Symbol 383 MovieClip Frame 23 (8 B)
stop();
Symbol 406 MovieClip Frame 3 (8 B)
stop();
Symbol 408 MovieClip Frame 11 (8 B)
stop();
Symbol 410 MovieClip Frame 1 (8 B)
stop();
Symbol 410 MovieClip Frame 2 (8 B)
stop();
Symbol 410 MovieClip Frame 3 (8 B)
stop();
Symbol 410 MovieClip Frame 4 (8 B)
stop();
Symbol 410 MovieClip Frame 5 (8 B)
stop();
Symbol 410 MovieClip Frame 6 (8 B)
stop();
Symbol 410 MovieClip Frame 7 (8 B)
stop();
Symbol 410 MovieClip Frame 8 (8 B)
stop();
Symbol 410 MovieClip Frame 9 (8 B)
stop();
Symbol 410 MovieClip Frame 10 (8 B)
stop();
Symbol 410 MovieClip Frame 11 (8 B)
stop();
Symbol 410 MovieClip Frame 12 (8 B)
stop();
Symbol 410 MovieClip Frame 13 (8 B)
stop();
Symbol 410 MovieClip Frame 14 (8 B)
stop();
Symbol 410 MovieClip Frame 15 (8 B)
stop();
Symbol 431 MovieClip Frame 1 (8 B)
stop();
Symbol 431 MovieClip Frame 2 (8 B)
stop();
Symbol 472 MovieClip Frame 1 (34 B)
stop();
_parent.click_ok = "no";
Symbol 472 MovieClip Frame 2 (35 B)
stop();
_parent.click_ok = "yes";
Symbol 473 MovieClip Frame 104 (24 B)
_parent.star_mc.play();
Symbol 473 MovieClip Frame 159 (33 B)
stop();
_parent.gotoAndStop(5);
Symbol 478 MovieClip Frame 1 (8 B)
stop();
Symbol 478 MovieClip Frame 2 (134 B)
click_area.onPress = function () {
_parent.pin_mc.gotoAndPlay(2);
_parent.ani_mc.click_mc.gotoAndStop(2);
gotoAndPlay (60);
};
Symbol 478 MovieClip Frame 59 (18 B)
gotoAndPlay (23);
Symbol 478 MovieClip Frame 62 (58 B)
stop();
_parent.broken = "yes";
_parent.gotoAndStop(4);
Symbol 484 MovieClip Frame 1 (8 B)
stop();
Symbol 484 MovieClip Frame 22 (8 B)
stop();
Symbol 485 MovieClip Frame 50 (42 B)
if (_parent.zero == "yes") {
stop();
}
Symbol 485 MovieClip Frame 90 (8 B)
stop();
Symbol 513 MovieClip Frame 1 (8 B)
stop();
Symbol 513 MovieClip Frame 2 (8 B)
stop();
Symbol 513 MovieClip Frame 3 (8 B)
stop();
Symbol 513 MovieClip Frame 4 (8 B)
stop();
Symbol 513 MovieClip Frame 5 (8 B)
stop();
Symbol 513 MovieClip Frame 6 (8 B)
stop();
Symbol 513 MovieClip Frame 7 (8 B)
stop();
Symbol 513 MovieClip Frame 8 (8 B)
stop();
Symbol 513 MovieClip Frame 9 (8 B)
stop();
Symbol 513 MovieClip Frame 10 (8 B)
stop();
Symbol 513 MovieClip Frame 11 (8 B)
stop();
Symbol 515 MovieClip Frame 1 (8 B)
stop();
Symbol 515 MovieClip Frame 2 (8 B)
stop();
Symbol 519 MovieClip Frame 20 (8 B)
stop();
Symbol 522 MovieClip Frame 20 (8 B)
stop();
Symbol 525 MovieClip Frame 20 (8 B)
stop();
Symbol 528 MovieClip Frame 20 (8 B)
stop();
Symbol 531 MovieClip Frame 20 (8 B)
stop();
Symbol 534 MovieClip Frame 20 (8 B)
stop();
Symbol 537 MovieClip Frame 20 (8 B)
stop();
Symbol 540 MovieClip Frame 20 (8 B)
stop();
Symbol 543 MovieClip Frame 20 (8 B)
stop();
Symbol 545 MovieClip Frame 20 (8 B)
stop();
Symbol 547 MovieClip Frame 20 (8 B)
stop();
Symbol 549 MovieClip Frame 20 (8 B)
stop();
Symbol 550 MovieClip Frame 1 (8 B)
stop();
Symbol 550 MovieClip Frame 10 (8 B)
stop();
Symbol 550 MovieClip Frame 15 (8 B)
stop();
Symbol 550 MovieClip Frame 20 (8 B)
stop();
Symbol 550 MovieClip Frame 25 (8 B)
stop();
Symbol 550 MovieClip Frame 30 (8 B)
stop();
Symbol 550 MovieClip Frame 35 (8 B)
stop();
Symbol 550 MovieClip Frame 40 (8 B)
stop();
Symbol 550 MovieClip Frame 45 (8 B)
stop();
Symbol 550 MovieClip Frame 50 (8 B)
stop();
Symbol 550 MovieClip Frame 55 (8 B)
stop();
Symbol 550 MovieClip Frame 60 (8 B)
stop();
Symbol 550 MovieClip Frame 65 (8 B)
stop();
Symbol 565 MovieClip Frame 1 (8 B)
stop();
Symbol 565 MovieClip Frame 2 (8 B)
stop();
Symbol 565 MovieClip Frame 3 (8 B)
stop();
Symbol 565 MovieClip Frame 4 (8 B)
stop();
Symbol 572 MovieClip Frame 1 (8 B)
stop();
Symbol 572 MovieClip Frame 2 (8 B)
stop();
Symbol 572 MovieClip Frame 3 (8 B)
stop();
Symbol 572 MovieClip Frame 4 (8 B)
stop();
Symbol 572 MovieClip Frame 5 (8 B)
stop();
Symbol 572 MovieClip Frame 6 (8 B)
stop();
Symbol 572 MovieClip Frame 7 (8 B)
stop();
Symbol 572 MovieClip Frame 8 (8 B)
stop();
Symbol 572 MovieClip Frame 9 (8 B)
stop();
Symbol 572 MovieClip Frame 10 (8 B)
stop();
Symbol 572 MovieClip Frame 11 (8 B)
stop();
Symbol 575 MovieClip Frame 1 (8 B)
stop();
Symbol 575 MovieClip Frame 2 (8 B)
stop();
Symbol 583 MovieClip Frame 10 (8 B)
stop();
Symbol 595 MovieClip Frame 1 (8 B)
stop();
Symbol 596 MovieClip Frame 1 (358 B)
this.onEnterFrame = function () {
myString = new String(_parent.point);
len = myString.length;
i = 0;
while (i < len) {
this["score_img" + (i + 1)] = myString.substr(i, 1);
is = int(this["score_img" + (i + 1)]);
if (this["score_img" + (i + 1)].length > 0) {
this["len" + (i + (11 - len))].gotoAndStop(is + 2);
}
i++;
}
};
Symbol 598 MovieClip Frame 1 (8 B)
stop();
Symbol 598 MovieClip Frame 2 (8 B)
stop();
Symbol 641 MovieClip Frame 1 (8 B)
stop();
Symbol 641 MovieClip Frame 2 (8 B)
stop();
Symbol 641 MovieClip Frame 3 (8 B)
stop();
Symbol 641 MovieClip Frame 4 (8 B)
stop();
Symbol 641 MovieClip Frame 5 (8 B)
stop();
Symbol 641 MovieClip Frame 6 (8 B)
stop();
Symbol 641 MovieClip Frame 7 (8 B)
stop();
Symbol 641 MovieClip Frame 8 (8 B)
stop();
Symbol 641 MovieClip Frame 9 (8 B)
stop();
Symbol 641 MovieClip Frame 10 (8 B)
stop();
Symbol 641 MovieClip Frame 11 (8 B)
stop();
Symbol 641 MovieClip Frame 12 (8 B)
stop();
Symbol 646 MovieClip Frame 1 (75 B)
this.onPress = function () {
_parent._parent._parent.gotoAndStop(5);
};
Symbol 649 MovieClip Frame 1 (75 B)
this.onPress = function () {
_parent._parent._parent.gotoAndStop(5);
};
Symbol 654 MovieClip Frame 1 (8 B)
stop();
Symbol 654 MovieClip Frame 2 (8 B)
stop();
Symbol 654 MovieClip Frame 3 (8 B)
stop();
Symbol 654 MovieClip Frame 4 (8 B)
stop();
Symbol 658 MovieClip Frame 1 (83 B)
stop();
this.onPress = function () {
_root.reconnum = 0;
gotoAndStop (2);
};
Symbol 658 MovieClip Frame 2 (782 B)
stop();
this_recontime = 0;
cmessage = "";
sendVars = new LoadVars();
sendVars.error_flashid = "gift";
sendVars.error_gameid = _root.gameid;
sendVars.error_part = _root.error_part;
sendVars.error_code1 = _root.error_code1;
sendVars.error_code2 = _root.error_code2;
sendVars.sendAndLoad("http://panyroom.jr.naver.com/game/error.php", sendVars, "POST");
this.onEnterFrame = function () {
cmessage = sendVars.cmessage;
if ((this_recontime < 300) || ((cmessage == "ok") && (cmessage == "success"))) {
if (cmessage == "ok") {
_parent.gotoAndStop(7);
} else if (cmessage == "success") {
_parent.gotoAndStop(12);
} else {
this_recontime = this_recontime + 1;
}
} else {
_root.reconnum = _root.reconnum + 1;
gotoAndStop (3);
}
};
Symbol 658 MovieClip Frame 3 (136 B)
stop();
if (_root.reconnum < 2) {
gotoAndStop (2);
} else {
_parent.gotoAndStop(11);
}
this.onEnterFrame = function () {
};
Symbol 662 MovieClip Frame 1 (66 B)
stop();
this.onPress = function () {
_root.gotoAndStop(1);
};
Symbol 665 MovieClip Frame 2 (311 B)
stop();
if (_parent.point > _root.pcode) {
instsco = _parent.point;
sendVars = new LoadVars();
sendVars.gameid = _root.gameid;
sendVars.code = _root.code;
sendVars.sendAndLoad(_root.surl, sendVars, "POST");
gotoAndStop (3);
} else {
gotoAndStop (6);
}
this.onEnterFrame = function () {
};
Symbol 665 MovieClip Frame 3 (1.52 KiB) ●
smessage = "";
message_time = 0;
this.onEnterFrame = function () {
myString2 = new String(instsco);
len2 = myString2.length;
i2 = 0;
while (i2 < len2) {
this["score_img" + (i2 + 1)] = myString2.substr(i2, 1);
if (!(this["score_img" + (i2 + 1)] === ".")) {
is = int(this["score_img" + (i2 + 1)]);
} else {
is = ".";
}
if (this["score_img" + (i2 + 1)].length > 0) {
if (is == ".") {
sys_score_mc["len" + (i2 + (11 - len2))].gotoAndStop(12);
} else {
sys_score_mc["len" + (i2 + (11 - len2))].gotoAndStop(is + 2);
}
}
i2++;
}
rmessage = sendVars.rmessage;
gamename = sendVars.gamename;
if (rmessage == "panypang") {
myString = new String(gamename);
myStr = new String(instsco);
mySc = gamename;
lenn = myStr.length;
myStr = myStr + new String(lenn);
len = myStr.length;
mi = 0;
while (mi < len) {
mStr = myStr.substr(mi, 1);
i = 0;
while (i < 10) {
if (i == mStr) {
mySc = mySc + myString.substr(i * 2, 2);
}
i++;
}
if (mStr == ".") {
mySc = mySc + myString.substr(20, 2);
}
mi++;
}
gotoAndStop (4);
} else if (rmessage == "nogame") {
_root.reconnum = 0;
_root.error_part = "nogame";
_root.error_code1 = _root.code;
_root.error_code2 = "none";
gotoAndStop (9);
} else if (message_time > 500) {
_root.error_code1 = _root.code;
_root.error_code2 = "none";
_root.error_part = "noconnection";
gotoAndStop (8);
} else {
message_time = message_time + 1;
}
};
Symbol 665 MovieClip Frame 4 (1.87 KiB) ●
smessage = "";
sendVars = new LoadVars();
sendVars.gameid = _root.gameid;
sendVars.point = mySc;
sendVars.sendAndLoad(_root.surl, sendVars, "POST");
message_time = 0;
this.onEnterFrame = function () {
myString2 = new String(instsco);
len2 = myString2.length;
i2 = 0;
while (i2 < len2) {
this["score_img" + (i2 + 1)] = myString2.substr(i2, 1);
if (!(this["score_img" + (i2 + 1)] === ".")) {
is = int(this["score_img" + (i2 + 1)]);
} else {
is = ".";
}
if (this["score_img" + (i2 + 1)].length > 0) {
if (is == ".") {
sys_score_mc["len" + (i2 + (11 - len2))].gotoAndStop(12);
} else {
sys_score_mc["len" + (i2 + (11 - len2))].gotoAndStop(is + 2);
}
}
i2++;
}
smessage_point = sendVars.input_point;
smessage = sendVars.smessage;
if (((smessage == "high") || (smessage == "middle")) || (smessage == "low")) {
smessage_case = smessage;
gotoAndStop (7);
} else if (smessage == "nogame") {
_root.reconnum = 0;
_root.error_part = "nogame";
_root.error_code1 = _root.code;
_root.error_code2 = mySc;
gotoAndStop (9);
} else if (smessage == "timeover") {
_root.reconnum = 0;
_root.error_part = "timeover";
_root.error_code1 = _root.code;
_root.error_code2 = mySc;
gotoAndStop (9);
} else if (smessage == "code_error") {
_root.reconnum = 0;
_root.error_part = "code_error";
_root.error_code1 = _root.code;
_root.error_code2 = mySc;
gotoAndStop (9);
} else if (smessage == "error") {
_root.reconnum = 0;
_root.error_part = "error";
_root.error_code1 = _root.code;
_root.error_code2 = mySc;
gotoAndStop (9);
} else if (smessage == "login") {
gotoAndStop (13);
} else if (message_time > 500) {
_root.error_code1 = _root.code;
_root.error_code2 = mySc;
_root.error_part = "noconnection";
gotoAndStop (8);
} else {
message_time = message_time + 1;
}
};
Symbol 665 MovieClip Frame 5 (8 B)
stop();
Symbol 665 MovieClip Frame 6 (47 B)
stop();
this.onEnterFrame = function () {
};
Symbol 665 MovieClip Frame 7 (808 B)
stop();
this.onEnterFrame = function () {
if (smessage_case == "low") {
sys_score_mc.case1.gotoAndStop(2);
} else if (smessage_case == "middle") {
sys_score_mc.case1.gotoAndStop(3);
} else if (smessage_case == "high") {
sys_score_mc.case1.gotoAndStop(4);
}
myString2 = new String(smessage_point);
len2 = myString2.length;
i2 = 0;
while (i2 < len2) {
this["score_img" + (i2 + 1)] = myString2.substr(i2, 1);
if (!(this["score_img" + (i2 + 1)] === ".")) {
is = int(this["score_img" + (i2 + 1)]);
} else {
is = ".";
}
if (this["score_img" + (i2 + 1)].length > 0) {
if (is == ".") {
sys_score_mc["len" + (i2 + (11 - len2))].gotoAndStop(12);
} else {
sys_score_mc["len" + (i2 + (11 - len2))].gotoAndStop(is + 2);
}
}
i2++;
}
};
Symbol 665 MovieClip Frame 8 (47 B)
stop();
this.onEnterFrame = function () {
};
Symbol 665 MovieClip Frame 9 (769 B)
stop();
this_recontime = 0;
cmessage = "";
sendVars = new LoadVars();
sendVars.error_flashid = "gift";
sendVars.error_gameid = _root.gameid;
sendVars.error_part = _root.error_part;
sendVars.error_code1 = _root.error_code1;
sendVars.error_code2 = _root.error_code2;
sendVars.sendAndLoad("http://panyroom.jr.naver.com/game/error.php", sendVars, "POST");
this.onEnterFrame = function () {
cmessage = sendVars.cmessage;
if ((this_recontime < 300) || ((cmessage == "ok") && (cmessage == "success"))) {
if (cmessage == "ok") {
gotoAndStop (7);
} else if (cmessage == "success") {
gotoAndStop (12);
} else {
this_recontime = this_recontime + 1;
}
} else {
_root.reconnum = _root.reconnum + 1;
gotoAndStop (10);
}
};
Symbol 665 MovieClip Frame 10 (129 B)
stop();
if (_root.reconnum < 2) {
gotoAndStop (9);
} else {
gotoAndStop (11);
}
this.onEnterFrame = function () {
};
Symbol 665 MovieClip Frame 11 (47 B)
stop();
this.onEnterFrame = function () {
};
Symbol 665 MovieClip Frame 12 (47 B)
stop();
this.onEnterFrame = function () {
};
Symbol 665 MovieClip Frame 13 (47 B)
stop();
this.onEnterFrame = function () {
};
Symbol 669 MovieClip Frame 1 (301 B)
stop();
stopAllSounds();
bt_sound = new Sound();
bt_sound.attachSound("bt");
bg_sound = new Sound();
bg_sound.attachSound("bg");
bg_sound.start(0, 9999);
bg_sound.setVolume(100);
this.onEnterFrame = function () {
};
next_bt.onPress = function () {
bt_sound.start();
gotoAndStop (2);
};
Symbol 669 MovieClip Frame 2 (2.98 KiB) ●
stop();
zzi_sound = new Sound();
zzi_sound.attachSound("zzi");
ggu_sound = new Sound();
ggu_sound.attachSound("ggu");
xx = line_mc._x;
yy = line_mc._y;
start_x = 0;
start_y = 0;
drag = "no";
drag_start = "no";
old_rotation = shot_bt._rotation;
nowgoto = 1;
gameover_wait = 100;
overray_mc.gotoAndStop(1);
overray_mc._alpha = 100;
this.onEnterFrame = function () {
shot_bt.area.onPress = function () {
drag = "yes";
start_x = _xmouse;
start_y = _ymouse;
old_y = _ymouse;
};
shot_bt.area.onRelease = function () {
drag = "no";
};
shot_bt.area.onReleaseOutside = function () {
drag = "no";
};
if ((drag_start == "yes") && (!drag_area.hitTest(_xmouse, _ymouse, 1))) {
drag = "no";
}
if (drag == "yes") {
drag_start = "yes";
line_mc.clear();
line_mc.lineStyle(1, 4687942, 0);
line_mc.moveTo(0, 0);
line_mc.lineTo(_xmouse - xx, _ymouse - yy);
srotation = (Math.atan2(_ymouse - yy, _xmouse - xx) * 180) / Math.PI;
shot_bt._rotation = srotation - 90;
if (((srotation - 90) < 20) && ((srotation - 90) > -20)) {
gun_mc._rotation = srotation - 90;
}
plus_y = _ymouse - start_y;
if (plus_y < 10) {
nowgoto = 2;
shot_bt.gotoAndPlay(nowgoto);
} else if (plus_y > 99) {
nowgoto = 12;
shot_bt.gotoAndPlay(nowgoto);
} else if (plus_y > 89) {
nowgoto = 11;
shot_bt.gotoAndPlay(nowgoto);
} else if (plus_y > 79) {
nowgoto = 10;
shot_bt.gotoAndPlay(nowgoto);
} else if (plus_y > 69) {
nowgoto = 9;
shot_bt.gotoAndPlay(nowgoto);
} else if (plus_y > 59) {
nowgoto = 8;
shot_bt.gotoAndPlay(nowgoto);
} else if (plus_y > 49) {
nowgoto = 7;
shot_bt.gotoAndPlay(nowgoto);
} else if (plus_y > 39) {
nowgoto = 6;
shot_bt.gotoAndPlay(nowgoto);
} else if (plus_y > 29) {
nowgoto = 5;
shot_bt.gotoAndPlay(nowgoto);
} else if (plus_y > 19) {
nowgoto = 4;
shot_bt.gotoAndPlay(nowgoto);
} else if (plus_y > 9) {
nowgoto = 3;
shot_bt.gotoAndPlay(nowgoto);
}
if ((_ymouse - old_y) > 7) {
drag = "no";
} else {
old_y = _ymouse;
}
numnum = random(10);
if (numnum == 1) {
zzi_sound.start();
} else if (numnum == 2) {
ggu_sound.start();
}
} else if ((drag == "no") && (drag_start == "yes")) {
drag_start = "end";
shot_bt._rotation = gun_mc._rotation;
power = nowgoto;
if (power > 2) {
gun_mc.gotoAndPlay(2);
} else {
gun_mc.gotoAndPlay(13);
}
} else if ((drag == "no") && (drag_start == "end")) {
if (nowgoto == 2) {
point = 0;
shot_bt.gotoAndStop(13);
overray_mc.gotoAndStop(2);
gameover_wait = gameover_wait - 2;
bg_sound.setVolume(gameover_wait);
overray_mc._alpha = 100 - gameover_wait;
if (gameover_wait < 0) {
gotoAndStop (6);
}
} else if (shot_bt._rotation > 0) {
shot_bt.gotoAndStop(14);
} else if (shot_bt._rotation < 1) {
shot_bt.gotoAndStop(15);
}
}
};
Symbol 669 MovieClip Frame 3 (249 B)
stop();
broken = "no";
zero = "no";
this.onEnterFrame = function () {
};
someListener = new Object();
someListener.onMouseMove = function () {
pin_mc._x = _xmouse;
pin_mc._y = _ymouse;
Mouse.hide();
};
Mouse.addListener(someListener);
Symbol 669 MovieClip Frame 4 (12.45 KiB) ● ●
stop();
gameover_wait = 100;
overray_mc.gotoAndStop(1);
overray_mc._alpha = 100;
someListener = new Object();
someListener.onMouseMove = function () {
Mouse.show();
};
Mouse.addListener(someListener);
randnum = random(4) + 1;
house_mc.gotoAndStop(randnum);
up_wait = 0;
down_wait = 0;
point = 0;
tree_mc.swapDepths(1004);
if (gift1 == 0) {
zero = "yes";
}
i = 1;
while (i < 31) {
if (this["gift" + i] > 0) {
createEmptyMovieClip("inst_gift_mc" + i, i);
this["inst_gift_mc" + i].attachMovie(this["gift" + i] + "g", "inst_gift" + i, i);
this["target_y" + i] = random(300) + 30;
this["target_x" + i] = random(540) + 20;
if (this["target_x" + i] > 300) {
this["gap_x" + i] = (this["target_x" + i] - 300) / 40;
} else {
this["gap_x" + i] = (300 - this["target_x" + i]) / 40;
}
if (this["target_y" + i] > 195) {
this["gap_y" + i] = (this["target_y" + i] - 195) / 40;
} else {
this["gap_y" + i] = (195 - this["target_y" + i]) / 40;
}
this["inst_gift_mc" + i]._y = -100;
this["inst_gift_mc" + i]._xscale = 40;
this["inst_gift_mc" + i]._yscale = 40;
}
i++;
}
h = 1;
while (h < 26) {
randnum = random(17);
if (randnum < power) {
gotonum = random(10) + 2;
this[("good" + h) + "_area"].gotoAndStop(gotonum);
house_mc["house" + h].gotoAndStop(gotonum);
}
h++;
}
t = 1;
while (t < 21) {
randnum = random(2) + 1;
house_mc["little_tr" + t].gotoAndStop(randnum);
t++;
}
t = 1;
while (t < 14) {
randnum = random(2) + 1;
tree_mc["big_tr" + t].gotoAndStop(randnum);
t++;
}
this.onEnterFrame = function () {
if (broken == "yes") {
i = 1;
while (i < 31) {
if (this["gift" + i] > 0) {
this["inst_gift_mc" + i]._y = 195;
this["inst_gift_mc" + i]._x = 300;
}
i++;
}
broken = "broken";
}
if (broken == "broken") {
no_target = 0;
i = 1;
while (i < 31) {
if (this["gift" + i] > 0) {
if (this["target_x" + i] < 300) {
if ((this["inst_gift_mc" + i]._x - this["target_x" + i]) > this["gap_x" + i]) {
no_target = no_target + 1;
this["inst_gift_mc" + i]._x = this["inst_gift_mc" + i]._x - this["gap_x" + i];
} else {
this["inst_gift_mc" + i]._x = this["target_x" + i];
}
} else if (this["target_x" + i] > 300) {
if ((this["target_x" + i] - this["inst_gift_mc" + i]._x) > this["gap_x" + i]) {
no_target = no_target + 1;
this["inst_gift_mc" + i]._x = this["inst_gift_mc" + i]._x + this["gap_x" + i];
} else {
this["inst_gift_mc" + i]._x = this["target_x" + i];
}
}
if (this["target_y" + i] < 195) {
if ((this["inst_gift_mc" + i]._y - this["target_y" + i]) > this["gap_y" + i]) {
no_target = no_target + 1;
this["inst_gift_mc" + i]._y = this["inst_gift_mc" + i]._y - this["gap_y" + i];
} else {
this["inst_gift_mc" + i]._y = this["target_y" + i];
}
} else if (this["target_y" + i] > 300) {
if ((this["target_y" + i] - this["inst_gift_mc" + i]._y) > this["gap_y" + i]) {
no_target = no_target + 1;
this["inst_gift_mc" + i]._y = this["inst_gift_mc" + i]._y + this["gap_y" + i];
} else {
this["inst_gift_mc" + i]._y = this["target_y" + i];
}
}
}
i++;
}
if (no_target == 0) {
broken = "no";
up_wait = 50;
}
}
if ((up_wait > 0) && (up_wait > 30)) {
up_wait = up_wait - 1;
i = 1;
while (i < 31) {
if (this["gift" + i] > 0) {
this["inst_gift_mc" + i]._y = this["inst_gift_mc" + i]._y - 5;
}
i++;
}
} else if (up_wait > 0) {
if (house_mc._y > 800) {
house_mc._y = house_mc._y - 110;
tree_mc._y = tree_mc._y - 110;
h = 1;
while (h < 26) {
this[("good" + h) + "_area"]._y = this[("good" + h) + "_area"]._y - 110;
h++;
}
bad1_area._y = bad1_area._y - 110;
}
up_wait = up_wait - 1;
house_mc._y = house_mc._y - 11;
tree_mc._y = tree_mc._y - 11;
h = 1;
while (h < 26) {
this[("good" + h) + "_area"]._y = this[("good" + h) + "_area"]._y - 11;
h++;
}
bad1_area._y = bad1_area._y - 11;
if (up_wait == 0) {
down_wait = 100;
}
} else if (down_wait > 0) {
down_wait = down_wait - 1;
no_down = 0;
i = 1;
while (i < 31) {
if (this["gift" + i] > 0) {
if (good1_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point1.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good2_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point2.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good3_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point3.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good4_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point4.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good5_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point5.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good6_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point6.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good7_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point7.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good8_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point8.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good9_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point9.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good10_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point10.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good11_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point11.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good12_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point12.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good13_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point13.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good14_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point14.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good15_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point15.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good16_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point16.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good17_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point17.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good18_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point18.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good19_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point19.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good20_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point20.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good21_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point21.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good22_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point22.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good23_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point23.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good24_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point24.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (good25_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
goto = this["gift" + i];
point = point + (this["gift" + i] * 2);
point_pan.text = point;
house_mc.point25.gotoAndStop(goto);
this["inst_gift_mc" + i]._y = 800;
} else if (bad1_area.hitTest(this["inst_gift_mc" + i]) && (this["inst_gift_mc" + i]._y < 800)) {
} else if (this["inst_gift_mc" + i]._y < 800) {
no_down = no_down + 1;
this["inst_gift_mc" + i]._y = this["inst_gift_mc" + i]._y + 5;
}
}
i++;
}
if (no_down == 0) {
down_wait = 1;
overray_mc.gotoAndStop(2);
gameover_wait = gameover_wait - 2;
overray_mc._alpha = 100 - gameover_wait;
i = 1;
while (i < 31) {
this["inst_gift_mc" + i]._alpha = gameover_wait;
tree_mc._alpha = gameover_wait;
i++;
}
if (gameover_wait < 0) {
if (point > 10) {
gotoAndStop (7);
} else {
gotoAndStop (6);
}
}
}
}
};
Symbol 669 MovieClip Frame 5 (2.02 KiB) ●
stop();
zero = "yes";
gameover_wait = 100;
overray_mc.gotoAndStop(1);
overray_mc._alpha = 100;
someListener = new Object();
someListener.onMouseMove = function () {
Mouse.show();
};
Mouse.addListener(someListener);
pin_mc.gotoAndPlay(7);
house_mc.gotoAndStop(randnum);
up_wait = 50;
down_wait = 0;
point = 0;
tree_mc.swapDepths(1004);
h = 1;
while (h < 26) {
randnum = random(17);
if (randnum < power) {
gotonum = random(10) + 2;
house_mc["house" + h].gotoAndStop(gotonum);
}
h++;
}
t = 1;
while (t < 21) {
randnum = random(2) + 1;
house_mc["little_tr" + t].gotoAndStop(randnum);
t++;
}
t = 1;
while (t < 14) {
randnum = random(2) + 1;
tree_mc["big_tr" + t].gotoAndStop(randnum);
t++;
}
this.onEnterFrame = function () {
if ((up_wait > 0) && (up_wait > 30)) {
up_wait = up_wait - 1;
star_mc._y = star_mc._y - 5;
} else if (up_wait > 0) {
if (house_mc._y > 800) {
house_mc._y = house_mc._y - 110;
tree_mc._y = tree_mc._y - 110;
h = 1;
while (h < 26) {
this[("good" + h) + "_area"]._y = this[("good" + h) + "_area"]._y - 110;
h++;
}
bad1_area._y = bad1_area._y - 110;
}
up_wait = up_wait - 1;
house_mc._y = house_mc._y - 11;
tree_mc._y = tree_mc._y - 11;
h = 1;
while (h < 26) {
this[("good" + h) + "_area"]._y = this[("good" + h) + "_area"]._y - 11;
h++;
}
bad1_area._y = bad1_area._y - 11;
if (up_wait == 0) {
down_wait = 100;
}
} else if (down_wait > 0) {
down_wait = down_wait - 1;
no_down = 0;
if (bad1_area.hitTest(star_mc) && (star_mc._y < 800)) {
star_mc.gotoAndStop(2);
} else if (star_mc._y < 800) {
no_down = no_down + 1;
star_mc._y = star_mc._y + 5;
}
if (no_down == 0) {
down_wait = 1;
point = 0;
overray_mc.gotoAndStop(2);
gameover_wait = gameover_wait - 2;
overray_mc._alpha = 100 - gameover_wait;
tree_mc._alpha = gameover_wait;
if (gameover_wait < 0) {
gotoAndStop (6);
}
}
}
};
Symbol 669 MovieClip Frame 6 (275 B)
stop();
stopAllSounds();
ending_sound = new Sound();
ending_sound.attachSound("ending");
ending_sound.start(0, 9999);
ending_sound.setVolume(100);
this.onEnterFrame = function () {
point_pan.text = point;
};
replay_bt.onPress = function () {
gotoAndStop (1);
};
Symbol 669 MovieClip Frame 7 (275 B)
stop();
stopAllSounds();
ending_sound = new Sound();
ending_sound.attachSound("ending");
ending_sound.start(0, 9999);
ending_sound.setVolume(100);
this.onEnterFrame = function () {
point_pan.text = point;
};
replay_bt.onPress = function () {
gotoAndStop (1);
};