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 _local1 = _root;
_local1.array_item = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_local1.gameTime = 0;
_local1.kodomo = 4;
}
function setItem(item) {
_root.dragItem = item;
}
function dStart() {
var _local1 = _root;
Mouse.hide();
if (!(_local1.dragItem === -1)) {
} else {
_local1.mousecs.gotoAndStop(4);
}
_local1.mousecs.gotoAndStop(convItem2Frame(_local1.dragItem));
}
function dEnd() {
Mouse.show();
_root.mousecs.gotoAndStop(1);
}
function choiseItem() {
var _local1 = _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)) && (_local1.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)) && (_local1.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)) && (_local1.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 _local1 = _root;
var _local2 = this;
var _local3 = item;
_local1.dragmc._visible = false;
array_item[_local3]++;
switch (_local3) {
case 0 :
return;
case 2 :
_local1.mc_musume.gotoAndStop(3);
return;
case 4 :
_local1.diff++;
_local2.mc_musume.kao.gotoAndStop("LV2");
_local1.mc_musume.gotoAndStop(5);
return;
case 5 :
_local1.diff++;
_local2.mc_musume.kao.gotoAndStop("LV3");
_local1.mc_musume.gotoAndStop(8);
return;
case 8 :
_local1.mc_musume.gotoAndStop(9);
return;
case 12 :
_local1.diff++;
_local2.mc_musume.kao.gotoAndStop("LV4");
_local1.mc_musume.gotoAndStop(10);
return;
case 13 :
_local1.mc_musume.gotoAndStop(11);
return;
case 14 :
_local1.diff++;
_local2.mc_musume.kao.gotoAndStop("LV5");
if (kodomo != 4) {
_local1.kodomo1.gotoAndPlay(2);
_local1.kodomo2.gotoAndPlay(2);
_local1.kodomo3.gotoAndPlay(2);
_local1.kodomo4.gotoAndPlay(2);
_local1.tuki.gotoAndStop(2);
}
_local1.mc_musume.gotoAndStop(12);
return;
case 17 :
_local1.mc_musume.gotoAndStop(13);
_local1.mc_musume.karada.gotoAndPlay(2);
return;
case 18 :
_local2.mc_musume.kao.gotoAndStop("LV6");
_local1.mc_musume.karada.gotoAndPlay(3);
_local1.tuki.gotoAndStop(2);
_local1.kodomo1.gotoAndPlay(2);
_local1.kodomo2.gotoAndPlay(2);
_local1.kodomo3.gotoAndPlay(2);
_local1.kodomo4.gotoAndPlay(2);
return;
case 15 :
_local1.mc_musume.kami_m._visible = true;
_local1.mc_musume.kami_u._visible = true;
_local1.mc_musume.bousi_m._visible = false;
_local1.mc_musume.bousi_u._visible = false;
_local2.mc_musume.kaoiro.gotoAndStop(2);
}
}
function getOuttime() {
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;
}
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 _local1 = _root;
var _local2 = item;
switch (_local2) {
case 0 :
if (array_item_k[1] == 1) {
array_item_k[1] = 0;
} else {
array_item_k[0] = 0;
}
return;
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;
case 6 :
if (array_item_k[20] == 1) {
array_item_k[20] = 0;
} else {
array_item_k[6] = 0;
}
return;
case 17 :
case 18 :
_local1.kodomo1.gotoAndPlay(2);
_local1.kodomo2.gotoAndPlay(2);
_local1.kodomo3.gotoAndPlay(2);
_local1.kodomo4.gotoAndPlay(2);
_local1.tuki.gotoAndStop(2);
return;
default :
array_item_k[_local2] = 0;
}
}
_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 124 MovieClip "kodomo2" in Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 126 MovieClip "kodomo1" in Frame 2
onClipEvent (load) {
stop();
}
Instance of Symbol 129 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 165 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 32 MovieClip Frame 1
stop();
Instance of Symbol 28 MovieClip in Symbol 32 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(18);
}
Symbol 32 MovieClip Frame 2
stop();
Symbol 32 MovieClip Frame 3
stop();
Instance of Symbol 40 MovieClip in Symbol 43 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(6);
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(6);
}
Instance of Symbol 45 MovieClip in Symbol 47 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(2);
}
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 2
stop();
Instance of Symbol 58 MovieClip in Symbol 60 MovieClip Frame 1
on (press) {
_root.dragmc = _parent;
_root.setItem(15);
}
Symbol 85 MovieClip Frame 60
gotoAndPlay (1);
Symbol 85 MovieClip Frame 61
stop();
Symbol 85 MovieClip Frame 62
stop();
Symbol 85 MovieClip Frame 63
stop();
Symbol 85 MovieClip Frame 64
stop();
Symbol 85 MovieClip Frame 65
stop();
Symbol 85 MovieClip Frame 66
stop();
Instance of Symbol 89 MovieClip in Symbol 91 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(4);
}
Instance of Symbol 100 MovieClip in Symbol 102 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(5);
}
Instance of Symbol 107 MovieClip in Symbol 109 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(12);
}
Instance of Symbol 117 MovieClip in Symbol 119 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(14);
}
Symbol 122 MovieClip Frame 1
stop();
Instance of Symbol 26 MovieClip "kami_u" in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 34 MovieClip in Symbol 122 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(16);
}
Instance of Symbol 38 MovieClip in Symbol 122 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(7);
}
Instance of Symbol 49 MovieClip in Symbol 122 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(0);
}
Instance of Symbol 51 MovieClip in Symbol 122 MovieClip Frame 1
on (press) {
_root.dragmc = this;
_root.setItem(0);
}
Instance of Symbol 62 MovieClip "kami_m" in Symbol 122 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 87 MovieClip "megane" in Symbol 122 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 122 MovieClip Frame 2
stop();
Symbol 122 MovieClip Frame 3
stop();
Instance of Symbol 93 MovieClip in Symbol 122 MovieClip Frame 3
on (press) {
_root.dragmc = this;
_root.setItem(3);
}
Symbol 122 MovieClip Frame 4
stop();
Symbol 122 MovieClip Frame 5
stop();
Instance of Symbol 97 MovieClip in Symbol 122 MovieClip Frame 5
on (press) {
_root.dragmc = this;
_root.setItem(9);
}
Symbol 122 MovieClip Frame 6
stop();
Symbol 122 MovieClip Frame 7
stop();
Symbol 122 MovieClip Frame 8
stop();
Instance of Symbol 104 MovieClip in Symbol 122 MovieClip Frame 8
on (press) {
_root.dragmc = this;
_root.setItem(8);
}
Symbol 122 MovieClip Frame 9
stop();
Instance of Symbol 111 MovieClip in Symbol 122 MovieClip Frame 9
on (press) {
_root.dragmc = this;
_root.setItem(9);
}
Instance of Symbol 113 MovieClip in Symbol 122 MovieClip Frame 9
on (press) {
_root.dragmc = this;
_root.setItem(9);
}
Symbol 122 MovieClip Frame 10
stop();
Instance of Symbol 115 MovieClip in Symbol 122 MovieClip Frame 10
on (press) {
_root.dragmc = this;
_root.setItem(13);
}
Symbol 122 MovieClip Frame 11
stop();
Symbol 122 MovieClip Frame 12
stop();
Instance of Symbol 121 MovieClip in Symbol 122 MovieClip Frame 12
on (press) {
_root.dragmc = this;
_root.setItem(17);
}
Symbol 122 MovieClip Frame 13
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
_parent.item = -1;
nakami.gotoAndStop(3);
Symbol 128 MovieClip Frame 19
nakami._visible = false;
_parent._visible = false;
stop();
Symbol 128 MovieClip Frame 20
cframe = nakami._currentframe;
_parent.item = -1;
_root.kodomo--;
nakami.gotoAndStop(2);
Symbol 128 MovieClip Frame 37
nakami.gotoAndStop(cframe);
nakami._visible = false;
kodomo._visible = false;
_parent._visible = false;
_root.overcheck();
stop();
Symbol 132 MovieClip Frame 1
fa.nakami = _parent.nakami1;
fa.kodomo = _parent.kodomo1;
Instance of Symbol 129 MovieClip in Symbol 132 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 136 MovieClip Frame 1
fa.nakami = _parent.nakami2;
fa.kodomo = _parent.kodomo2;
Instance of Symbol 129 MovieClip in Symbol 136 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 140 MovieClip Frame 1
fa.nakami = _parent.nakami4;
fa.kodomo = _parent.kodomo4;
Instance of Symbol 129 MovieClip in Symbol 140 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 144 MovieClip Frame 1
fa.nakami = _parent.nakami3;
fa.kodomo = _parent.kodomo3;
Instance of Symbol 129 MovieClip in Symbol 144 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 165 MovieClip Frame 1
stop();