Frame 1
this.stop();
Frame 20
this.stop();
Frame 30
function gameInit() {
this.stageNum = 1;
this.lastPoiCnt = 4;
}
function initDepth() {
var _local1 = this;
_local1.depthPoiWater = 1000;
_local1.depthKingyoShadow = 5000;
_local1.depthKingyoWater = 10000;
_local1.depthHamonEffect = 12000;
_local1.depthWaterEffect = 20000;
_local1.depthWaterEffect2 = 30001;
_local1.depthIremono = 30000;
_local1.depthPoi = 40000;
_local1.depthWindow = 50000;
_local1.depthInst = 60000;
}
function setMeido(n) {
var _local1 = this;
var _local3 = 100 - n;
var _local2 = Math.floor(2.55 * n);
_local1.meido.ra = _local3;
_local1.meido.rb = _local2;
_local1.meido.ga = _local3;
_local1.meido.gb = _local2;
_local1.meido.ba = _local3;
_local1.meido.bb = _local2;
_local1.meido.aa = 100;
_local1.meido.ab = 0;
}
function randomInt(maxNum) {
var _local1 = Math.random() * maxNum;
if (_local1 == 0) {
_local1 = 1;
} else {
_local1 = Math.ceil(_local1);
}
return(_local1);
}
this.limitLeft = 20;
this.limitRight = 620;
this.limitTop = 250;
this.limitBottom = 455;
this.cMode == "center";
this.instDispFlg = false;
this.commentAllDispFlg = false;
this.windowFlg = false;
this.SE_iremonoIn = new Sound(this);
this.SE_iremonoIn.attachSound("SE_iremonoIn");
this.SE_kingyoEscape = new Sound(this);
this.SE_kingyoEscape.attachSound("SE_kingyoEscape");
this.SE_poiWaterIn = new Sound(this);
this.SE_poiWaterIn.attachSound("SE_poiWaterIn");
this.SE_poiWaterOut = new Sound(this);
this.SE_poiWaterOut.attachSound("SE_poiWaterOut");
this.SE_over = new Sound(this);
this.SE_over.attachSound("SE_over");
this.SE_down = new Sound(this);
this.SE_down.attachSound("SE_down");
this.SE_dekeden = new Sound(this);
this.SE_dekeden.attachSound("SE_dekeden");
this.BGM_maturi = new Sound(this);
this.BGM_maturi.attachSound("BGM_maturi");
this.meido = new Object();
this.setMeido(0);
this.debugInFlg = false;
Frame 31
function swimType1(nthis) {
var _local1 = this;
var _local2 = nthis;
_local1.myNum = _local2.myNum;
_local1.px = _local2.px;
_local1.py = _local2.py;
_local1.limitHx = _local2.limitHx;
_local1.limitHy = _local2.limitHy;
_local1.ParentMC = _local2;
_local1.vx = _root.randomInt(20) - 10;
_local1.vy = _root.randomInt(20) - 10;
_local1.nv = [];
_local1.speed = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
if (_local2.kingyoNum == 2) {
_local1.maxSpeed = 10;
_local1.minSpeed = 3;
} else {
_local1.maxSpeed = 5;
_local1.minSpeed = 1;
}
_local1.rotation = 0;
_local1.scopeDistance = 100;
_local1.scopeAngle = 50;
_local1.CohesionDegree = 0.3;
_local1.alingmentDegree = 0.5;
_local1.pCnt = 0;
_local1.cNum = _local1.myNum % 10;
_local1.nv = normalize(_local1.vx, _local1.vy);
var _local3 = Math.atan2(_local1.vx, -_local1.vy);
_local1.rotation = _local3 / (Math.PI/180);
_local1.oldSpeed = _local1.speed;
}
swimType1.prototype.initLoc = function (nx, ny) {
this.px = nx;
this.py = ny;
};
swimType1.prototype.swim = function () {
var _local1 = this;
if (_local1.cNum == _root.allMC.pCnt) {
r = _local1.search();
if (r[0] != undefined) {
_local1.separation(r);
_local1.alingment(r);
_local1.cohesion();
_local1.speed = _local1.speed * 0.99;
} else {
_local1.soloMove();
}
if ((_local1.speed - _local1.oldSpeed) > 3) {
_local1.ParentMC.anmMC.gotoAndPlay("swim");
}
}
_local1.nv = _local1.normalize(_local1.vx, _local1.vy);
var nx = (_local1.px + (_local1.nv.x * _local1.speed));
var _local3 = _local1.py + (_local1.nv.y * _local1.speed);
var r = _local1.CheckforwardHit(nx, _local3);
if (r != "ok") {
var ntv = _local1.normalize(r.vx, r.vy);
var _local2 = _local1.normalize(_local1.vx, _local1.vy);
_local1.vx = _local2.x + ntv.x;
_local1.vy = _local2.y + ntv.y;
}
_local1.px = nx;
_local1.py = _local3;
_local1.wallEvasion();
var r = Math.atan2(_local1.vx, -_local1.vy);
_local1.rotation = r / (Math.PI/180);
_local1.oldSpeed = _local1.speed;
return([_local1.px, _local1.py, _local1.rotation]);
};
swimType1.prototype.soloMove = function () {
var _local1 = this;
_local1.speed = _local1.speed * 0.95;
if (_local1.speed < _local1.minSpeed) {
_local1.speed = _local1.maxSpeed;
}
};
swimType1.prototype.CheckforwardHit = function (nx, ny) {
var _local1 = this;
var _local2 = ny;
var _local3 = nx;
i = 0;
while (i < _local1.dList.length) {
if (_local1.dList[i].targetMC.fishMC.hitMC.hitTest(_local3, _local2, true)) {
if (_local1.dList[i].targetMC != _local1) {
return(_local1.dList[i].targetMC);
}
}
i++;
}
return("ok");
};
swimType1.prototype.search = function () {
var _local2 = this;
_local2.dList = [];
i = 0;
while (i < _root.kingyoMCList.length) {
var targetMC = _root.kingyoMCList[i];
var dx = (_local2.px - targetMC._x);
var _local3 = _local2.py - targetMC._y;
var distance = Math.sqrt((dx * dx) + (_local3 * _local3));
if (distance <= _local2.scopeDistance) {
var _local1 = new Object();
_local1.distance = distance;
_local1.targetMC = targetMC;
_local2.dList.push(_local1);
}
i++;
}
_local2.dList.sortOn("distance");
if (_local2.dList.length > 1) {
var targetMC = _local2.dList[1].targetMC;
var distance = _local2.dList[1].distance;
} else {
var targetMC = undefined;
var distance = 0;
}
return([targetMC, distance]);
};
swimType1.prototype.wallEvasion = function () {
var _local1 = this;
var _local2 = _root;
if (_local1.px <= (_local2.limitLeft + _local1.limitHx)) {
_local1.px = _local2.limitLeft + _local1.limitHx;
_local1.vx = -_local1.vx;
_local1.ParentMC.anmMC.gotoAndPlay("swim");
}
if (_local1.px >= (_local2.limitRight - _local1.limitHx)) {
_local1.px = _local2.limitRight - _local1.limitHx;
_local1.vx = -_local1.vx;
_local1.ParentMC.anmMC.gotoAndPlay("swim");
}
if (_local1.py <= (_local2.limitTop + _local1.limitHy)) {
_local1.py = _local2.limitTop + _local1.limitHy;
_local1.vy = -_local1.vy;
_local1.ParentMC.anmMC.gotoAndPlay("swim");
}
if (_local1.py >= (_local2.limitBottom - _local1.limitHy)) {
_local1.py = _local2.limitBottom - _local1.limitHy;
_local1.vy = -_local1.vy;
_local1.ParentMC.anmMC.gotoAndPlay("swim");
}
};
swimType1.prototype.separation = function (r) {
var _local1 = this;
var _local3 = r[0];
var distance = r[1];
var naiseki = (((_local3._x - _local1.ParentMC._x) * _local1.vx) + ((_local3._y - _local1.ParentMC._y) * _local1.vy));
var _local2 = 1;
if (distance < 150) {
_local2 = -1;
}
if (naiseki > 0) {
_local1.speed = _local1.speed + (3 * _local2);
} else if (naiseki < 0) {
_local1.speed = _local1.speed - (3 * _local2);
}
if (_local1.speed > _local1.maxSpeed) {
_local1.speed = _local1.maxSpeed;
} else if (_local1.speed < _local1.minSpeed) {
_local1.speed = _local1.minSpeed;
}
};
swimType1.prototype.alingment = function (r) {
var _local1 = this;
var _local2 = r[0];
if (_local2 != undefined) {
var nv = _local1.normalize(_local2.swim.vx, _local2.swim.vy);
var _local3 = _local1.normalize(_local1.vx, _local1.vy);
_local1.vx = _local3.x + (nv.x * _local1.alingmentDegree);
_local1.vy = _local3.y + (nv.y * _local1.alingmentDegree);
}
};
swimType1.prototype.cohesion = function () {
var _local1 = this;
var _local2 = _root;
if (_local2.cMode == "mouse") {
var dx = (_local2._xmouse - _local1.px);
var dy = (_local2._ymouse - _local1.py);
} else {
var dx = (_local2.allMC.px - _local1.px);
var dy = (_local2.allMC.py - _local1.py);
}
var _local3 = _local1.normalize(_local1.vx, _local1.vy);
var nv = _local1.normalize(dx, dy);
_local1.vx = _local3.x + (nv.x * _local1.CohesionDegree);
_local1.vy = _local3.y + (nv.y * _local1.CohesionDegree);
};
swimType1.prototype.normalize = function (nx, ny) {
var _local2 = ny;
var _local3 = nx;
var _local1 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if (_local1 > 0) {
_local3 = _local3 / _local1;
_local2 = _local2 / _local1;
} else {
_local3 = 0;
_local2 = 0;
}
var nv = new Object();
nv.x = _local3;
nv.y = _local2;
nv.p = _local1;
return(nv);
};
Frame 32
function swimKame(nthis) {
var _local1 = this;
var _local2 = nthis;
_local1.myNum = _local2.myNum;
_local1.px = _local2.px;
_local1.py = _local2.py;
_local1.limitHx = _local2._width / 2;
_local1.limitHy = _local2.limitHy;
_local1.ParentMC = _local2;
_local1.nv = undefined;
_local1.initV();
_local1.rotation = 0;
_local1.pCnt = 0;
_local1.oldSpeed = _local1.speed;
}
swimKame.prototype.initLoc = function (nx, ny) {
this.px = nx;
this.py = ny;
};
swimKame.prototype.swim = function () {
var _local1 = this;
_local1.px = _local1.px + (_local1.vx * _local1.speed);
_local1.py = _local1.py + (_local1.vy * _local1.speed);
_local1.speed = _local1.speed * 0.9;
if (_local1.speed < 1) {
_local1.initV();
}
_local1.wallEvasion();
if (_local1.vx < 0) {
_local1.ParentMC._xscale = Math.abs(_local1.ParentMC._xscale);
} else {
_local1.ParentMC._xscale = -Math.abs(_local1.ParentMC._xscale);
}
return([_local1.px, _local1.py, _local1.rotation]);
};
swimKame.prototype.wallEvasion = function () {
var _local1 = this;
var _local2 = _root;
if (_local1.px <= (_local2.limitLeft + _local1.limitHx)) {
_local1.px = _local2.limitLeft + _local1.limitHx;
_local1.vx = -_local1.vx;
_local1.ParentMC.anmMC.gotoAndPlay("swim");
}
if (_local1.px >= (_local2.limitRight - _local1.limitHx)) {
_local1.px = _local2.limitRight - _local1.limitHx;
_local1.vx = -_local1.vx;
_local1.ParentMC.anmMC.gotoAndPlay("swim");
}
if (_local1.py <= (_local2.limitTop + _local1.limitHy)) {
_local1.py = _local2.limitTop + _local1.limitHy;
_local1.vy = -_local1.vy;
_local1.ParentMC.anmMC.gotoAndPlay("swim");
}
if (_local1.py >= (_local2.limitBottom - _local1.limitHy)) {
_local1.py = _local2.limitBottom - _local1.limitHy;
_local1.vy = -_local1.vy;
_local1.ParentMC.anmMC.gotoAndPlay("swim");
}
};
swimKame.prototype.initV = function () {
var _local3 = this;
var _local2 = _root.randomInt(30) - 15;
var _local1 = _root.randomInt(20) - 10;
_local3.speed = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
var nv = _local3.normalize(_local2, _local1);
_local3.vx = nv.x;
_local3.vy = nv.y;
_local3.ParentMC.anmMC.gotoAndPlay("swim");
};
swimKame.prototype.normalize = function (nx, ny) {
var _local2 = ny;
var _local3 = nx;
var _local1 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if (_local1 > 0) {
_local3 = _local3 / _local1;
_local2 = _local2 / _local1;
} else {
_local3 = 0;
_local2 = 0;
}
var nv = new Object();
nv.x = _local3;
nv.y = _local2;
nv.p = _local1;
return(nv);
};
Frame 33
function swimDojo(nthis) {
var _local1 = this;
var _local2 = nthis;
_local1.myNum = _local2.myNum;
_local1.px = _local2.px;
_local1.py = _local2.py;
_local1.limitHx = _local2._width / 2;
_local1.limitHy = _local2.limitHy;
_local1.ParentMC = _local2;
_local1.nv = undefined;
_local1.initV();
_local1.rotation = 0;
_local1.pCnt = 0;
_local1.oldSpeed = _local1.speed;
}
swimDojo.prototype.initLoc = function (nx, ny) {
this.px = nx;
this.py = ny;
};
swimDojo.prototype.swim = function () {
var _local1 = this;
_local1.px = _local1.px + (_local1.vx * _local1.speed);
_local1.py = _local1.py + (_local1.vy * _local1.speed);
if (_local1.pCnt == 30) {
_local1.initV();
_local1.pCnt = 0;
} else {
_local1.pCnt++;
}
_local1.wallEvasion();
if (_local1.vx < 0) {
_local1.ParentMC._xscale = Math.abs(_local1.ParentMC._xscale);
} else {
_local1.ParentMC._xscale = -Math.abs(_local1.ParentMC._xscale);
}
return([_local1.px, _local1.py, _local1.rotation]);
};
swimDojo.prototype.wallEvasion = function () {
var _local1 = this;
var _local2 = _root;
if (_local1.px <= (_local2.limitLeft + _local1.limitHx)) {
_local1.px = _local2.limitLeft + _local1.limitHx;
_local1.vx = -_local1.vx;
_local1.ParentMC.anmMC.gotoAndPlay("swim");
}
if (_local1.px >= (_local2.limitRight - _local1.limitHx)) {
_local1.px = _local2.limitRight - _local1.limitHx;
_local1.vx = -_local1.vx;
_local1.ParentMC.anmMC.gotoAndPlay("swim");
}
if (_local1.py <= (_local2.limitTop + _local1.limitHy)) {
_local1.py = _local2.limitTop + _local1.limitHy;
_local1.vy = -_local1.vy;
_local1.ParentMC.anmMC.gotoAndPlay("swim");
}
if (_local1.py >= (_local2.limitBottom - _local1.limitHy)) {
_local1.py = _local2.limitBottom - _local1.limitHy;
_local1.vy = -_local1.vy;
_local1.ParentMC.anmMC.gotoAndPlay("swim");
}
};
swimDojo.prototype.initV = function () {
var _local3 = this;
var _local1 = _root.randomInt(10) + 10;
var _local2 = _root.randomInt(10) - 5;
if (_root.randomInt(2) == 1) {
_local1 = -_local1;
}
_local3.speed = Math.sqrt((_local1 * _local1) + (_local2 * _local2));
var nv = _local3.normalize(_local1, _local2);
_local3.vx = nv.x;
_local3.vy = nv.y;
_local3.ParentMC.anmMC.gotoAndPlay("swim");
};
swimDojo.prototype.normalize = function (nx, ny) {
var _local2 = ny;
var _local3 = nx;
var _local1 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if (_local1 > 0) {
_local3 = _local3 / _local1;
_local2 = _local2 / _local1;
} else {
_local3 = 0;
_local2 = 0;
}
var nv = new Object();
nv.x = _local3;
nv.y = _local2;
nv.p = _local1;
return(nv);
};
Frame 34
function swimSame(nthis) {
var _local1 = this;
var _local2 = nthis;
_local1.myNum = _local2.myNum;
_local1.px = _local2.px;
_local1.py = _local2.py;
_local1.limitHx = _local2._width / 2;
_local1.limitHy = _local2.limitHy;
_local1.ParentMC = _local2;
_local1.nv = undefined;
_local1.initV();
_local1.rotation = 0;
_local1.pCnt = 0;
_local1.oldSpeed = _local1.speed;
_local1.attackCnt = 0;
}
swimSame.prototype.initLoc = function (nx, ny) {
this.px = nx;
this.py = ny;
};
swimSame.prototype.swim = function () {
var _local1 = this;
var _local2 = _root;
if (_local1.attackCnt == 0) {
if (_local2.poiMC.stat == "inWater") {
var _local3 = Math.abs(_local2.poiMC._y - _local1.py);
var d2 = Math.abs(_local2.poiMC._x - _local1.px);
if ((_local3 < 40) && (d2 > 80)) {
_local1.initV2();
_local1.attackCnt = 10;
}
}
} else {
if (_local1.ParentMC.hitTest(_local2.poiMC.anmMC.hitMC)) {
_local2.poiMC.sameAttack(25);
}
_local1.attackCnt--;
}
_local1.px = _local1.px + (_local1.vx * _local1.speed);
_local1.py = _local1.py + (_local1.vy * _local1.speed);
_local1.speed = _local1.speed * 0.99;
if (_local1.speed < 2) {
_local1.initV();
}
_local1.wallEvasion();
if (_local1.vx < 0) {
_local1.ParentMC._xscale = Math.abs(_local1.ParentMC._xscale);
} else {
_local1.ParentMC._xscale = -Math.abs(_local1.ParentMC._xscale);
}
return([_local1.px, _local1.py, _local1.rotation]);
};
swimSame.prototype.wallEvasion = function () {
var _local1 = this;
var _local2 = _root;
if (_local1.px <= (_local2.limitLeft + _local1.limitHx)) {
_local1.px = _local2.limitLeft + _local1.limitHx;
_local1.vx = -_local1.vx;
_local1.ParentMC.anmMC.gotoAndPlay("swim");
}
if (_local1.px >= (_local2.limitRight - _local1.limitHx)) {
_local1.px = _local2.limitRight - _local1.limitHx;
_local1.vx = -_local1.vx;
_local1.ParentMC.anmMC.gotoAndPlay("swim");
}
if (_local1.py <= (_local2.limitTop + _local1.limitHy)) {
_local1.py = _local2.limitTop + _local1.limitHy;
_local1.vy = -_local1.vy;
_local1.ParentMC.anmMC.gotoAndPlay("swim");
}
if (_local1.py >= (_local2.limitBottom - _local1.limitHy)) {
_local1.py = _local2.limitBottom - _local1.limitHy;
_local1.vy = -_local1.vy;
_local1.ParentMC.anmMC.gotoAndPlay("swim");
}
};
swimSame.prototype.initV = function () {
var _local3 = this;
var _local2 = _root.randomInt(30) - 15;
var _local1 = _root.randomInt(20) - 10;
_local3.speed = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
var nv = _local3.normalize(_local2, _local1);
_local3.vx = nv.x;
_local3.vy = nv.y;
_local3.ParentMC.anmMC.gotoAndPlay("swim");
};
swimSame.prototype.initV2 = function () {
var _local1 = this;
var nvx = (_root.poiMC._x - _local1.px);
var _local3 = _root.poiMC._y - _local1.py;
_local1.speed = 20;
var _local2 = _local1.normalize(nvx, _local3);
_local1.vx = _local2.x;
_local1.vy = _local2.y;
_local1.ParentMC.anmMC.gotoAndPlay("swim2");
};
swimSame.prototype.normalize = function (nx, ny) {
var _local2 = ny;
var _local3 = nx;
var _local1 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if (_local1 > 0) {
_local3 = _local3 / _local1;
_local2 = _local2 / _local1;
} else {
_local3 = 0;
_local2 = 0;
}
var nv = new Object();
nv.x = _local3;
nv.y = _local2;
nv.p = _local1;
return(nv);
};
Frame 35
this.stageList = [[[1, 0.6], [1, 0.4], [1, 0.5], [1, 0.5]], [[3, 0.5], [4, 0.8], [1, 0.6], [1, 0.5]], [[7, 0.5], [4, 0.5], [3, 0.5], [7, 0.6]], [[6, 0.5], [6, 0.6], [4, 0.5], [3, 0.6], [2, 0.4], [1, 0.6]], [[1, 1], [3, 1], [4, 1], [5, 0.6]], [[6, 0.4], [6, 0.3], [6, 0.5], [6, 0.6], [6, 0.5], [6, 0.6], [6, 0.5], [6, 0.6], [6, 0.5], [6, 0.4]], [[8, 0.4], [1, 0.7], [3, 0.5], [4, 0.6], [7, 0.5]], [[8, 0.8], [8, 0.5], [7, 0.5], [2, 0.6], [1, 0.5], [5, 0.6]]];
this.kingyoDataList = [[8, 1], [8, 4], [10, 1], [10, 1], [10, 1.2], [6, 1.5], [20, 0.5], [25, 2]];
this.stageInCommentList = [["\n,\u305C,\u3093,\u3076,\u306E,\u91D1,\u9B5A,\u3092,\u3068,\u308C,\u308B,\u304B,\u306A?"], ["\n,\u304A,\u304A,\u304D,\u3044,\u91D1,\u9B5A,\u306F,\u3066,\u3054,\u308F,\u3044,\u305E!"], ["\n,\u3053,\u3093,\u3069,\u306F,\u30AB,\u30E1,\u3082,\u3044,\u308C,\u305F,\u3088"], ["\n,\u30C9,\u30B8\u30E7,\u30A6,\u306F,\u3059,\u3070,\u3057\u3063,\u3053,\u3044,\u3088"], ["\n,\u3067\u3063,\u304B,\u3044,\u91D1,\u9B5A,\u3092,\u3044\u3063,\u3071,\u3044,\u3044,\u308C,\u305F,\u3088"], ["\n,\u30C9,\u30B8\u30E7,\u30A6,\u3060,\u3089,\u3051!,\u30CB\u30E7,\u30ED,\u30CB\u30E7,\u30ED\u3002"], ["\n,\u30B5,\u30E1,\u306B,\u306F\u3001,\u3061\u3085,\u3046,\u3044,\u3057,\u305F,\u307B,\u3046,\u304C,\u3044,\u3044!"], ["\n,\u30E9,\u30B9,\u30C8,\u30B9,\u30C6,\u30FC,\u30B8,\u3060,\u3088\u3002"]];
this.stageClearCommentList = [["\n,\u3067,\u3082,\u3053,\u306E,\u304F,\u3089,\u3044,\u3060,\u308C,\u3067,\u3082,\u3067,\u304D,\u308B,\u3088"], ["\n,\u3093,\u30FC\u3001,\u307E,\u3060,\u307E,\u3060,\u3053,\u308C,\u304B,\u3089,\u3060,\u306D"], ["\n,\u3078,\u3047\u3001,\u307E,\u3041,\u3046,\u307E,\u3044,\u307B,\u3046,\u3060,\u3088"], ["\n,\u307B,\u3046\u3001,\u3051,\u3063,\u3053,\u3046,\u3084,\u308B,\u306D,\u3047"], ["\n,\u3044,\u3044,\u3046,\u3067,\u3057,\u3066,\u308B,\u306A"], ["\n,\u3084,\u306A,\u304C,\u308F,\u306A,\u3079,\u304C,\u3067,\u304D,\u308B,\u306D"], ["\n,\u3064,\u304E,\u306E,\u30B9,\u30C6,\u30FC,\u30B8,\u306F,\u3059,\u3054,\u3044,\u305E"], ["\n,\u307E,\u3044,\u3063,\u305F,\u30FB,\u30FB,\u30FB"]];
this.kingyoCommentList = [["\u91D1,\u9B5A,\u30B2\u30C3,\u30C8", "\u91D1,\u9B5A,\u3059,\u304F,\u3044,\u3046,\u307E,\u3044,\u306D", "\u30CA,\u30A4,\u30B9,\u91D1,\u9B5A,\u3059,\u304F,\u3044!"], ["\u3088,\u304F,\u3068,\u308C,\u305F,\u306D\u3001,\u30DD,\u30A4,1\u30C3,\u30B3,\u30B5,\u30FC,\u30D3,\u30B9,\u3060"], ["\u8D64,\u51FA,\u76EE,\u91D1,\u30B2\u30C3,\u30C8", "\u3084,\u308B,\u306D,\u3047", "\u304A\u3063!,\u3088,\u304F,\u3068,\u308C,\u305F,\u306D"], ["\u9ED2,\u51FA,\u76EE,\u91D1,\u30B2\u30C3,\u30C8", "\u3046,\u307E,\u3044,\u306A\u3041", "\u30CA,\u30A4,\u30B9,\u91D1,\u9B5A,\u3059,\u304F,\u3044"], ["\u767D,\u9ED2,\u51FA,\u76EE,\u91D1,\u30B2\u30C3,\u30C8", "\u3051,\u3063,\u3053,\u3046,\u3046,\u307E,\u3044,\u306D", "\u305D,\u308C,\u306F,\u3081,\u305A,\u3089,\u3057,\u3044,\u91D1,\u9B5A,\u3060,\u3088"], ["\u30C9,\u30B8\u30E7,\u30A6,\u30B2,\u30C3\u30C8", "\u30CB\u30E7,\u30ED,\u30CB\u30E7,\u30ED", "\u30CA,\u30A4,\u30B9,\u30C9,\u30B8\u30E7,\u30A6,\u3059,\u304F,\u3044!"], ["\u30AB,\u30E1,\u30B2\u30C3,\u30C8", "\u304B,\u3081,\u306F,\u3081,\u306F!", "\u3088,\u304F,\u3059,\u304F,\u3048,\u305F,\u306A\u3041"], ["\u308F\u3041!,\u30B5,\u30E1,\u3064,\u304B,\u307E,\u3048,\u305F,\u306D", "\u30B5,\u30E1,\u3060\u3041!,\u3059,\u3054,\u3044!", "\u30FB\u30FB\u30FB"]];
this.gotoAndPlay("title");
Frame 40
this.BGM_maturi.stop();
this.stop();
Instance of Symbol 251 MovieClip in Frame 40
onClipEvent (load) {
this.keyCnt = 0;
this.KeyInList = [38, 38, 40, 40, 37, 39, 37, 39];
}
onClipEvent (keyDown) {
var Lastkey = key.getCode();
if (Lastkey == this.KeyInList[this.keyCnt]) {
this.keyCnt++;
this.gotoAndStop(_currentframe + 1);
} else if (LastKey == 16) {
this.keyCnt = 0;
this.gotoAndStop(1);
} else {
this.gotoAndStop("miss");
}
}
Frame 65
this.getKingyoCnt = 0;
this.normaCnt = this.stageList[this.stageNum - 1].length;
this.initDepth();
this.attachMovie("poi", "poiMC", this.depthPoi);
this.poiMC._x = 0;
this.poiMC._y = 1000;
this.attachMovie("iremono", "iremonoMC", this.depthIremono);
this.iremonoMC._x = 120;
this.iremonoMC._y = 350;
Mouse.hide();
_root.windowFlg = false;
var str = (("\u30B9,\u30C6,\u30FC,\u30B8," + String(this.stageNum)) + this.stageInCommentList[this.stageNum - 1]);
this.tobbyMC.comment(str, true, false);
this.tobbyMC.changeFace("smile");
this.attachMovie("fadeBlackScr", "fadeBlackScrMC", this.depthWIndow++);
this.fadeBlackScrMC._x = 320;
this.fadeBlackScrMC._y = 260;
this.kingyoMCList = [];
i = 0;
while (i < this.stageList[this.stageNum - 1].length) {
var kingyoNum = this.stageList[this.stageNum - 1][i][0];
var idName = "kingyo1";
var newName = ("kingyo" + String(i));
this.attachMovie(idName, newName, this.depthKingyoWater);
this.depthKingyoWater++;
this[newName].kingyoNum = kingyoNum;
this[newName].scale = this.stageList[this.stageNum - 1][i][1];
this[newName].myNum = i;
this[newName]._x = 0;
this[newName]._y = 1000;
i++;
}
this.SE_dekeden.start(0, 1);
this.stop();
Frame 66
this.BGM_maturi.start(0, 100000);
this.stop();
Frame 80
this.stop();
Frame 100
if (_root.instDispFlg) {
_root.instMC.removeMovieClip();
_root.instDispFlg = false;
return(undefined);
}
this.SE_dekeden.start(0, 1);
var str = ((("\u30B9,\u30C6,\u30FC,\u30B8," + String(this.stageNum)) + ",\u30AF,\u30EA,\u30A2,") + this.stageClearCommentList[this.stageNum - 1]);
_root.tobbyMC.changeFace("sleep");
_root.tobbyMC.comment(str, false, true);
Instance of Symbol 264 MovieClip in Frame 104
//component parameters
onClipEvent (initialize) {
stayTime = 2000;
}
Frame 109
this.attachMovie("fadeBlackScr", "fadeBlackScrMC", this.depthWIndow++);
this.fadeBlackScrMC._x = 320;
this.fadeBlackScrMC._y = 260;
this.fadeBlackScrMC.gotoAndPlay("fadeOut");
this.stop();
Frame 110
this.poiMC.removeMovieClip();
this.iremonoMC.removeMovieClip();
_root.tobbyMC.reset();
this.stageNum++;
_root.tobbyMC.commentClear();
this.fadeBlackScrMC.removeMovieClip();
if (this.stageNum <= 8) {
this.gotoAndPlay("stagein");
} else {
this.gotoAndPlay("ending");
}
Frame 120
if (_root.instDispFlg) {
_root.instMC.removeMovieClip();
_root.instDispFlg = false;
return(undefined);
}
this.BGM_maturi.stop();
var str = "\u3056,\u3093,\u306D,\u3093\u3002,\n,\u3082,\u3046,\u306E,\u3053,\u308A,\u306E,\u30DD,\u30A4,\u306F,\u306A,\u3044,\u3088";
_root.tobbyMC.changeFace("sleep");
_root.tobbyMC.comment(str, true, false);
this.stop();
Frame 122
var str = "\u30B3,\u30F3,\u30C6\u30A3,\u30CB\u30E5\u30FC,\u3059,\u308B,\u304B,\u3044,?";
_root.tobbyMC.changeFace("smile");
_root.tobbyMC.comment(str, false, true);
this.poiMC.removeMovieClip();
Mouse.show();
_root.attachMovie("WindowOver", "windowOverMC", _root.depthWIndow++);
_root.windowOverMC._x = 80;
_root.windowOverMC._y = 150;
this.stop();
Frame 126
this.attachMovie("fadeBlackScr", "fadeBlackScrMC", this.depthWIndow++);
this.fadeBlackScrMC._x = 320;
this.fadeBlackScrMC._y = 260;
this.fadeBlackScrMC.gotoAndPlay("fadeOut");
this.stop();
Frame 128
i = 0;
while (i < this.kingyoMCList.length) {
this.kingyoMCList[i].removeMovieClip();
i++;
}
this.kingyoMCList = [];
this.iremonoMC.removeMovieClip();
this.tobbyMC.commentClear();
this.fadeBlackScrMC.removeMovieClip();
this.kingyoMCList = [];
this.gotoAndPlay("title");
Frame 140
this.poiMC.removeMovieClip();
this.iremonoMC.removeMovieClip();
_root.windowFlg = true;
Frame 147
var str = "\u5168,\u30B9,\u30C6,\u30FC,\u30B8,\u30AF,\u30EA,\u30A2,!,\n,\u91D1,\u9B5A,\u3059,\u304F,\u3044,\u306E,\u5929,\u624D,\u3060,\u306D";
_root.setMC.tobbyMC.changeFace("smile");
_root.setMC.tobbyMC.comment(str, true, false);
this.sy = 260;
this.addy = 20;
this.stop();
Frame 148
this.SE_hanabi0 = new Sound(this);
this.SE_hanabi0.attachSound("SE_hanabi0");
this.SE_hanabi0.start(0, 0);
Frame 150
this.setMC._y = this.sy;
this.sy = this.sy + this.addy;
this.addy = this.addy * 0.93;
if (this.addy > 1) {
this.gotoAndPlay(_currentframe - 1);
} else {
this.endingMC.play();
this.stop();
}
Frame 151
this.attachMovie("fadeBlackScr", "fadeBlackScrMC", this.depthWIndow++);
this.fadeBlackScrMC._x = 320;
this.fadeBlackScrMC._y = 260;
this.fadeBlackScrMC.gotoAndPlay("fadeOut");
this.stop();
Instance of Symbol 264 MovieClip in Frame 153
//component parameters
onClipEvent (initialize) {
stayTime = 1000;
}
Frame 156
Mouse.show();
this.fadeBlackScrMC.removeMovieClip();
this.gotoAndPlay("title");
Frame 160
this.stop();
Symbol 15 MovieClip [kingyoShadow1] Frame 1
this.stop();
Symbol 15 MovieClip [kingyoShadow1] Frame 12
this.gotoAndStop("stay");
Symbol 15 MovieClip [kingyoShadow1] Frame 36
this.gotoAndPlay("catch");
Symbol 23 MovieClip [kingyoAnm2] Frame 1
this.stop();
Symbol 23 MovieClip [kingyoAnm2] Frame 12
this.gotoAndStop("stay");
Symbol 23 MovieClip [kingyoAnm2] Frame 36
this.gotoAndPlay("catch");
Symbol 29 MovieClip [kingyoAnm7] Frame 1
this.stop();
Symbol 29 MovieClip [kingyoAnm7] Frame 12
this.gotoAndStop("stay");
Symbol 29 MovieClip [kingyoAnm7] Frame 36
this.gotoAndPlay("catch");
Symbol 37 MovieClip [kingyoAnm6] Frame 1
this.stop();
Symbol 37 MovieClip [kingyoAnm6] Frame 9
this.gotoAndPlay("swim");
Symbol 37 MovieClip [kingyoAnm6] Frame 36
this.gotoAndPlay("catch");
Symbol 46 MovieClip [kingyoAnm8] Frame 1
this.stop();
Symbol 46 MovieClip [kingyoAnm8] Frame 12
this.gotoAndStop("stay");
Symbol 46 MovieClip [kingyoAnm8] Frame 24
this.gotoAndPlay("swim2");
Symbol 46 MovieClip [kingyoAnm8] Frame 36
this.gotoAndPlay("catch");
Symbol 46 MovieClip [kingyoAnm8] Frame 47
this.gotoAndPlay("stay");
Symbol 54 MovieClip [kingyoAnm5] Frame 1
this.stop();
Symbol 54 MovieClip [kingyoAnm5] Frame 12
this.gotoAndStop("stay");
Symbol 54 MovieClip [kingyoAnm5] Frame 36
this.gotoAndPlay("catch");
Symbol 60 MovieClip [kingyoShadow2] Frame 1
this.stop();
Symbol 60 MovieClip [kingyoShadow2] Frame 12
this.gotoAndStop("stay");
Symbol 60 MovieClip [kingyoShadow2] Frame 36
this.gotoAndPlay("catch");
Symbol 68 MovieClip [kingyoAnm3] Frame 1
this.stop();
Symbol 68 MovieClip [kingyoAnm3] Frame 12
this.gotoAndStop("stay");
Symbol 68 MovieClip [kingyoAnm3] Frame 36
this.gotoAndPlay("catch");
Symbol 76 MovieClip [kingyoAnm4] Frame 1
this.stop();
Symbol 76 MovieClip [kingyoAnm4] Frame 12
this.gotoAndStop("stay");
Symbol 76 MovieClip [kingyoAnm4] Frame 36
this.gotoAndPlay("catch");
Symbol 83 MovieClip Frame 1
this.stop();
Symbol 84 MovieClip [iremono] Frame 1
function insertKingyo(nKingyoNum, nx, ny, nscale) {
var _local1 = this;
var _local3 = _root;
var idName = (("kingyo" + String(nKingyoNum)) + "_mini");
var _local2 = "kingyo" + String(_local1.depthKingyo);
_local1.dummyMC.attachMovie(idName, _local2, depthKingyo++);
_local1.dummyMC[_local2]._x = nx - _local1.px;
_local1.dummyMC[_local2]._y = (ny / 2) - _local1.py;
_local1.dummyMC[_local2].scale = nscale;
_local3.getKingyoCnt++;
_local3.SE_iremonoIn.start(0, 0);
_local1.getKingyoCnt++;
_local1.getKingyoNum = nkingyoNum;
if (_local3.getKingyoCnt == _local3.normaCnt) {
_local1.stageClearFlg = true;
_local3.gotoAndPlay("stageClear");
_local3.BGM_maturi.stop();
}
}
function main() {
var _local1 = this;
_local1.oldx = _local1.px;
_local1.oldy = _local1.py;
switch (_local1.algNum) {
case 1 :
_local1.moveWithMouse();
return;
case 2 :
_local1.moveAuto();
}
}
function moveWithMouse() {
var _local1 = this;
_local1.px = _root._xmouse + _local1.ofsx;
_local1.py = _root._ymouse + _local1.ofsy;
_local1.limitCheck();
}
function moveAuto() {
var _local1 = this;
if ((_local1.adx != 0) && (_local1.ady != 0)) {
_local1.px = _local1.px + _local1.adx;
_local1.py = _local1.py + _local1.ady;
_local1.limitCheck();
_local1.adx = _local1.adx * 0.95;
_local1.ady = _local1.ady * 0.95;
}
_local1.py = _local1.py + (Math.cos((_local1.angle * Math.PI) / 180) * 0.5);
_local1.angle = (_local1.angle + 10) % 360;
}
function limitCheck() {
var _local1 = this;
var _local2 = _root;
if (_local1.px < (_local2.limitLeft + _local1.limitHx)) {
_local1.px = _local2.limitLeft + _local1.limitHx;
_local1.adx = -_local1.adx;
}
if (_local1.px > (_local2.limitRight - _local1.limitHx)) {
_local1.px = _local2.limitRight - _local1.limitHx;
_local1.adx = -_local1.adx;
}
if (_local1.py < (_local2.limitTop + _local1.limitHy)) {
_local1.py = _local2.limitTop + _local1.limitHy;
_local1.ady = -_local1.ady;
}
if (_local1.py > ((_local2.limitBottom - _local1.limitHy) - 5)) {
_local1.py = (_local2.limitBottom - _local1.limitHy) - 5;
_local1.ady = -_local1.ady;
}
}
this.depthKingyo = 100;
this.px = 120;
this.py = 350;
this.algNum = 2;
this.adx = 0;
this.ady = 0;
this.oldx = this.px;
this.oldy = this.py;
this.ofsx = 0;
this.ofsy = 0;
this.limitHx = 70;
this.limitHy = 40;
this.angle = 0;
this.dummyMC.setMask(this.iremonoMask2MC);
this.getKingyoNum = 0;
this.getKingyoCnt = 0;
this.stageClearFlg = false;
this.onPress = function () {
var _local1 = this;
var _local2 = _root;
if (_local2.windowFlg || (_local2.instDispFlg)) {
} else {
_local1.adx = 0;
_local1.ady = 0;
_local1.ofsx = _local1.px - _local2._xmouse;
_local1.ofsy = _local1.py - _local2._ymouse;
var _local3 = "\u30C9,\u30E9,\u30C3,\u30B0,\u3057,\u3066,\u3044,\u3069,\u3046,\u3055,\u305B,\u308B,\u3053,\u3068,\u304C,\u3067,\u304D,\u308B,\u3088";
_local2.tobbyMC.comment(_local3);
_local1.algNum = 1;
}
};
this.onRelease = function () {
var _local1 = this;
if (_root.windowFlg) {
} else {
_local1.adx = _local1.px - _local1.oldx;
_local1.ady = _local1.py - _local1.oldy;
_local1.algNum = 2;
}
};
this.onReleaseOutside = function () {
var _local1 = this;
if (_root.windowFlg) {
} else {
_local1.adx = _local1.px - _local1.oldx;
_local1.ady = _local1.py - _local1.oldy;
_local1.algNum = 2;
}
};
this.onRollOver = function () {
};
Symbol 84 MovieClip [iremono] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
if ((this.getKingyoCnt > 0) && (this.stageClearFlg == false)) {
if (this.getKingyoCnt >= 2) {
switch (this.getKingyoCnt) {
case 2 :
var str = "\u3059,\u3054,\u3044,\uFF01,\uFF12,\u3072,\u304D,\u3069,\u3046,\u3058,\u306B,\u3059,\u304F,\u3063,\u305F";
break;
case 3 :
var str = "\u3073,\u3063,\u304F,\u308A,\u3001,\uFF13,\u3073,\u304D,\u3069,\u3046,\u3058,\u3068,\u306F,\u30D7,\u30ED,\u3060,\u306D,!";
break;
default :
var str = "\u3057,\u3093,\u3058,\u3089,\u308C,\u306A,\u3044,\uFF01,\u306A,\u3093,\u3073,\u304D,\u3068,\u3063,\u305F,\u306E,\uFF1F";
}
_root.tobbyMC.changeFace("surprised");
_root.tobbyMC.comment(str);
} else if (this.getKingyoNum == 2) {
if (_root.lastPoiCnt < 4) {
_root.lastPoiCnt++;
_root.lastPoiMC.gotoAndStop(5 - _root.lastPoiCnt);
var str = "\u30CA,\u30A4,\u30B9,\u30AD\u30E3,\u30C3,\u30C1\uFF01,\n,\u30DD,\u30A4,\uFF11,\u3064,\u30B5,\u30FC,\u30D3,\u30B9,\u3057,\u3061\u3083,\u3046,\u305E";
} else {
var str = "\u30B0,\u30C3,\u30B8,\u30E7,\u30D6\uFF01";
}
_root.tobbyMC.changeFace("surprised");
_root.tobbyMC.comment(str);
} else {
var nRnd = (_root.randomInt(3) - 1);
var str = _root.kingyoCommentList[this.getKingyoNum - 1][nRnd];
_root.tobbyMC.comment(str);
_root.tobbyMC.changeFace("sleep");
}
this.getKingyoCnt = 0;
this.getKingyoNum = 0;
}
this.gotoAndPlay(_currentframe - 1);
Symbol 93 MovieClip Frame 1
this.stop();
Symbol 98 MovieClip Frame 1
this.stop();
Symbol 98 MovieClip Frame 2
this.stop();
Symbol 100 MovieClip [poi] Frame 1
function main() {
var _local1 = this;
var _local2 = _root;
_local1.px = _local2.cursorMC._x;
_local1.py = _local2.cursorMC._y;
if (_local2._ymouse > (_local2.limitTop - 50)) {
Mouse.hide();
} else {
Mouse.show();
}
if (_local1.releaseSkipCnt == 0) {
if (_local2.iremonoMC.hitTest(_local1.px, _local1.py, true)) {
if (_local1.stat == "outWater") {
Mouse.show();
_local1._visible = false;
} else {
Mouse.hide();
_local1._visible = true;
}
} else {
_local1._visible = true;
}
} else {
_local1.releaseSkipCnt--;
if (_local1.releaseSkipCnt == 10) {
_local1.gotoAndPlay("outWater");
}
}
if (_local2.windowFlg) {
} else {
switch (_local1.stat) {
case "standby" :
var n = 0;
break;
case "outWater" :
var n = 0;
break;
case "inWater" :
var n = ((_local1.moveD * 0.1) + 0.5);
break;
case "getKingyo" :
var n = _local1.kingyoWeight;
}
if (_local1.poiLevel < 5) {
_local1.life = _local1.life - n;
if (_local1.life <= 0) {
_local1.poiLevel++;
if (_local1.poiLevel > 4) {
if (_local1.stat == "getKingyo") {
i = 0;
while (i < _local1.targetKingyoList.length) {
_local1.targetKingyoList[i].releaseKingyo();
i++;
}
_local1.targetKingyoList = [];
}
_local1.stat = "outWater";
_local2.tobbyMC.poi();
} else {
_local1.life = 100;
}
}
var _local3 = (((_local1.poiLevel - 1) * 10) + (10 - Math.ceil(_local1.life / 10))) + 1;
if (_local1.papareStat != _local3) {
_local1.anmMC.hitMC.gotoAndStop(_local3);
_local1.poiShadowMC.hitMC.gotoAndStop(_local3);
}
_local1.papareStat = _local3;
}
var dx = (_local1._x - _local1.px);
var dy = (_local1._y - _local1.py);
_local1.moveD = Math.sqrt((dx * dx) + (dy * dy));
}
}
function dispPaper() {
var _local1 = this;
_local1.anmMC.hitMC.gotoAndStop(_local1.papareStat);
_local1.poiShadowMC.hitMC.gotoAndStop(_local1.papareStat);
}
function nige(nthis) {
var _local1 = this;
var _local2 = nthis;
i = 0;
while (i < _local1.targetKingyoList.length) {
if (_local1.targetKingyoList[i] == _local2) {
_local1.targetKingyoList.splice(i, 1);
if (_local1.targetKingyoList.length == 0) {
_local1.stat = "outWater";
}
return;
}
i++;
}
}
function changeStat(nStat) {
this.stat = nStat;
}
function sameAttack(n) {
this.life = this.life - n;
}
function waterIn() {
var _local1 = this;
var _local2 = _root;
if (_local1.anmMC.hitMC.hitTest(_local2.iremonoMC._x, _local2.iremonoMC._y, true)) {
} else {
_local1.entryHamonEffect(_local1.px, _local1.py + 40);
_local1.swapDepths(_local2.depthPoiWater);
_local1.stat = "inWater";
_local1.gotoAndPlay("inWater");
_local2.SE_poiWaterIn.start(0, 0);
_local1.limitHx2 = 50;
}
}
function entryHamonEffect(nx, ny) {
var _local1 = _root;
var _local2 = "waterMaskArea" + String(this.hamonCnt);
var ndepth = (_local1.depthHamonEffect + this.hamonCnt);
_local1.attachMovie("waterMaskArea", _local2, ndepth);
_local1[_local2]._x = 320;
_local1[_local2]._y = 354;
this.hamonCnt++;
var _local3 = ("hamon" + String(this.hamonCnt)) + "MC";
var ndepth2 = (_local1.depthHamonEffect + this.hamonCnt);
_local1.attachMovie("hamon", _local3, ndepth2);
_local1[_local3]._x = nx;
_local1[_local3]._y = ny;
_local1[_local3].maskMC = _local1[_local2];
_local1[_local3].setMask(_local2);
this.hamonCnt++;
}
function waterOut() {
var _local2 = this;
_local2.kingyoWeight = 0;
_root.SE_poiWaterOut.start(0, 0);
_local2.swapDepths(_root.depthPoi);
var _local3 = 0;
i = 0;
while (i < _root.kingyoMCList.length) {
var _local1 = _root.kingyoMCList[i];
if (_local2.anmMC.hitMC.hitTest(_local1._x, _local1._y, true)) {
_local3++;
_local1.catchKingyo(_local3);
_local2.targetKingyoList.push(_local1);
_local2.kingyoWeight = _local2.kingyoWeight + _local1.weight;
}
i++;
}
if (_local2.targetKingyoList.length > 0) {
_local2.stat = "getKingyo";
} else {
_local2.stat = "outWater";
}
_local2.gotoAndPlay("outWater");
_local2.entryHamonEffect(_local2.px, _local2.py);
_local2.limitHx2 = 0;
}
function resetPoi() {
var _local1 = this;
_local1.swapDepths(_root.depthPoi);
_local1.life = 100;
_local1.poiLevel = 1;
_local1.anmMC.hitMC.gotoAndStop(_local1.poiLevel);
_local1.stat = "outWater";
_local1.gotoAndPlay("outWater");
}
this.px = 0;
this.py = 0;
this.stat = "outWater";
this.life = 100;
this.poiLevel = 1;
this.targetKingyoList = [];
this.releaseSkipCnt = 0;
this.hamonCnt = 0;
this.limitHx2 = 0;
this.papareStat = 1;
this.moveD = 0;
this.onPress = function () {
var _local1 = this;
var _local3 = _root;
if (_local3.windowFlg || (_local3.instDispFlg)) {
} else if (_local1.stat == "getKingyo") {
_local1.stat = "outWater";
_local1.releaseSkipCnt = 15;
if ((_local1.px - _local3.iremonoMC._x) > 0) {
_local1.gotoAndPlay("releaseR");
var _local2 = -1;
} else {
_local1.gotoAndPlay("releaseL");
var _local2 = 1;
}
i = 0;
while (i < _local1.targetKingyoList.length) {
_local1.targetKingyoList[i].releaseKingyo(_local2);
i++;
}
_local1.targetKingyoList = [];
} else {
_local1.life = _local1.life - 10;
_local1.waterIn();
}
};
this.onRelease = function () {
if (this.stat == "inWater") {
this.waterOut();
}
};
this.onReleaseOutside = function () {
if (this.stat == "inWater") {
this.waterOut();
}
};
Symbol 100 MovieClip [poi] Frame 10
this.anmMC.gotoAndStop(1);
this.dispPaper();
Symbol 100 MovieClip [poi] Frame 12
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 100 MovieClip [poi] Frame 20
this.dispPaper();
Symbol 100 MovieClip [poi] Frame 25
this.anmMC.gotoAndStop(2);
Symbol 100 MovieClip [poi] Frame 27
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 100 MovieClip [poi] Frame 40
this.anmMC.gotoAndStop(1);
this.dispPaper();
Symbol 100 MovieClip [poi] Frame 42
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 100 MovieClip [poi] Frame 50
this.anmMC.gotoAndStop(1);
this.dispPaper();
Symbol 100 MovieClip [poi] Frame 52
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 108 MovieClip [kingyoAnm1] Frame 1
this.stop();
Symbol 108 MovieClip [kingyoAnm1] Frame 12
this.gotoAndStop("stay");
Symbol 108 MovieClip [kingyoAnm1] Frame 36
this.gotoAndPlay("catch");
Symbol 109 MovieClip [kingyo1] Frame 1
function main() {
var _local1 = this;
switch (_local1.algNum) {
case 1 :
r = _local1.swim.swim();
_local1.px = r[0];
_local1.py = r[1];
_local1.rotation = r[2];
break;
case 2 :
_local1.moveWithPoi();
break;
case 3 :
_local1.fall();
}
_local1.shadowMC.gotoAndStop(_local1.anmMC._currentframe);
}
function catchKingyo() {
var _local1 = this;
var _local2 = _root;
_local1.algNum = 2;
_local2.setMeido(0);
theColor.setTransform(_local2.meido);
_local1.poiofsx = _local2.cursorMC._x - _local1.px;
_local1.poiofsy = (_local2.cursorMC._y - _local1.py) + 40;
_local1.anmMC.gotoAndPlay("catch");
_local1.swapDepths(++_local2.depthPoi);
_local1.waterEffectName = "waterEffectMC" + String(++_local2.depthWaterEffect);
_local2.attachMovie("waterEffect", _local1.waterEffectName, _local2.depthWaterEffect);
_local2[_local1.waterEffectName]._x = 0;
_local2[_local1.waterEffectName]._y = 1000;
}
function releaseKingyo(nDirect) {
var _local1 = this;
_local1.algNum = 3;
_local1.adx = 0;
_local1.ady = 0;
_local1.moveDirect = nDirect * 0.5;
_local1.pCnt = 0;
}
function fall() {
var _local1 = this;
var _local2 = _root;
_local1.px = _local1.px + _local1.adx;
_local1.py = _local1.py + _local1.ady;
_local1.adx = _local1.adx + _local1.moveDirect;
_local1.ady = _local1.ady + 2;
if (_local1.pCnt == 7) {
if (_local2.iremonoMC.hitMC.hitTest(_local1.px, _local1.py, true)) {
_local2.iremonoMC.insertKingyo(_local1.kingyoNum, _local1.px, _local1.py, _local1.scale);
_local2[_local1.waterEffectName].entry2(_local1.px, _local1.py);
i = 0;
while (i < _local2.kingyoMCList.length) {
if (_local2.kingyoMCList[i] == _local1) {
_local2.kingyoMCList.splice(i, 1);
}
i++;
}
_local1.removeMovieClip();
} else {
_local2.setMeido(_local1.myMeido);
theColor.setTransform(_local2.meido);
_local1.swim.initLoc(_local1.px, _local1.py);
_local1.swapDepths(_local1.waterDepth);
_local1.algNum = 0;
_local1._visible = false;
_local1.anmMC.gotoAndStop("stay");
_local2.SE_kingyoEscape.start(0, 0);
_local2[_local1.waterEffectName].entry(_local1.px, _local1.py, _local1, _local1.scale);
if (_local2.windowFlg == false) {
var _local3 = "\u304A,\u308F,\u3093,\u306E,\u306A,\u304B,\u306B,\u3044,\u308C,\u306A,\u3044,\u3068,\u30C0,\u30E1,\u3060,\u3088";
_local2.tobbyMC.comment(_local3);
_local2.tobbyMC.changeFace("troubled");
}
_local1.nige = 0;
}
} else {
_local1.pCnt++;
}
}
function fallinwater() {
var _local1 = this;
_local1._visible = true;
_local1.algNum = 1;
_local1.anmMC.gotoAndStop("stay");
}
function moveWithPoi() {
var _local1 = this;
var _local2 = _root;
_local1.px = _local2.cursorMC._x - _local1.poiofsx;
_local1.py = (_local2.cursorMC._y - _local1.poiofsy) + _local1.nige;
_local1.nige = _local1.nige + _local1.nigeSpeed;
if (_local2.cursorMC.hitTest(_local1.px, _local1.py, true) == false) {
_local1.algNum = 3;
_local1.adx = 0;
_local1.ady = 0;
_local1.pCnt = 0;
_local1.moveDirect = 0;
_local1.fall();
_local2.poiMC.nige(_local1);
}
}
_root.kingyoMCList.push(this);
this.algNum = 1;
this.adx = 2;
this.ady = 2;
this.nige = 0;
this.nigeSpeed = _root.kingyoDataList[this.kingyoNum - 1][1];
var idName = ("kingyoAnm" + String(this.kingyoNum));
var newName = "anmMC";
this.attachMovie(idName, newName, 2);
this.anmMC._x = 0;
this.anmMC._y = 0;
if ((this.kingyoNum == 1) || (this.kingyoNum == 2)) {
var idName = "kingyoShadow1";
var newName = "shadowMC";
this.attachMovie(idName, newName, 1);
this.shadowMC._x = this.anmMC._x + 4;
this.shadowMC._y = this.anmMC._y + 4;
this.shadowMC._alpha = 15;
}
if ((this.kingyoNum >= 3) && (this.kingyoNum <= 4)) {
var idName = "kingyoShadow2";
var newName = "shadowMC";
this.attachMovie(idName, newName, 1);
this.shadowMC._x = this.anmMC._x + 4;
this.shadowMC._y = this.anmMC._y + 4;
this.shadowMC._alpha = 15;
}
this._xscale = 100 * this.scale;
this._yscale = 100 * this.scale;
this.weight = _root.kingyoDataList[this.kingyoNum - 1][0] * this.scale;
this.limitHx = 50 * scale;
this.limitHy = 50 * scale;
this.poiofsx = 0;
this.poiofsy = 0;
this.waterEffectName = "";
this.waterDepth = this.getDepth();
this.myMeido = 25 - (this.myNum * 3);
if (this.myMeido < 5) {
this.myMeido = 5;
}
theColor = new Color(this);
_root.setMeido(this.myMeido);
theColor.setTransform(_root.meido);
this.px = _root.randomInt(_root.limitRight - _root.limitLeft) + _root.limitLeft;
this.py = _root.randomInt(_root.limitBottom - _root.limitTop) + _root.limitTop;
switch (this.kingyoNum) {
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
this.swim = new _root.swimType1(this);
break;
case 6 :
this.swim = new _root.swimDojo(this);
break;
case 7 :
this.swim = new _root.swimKame(this);
break;
case 8 :
this.swim = new _root.swimSame(this);
}
Symbol 109 MovieClip [kingyo1] Frame 2
Symbol 109 MovieClip [kingyo1] Frame 4
this.main();
this._x = this.px;
this._y = this.py;
this.anmMC._rotation = this.rotation;
this.shadowMC._rotation = this.rotation;
this.gotoAndPlay(_currentframe - 1);
Symbol 114 MovieClip [stagein] Frame 1
this.swapDepths(_root.depthWindow);
Symbol 114 MovieClip [stagein] Frame 30
_root.gotoAndPlay("main");
this.removeMovieClip();
Symbol 116 MovieClip [kingyo8_mini] Frame 1
function main() {
var _local1 = this;
_local1.px = _local1.px + _local1.vx;
_local1.py = _local1.py + _local1.vy;
if (_local1.px < (-_local1.xLimit)) {
_local1.px = -_local1.xLimit;
_local1.vx = (-_local1.vx) * 0.75;
}
if (_local1.px > _local1.xLimit) {
_local1.px = _local1.xLimit;
_local1.vx = (-_local1.vx) * 0.75;
}
if (_local1.py < -25) {
_local1.py = -25;
_local1.vy = (-_local1.vy) * 0.75;
}
if (_local1.py > 15) {
_local1.py = 15;
_local1.vy = (-_local1.vy) * 0.75;
}
if (_local1.vx < 0) {
_local1._xscale = Math.abs(_local1._xscale);
} else {
_local1._xscale = -Math.abs(_local1._xscale);
}
_local1.vy = _local1.vy * 0.95;
_local1.vx = _local1.vx * 0.95;
if ((Math.abs(_local1.vx) < 0.1) && (Math.abs(_local1.vy) < 0.1)) {
_local1.vx = _root.randomInt(5) - 3;
_local1.vy = _root.randomInt(5) - 3;
}
}
function fallinwater() {
this._visible = true;
}
this.vx = _root.randomInt(10) - 5;
this.vy = _root.randomInt(10) - 5;
if (this.scale > 0.4) {
this.scale = 0.4;
}
this._xscale = 100 * this.scale;
this._yscale = 100 * this.scale;
this.xLimit = 50 - (this._width / 2);
Symbol 116 MovieClip [kingyo8_mini] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 118 MovieClip [kingyo7_mini] Frame 1
function main() {
var _local1 = this;
_local1.px = _local1.px + _local1.vx;
_local1.py = _local1.py + _local1.vy;
if (_local1.px < (-_local1.xLimit)) {
_local1.px = -_local1.xLimit;
_local1.vx = (-_local1.vx) * 0.75;
}
if (_local1.px > _local1.xLimit) {
_local1.px = _local1.xLimit;
_local1.vx = (-_local1.vx) * 0.75;
}
if (_local1.py < -25) {
_local1.py = -25;
_local1.vy = (-_local1.vy) * 0.75;
}
if (_local1.py > 15) {
_local1.py = 15;
_local1.vy = (-_local1.vy) * 0.75;
}
if (_local1.vx < 0) {
_local1._xscale = Math.abs(_local1._xscale);
} else {
_local1._xscale = -Math.abs(_local1._xscale);
}
_local1.vy = _local1.vy * 0.95;
_local1.vx = _local1.vx * 0.95;
if ((Math.abs(_local1.vx) < 0.1) && (Math.abs(_local1.vy) < 0.1)) {
_local1.vx = _root.randomInt(5) - 3;
_local1.vy = _root.randomInt(5) - 3;
}
}
function fallinwater() {
this._visible = true;
}
this.vx = _root.randomInt(10) - 5;
this.vy = _root.randomInt(10) - 5;
this._xscale = 100 * this.scale;
this._yscale = 100 * this.scale;
this.xLimit = 50 - (this._width / 2);
Symbol 118 MovieClip [kingyo7_mini] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 120 MovieClip [kingyo6_mini] Frame 1
function main() {
var _local1 = this;
_local1.px = _local1.px + _local1.vx;
_local1.py = _local1.py + _local1.vy;
if (_local1.px < (-_local1.xLimit)) {
_local1.px = -_local1.xLimit;
_local1.vx = (-_local1.vx) * 0.75;
}
if (_local1.px > _local1.xLimit) {
_local1.px = _local1.xLimit;
_local1.vx = (-_local1.vx) * 0.75;
}
if (_local1.py < -25) {
_local1.py = -25;
_local1.vy = (-_local1.vy) * 0.75;
}
if (_local1.py > 15) {
_local1.py = 15;
_local1.vy = (-_local1.vy) * 0.75;
}
if (_local1.vx < 0) {
_local1._xscale = Math.abs(_local1._xscale);
} else {
_local1._xscale = -Math.abs(_local1._xscale);
}
_local1.vy = _local1.vy * 0.95;
_local1.vx = _local1.vx * 0.95;
if ((Math.abs(_local1.vx) < 0.1) && (Math.abs(_local1.vy) < 0.1)) {
_local1.vx = _root.randomInt(5) - 3;
_local1.vy = _root.randomInt(5) - 3;
}
}
function fallinwater() {
this._visible = true;
}
this.vx = _root.randomInt(10) - 5;
this.vy = _root.randomInt(10) - 5;
this._xscale = 100 * this.scale;
this._yscale = 100 * this.scale;
this.xLimit = 50 - (this._width / 2);
Symbol 120 MovieClip [kingyo6_mini] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 122 MovieClip [kingyo5_mini] Frame 1
function main() {
var _local1 = this;
_local1.px = _local1.px + _local1.vx;
_local1.py = _local1.py + _local1.vy;
if (_local1.px < (-_local1.xLimit)) {
_local1.px = -_local1.xLimit;
_local1.vx = (-_local1.vx) * 0.75;
}
if (_local1.px > _local1.xLimit) {
_local1.px = _local1.xLimit;
_local1.vx = (-_local1.vx) * 0.75;
}
if (_local1.py < -25) {
_local1.py = -25;
_local1.vy = (-_local1.vy) * 0.75;
}
if (_local1.py > 15) {
_local1.py = 15;
_local1.vy = (-_local1.vy) * 0.75;
}
var _local2 = Math.atan2(_local1.vx, -_local1.vy);
_local1.rotation = _local2 / (Math.PI/180);
_local1.vy = _local1.vy * 0.95;
_local1.vx = _local1.vx * 0.95;
if ((Math.abs(_local1.vx) < 0.1) && (Math.abs(_local1.vy) < 0.1)) {
_local1.vx = _root.randomInt(5) - 3;
_local1.vy = _root.randomInt(5) - 3;
}
}
function fallinwater() {
this._visible = true;
}
this.vx = _root.randomInt(10) - 5;
this.vy = _root.randomInt(10) - 5;
this._xscale = 100 * this.scale;
this._yscale = 100 * this.scale;
this.xLimit = 50 - (this._width / 2);
Symbol 122 MovieClip [kingyo5_mini] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this._rotation = this.rotation;
this.gotoAndPlay(_currentframe - 1);
Symbol 124 MovieClip [kingyo4_mini] Frame 1
function main() {
var _local1 = this;
_local1.px = _local1.px + _local1.vx;
_local1.py = _local1.py + _local1.vy;
if (_local1.px < (-_local1.xLimit)) {
_local1.px = -_local1.xLimit;
_local1.vx = (-_local1.vx) * 0.75;
}
if (_local1.px > _local1.xLimit) {
_local1.px = _local1.xLimit;
_local1.vx = (-_local1.vx) * 0.75;
}
if (_local1.py < -25) {
_local1.py = -25;
_local1.vy = (-_local1.vy) * 0.75;
}
if (_local1.py > 15) {
_local1.py = 15;
_local1.vy = (-_local1.vy) * 0.75;
}
var _local2 = Math.atan2(_local1.vx, -_local1.vy);
_local1.rotation = _local2 / (Math.PI/180);
_local1.vy = _local1.vy * 0.95;
_local1.vx = _local1.vx * 0.95;
if ((Math.abs(_local1.vx) < 0.1) && (Math.abs(_local1.vy) < 0.1)) {
_local1.vx = _root.randomInt(5) - 3;
_local1.vy = _root.randomInt(5) - 3;
}
}
function fallinwater() {
this._visible = true;
}
this.vx = _root.randomInt(10) - 5;
this.vy = _root.randomInt(10) - 5;
this._xscale = 100 * this.scale;
this._yscale = 100 * this.scale;
this.xLimit = 50 - (this._width / 2);
Symbol 124 MovieClip [kingyo4_mini] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this._rotation = this.rotation;
this.gotoAndPlay(_currentframe - 1);
Symbol 126 MovieClip [kingyo3_mini] Frame 1
function main() {
var _local1 = this;
_local1.px = _local1.px + _local1.vx;
_local1.py = _local1.py + _local1.vy;
if (_local1.px < (-_local1.xLimit)) {
_local1.px = -_local1.xLimit;
_local1.vx = (-_local1.vx) * 0.75;
}
if (_local1.px > _local1.xLimit) {
_local1.px = _local1.xLimit;
_local1.vx = (-_local1.vx) * 0.75;
}
if (_local1.py < -25) {
_local1.py = -25;
_local1.vy = (-_local1.vy) * 0.75;
}
if (_local1.py > 15) {
_local1.py = 15;
_local1.vy = (-_local1.vy) * 0.75;
}
var _local2 = Math.atan2(_local1.vx, -_local1.vy);
_local1.rotation = _local2 / (Math.PI/180);
_local1.vy = _local1.vy * 0.95;
_local1.vx = _local1.vx * 0.95;
if ((Math.abs(_local1.vx) < 0.1) && (Math.abs(_local1.vy) < 0.1)) {
_local1.vx = _root.randomInt(5) - 3;
_local1.vy = _root.randomInt(5) - 3;
}
}
function fallinwater() {
this._visible = true;
}
this.vx = _root.randomInt(10) - 5;
this.vy = _root.randomInt(10) - 5;
this._xscale = 100 * this.scale;
this._yscale = 100 * this.scale;
this.xLimit = 50 - (this._width / 2);
Symbol 126 MovieClip [kingyo3_mini] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this._rotation = this.rotation;
this.gotoAndPlay(_currentframe - 1);
Symbol 128 MovieClip [kingyo2_mini] Frame 1
function main() {
var _local1 = this;
_local1.px = _local1.px + _local1.vx;
_local1.py = _local1.py + _local1.vy;
if (_local1.px < (-_local1.xLimit)) {
_local1.px = -_local1.xLimit;
_local1.vx = (-_local1.vx) * 0.75;
}
if (_local1.px > _local1.xLimit) {
_local1.px = _local1.xLimit;
_local1.vx = (-_local1.vx) * 0.75;
}
if (_local1.py < -25) {
_local1.py = -25;
_local1.vy = (-_local1.vy) * 0.75;
}
if (_local1.py > 15) {
_local1.py = 15;
_local1.vy = (-_local1.vy) * 0.75;
}
var _local2 = Math.atan2(_local1.vx, -_local1.vy);
_local1.rotation = _local2 / (Math.PI/180);
_local1.vy = _local1.vy * 0.95;
_local1.vx = _local1.vx * 0.95;
if ((Math.abs(_local1.vx) < 0.1) && (Math.abs(_local1.vy) < 0.1)) {
_local1.vx = _root.randomInt(5) - 3;
_local1.vy = _root.randomInt(5) - 3;
}
}
function fallinwater() {
this._visible = true;
}
this.vx = _root.randomInt(10) - 5;
this.vy = _root.randomInt(10) - 5;
this._xscale = 100 * this.scale;
this._yscale = 100 * this.scale;
this.xLimit = 50 - (this._width / 2);
Symbol 128 MovieClip [kingyo2_mini] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this._rotation = this.rotation;
this.gotoAndPlay(_currentframe - 1);
Symbol 129 MovieClip [kingyo1_mini] Frame 1
function main() {
var _local1 = this;
_local1.px = _local1.px + _local1.vx;
_local1.py = _local1.py + _local1.vy;
if (_local1.px < (-_local1.xLimit)) {
_local1.px = -_local1.xLimit;
_local1.vx = (-_local1.vx) * 0.75;
}
if (_local1.px > _local1.xLimit) {
_local1.px = _local1.xLimit;
_local1.vx = (-_local1.vx) * 0.75;
}
if (_local1.py < -25) {
_local1.py = -25;
_local1.vy = (-_local1.vy) * 0.75;
}
if (_local1.py > 15) {
_local1.py = 15;
_local1.vy = (-_local1.vy) * 0.75;
}
var _local2 = Math.atan2(_local1.vx, -_local1.vy);
_local1.rotation = _local2 / (Math.PI/180);
_local1.vy = _local1.vy * 0.95;
_local1.vx = _local1.vx * 0.95;
if ((Math.abs(_local1.vx) < 0.1) && (Math.abs(_local1.vy) < 0.1)) {
_local1.vx = _root.randomInt(5) - 3;
_local1.vy = _root.randomInt(5) - 3;
}
}
function fallinwater() {
this._visible = true;
}
this.vx = _root.randomInt(10) - 5;
this.vy = _root.randomInt(10) - 5;
this._xscale = 100 * this.scale;
this._yscale = 100 * this.scale;
this.xLimit = 50 - (this._width / 2);
Symbol 129 MovieClip [kingyo1_mini] Frame 5
this.main();
this._x = this.px;
this._y = this.py;
this._rotation = this.rotation;
this.gotoAndPlay(_currentframe - 1);
Symbol 134 Button
on (press) {
_root.poiMC.removeMovieClip();
_root.tobbyMC.commentClear();
_root.gotoAndPlay("backTitle");
_root.SE_down.start(0, 0);
this.clear();
}
on (rollOver) {
_root.SE_over.start(0, 0);
}
Symbol 136 Button
on (press) {
_root.tobbyMC.changeFace("standard");
_root.tobbyMC.commentClear();
_root.SE_down.start(0, 0);
this.clear();
}
on (rollOver) {
_root.SE_over.start(0, 0);
}
Symbol 137 MovieClip [WindowRetrun] Frame 1
function clear() {
_root.windowFlg = false;
this.removeMovieClip();
}
this._visible = false;
_root.windowFlg = true;
Symbol 137 MovieClip [WindowRetrun] Frame 5
if (_root.commentAllDispFlg) {
this._visible = true;
this.stop();
} else {
this.gotoAndPlay(_currentframe - 1);
}
Symbol 138 Button
on (press) {
i = 0;
while (i < _root.kingyoMCList.length) {
_root.kingyoMCList[i].removeMovieClip();
i++;
}
_root.kingyoMCList = [];
_root.iremonoMC.removeMovieClip();
_root.LastPoiCnt = 4;
_root.lastPoiMC.gotoAndStop(1);
_root.tobbyMC.commentClear();
_root.gotoAndPlay("stagein");
_root.SE_down.start(0, 0);
this.clear();
}
on (rollOver) {
_root.SE_over.start(0, 0);
}
Symbol 139 Button
on (press) {
_root.play();
_root.SE_down.start(0, 0);
this.clear();
}
on (rollOver) {
_root.SE_over.start(0, 0);
}
Symbol 140 MovieClip [WindowOver] Frame 1
function clear() {
_root.windowFlg = false;
this.removeMovieClip();
}
this._visible = false;
_root.windowFlg = true;
Symbol 140 MovieClip [WindowOver] Frame 5
if (_root.commentAllDispFlg) {
this._visible = true;
this.stop();
} else {
this.gotoAndPlay(_currentframe - 1);
}
Symbol 152 MovieClip [waterEffect] Frame 1
function entry(nx, ny, ntargetMC, nscale) {
var _local1 = this;
var _local2 = nscale;
_local1.setMask(null);
if (ny > _root.iremonoMC._y) {
_local1.swapDepths(_root.depthWaterEffect2++);
}
_local1._xscale = 100;
_local1._yscale = 100;
_local1.targetMC = ntargetMC;
_local1._x = nx;
_local1._y = ny - (20 * _local2);
_local1._xscale = 100 * _local2;
_local1._yscale = 100 * _local2;
_local1.gotoAndPlay(2);
}
function entry2(nx, ny) {
var _local1 = this;
_local1.setMask(_root.iremonoMC.iremonoMaskMC);
_local1.swapDepths(_root.depthWaterEffect2++);
_local1._xscale = 50;
_local1._yscale = 50;
_local1.targetMC = undefined;
_local1._x = nx;
_local1._y = ny - 10;
_local1.gotoAndPlay(2);
}
this.stop();
Symbol 152 MovieClip [waterEffect] Frame 5
if (this.targetMC != undefined) {
this.targetMC.fallinWater();
}
Symbol 152 MovieClip [waterEffect] Frame 12
this.removeMovieClip();
Symbol 155 MovieClip [hamon] Frame 1
Symbol 155 MovieClip [hamon] Frame 16
this.maskMC.removeMovieClip();
this.removeMovieClip();
Symbol 157 MovieClip [waterMaskArea] Frame 1
this._visible = false;
this.stop();
Symbol 159 MovieClip [fadeBlackScr] Frame 6
this.removeMovieClip();
Symbol 159 MovieClip [fadeBlackScr] Frame 26
_root.play();
this.stop();
Symbol 164 MovieClip [tobbyComment] Frame 1
this.strList = this.str.split(",");
this.ptr = 0;
this.ptr2 = 0;
this.dispStr = "";
this.dispStr2 = "";
_root.commentAllDispFlg = false;
Symbol 164 MovieClip [tobbyComment] Frame 4
this.dispStr2 = this.dispStr2 + this.strList[this.ptr2];
this.ptr2++;
Symbol 164 MovieClip [tobbyComment] Frame 6
this.dispStr = this.dispStr + this.strList[this.ptr];
this.ptr++;
if (this.ptr2 < this.strList.length) {
this.dispStr2 = this.dispStr2 + this.strList[this.ptr2];
this.ptr2++;
}
if (this.ptr < this.strList.length) {
this.gotoAndPlay(_currentframe - 1);
} else {
_root.commentAllDispFlg = true;
}
Symbol 164 MovieClip [tobbyComment] Frame 10
if (this.stayFlg) {
this.stop();
}
Symbol 164 MovieClip [tobbyComment] Frame 22
if (this.rootPlayFlg) {
trace("root.play");
_root.play();
}
_parent.commentDispFlg = false;
_parent.changeFace("standard");
this.removeMovieClip();
Symbol 166 MovieClip [hanabiTama] Frame 1
function main() {
var _local1 = this;
_local1._x = _local1._x + _local1.vx;
_local1._y = _local1._y + _local1.vy;
_local1.vx = _local1.vx * 0.9;
_local1.vy = _local1.vy * 0.9;
switch (_local1.cAlg) {
case 1 :
_local1.cAlg01();
break;
case 2 :
_local1.cAlg02();
break;
case 3 :
_local1.cAlg03();
}
_local1.colorObj.setTransform(_local1.myColor);
if (_local1.cAlg == 4) {
_local1.removeMovieClip();
}
}
function cAlg01() {
var _local1 = this;
_local1.myColor.ga = _local1.myColor.ga - 10;
if (_local1.myColor.ga <= 0) {
_local1.myColor.ga = 0;
_local1.cAlg = 2;
}
}
function cAlg02() {
var _local1 = this;
_local1.myColor.bb = _local1.myColor.bb + 12;
if (_local1.myColor.bb >= 255) {
_local1.myColor.bb = 255;
_local1.cAlg = 3;
}
}
function cAlg03() {
var _local1 = this;
_local1.myColor.rb = _local1.myColor.rb - 12;
_local1.myColor.gb = _local1.myColor.gb - 12;
_local1.myColor.bb = _local1.myColor.bb - 24;
if (_local1.myColor.rb <= -255) {
_local1.myColor.rb = -255;
_local1.myColor.gb = -255;
_local1.myColor.bb = -255;
_local1.cAlg = 4;
}
}
this.myColor = new Object();
this.myColor.ra = 100;
this.myColor.rb = 0;
this.myColor.ga = 100;
this.myColor.gb = 0;
this.myColor.ba = 100;
this.myColor.bb = 0;
this.myColor.aa = 100;
this.myColor.ab = 0;
this.colorObj = new Color(this);
this.cAlg = 1;
Symbol 166 MovieClip [hanabiTama] Frame 3
this.main();
this.gotoAndPlay(_currentframe - 1);
Symbol 189 MovieClip Frame 1
this.stop();
Instance of Symbol 189 MovieClip "tobbybodyMC" in Symbol 190 MovieClip [instTxt] Frame 1
onClipEvent (load) {
this.gotoAndStop("withPoi");
}
Symbol 206 Button
on (press) {
_root.stageNum = 1;
_root.lastPoiCnt = 4;
_root.gotoAndPlay("stagein");
}
Symbol 207 Button
on (press) {
_root.stageNum = 2;
_root.lastPoiCnt = 4;
_root.gotoAndPlay("stagein");
}
Symbol 208 Button
on (press) {
_root.stageNum = 3;
_root.lastPoiCnt = 4;
_root.gotoAndPlay("stagein");
}
Symbol 209 Button
on (press) {
_root.stageNum = 4;
_root.lastPoiCnt = 4;
_root.gotoAndPlay("stagein");
}
Symbol 210 Button
on (press) {
_root.stageNum = 5;
_root.lastPoiCnt = 4;
_root.gotoAndPlay("stagein");
}
Symbol 211 Button
on (press) {
_root.stageNum = 6;
_root.lastPoiCnt = 4;
_root.gotoAndPlay("stagein");
}
Symbol 212 Button
on (press) {
_root.stageNum = 7;
_root.lastPoiCnt = 4;
_root.gotoAndPlay("stagein");
}
Symbol 213 Button
on (press) {
_root.stageNum = 8;
_root.lastPoiCnt = 4;
_root.gotoAndPlay("stagein");
}
Symbol 214 Button
on (press) {
_root.gotoAndPlay("ending");
}
Symbol 215 Button
on (press) {
this.unDisp();
}
Symbol 216 MovieClip [debugIn] Frame 1
function disp() {
this._visible = true;
this._y = 100;
_root.debugInFlg = true;
}
function unDisp() {
this._visible = false;
this._y = -1000;
_root.debugInFlg = false;
}
if (_root.debugInFlg) {
this._y = 100;
this._visible = true;
} else {
this._visible = false;
}
Symbol 221 MovieClip Frame 9
var versionNum = getVersion().slice(4, 5);
trace(versionNum);
if (Number(versionNum) >= 6) {
this.gotoAndPlay("ok");
} else {
this.gotoAndPlay("ng");
}
Symbol 221 MovieClip Frame 19
_parent.gotoAndPlay("loading");
this.stop();
Symbol 221 MovieClip Frame 25
this.stop();
Symbol 225 Button
on (press) {
_root.SE_down.start(0, 0);
if (_root.instDispFlg) {
_root.instMC.removeMovieClip();
_root.instDispFlg = false;
return(undefined);
}
}
on (rollOver) {
_root.SE_over.start(0, 0);
}
Symbol 227 Button
on (press) {
if (_root.windowFlg) {
return(undefined);
}
if (_root.instDispFlg) {
_root.instMC.removeMovieClip();
_root.instDispFlg = false;
} else {
_root.instDispFlg = true;
_root.attachMovie("instTxt", "instMC", _root.depthInst);
_root.instMC._x = 331;
_root.instMC._y = 251;
}
}
on (rollOver) {
_root.SE_over.start(0, 0);
}
Symbol 233 MovieClip Frame 1
loadedSize = _root.getBytesLoaded();
totalSize = _root.getBytesTotal();
if (loadedSize >= totalSize) {
this.gotoAndPlay("ok");
} else {
parcent = (loadedsize / totalsize) * 100;
gDownloaded = Math.round(parcent);
this.bar._width = 300 * (gDownloaded / 100);
_root.stop();
}
Symbol 233 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 233 MovieClip Frame 5
this.bar._width = 300;
Symbol 233 MovieClip Frame 19
_root.gotoAndPlay("init");
Symbol 240 MovieClip Frame 1
this.gotoAndPlay(_root.randomInt(10) + 1);
Symbol 240 MovieClip Frame 21
this.gotoAndPlay(2);
Symbol 245 Button
on (press) {
if (_root.instDispFlg) {
return(undefined);
}
_root.SE_down.start(0, 0);
_root.gameInit();
this.play();
}
on (rollOver) {
_root.SE_over.start(0, 0);
this.tobbybodyMC.gotoAndStop("withPoi");
}
on (rollOut) {
this.tobbybodyMC.gotoAndStop("standard");
}
Symbol 247 Button
on (press) {
if (_root.instDispFlg) {
return(undefined);
}
_root.SE_down.start(0, 0);
_root.gotoAndPlay("inst");
}
on (rollOver) {
_root.SE_over.start(0, 0);
this.tobbybodyMC.gotoAndStop("sleep");
}
on (rollOut) {
this.tobbybodyMC.gotoAndStop("standard");
}
Symbol 248 MovieClip Frame 1
this.tobbybodyMC.gotoAndStop("standard");
this.stop();
Symbol 248 MovieClip Frame 15
_root.gotoAndPlay("stagein");
this.stop();
Symbol 251 MovieClip Frame 1
this.stop();
Symbol 251 MovieClip Frame 2
this.stop();
Symbol 251 MovieClip Frame 3
this.stop();
Symbol 251 MovieClip Frame 4
this.stop();
Symbol 251 MovieClip Frame 5
this.stop();
Symbol 251 MovieClip Frame 6
this.stop();
Symbol 251 MovieClip Frame 7
this.stop();
Symbol 251 MovieClip Frame 8
this.stop();
Symbol 251 MovieClip Frame 9
_root.debugInMC.disp();
this.stop();
Symbol 251 MovieClip Frame 30
this.stop();
Symbol 257 Button
on (press) {
if (_root.windowFlg) {
return(undefined);
}
this.reqestNewPoi();
}
on (rollOver) {
if (_root.windowFlg) {
return(undefined);
}
this.changeFace("smile");
}
on (rollOut) {
if (_root.windowFlg) {
return(undefined);
}
this.changeFace("standard");
}
Symbol 258 Button
on (press) {
if (_root.windowFlg || (_root.instDispFlg)) {
return(undefined);
}
this.reqestNewPoi(1);
_root.SE_down.start(0, 0);
}
on (rollOver) {
if (_root.windowFlg || (_root.instDispFlg)) {
return(undefined);
}
this.changeFace("sleep");
}
on (rollOut) {
if (_root.windowFlg || (_root.instDispFlg)) {
return(undefined);
}
this.changeFace("standard");
}
Symbol 261 MovieClip Frame 1
this.onPress = function () {
var _local1 = _parent;
var _local2 = _root;
_local2.SE_down.start(0, 0);
_local1.waitNewPoiFlg = false;
_local2.windowFlg = false;
_local1.commentClear();
_local1.changeFace("standard");
_local2.poiMC.resetPoi();
_local1.gotoAndStop("stay");
};
this.onRelease = function () {
};
this.onReleaseOutside = function () {
};
this.onRollOver = function () {
};
Symbol 261 MovieClip Frame 10
this.gotoAndPlay(2);
Symbol 264 MovieClip Frame 1
_parent.stop();
this.startTime = getTimer();
Symbol 264 MovieClip Frame 3
if (this.stayTime <= (getTimer() - this.startTime)) {
_parent.play();
this.stop();
} else {
this.gotoAndPlay(_currentframe - 1);
}
Symbol 265 MovieClip Frame 1
function poi() {
var _local1 = _root;
var _local2 = this;
Mouse.show();
_local1.lastPoiCnt--;
if (_local1.lastPoiCnt < 0) {
_local1.gotoAndPlay("gameover");
} else {
_local1.lastPoiMC.gotoAndStop(5 - _local1.lastPoiCnt);
_local2.changeFace("poi");
var _local3 = "\u3042,\u305F,\u3089,\u3057,\u3044,\u3001,\u30DD,\u30A4,\u3060,\u3088\u3002";
_local2.comment(_local3, false, true);
_local2.gotoAndStop("newPoi");
_local2.waitNewPoiFlg = true;
}
_local1.windowFlg = true;
}
function comment(nStr, nPlayFlg, nStayFlg) {
var _local1 = this;
if (_local1.waitNewPoiFlg) {
} else if (_local1.commentDispFlg) {
_local1.tobbyCommentMC.str = nStr;
_local1.tobbyCommentMC.rootPlayFlg = nPlayFlg;
_local1.tobbyCommentMC.stayFlg = nStayFlg;
_local1.tobbyCommentMC.gotoAndPlay(1);
} else {
_local1.attachMovie("tobbyComment", "tobbyCommentMC", 1);
_local1.tobbyCommentMC._x = -250;
_local1.tobbyCommentMC._y = -20;
_local1.tobbyCommentMC.str = nStr;
_local1.tobbyCommentMC.rootPlayFlg = nPlayFlg;
_local1.tobbyCommentMC.stayFlg = nStayFlg;
_local1.commentDispFlg = true;
}
}
function commentClear() {
var _local1 = this;
if (_local1.commentDispFlg) {
_local1.tobbyCommentMC.removeMovieClip();
_local1.commentAllDispFlg = false;
_local1.commentDispFlg = false;
} else {
trace("tobbyCommentMC is nothing then not DeleteMC");
}
}
function changeFace(n) {
if (this.waitNewPoiFlg) {
return(undefined);
}
this.tobbyBodyMC.gotoAndStop(n);
}
function reqestNewPoi(nCommentNum) {
var _local1 = this;
var _local2 = _root;
if (_local2.lastPoiCnt > 0) {
_local2.lastPoiCnt--;
if (nCommentNum == 1) {
var _local3 = "\u305D,\u306E,\u307D,\u3044,\u3067,\u3082,\u307E,\u3060,\u3059,\u304F,\u3048,\u308B,\u3051,\u3069\u3001,\n,\u3042,\u305F,\u3089,\u3057,\u3044,\u30DD,\u30A4,\u306B,\u3059,\u308B,\u304B,\u3044,?";
} else {
var _local3 = "\u3044,\u3044,\u3088\u3002,\u3082,\u3063,\u3066,\u3044,\u304D,\u306A,\u3088\u3002";
}
_local1.comment(_local3);
_local1.changeFace("poi");
_local2.lastPoiMC.gotoAndStop(5 - _local2.lastPoiCnt);
_local1.gotoAndPlay("reqNewPoi");
_local1.waitNewPoiFlg = true;
_local2.windowFlg = true;
} else {
var _local3 = "\u3082,\u3046\u3001,\u306E,\u3053,\u308A,\u306F,\u306A,\u3044,\u3088\u3002,\n,\u305D,\u308C,\u304C,\u3055,\u3044,\u3054,\u306E,\u30DD,\u30A4,\u3060,\u3088\u3002";
_local1.comment(_local3);
_local1.changeFace("sleep");
}
}
function reset() {
_root.windowFlg = false;
this.waitNewPoiFlg = false;
this.gotoAndStop("stay");
}
this.waitNewPoiFlg = false;
Symbol 265 MovieClip Frame 5
this.stop();
Symbol 265 MovieClip Frame 31
this.stop();
Symbol 265 MovieClip Frame 41
if (_root.commentAllDispFlg) {
} else {
this.gotoAndPlay(_currentframe - 1);
}
Instance of Symbol 264 MovieClip in Symbol 265 MovieClip Frame 42
//component parameters
onClipEvent (initialize) {
stayTime = 1000;
}
Symbol 265 MovieClip Frame 44
_root.lastPoiCnt++;
_root.lastPoiMC.gotoAndStop(5 - _root.lastPoiCnt);
this.waitNewPoiFlg = false;
_root.windowFlg = false;
this.changeFace("standard");
this.gotoAndPlay("stay");
Symbol 267 MovieClip Frame 1
this.stop();
this.onPress = function () {
var _local1 = _root;
if (_local1.windowFlg || (_local1.instDispFlg)) {
} else {
_local1.SE_down.start(0, 0);
_local1.tobbyMC.reqestNewPoi(2);
}
};
this.onRollOver = function () {
_root.SE_over.start(0, 0);
};
Symbol 270 MovieClip Frame 1
function aveBoids() {
var adx = 0;
var _local3 = 0;
var _local2 = _root.kingyoMCList.length;
i = 0;
while (i < _local2) {
var _local1 = _root.kingyoMCList[i];
adx = adx + _local1._x;
_local3 = _local3 + _local1._y;
i++;
}
adx = adx + 275;
_local3 = _local3 + 350;
_local2++;
this.px = adx / _local2;
this.py = _local3 / _local2;
}
this.px = 0;
this.py = 0;
this.pCnt = 0;
this._visible = false;
Symbol 270 MovieClip Frame 5
this.aveBoids();
this._x = this.px;
this._y = this.py;
this.pCnt++;
this.pCnt = this.pCnt % 10;
this.gotoAndPlay(_currentframe - 1);
Symbol 272 MovieClip Frame 1
this._visible = false;
Symbol 272 MovieClip Frame 3
this._x = _root._xmouse;
this._y = _root._ymouse;
if (this._x < (_root.limitLeft + 40)) {
this._x = _root.limitLeft + 40;
}
if (this._x > (_root.limitRight - 40)) {
this._x = _root.limitRight - 40;
}
if (this._y < _root.limitTop) {
this._y = _root.limitTop;
}
if (this._y > (_root.limitBottom - 70)) {
this._y = _root.limitBottom - 70;
}
this.gotoAndPlay(_currentframe - 1);
Symbol 273 Button
on (press) {
_root.SE_down.start(0, 0);
if (_root.instDispFlg) {
_root.instMC.removeMovieClip();
_root.instDispFlg = false;
return(undefined);
}
if (_root.windowFlg == false) {
_root.windowFlg = true;
var str = "\u30BF,\u30A4,\u30C8,\u30EB,\u304C,\u3081,\u3093,\u3078,\u3082,\u3069,\u308B,\u3088\u3002,\n,\u3044,\u3044,\u304B,\u3044,?";
_root.tobbyMC.changeFace("sleep");
_root.tobbyMC.comment(str, false, true);
_root.attachMovie("WindowRetrun", "windowReturnMC", _root.depthWIndow++);
_root.windowReturnMC._x = 80;
_root.windowReturnMC._y = 160;
}
}
on (rollOver) {
_root.SE_over.start(0, 0);
}
Symbol 274 Button
on (press) {
if (_root.windowFlg) {
return(undefined);
}
_root.SE_down.start(0, 0);
if (_root.instDispFlg) {
_root.instMC.removeMovieClip();
_root.instDispFlg = false;
} else {
_root.instDispFlg = true;
_root.attachMovie("instTxt", "instMC", _root.depthInst);
_root.instMC._x = 331;
_root.instMC._y = 251;
}
}
on (rollOver) {
_root.SE_over.start(0, 0);
}
Symbol 279 MovieClip Frame 1
function setHanbi(nx, ny) {
var _local1 = this;
i = 0;
while (i < 16) {
var _local3 = 22.5 * i;
var nvx = (Math.cos((_local3 * Math.PI) / 180) * 10);
var nvy = (Math.sin((_local3 * Math.PI) / 180) * 10);
var _local2 = (("ht" + String(_local1.hanabiNum)) + "_") + String(i);
_local1.attachMovie("hanabiTama", _local2, _local1.htdepth++);
_local1[_local2]._x = nx;
_local1[_local2]._y = ny;
_local1[_local2].vx = nvx;
_local1[_local2].vy = nvy;
_local1[_local2]._rotation = _local3 + 90;
i++;
}
i = 0;
while (i < 16) {
var _local3 = (22.5 * i) + 10;
var nvx = (Math.cos((_local3 * Math.PI) / 180) * 7);
var nvy = (Math.sin((_local3 * Math.PI) / 180) * 7);
var _local2 = (("ht2" + String(_local1.hanabiNum)) + "_") + String(i);
_local1.attachMovie("hanabiTama", _local2, _local1.htdepth++);
_local1[_local2]._x = nx;
_local1[_local2]._y = ny;
_local1[_local2].vx = nvx;
_local1[_local2].vy = nvy;
_local1[_local2]._rotation = _local3 + 90;
i++;
}
i = 0;
while (i < 16) {
var _local3 = (22.5 * i) + 20;
var nvx = (Math.cos((_local3 * Math.PI) / 180) * 4);
var nvy = (Math.sin((_local3 * Math.PI) / 180) * 4);
var _local2 = (("ht3" + String(_local1.hanabiNum)) + "_") + String(i);
_local1.attachMovie("hanabiTama", _local2, _local1.htdepth++);
_local1[_local2]._x = nx;
_local1[_local2]._y = ny;
_local1[_local2].vx = nvx;
_local1[_local2].vy = nvy;
_local1[_local2]._rotation = _local3 + 90;
i++;
}
_local1.hanabiNum++;
}
this.hanabiNum = 0;
this.SE_hanabi = new Sound(this);
this.SE_hanabi.attachSound("SE_hanabi");
this.stop();
Symbol 279 MovieClip Frame 2
_root.setMC.tobbyMC.changeFace("look");
this.setHanbi(0, 0);
this.SE_hanabi.start(0, 0);
Symbol 279 MovieClip Frame 10
this.setHanbi(100, 60);
this.SE_hanabi.start(0, 0);
Symbol 279 MovieClip Frame 20
this.setHanbi(-150, -10);
this.SE_hanabi.start(0, 0);
Instance of Symbol 264 MovieClip in Symbol 279 MovieClip Frame 62
//component parameters
onClipEvent (initialize) {
stayTime = 4000;
}
Symbol 279 MovieClip Frame 80
_root.play();
this.stop();
Symbol 282 Button
on (press) {
this.gotoAndPlay("title");
_root.SE_down.start(0, 0);
}
on (rollOver) {
_root.SE_over.start(0, 0);
}