Frame 1
function gotoNextScene() {
play();
gotoAndStop (2);
}
stop();
Instance of Symbol 13 MovieClip in Frame 1
onClipEvent (enterFrame) {
var nloaded = _root.getBytesLoaded();
var ntotal = _root.getBytesTotal();
var bParcent = Math.round((nloaded / ntotal) * 100);
this._xscale = bParcent;
}
Instance of Symbol 17 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root._framesloaded == _root._totalframes) {
_root.gotoNextScene();
}
}
Frame 2
function init() {
var _local2 = _root;
_local2.array_item = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_local2.gameTime = 0;
_local2.kodomo = 4;
}
function setItem(item) {
_root.dragItem = item;
}
function dStart() {
var _local2 = _root;
Mouse.hide();
if (!(_local2.dragItem === -1)) {
} else {
_local2.mousecs.gotoAndStop(4);
}
_local2.mousecs.gotoAndStop(convItem2Frame(_local2.dragItem));
}
function dEnd() {
Mouse.show();
_root.mousecs.gotoAndStop(1);
}
function choiseItem() {
var _local2 = _root;
result = -1;
if ((gameTime >= 300) && (array_item[15] == 0)) {
if (array_item_k[15] == 0) {
array_item_k[15] = 1;
return(15);
}
}
if (((gameTime >= 600) && (array_item[19] == 0)) && (_local2.mc_musume.megane._visible == true)) {
if (array_item_k[19] == 0) {
array_item_k[19] = 1;
return(19);
}
}
if ((array_item[8] == 1) && (array_item[16] == 0)) {
if (array_item_k[16] == 0) {
array_item_k[16] = 1;
return(16);
}
}
if ((array_item[0] == 0) || (array_item[0] == 1)) {
if ((array_item_k[0] == 0) || (array_item_k[1] == 0)) {
if (array_item_k[0] == 0) {
array_item_k[0] = 1;
} else {
array_item_k[1] = 1;
}
return(0);
}
return(-1);
}
if ((array_item[0] == 2) && (array_item[2] == 0)) {
if (array_item_k[2] == 0) {
array_item_k[2] = 1;
return(2);
}
return(-1);
}
if ((array_item[2] == 1) && (array_item[3] == 0)) {
if (array_item_k[3] == 0) {
array_item_k[3] = 1;
return(3);
}
return(-1);
}
if ((array_item[3] == 1) && (array_item[4] == 0)) {
if (array_item_k[4] == 0) {
array_item_k[4] = 1;
return(4);
}
return(-1);
}
if (array_item[4] == 1) {
if (array_item[9] == 0) {
if (array_item_k[9] == 0) {
array_item_k[9] = 1;
return(9);
}
}
if ((array_item[6] == 0) || (array_item[6] == 1)) {
if ((array_item_k[6] == 0) || (array_item_k[20] == 0)) {
if (array_item_k[6] == 0) {
array_item_k[6] = 1;
} else {
array_item_k[20] = 1;
}
return(6);
}
return(-1);
}
if ((array_item[6] == 2) && (array_item[7] == 0)) {
if (array_item_k[7] == 0) {
array_item_k[7] = 1;
return(7);
}
return(-1);
}
if ((array_item[7] == 1) && (array_item[5] == 0)) {
if (array_item_k[5] == 0) {
array_item_k[5] = 1;
return(5);
}
return(-1);
}
if ((array_item[5] == 1) && (array_item[8] == 0)) {
if (array_item_k[8] == 0) {
array_item_k[8] = 1;
return(8);
}
return(-1);
}
if ((array_item[8] == 1) && (array_item[9] != 3)) {
if (((array_item_k[9] == 0) || (array_item_k[10] == 0)) || (array_item_k[11] == 0)) {
if (array_item_k[9] == 0) {
array_item_k[9] = 1;
} else if (array_item_k[10] == 0) {
array_item_k[10] = 1;
} else {
array_item_k[11] = 1;
}
return(9);
}
returtn(-1);
}
}
if ((array_item[9] == 3) && (array_item[12] == 0)) {
if (array_item_k[12] == 0) {
array_item_k[12] = 1;
return(12);
}
return(-1);
}
if ((array_item[12] == 1) && (array_item[13] == 0)) {
if (array_item_k[13] == 0) {
array_item_k[13] = 1;
return(13);
}
return(-1);
}
if ((array_item[13] == 1) && (array_item[14] == 0)) {
if (array_item_k[14] == 0) {
array_item_k[14] = 1;
return(14);
}
return(-1);
}
if (((array_item[14] == 1) && (array_item[17] == 0)) && (_local2.kodomo == 4)) {
if (array_item_k[17] == 0) {
array_item_k[17] = 1;
return(17);
}
return(-1);
}
if (((array_item[17] == 1) && (array_item[18] == 0)) && (_local2.kodomo == 4)) {
if (array_item_k[18] == 0) {
array_item_k[18] = 1;
return(18);
}
return(-1);
}
return(-1);
}
function convItem2Frame(item) {
retvalue = 0;
switch (item) {
case 0 :
case 1 :
retvalue = 5;
break;
case 2 :
retvalue = 7;
break;
case 3 :
retvalue = 9;
break;
case 4 :
retvalue = 10;
break;
case 5 :
retvalue = 11;
break;
case 6 :
retvalue = 12;
break;
case 7 :
retvalue = 14;
break;
case 8 :
retvalue = 15;
break;
case 9 :
retvalue = 16;
break;
case 12 :
retvalue = 19;
break;
case 13 :
retvalue = 20;
break;
case 14 :
retvalue = 21;
break;
case 15 :
retvalue = 22;
break;
case 16 :
retvalue = 23;
break;
case 17 :
retvalue = 24;
break;
case 18 :
retvalue = 25;
break;
case 19 :
retvalue = 26;
}
return(retvalue);
}
function execSuccess(item) {
var _local3 = _root;
var _local4 = this;
var _local5 = item;
_local3.dragmc._visible = false;
array_item[_local5]++;
switch (_local5) {
case 0 :
return(undefined);
case 2 :
_local3.mc_musume.gotoAndStop(3);
return(undefined);
case 4 :
_local3.diff++;
_local4.mc_musume.kao.gotoAndStop("LV2");
_local3.mc_musume.gotoAndStop(5);
return(undefined);
case 5 :
_local3.diff++;
_local4.mc_musume.kao.gotoAndStop("LV3");
_local3.mc_musume.gotoAndStop(8);
return(undefined);
case 8 :
_local3.mc_musume.gotoAndStop(9);
return(undefined);
case 12 :
_local3.diff++;
_local4.mc_musume.kao.gotoAndStop("LV4");
_local3.mc_musume.gotoAndStop(10);
return(undefined);
case 13 :
_local3.mc_musume.gotoAndStop(11);
return(undefined);
case 14 :
_local3.diff++;
_local4.mc_musume.kao.gotoAndStop("LV5");
if (kodomo != 4) {
_local3.kodomo1.gotoAndPlay(2);
_local3.kodomo2.gotoAndPlay(2);
_local3.kodomo3.gotoAndPlay(2);
_local3.kodomo4.gotoAndPlay(2);
_local3.tuki.gotoAndStop(2);
}
_local3.mc_musume.gotoAndStop(12);
return(undefined);
case 17 :
_local3.mc_musume.gotoAndStop(13);
_local3.mc_musume.karada.gotoAndPlay(2);
return(undefined);
case 18 :
_local4.mc_musume.kao.gotoAndStop("LV6");
_local3.mc_musume.karada.gotoAndPlay(3);
_local3.tuki.gotoAndStop(2);
_local3.kodomo1.gotoAndPlay(2);
_local3.kodomo2.gotoAndPlay(2);
_local3.kodomo3.gotoAndPlay(2);
_local3.kodomo4.gotoAndPlay(2);
return(undefined);
case 15 :
_local3.mc_musume.kami_m._visible = true;
_local3.mc_musume.kami_u._visible = true;
_local3.mc_musume.bousi_m._visible = false;
_local3.mc_musume.bousi_u._visible = false;
_local4.mc_musume.kaoiro.gotoAndStop(2);
return(undefined);
}
}
function getOuttime() {
if (patience._currentframe == 1) {
retvalue = 0;
switch (_root.diff) {
case 0 :
retvalue = 210;
break;
case 1 :
retvalue = 150;
break;
case 2 :
retvalue = 90;
break;
case 3 :
retvalue = 60;
break;
case 4 :
retvalue = 30;
}
} else {
retvalue = 500;
}
return(retvalue);
}
function replayMovie() {
gotoAndStop (1);
}
function overcheck() {
if (_root.kodomo == 0) {
this.mc_musume.kao.gotoAndStop("GO");
_root.tuki.gotoAndStop(2);
}
}
function execFailer(item) {
var _local2 = _root;
var _local3 = item;
switch (_local3) {
case 0 :
if (array_item_k[1] == 1) {
array_item_k[1] = 0;
} else {
array_item_k[0] = 0;
}
return(undefined);
case 9 :
if (array_item_k[11] == 1) {
array_item_k[11] = 0;
} else if (array_item_k[10] == 1) {
array_item_k[10] = 0;
} else {
array_item_k[9] = 0;
}
return(undefined);
case 6 :
if (array_item_k[20] == 1) {
array_item_k[20] = 0;
} else {
array_item_k[6] = 0;
}
return(undefined);
case 17 :
case 18 :
_local2.kodomo1.gotoAndPlay(2);
_local2.kodomo2.gotoAndPlay(2);
_local2.kodomo3.gotoAndPlay(2);
_local2.kodomo4.gotoAndPlay(2);
_local2.tuki.gotoAndStop(2);
return(undefined);
}
array_item_k[_local3] = 0;
}
patience.onRelease = function () {
patience.nextFrame();
};
_root.dragItem = -1;
_root.dragFlag = 0;
_root.gameFlag = 1;
_root.array_item = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.array_item_k = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.gameTime = 0;
_root.dragmc = undefined;
_root.kodomo = 4;
_root.diff = 0;
Instance of Symbol 20 MovieClip "kodomo4" in Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 22 MovieClip "kodomo3" in Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 121 MovieClip "kodomo2" in Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 123 MovieClip "kodomo1" in Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 126 MovieClip in Frame 2
onClipEvent (load) {
_root.init();
}
onClipEvent (mouseDown) {
if (_root.gameFlag == 1) {
_root.dragFlag = 1;
}
}
onClipEvent (mouseUp) {
if (_root.dragFlag != 2) {
_root.setItem(-1);
_root.dragFlag = 0;
return(undefined);
}
_root.dragFlag = 0;
item = _root.dragItem;
_root.setItem(-1);
if (item != -1) {
if ((_root.hukidasi1.hitTest(_root._xmouse, _root._ymouse, true) == true) && (_root.hukidasi1._visible == true)) {
if (_root.hukidasi1.item == item) {
_root.hukidasi1.fa.gotoAndPlay("success");
_root.hukidasi1.suc = true;
_root.execSuccess(_root.hukidasi1.item);
} else {
_root.hukidasi1.fa.gotoAndPlay("failer");
_root.execFailer(_root.hukidasi1.item);
}
} else if (_root.hukidasi2.hitTest(_root._xmouse, _root._ymouse, true) == true) {
if (_root.hukidasi2.item == item) {
_root.hukidasi2.fa.gotoAndPlay("success");
_root.hukidasi2.suc = true;
_root.execSuccess(_root.hukidasi2.item);
} else {
_root.hukidasi2.fa.gotoAndPlay("failer");
_root.execFailer(_root.hukidasi2.item);
}
} else if (_root.hukidasi3.hitTest(_root._xmouse, _root._ymouse, true) == true) {
if (_root.hukidasi3.item == item) {
_root.hukidasi3.fa.gotoAndPlay("success");
_root.hukidasi3.suc = true;
_root.execSuccess(_root.hukidasi3.item);
} else {
_root.hukidasi3.fa.gotoAndPlay("failer");
_root.execFailer(_root.hukidasi3.item);
}
} else if (_root.hukidasi4.hitTest(_root._xmouse, _root._ymouse, true) == true) {
if (_root.hukidasi4.item == item) {
_root.hukidasi4.fa.gotoAndPlay("success");
_root.hukidasi4.suc = true;
_root.execSuccess(_root.hukidasi4.item);
} else {
_root.hukidasi4.fa.gotoAndPlay("failer");
_root.execFailer(_root.hukidasi4.item);
}
}
}
_root.dEnd();
}
onClipEvent (mouseMove) {
if ((_root.dragFlag == 1) || (_root.dragFlag == 2)) {
if (_root.dragFlag == 1) {
_root.dragFlag = 2;
_root.dStart();
}
}
}
onClipEvent (enterFrame) {
_root.gameTime++;
}
Instance of Symbol 162 MovieClip "mousecs" in Frame 2
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
updateAfterEvent();
}
Symbol 10 MovieClip Frame 1
stop();
Symbol 10 MovieClip Frame 2
stop();
Instance of Symbol 9 MovieClip in Symbol 10 MovieClip Frame 2
onClipEvent (enterFrame) {
this._rotation = this._rotation + 0.5;
}
on (press) {
_root.replayMovie();
}
Symbol 30 MovieClip Frame 1
stop();
Instance of Symbol 29 MovieClip in Symbol 30 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(18);
}
Symbol 30 MovieClip Frame 2
stop();
Symbol 30 MovieClip Frame 3
stop();
Instance of Symbol 38 MovieClip in Symbol 41 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(6);
}
Instance of Symbol 40 MovieClip in Symbol 41 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(6);
}
Instance of Symbol 43 MovieClip in Symbol 45 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(2);
}
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 2
stop();
Instance of Symbol 56 MovieClip in Symbol 58 MovieClip Frame 1
on (press) {
_root.dragmc = _parent;
_root.setItem(15);
}
Symbol 83 MovieClip Frame 60
gotoAndPlay (1);
Symbol 83 MovieClip Frame 61
stop();
Symbol 83 MovieClip Frame 62
stop();
Symbol 83 MovieClip Frame 63
stop();
Symbol 83 MovieClip Frame 64
stop();
Symbol 83 MovieClip Frame 65
stop();
Symbol 83 MovieClip Frame 66
stop();
Instance of Symbol 87 MovieClip in Symbol 89 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(4);
}
Instance of Symbol 98 MovieClip in Symbol 101 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(5);
}
Instance of Symbol 105 MovieClip in Symbol 106 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(12);
}
Instance of Symbol 115 MovieClip in Symbol 117 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(14);
}
Symbol 119 MovieClip Frame 1
stop();
Instance of Symbol 26 MovieClip "kami_u" in Symbol 119 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 32 MovieClip in Symbol 119 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(16);
}
Instance of Symbol 36 MovieClip in Symbol 119 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(7);
}
Instance of Symbol 47 MovieClip in Symbol 119 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(0);
}
Instance of Symbol 49 MovieClip in Symbol 119 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(0);
}
Instance of Symbol 60 MovieClip "kami_m" in Symbol 119 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 85 MovieClip "megane" in Symbol 119 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (keyDown) {
if (Key.getAscii() == 103) {
if (_visible) {
_visible = false;
} else {
_visible = true;
}
}
}
on (press) {
_root.dragmc = this;
_root.setItem(19);
}
Symbol 119 MovieClip Frame 2
stop();
Symbol 119 MovieClip Frame 3
stop();
Instance of Symbol 91 MovieClip in Symbol 119 MovieClip Frame 3
on (press) {
_root.dragmc = this;
_root.setItem(3);
}
Symbol 119 MovieClip Frame 4
stop();
Symbol 119 MovieClip Frame 5
stop();
Instance of Symbol 95 MovieClip in Symbol 119 MovieClip Frame 5
on (press) {
_root.dragmc = this;
_root.setItem(9);
}
Symbol 119 MovieClip Frame 6
stop();
Symbol 119 MovieClip Frame 7
stop();
Symbol 119 MovieClip Frame 8
stop();
Instance of Symbol 103 MovieClip in Symbol 119 MovieClip Frame 8
on (press) {
_root.dragmc = this;
_root.setItem(8);
}
Symbol 119 MovieClip Frame 9
stop();
Instance of Symbol 108 MovieClip in Symbol 119 MovieClip Frame 9
on (press) {
_root.dragmc = this;
_root.setItem(9);
}
Instance of Symbol 110 MovieClip in Symbol 119 MovieClip Frame 9
on (press) {
_root.dragmc = this;
_root.setItem(9);
}
Symbol 119 MovieClip Frame 10
stop();
Instance of Symbol 112 MovieClip in Symbol 119 MovieClip Frame 10
on (press) {
_root.dragmc = this;
_root.setItem(13);
}
Symbol 119 MovieClip Frame 11
stop();
Symbol 119 MovieClip Frame 12
stop();
Instance of Symbol 118 MovieClip in Symbol 119 MovieClip Frame 12
on (press) {
_root.dragmc = this;
_root.setItem(17);
}
Symbol 119 MovieClip Frame 13
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
_parent.item = -1;
nakami.gotoAndStop(3);
Symbol 125 MovieClip Frame 19
nakami._visible = false;
_parent._visible = false;
stop();
Symbol 125 MovieClip Frame 20
cframe = nakami._currentframe;
_parent.item = -1;
_root.kodomo--;
nakami.gotoAndStop(2);
Symbol 125 MovieClip Frame 37
nakami.gotoAndStop(cframe);
nakami._visible = false;
kodomo._visible = false;
_parent._visible = false;
_root.overcheck();
stop();
Symbol 129 MovieClip Frame 1
fa.nakami = _parent.nakami1;
fa.kodomo = _parent.kodomo1;
Instance of Symbol 126 MovieClip in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
_parent._visible = false;
startTime = int(Math.random() * 6) * 30;
_parent.item = -1;
pasttime = 0;
outTime = 0;
_parent.suc = false;
}
onClipEvent (enterFrame) {
if (_parent._parent.kodomo1._visible == false) {
return(undefined);
}
if (_parent._visible == true) {
pasttime++;
if ((pasttime == outTime) && (_parent.suc == false)) {
_root.execFailer(_parent.item);
_parent.fa.gotoAndPlay("failer");
}
return(undefined);
}
startTime--;
if (startTime <= 0) {
Item = _root.choiseItem();
startTime = int(Math.random() * 6) * 15;
if (Item != -1) {
_parent.item = Item;
_parent._visible = true;
pasttime = 0;
_parent.suc = false;
outTime = _root.getOuttime();
_parent._parent.nakami1._visible = true;
_parent._parent.nakami1.gotoAndStop(_root.convItem2Frame(Item));
}
}
}
Symbol 133 MovieClip Frame 1
fa.nakami = _parent.nakami2;
fa.kodomo = _parent.kodomo2;
Instance of Symbol 126 MovieClip in Symbol 133 MovieClip Frame 1
onClipEvent (load) {
_parent._visible = false;
startTime = int(Math.random() * 6) * 30;
_parent.item = -1;
pasttime = 0;
outTime = 0;
_parent.suc = false;
}
onClipEvent (enterFrame) {
if (_parent._parent.kodomo2._visible == false) {
return(undefined);
}
if (_parent._visible == true) {
pasttime++;
if ((pasttime == outTime) && (_parent.suc == false)) {
_root.execFailer(_parent.item);
_parent.fa.gotoAndPlay("failer");
}
return(undefined);
}
startTime--;
if (startTime <= 0) {
Item = _root.choiseItem();
startTime = int(Math.random() * 6) * 15;
if (Item != -1) {
_parent.item = Item;
_parent._visible = true;
pasttime = 0;
_parent.suc = false;
outTime = _root.getOuttime();
_parent._parent.nakami2._visible = true;
_parent._parent.nakami2.gotoAndStop(_root.convItem2Frame(Item));
}
}
}
Symbol 137 MovieClip Frame 1
fa.nakami = _parent.nakami4;
fa.kodomo = _parent.kodomo4;
Instance of Symbol 126 MovieClip in Symbol 137 MovieClip Frame 1
onClipEvent (load) {
_parent._visible = false;
startTime = int(Math.random() * 6) * 30;
_parent.item = -1;
pasttime = 0;
outTime = 0;
_parent.suc = false;
}
onClipEvent (enterFrame) {
if (_parent._parent.kodomo4._visible == false) {
return(undefined);
}
if (_parent._visible == true) {
pasttime++;
if ((pasttime == outTime) && (_parent.suc == false)) {
_root.execFailer(_parent.item);
_parent.fa.gotoAndPlay("failer");
}
return(undefined);
}
startTime--;
if (startTime <= 0) {
Item = _root.choiseItem();
startTime = int(Math.random() * 6) * 15;
if (Item != -1) {
_parent.item = Item;
_parent._visible = true;
pasttime = 0;
_parent.suc = false;
outTime = _root.getOuttime();
_parent._parent.nakami4._visible = true;
_parent._parent.nakami4.gotoAndStop(_root.convItem2Frame(Item));
}
}
}
Symbol 141 MovieClip Frame 1
fa.nakami = _parent.nakami3;
fa.kodomo = _parent.kodomo3;
Instance of Symbol 126 MovieClip in Symbol 141 MovieClip Frame 1
onClipEvent (load) {
_parent._visible = false;
startTime = int(Math.random() * 6) * 30;
_parent.item = -1;
pasttime = 0;
outTime = 0;
_parent.suc = false;
}
onClipEvent (enterFrame) {
if (_parent._parent.kodomo3._visible == false) {
return(undefined);
}
if (_parent._visible == true) {
pasttime++;
if ((pasttime == outTime) && (_parent.suc == false)) {
_root.execFailer(_parent.item);
_parent.fa.gotoAndPlay("failer");
}
return(undefined);
}
startTime--;
if (startTime <= 0) {
Item = _root.choiseItem();
startTime = int(Math.random() * 6) * 15;
if (Item != -1) {
_parent.item = Item;
_parent._visible = true;
pasttime = 0;
_parent.suc = false;
outTime = _root.getOuttime();
_parent._parent.nakami3._visible = true;
_parent._parent.nakami3.gotoAndStop(_root.convItem2Frame(Item));
}
}
}
Symbol 162 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 1
stop();