Frame 2
this.stop();
Frame 10
this.stop();
Frame 20
function randomInt(maxNum) {
var rndNum = (Math.random() * maxNum);
if (rndNum == 0) {
rndNum = 1;
} else {
rndNum = Math.ceil(rndNum);
}
return(rndNum);
}
this.debugMode = false;
this.KeyPlayFlg = false;
this.gotoAndPlay("gameInit");
Frame 30
this.gStageNum = 1;
this.gScore = 0;
this.gLastPlayer = 3;
this.kugiThisList = [];
this.playFlg = false;
this.gotoAndPlay("title");
Frame 40
Mouse.show();
this.stop();
Instance of Symbol 151 MovieClip in Frame 40
onClipEvent (keyDown) {
var Lastkey = key.getCode();
if (LastKey == 16) {
_root.KeyPlayFlg = !_root.KeyPlayFlg;
}
}
Instance of Symbol 154 MovieClip in Frame 40
/* no clip actions */
Frame 50
this.stop();
Instance of Symbol 183 MovieClip in Frame 50
onClipEvent (keyDown) {
this.play();
}
Frame 60
this.stop();
Instance of Symbol 42 MovieClip "numMainScoreMC" in Frame 69
onClipEvent (load) {
keta = 7;
disp0Flg = true;
numName = "number";
}
Instance of Symbol 221 MovieClip "craneMC" in Frame 69
onClipEvent (mouseDown) {
this.openArm();
}
onClipEvent (keyDown) {
if (_root.playFlg == true) {
var Lastkey = key.getCode();
if (LastKey == 16) {
_root.KeyPlayFlg = !_root.KeyPlayFlg;
}
if (LastKey == 32) {
this.openArm();
}
if (LastKey == 82) {
_root.stgMC.unloadMovie();
_root.gotoAndPlay("gameInit");
}
if (_root.debugMode == true) {
if (LastKey == 67) {
_root.dokanInCnt = _root.TargetDokanCnt;
this.init();
_root.tamaMC.init();
}
if (LastKey == 77) {
_root.missFlg = true;
}
}
}
}
Frame 70
function setNPC() {
trace("setNPC");
}
this.dokanList = [];
this.TargetDokanCnt = 0;
this.dokanInCnt = 0;
idName = "Win_stage";
this.attachMovie(idName, "WinStageMC", 10);
this.kugiThisList = [];
this.shikiriThisList = [];
this.shikiriTopThisList = [];
this.missFlg = false;
idName = "stg" + String(_root.gStageNum);
this.attachMovie(idName, "stgMC", 0);
this.playFlg = true;
this.startTime = getTimer();
var rList = [1, 2, 3, 4, 5];
this.presentList = [];
i = 0;
while (i < 5) {
s = randomInt(rList.length);
this.presentList.push(rList[s - 1]);
rList.splice(s - 1, 1);
i++;
}
this.tamaMC.presentMC.setPresent();
if (this.gStageNum == 9) {
this.tobbyMC._visible = false;
} else {
this.tobbyMC._visible = true;
}
this.stop();
Frame 80
if (this.dokanInCnt == this.TargetDokanCnt) {
_root.playFlg = false;
this.gotoAndPlay("clear");
} else if (this.missFlg == true) {
_root.playFlg = false;
this.gotoAndPlay("miss");
} else {
this.gotoAndPlay(_currentframe - 1);
}
Frame 90
idName = "Win_Miss";
this.attachMovie(idName, "WinMissMC", 10);
this.stop();
Frame 100
idName = "Win_stageclear";
this.attachMovie(idName, "WinClrMC", 10);
this.stop();
Frame 110
this.gStageNum++;
if (9 < this.gStageNum) {
this.stgMC.removeMovieClip();
this.gotoAndPlay("ending");
} else {
this.gotoAndPlay("gameIn");
}
Symbol 14 MovieClip Frame 1
_parent.stop();
this.startTime = getTimer();
Symbol 14 MovieClip Frame 3
if ((getTimer() - this.startTime) >= this.stayTime) {
_parent.play();
this.stop();
} else {
this.gotoAndPlay(_currentframe - 1);
}
Symbol 18 Button
on (release) {
this.continueFlg = true;
this.play();
}
Symbol 19 Button
on (release) {
this.continueFlg = false;
this.play();
}
Instance of Symbol 14 MovieClip in Symbol 24 MovieClip [Win_Miss] Frame 6
onClipEvent (load) {
stayTime = 1500;
}
Symbol 24 MovieClip [Win_Miss] Frame 12
_root.gLastPlayer--;
if (_root.gLastPlayer == 0) {
this.gotoAndPlay("gameover");
}
Symbol 24 MovieClip [Win_Miss] Frame 20
_root.missFlg = false;
_root.playFlg = true;
_root.gotoAndPlay("main");
this.removeMovieClip();
Instance of Symbol 14 MovieClip in Symbol 24 MovieClip [Win_Miss] Frame 26
onClipEvent (load) {
stayTime = 500;
}
Symbol 24 MovieClip [Win_Miss] Frame 30
_root.sankakuLoopMC._visible = false;
Instance of Symbol 14 MovieClip in Symbol 24 MovieClip [Win_Miss] Frame 35
onClipEvent (load) {
stayTime = 1500;
}
Instance of Symbol 14 MovieClip in Symbol 24 MovieClip [Win_Miss] Frame 43
onClipEvent (load) {
stayTime = 500;
}
Instance of Symbol 23 MovieClip "keySelecterMC" in Symbol 24 MovieClip [Win_Miss] Frame 49
onClipEvent (load) {
if (_root.KeyPlayFlg == false) {
this._visible = false;
}
_parent.continueFlg = true;
}
onClipEvent (keyDown) {
if (_root.KeyPlayFlg == true) {
var Lastkey = key.getCode();
if (LastKey == 37) {
this._x = 206;
_parent.continueFlg = true;
}
var Lastkey = key.getCode();
if (LastKey == 39) {
this._x = 330;
_parent.continueFlg = false;
}
if ((LastKey == 13) || (LastKey == 32)) {
_parent.play();
}
}
}
Symbol 24 MovieClip [Win_Miss] Frame 50
Mouse.show();
this.stop();
Symbol 24 MovieClip [Win_Miss] Frame 65
if (this.continueFlg == true) {
Mouse.hide();
_root.gLastPlayer = 3;
_root.gScore = 0;
_root.numMainScoreMC.dispNum(_root.gScore);
_root.gotoAndPlay("gameIn");
} else {
_root.stgMC.removeMovieClip();
_root.gotoAndPlay("gameInit");
}
this.removeMovieClip();
Symbol 41 MovieClip [number] Frame 1
this.stop();
Symbol 41 MovieClip [number] Frame 2
this.stop();
Symbol 41 MovieClip [number] Frame 3
this.stop();
Symbol 41 MovieClip [number] Frame 4
this.stop();
Symbol 41 MovieClip [number] Frame 5
this.stop();
Symbol 41 MovieClip [number] Frame 6
this.stop();
Symbol 41 MovieClip [number] Frame 7
this.stop();
Symbol 41 MovieClip [number] Frame 8
this.stop();
Symbol 41 MovieClip [number] Frame 9
this.stop();
Symbol 41 MovieClip [number] Frame 10
this.stop();
Symbol 42 MovieClip Frame 1
function dispNum(num) {
var t = num;
var d = 10;
i = 0;
while (i < this.keta) {
var k = ((t % d) / (d / 10));
eval ("this.n" + String(i + 1)).gotoAndStop(k + 1);
t = t - (t % d);
d = d * 10;
i++;
}
}
i = 0;
while (i < (this.keta - 1)) {
MCname = "n" + String(i + 2);
this.attachMovie("number", MCname, i + 2);
this[MCname]._x = -15 - (15 * i);
this[MCname]._y = 0;
i++;
}
Symbol 42 MovieClip Frame 5
this.gotoAndPlay(_currentframe - 1);
Symbol 46 MovieClip [Win_stageclear] Frame 2
this.SE01 = new Sound(this);
this.SE01.attachSound("SE_addscore");
this.SE02 = new Sound(this);
this.SE02.attachSound("SE_doram");
this.clearBonus = _root.gStageNum * 1000;
var cleartime = (getTimer() - _root.startTime);
this.timeBonus = 60000 - cleartime;
if (this.timeBonus < 0) {
this.timeBonus = 0;
}
this.timeBonus = 10000 + this.timebonus;
this.totalBonus = this.clearBonus + this.timeBonus;
this.totalgScore = _root.gScore + this.totalBonus;
Instance of Symbol 42 MovieClip "numClearMC" in Symbol 46 MovieClip [Win_stageclear] Frame 15
onClipEvent (load) {
keta = 6;
disp0Flg = true;
numName = "number";
}
Symbol 46 MovieClip [Win_stageclear] Frame 16
this.numClearMC.dispNum(this.clearBonus);
Instance of Symbol 42 MovieClip "numTimeMC" in Symbol 46 MovieClip [Win_stageclear] Frame 29
onClipEvent (load) {
keta = 6;
disp0Flg = true;
numName = "number";
}
Symbol 46 MovieClip [Win_stageclear] Frame 30
this.numTimeMC.dispNum(this.timeBonus);
Instance of Symbol 42 MovieClip "numTotalMC" in Symbol 46 MovieClip [Win_stageclear] Frame 45
onClipEvent (load) {
keta = 6;
disp0Flg = true;
numName = "number";
}
Instance of Symbol 42 MovieClip "numScoreMC" in Symbol 46 MovieClip [Win_stageclear] Frame 45
onClipEvent (load) {
keta = 7;
disp0Flg = true;
numName = "number";
}
Symbol 46 MovieClip [Win_stageclear] Frame 46
this.numTotalMC.dispNum(this.totalBonus);
Symbol 46 MovieClip [Win_stageclear] Frame 77
this.SE01.start(0, 100000);
this.skipFlg = true;
Symbol 46 MovieClip [Win_stageclear] Frame 79
if (0 < this.totalBonus) {
this.totalBonus = this.totalBonus - 1234;
if (this.totalBonus < 0) {
var hpts = (-this.totalBonus);
this.totalBonus = 0;
_root.gScore = _root.gScore + (1234 - hpts);
} else {
_root.gScore = _root.gScore + 1234;
}
this.numScoreMC.dispNum(_root.gScore);
_root.numMainScoreMC.dispNum(_root.gScore);
this.numTotalMC.dispNum(this.totalBonus);
this.gotoAndPlay(_currentframe - 1);
} else {
this.SE01.stop();
this.gotoAndPlay(_currentframe + 1);
_parent.gotoAndPlay("story");
}
Symbol 46 MovieClip [Win_stageclear] Frame 145
_root.play();
this.removeMovieClip();
this.stop();
Instance of Symbol 14 MovieClip in Symbol 51 MovieClip [Win_stage] Frame 9
onClipEvent (load) {
stayTime = 750;
}
Symbol 51 MovieClip [Win_stage] Frame 20
this.stop();
_root.play();
this.removeMovieClip();
Symbol 58 MovieClip Frame 30
this.gotoAndPlay(2);
Symbol 62 MovieClip Frame 1
if (this.dokanType == 1) {
_root.TargetDokanCnt++;
}
_root.dokanList.push(this.dokanNum);
Symbol 62 MovieClip Frame 2
if (this.dokanType == 0) {
this.gotoAndPlay("normal");
} else {
this.gotoAndPlay("target");
}
Symbol 62 MovieClip Frame 11
if (this.hitDummyMC.hitTest(_root.tamaMC.hitdummyMC) == true) {
_root.tamaMC.playSE("SE_long");
_root.tamaMC.end("fall");
_root.waruMC.res("okin");
_root.stgMC.jellyMC.res("okin");
}
this.gotoAndPlay(_currentframe - 1);
Symbol 62 MovieClip Frame 21
if (this.hitDummyMC.hitTest(_root.tamaMC.hitdummyMC) == true) {
_root.tamaMC.end("catchJ");
_root.dokanInCnt++;
this.gotoAndPlay("okin");
_root.waruMC.res("okin");
_root.stgMC.jellyMC.res("okin");
_root.tobbyMC.gotoAndStop("backUreP");
_root.craneMC.UrePEndOK();
} else {
this.gotoAndPlay(_currentframe - 1);
}
Symbol 62 MovieClip Frame 38
if (this.hitDummyMC.hitTest(_root.tamaMC.hitdummyMC) == true) {
_root.tamaMC.playSE("SE_long");
_root.tamaMC.end("fall");
_root.waruMC.res("okin");
_root.stgMC.jellyMC.res("okin");
this.gotoAndPlay(_currentframe + 1);
} else {
this.gotoAndPlay(_currentframe - 1);
}
Symbol 62 MovieClip Frame 49
this.gotoAndPlay("okstay");
Symbol 65 MovieClip Frame 1
_root.shikiriThisList.push(this);
this.stop();
Symbol 67 MovieClip Frame 1
_root.shikiriTopThisList.push(this);
this.stop();
Symbol 70 MovieClip Frame 1
_root.kugiThisList.push(this);
Symbol 70 MovieClip Frame 2
this.stop();
Symbol 70 MovieClip Frame 6
this.gotoAndStop(2);
Instance of Symbol 62 MovieClip in Symbol 72 MovieClip [stg9] Frame 1
onClipEvent (load) {
dokanNum = 4;
dokanType = 1;
}
Symbol 72 MovieClip [stg9] Frame 3
this.stop();
Symbol 82 MovieClip Frame 1
function setLoc() {
var n = _root.dokanList[_root.randomInt(_root.dokanList.length) - 1];
this._x = (49 + (n * 72)) + 20;
}
function entry() {
this.entryFlg = true;
this.setLoc();
this.gotoAndPlay("in");
}
function res() {
if (this.entryFlg == true) {
this.entryFlg = false;
this.gotoAndPlay("shit");
}
}
this.entryFlg = false;
Symbol 82 MovieClip Frame 5
this.stop();
Symbol 82 MovieClip Frame 31
if (this.hitTest(_root.tamaMC.hitdummyMC) == true) {
_root.tamaMC.end("catchJ");
_root.waruMC.res("okin");
_root.gLastPlayer++;
if (9 < _root.gLastPlayer) {
_root.gLastPlayer = 9;
}
this.gotoAndPlay("UreP");
} else {
this.gotoAndPlay(_currentframe - 1);
}
Symbol 82 MovieClip Frame 57
this.gotoAndPlay("out2");
Symbol 82 MovieClip Frame 99
_root.craneMC.UrePEndOK();
this.entryFlg = false;
this.stop();
Symbol 82 MovieClip Frame 110
this.stop();
Instance of Symbol 62 MovieClip in Symbol 83 MovieClip [stg8] Frame 1
onClipEvent (load) {
dokanNum = 2;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 83 MovieClip [stg8] Frame 1
onClipEvent (load) {
dokanNum = 0;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 83 MovieClip [stg8] Frame 1
onClipEvent (load) {
dokanNum = 6;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 83 MovieClip [stg8] Frame 1
onClipEvent (load) {
dokanNum = 4;
dokanType = 1;
}
Symbol 83 MovieClip [stg8] Frame 3
this.stop();
Instance of Symbol 62 MovieClip in Symbol 84 MovieClip [stg7] Frame 1
onClipEvent (load) {
dokanNum = 2;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 84 MovieClip [stg7] Frame 1
onClipEvent (load) {
dokanNum = 0;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 84 MovieClip [stg7] Frame 1
onClipEvent (load) {
dokanNum = 7;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 84 MovieClip [stg7] Frame 1
onClipEvent (load) {
dokanNum = 5;
dokanType = 1;
}
Symbol 84 MovieClip [stg7] Frame 3
this.stop();
Instance of Symbol 62 MovieClip in Symbol 85 MovieClip [stg6] Frame 1
onClipEvent (load) {
dokanNum = 2;
dokanType = 0;
}
Instance of Symbol 62 MovieClip in Symbol 85 MovieClip [stg6] Frame 1
onClipEvent (load) {
dokanNum = 1;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 85 MovieClip [stg6] Frame 1
onClipEvent (load) {
dokanNum = 6;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 85 MovieClip [stg6] Frame 1
onClipEvent (load) {
dokanNum = 5;
dokanType = 0;
}
Instance of Symbol 62 MovieClip in Symbol 85 MovieClip [stg6] Frame 1
onClipEvent (load) {
dokanNum = 3;
dokanType = 0;
}
Instance of Symbol 62 MovieClip in Symbol 85 MovieClip [stg6] Frame 1
onClipEvent (load) {
dokanNum = 4;
dokanType = 0;
}
Symbol 85 MovieClip [stg6] Frame 3
this.stop();
Instance of Symbol 62 MovieClip in Symbol 86 MovieClip [stg5] Frame 1
onClipEvent (load) {
dokanNum = 0;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 86 MovieClip [stg5] Frame 1
onClipEvent (load) {
dokanNum = 1;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 86 MovieClip [stg5] Frame 1
onClipEvent (load) {
dokanNum = 6;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 86 MovieClip [stg5] Frame 1
onClipEvent (load) {
dokanNum = 7;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 86 MovieClip [stg5] Frame 1
onClipEvent (load) {
dokanNum = 3;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 86 MovieClip [stg5] Frame 1
onClipEvent (load) {
dokanNum = 4;
dokanType = 1;
}
Symbol 86 MovieClip [stg5] Frame 3
this.stop();
Instance of Symbol 62 MovieClip in Symbol 87 MovieClip [stg4] Frame 1
onClipEvent (load) {
dokanNum = 0;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 87 MovieClip [stg4] Frame 1
onClipEvent (load) {
dokanNum = 7;
dokanType = 1;
}
Symbol 87 MovieClip [stg4] Frame 3
this.stop();
Instance of Symbol 62 MovieClip in Symbol 88 MovieClip [stg3] Frame 1
onClipEvent (load) {
dokanNum = 0;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 88 MovieClip [stg3] Frame 1
onClipEvent (load) {
dokanNum = 2;
dokanType = 0;
}
Instance of Symbol 62 MovieClip in Symbol 88 MovieClip [stg3] Frame 1
onClipEvent (load) {
dokanNum = 5;
dokanType = 0;
}
Instance of Symbol 62 MovieClip in Symbol 88 MovieClip [stg3] Frame 1
onClipEvent (load) {
dokanNum = 7;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 88 MovieClip [stg3] Frame 1
onClipEvent (load) {
dokanNum = 3;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 88 MovieClip [stg3] Frame 1
onClipEvent (load) {
dokanNum = 4;
dokanType = 1;
}
Symbol 88 MovieClip [stg3] Frame 3
this.stop();
Instance of Symbol 62 MovieClip in Symbol 89 MovieClip [stg2] Frame 1
onClipEvent (load) {
dokanNum = 1;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 89 MovieClip [stg2] Frame 1
onClipEvent (load) {
dokanNum = 2;
dokanType = 0;
}
Instance of Symbol 62 MovieClip in Symbol 89 MovieClip [stg2] Frame 1
onClipEvent (load) {
dokanNum = 5;
dokanType = 0;
}
Instance of Symbol 62 MovieClip in Symbol 89 MovieClip [stg2] Frame 1
onClipEvent (load) {
dokanNum = 6;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 89 MovieClip [stg2] Frame 1
onClipEvent (load) {
dokanNum = 3;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 89 MovieClip [stg2] Frame 1
onClipEvent (load) {
dokanNum = 4;
dokanType = 1;
}
Symbol 89 MovieClip [stg2] Frame 3
this.stop();
Instance of Symbol 62 MovieClip in Symbol 90 MovieClip [stg1] Frame 1
onClipEvent (load) {
dokanNum = 0;
dokanType = 0;
}
Instance of Symbol 62 MovieClip in Symbol 90 MovieClip [stg1] Frame 1
onClipEvent (load) {
dokanNum = 1;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 90 MovieClip [stg1] Frame 1
onClipEvent (load) {
dokanNum = 2;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 90 MovieClip [stg1] Frame 1
onClipEvent (load) {
dokanNum = 5;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 90 MovieClip [stg1] Frame 1
onClipEvent (load) {
dokanNum = 6;
dokanType = 1;
}
Instance of Symbol 62 MovieClip in Symbol 90 MovieClip [stg1] Frame 1
onClipEvent (load) {
dokanNum = 7;
dokanType = 0;
}
Instance of Symbol 67 MovieClip in Symbol 90 MovieClip [stg1] Frame 1
/* no clip actions */
Symbol 90 MovieClip [stg1] Frame 3
this.stop();
Symbol 95 MovieClip Frame 9
var versionNum = getVersion().slice(4, 5);
trace(versionNum);
if (Number(versionNum) >= 5) {
this.gotoAndPlay("ok");
} else {
this.gotoAndPlay("ng");
}
Symbol 95 MovieClip Frame 19
this.stop();
_parent.gotoAndPlay("loading");
Symbol 95 MovieClip Frame 25
this.stop();
Symbol 101 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 101 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 101 MovieClip Frame 5
this.bar._width = 300;
Symbol 101 MovieClip Frame 19
_root.gotoAndPlay("init");
Symbol 112 MovieClip Frame 1
this.stop();
Symbol 112 MovieClip Frame 10
this.stop();
Symbol 112 MovieClip Frame 20
this.stop();
Symbol 112 MovieClip Frame 30
this.stop();
Symbol 115 Button
on (release) {
play();
}
on (press) {
play();
}
Symbol 118 Button
on (release) {
_root.gotoAndPlay("inst");
}
Symbol 121 Button
on (press) {
_root.gStageNum = 1;
_root.gotoAndplay("gameIn");
}
Symbol 123 Button
on (press) {
_root.gStageNum = 2;
_root.gotoAndplay("gameIn");
}
Symbol 125 Button
on (press) {
_root.gStageNum = 3;
_root.gotoAndplay("gameIn");
}
Symbol 127 Button
on (press) {
_root.gStageNum = 4;
_root.gotoAndplay("gameIn");
}
Symbol 129 Button
on (press) {
_root.gStageNum = 5;
_root.gotoAndplay("gameIn");
}
Symbol 131 Button
on (press) {
_root.gStageNum = 6;
_root.gotoAndplay("gameIn");
}
Symbol 133 Button
on (press) {
_root.gStageNum = 7;
_root.gotoAndplay("gameIn");
}
Symbol 135 Button
on (press) {
_root.gStageNum = 8;
_root.gotoAndplay("gameIn");
}
Symbol 137 Button
on (press) {
_root.gotoAndplay("ending");
}
Symbol 139 Button
on (press) {
_root.gStageNum = 9;
_root.gotoAndplay("gameIn");
}
Symbol 140 MovieClip Frame 1
if (_root.debugMode == false) {
this._visible = false;
} else {
this._visible = true;
}
Symbol 140 MovieClip Frame 2
if (_root.debugMode == false) {
this._visible = false;
} else {
this._visible = true;
}
this.gotoAndPlay(_currentframe - 1);
Symbol 144 MovieClip Frame 1
this.stop();
Symbol 144 MovieClip Frame 11
this.stop();
Symbol 148 MovieClip Frame 1
if (this.mode == false) {
this.alphaRate = 0;
this.gotoAndPlay("out");
} else {
this.alphaRate = 100;
this.gotoAndPlay("in");
}
Symbol 148 MovieClip Frame 3
this.alphaRate = this.alphaRate - (100 / this.FadeFrm);
if (this.alphaRate < 0) {
this.alphaRate = 0;
this.gotoAndPlay(_currentframe + 1);
} else {
this.gotoAndPlay(_currentframe - 1);
}
this._alpha = this.alphaRate;
Symbol 148 MovieClip Frame 4
if (this.stayFlg == false) {
_parent.gotoAndPlay(this.jumpLabelName);
}
this.stop();
Symbol 148 MovieClip Frame 11
this.alphaRate = this.alphaRate + (100 / this.FadeFrm);
if (100 < this.alphaRate) {
this.alphaRate = 100;
this.gotoAndPlay(_currentframe + 1);
} else {
this.gotoAndPlay(_currentframe - 1);
}
this._alpha = this.alphaRate;
Symbol 148 MovieClip Frame 12
if (this.stayFlg == false) {
_parent.gotoAndPlay(this.jumpLabelName);
}
this.stop();
Instance of Symbol 148 MovieClip in Symbol 151 MovieClip Frame 1
onClipEvent (load) {
FadeFrm = 15;
mode = true;
stayFlg = false;
jumpLabelName = "disp";
}
Symbol 151 MovieClip Frame 5
this.stop();
Instance of Symbol 149 MovieClip in Symbol 151 MovieClip Frame 5
onClipEvent (load) {
this.selected = "start";
if (_root.KeyPlayFlg == false) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.KeyPlayFlg == false) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (keyDown) {
if (_root.KeyPlayFlg == true) {
var Lastkey = key.getCode();
if (LastKey == 38) {
this._x = -81;
this._y = 123;
this.selected = "start";
}
var Lastkey = key.getCode();
if (LastKey == 40) {
this._x = -106;
this._y = 168;
this.selected = "inst";
}
if ((LastKey == 13) || (LastKey == 32)) {
if (this.selected == "start") {
_parent.play();
} else {
_root.gotoAndPlay("inst");
}
}
}
}
Symbol 151 MovieClip Frame 6
this.stop();
Instance of Symbol 148 MovieClip in Symbol 151 MovieClip Frame 6
onClipEvent (load) {
FadeFrm = 15;
mode = false;
stayFlg = false;
jumpLabelName = "fin";
}
Symbol 151 MovieClip Frame 13
_root.gotoAndPlay("gameIn");
Symbol 158 Button
on (release) {
this.play();
}
Symbol 183 MovieClip Frame 1
this.stop();
Instance of Symbol 148 MovieClip in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
FadeFrm = 15;
mode = true;
stayFlg = false;
jumpLabelName = "disp";
}
Symbol 183 MovieClip Frame 6
this.stop();
Symbol 183 MovieClip Frame 10
this.stop();
Instance of Symbol 148 MovieClip in Symbol 183 MovieClip Frame 10
onClipEvent (load) {
FadeFrm = 15;
mode = false;
stayFlg = false;
jumpLabelName = "fin";
}
Symbol 183 MovieClip Frame 11
_root.gotoAndPlay("title");
Symbol 204 MovieClip Frame 1
this.stop();
Instance of Symbol 148 MovieClip in Symbol 204 MovieClip Frame 1
onClipEvent (load) {
FadeFrm = 30;
mode = true;
stayFlg = false;
jumpLabelName = "in";
}
Instance of Symbol 194 MovieClip in Symbol 204 MovieClip Frame 14
onClipEvent (enterFrame) {
if (this._x < 65) {
this._x = this._x + 4;
} else {
_parent.play();
}
}
Symbol 204 MovieClip Frame 19
this.stop();
Instance of Symbol 14 MovieClip in Symbol 204 MovieClip Frame 61
onClipEvent (load) {
stayTime = 1000;
}
Symbol 204 MovieClip Frame 75
this.stop();
Instance of Symbol 148 MovieClip in Symbol 204 MovieClip Frame 75
onClipEvent (load) {
FadeFrm = 30;
mode = false;
stayFlg = false;
jumpLabelName = "next";
}
Symbol 204 MovieClip Frame 77
this.stop();
Instance of Symbol 194 MovieClip in Symbol 204 MovieClip Frame 77
onClipEvent (enterFrame) {
this._x = this._x - 1;
}
Instance of Symbol 201 MovieClip in Symbol 204 MovieClip Frame 77
onClipEvent (enterFrame) {
this._x = this._x - 1;
}
Instance of Symbol 148 MovieClip in Symbol 204 MovieClip Frame 77
onClipEvent (load) {
FadeFrm = 30;
mode = true;
stayFlg = false;
jumpLabelName = "next2";
}
Instance of Symbol 14 MovieClip in Symbol 204 MovieClip Frame 141
onClipEvent (load) {
stayTime = 2000;
}
Symbol 204 MovieClip Frame 142
this.stop();
Instance of Symbol 148 MovieClip in Symbol 204 MovieClip Frame 142
onClipEvent (load) {
FadeFrm = 120;
mode = false;
stayFlg = false;
jumpLabelName = "fin";
}
Symbol 204 MovieClip Frame 143
_root.gotoAndPlay("init");
Symbol 216 MovieClip Frame 1
function setPresent() {
if (_root.gStageNum == 9) {
this.gotoAndStop(60);
} else {
preNum = _root.presentList[this.pCnt];
this.pCnt++;
if (this.pCnt >= _root.presentList.length) {
this.pCnt = 0;
}
this.gotoAndStop(preNum * 10);
if (preNum == 4) {
_root.stgMC.jellyMC.entry();
}
}
}
this.pCnt = 0;
Symbol 216 MovieClip Frame 10
this.stop();
Symbol 216 MovieClip Frame 19
this.stop();
Symbol 216 MovieClip Frame 29
this.stop();
Symbol 216 MovieClip Frame 39
this.stop();
Symbol 216 MovieClip Frame 49
this.stop();
Symbol 216 MovieClip Frame 60
this.stop();
Symbol 216 MovieClip Frame 62
this.stop();
Symbol 216 MovieClip Frame 67
this.stop();
Symbol 216 MovieClip Frame 70
this.stop();
Symbol 217 MovieClip Frame 2
function init() {
this.px = -80;
this.py = 114;
this.procNum = 1;
this.addx = 0;
this.addy = 0;
this.presentMC.setPresent();
this.craneResetFlg = false;
this.aRor = 0;
this.rotation = 0;
}
function main() {
if (this.procNum == 1) {
this.moveLR();
}
if (this.procNum == 2) {
this.fall();
}
if (this.procNum == 3) {
this.waitCraneReset();
}
if (this.procNum == 4) {
this.waru();
}
}
function entryFall(ndx) {
this.procNum = 2;
if (_root.gStageNum == 9) {
this.ady = 0;
this.adx = ndx;
this.presentMC.play();
} else {
this.ady = 0;
this.adx = ndx;
}
}
function moveLR() {
if (_root.gStageNum == 9) {
this.px = _parent.craneMC._x;
} else {
this.px = _parent.craneMC._x;
}
}
function fall() {
if (450 < this.py) {
this.playSE("SE_ng2");
_root.waruMC.res("miss");
_root.stgMC.jellyMC.res("miss");
_root.missFlg = true;
this.end("fall");
}
this.hitCheck();
if (this.px < 55) {
this.SE01.start(0, 0);
this.px = 55;
this.adx = -this.adx;
}
if (595 < this.px) {
this.SE01.start(0, 0);
this.px = 595;
this.adx = -this.adx;
}
this.aRor = this.aRor * 0.95;
this.rotation = this.rotation + this.aRor;
this.ady = this.ady + 0.5;
if (20 < this.ady) {
this.ady = 18;
}
if (18 < this.adx) {
this.adx = 18;
}
if (this.adx < -18) {
this.adx = -18;
}
this.px = this.px + this.adx;
this.py = this.py + this.ady;
}
function waitCraneReset() {
if (this.craneResetFlg == true) {
this.init();
}
}
function end(stat) {
this.py = -500;
this.px = 320;
_parent.craneMC.ballOutOK(stat);
this.procNum = 3;
}
function craneResetOK() {
this.craneResetFlg = true;
}
function hitCheck() {
i = 0;
while (i < _root.kugiThisList.length) {
if (this.hitdummyMC.hitTest(_root.kugiThisList[i]) == true) {
this.SE01.start(0, 0);
_root.kugiThisList[i].play();
var dx = (this._x - _root.kugiThisList[i]._x);
var dy = (this._y - _root.kugiThisList[i]._y);
var r = Math.atan2(dy, dx);
var k = (r / (Math.PI/180));
v = Math.sqrt((this.adx * this.adx) + (this.ady * this.ady)) * 0.75;
var ax = (Math.cos((k * Math.PI) / 180) + 0.2);
var ay = Math.sin((k * Math.PI) / 180);
this.adx = ax * v;
this.ady = ay * v;
this.px = this.px + (ax * 5);
this.py = this.py + (ay * 5);
if (0 < ax) {
if (ay < 0) {
this.aRor = this.aRor + 20;
} else {
this.aRor = this.aRor - 20;
}
} else if (ay < 0) {
this.aRor = this.aRor - 20;
} else {
this.aRor = this.aRor + 20;
}
return(undefined);
}
i++;
}
i = 0;
while (i < _root.shikiriTopThisList.length) {
if (this.hitdummyMC.hitTest(_root.shikiriTopThisList[i]) == true) {
this.playSE("SE_po");
var dx = (this._x - _root.shikiriTopThisList[i]._x);
var dy = (this._y - _root.shikiriTopThisList[i]._y);
var r = Math.atan2(dy, dx);
var k = (r / (Math.PI/180));
if ((-155 < k) && (k < -25)) {
v = Math.sqrt((this.adx * this.adx) + (this.ady * this.ady)) * 0.75;
var ax = Math.cos((k * Math.PI) / 180);
var ay = Math.sin((k * Math.PI) / 180);
this.adx = ax * v;
this.ady = ay * v;
this.px = this.px + (ax * 5);
this.py = this.py + (ay * 5);
if (0 < ax) {
if (ay < 0) {
this.aRor = this.aRor + 20;
} else {
this.aRor = this.aRor - 20;
}
} else if (ay < 0) {
this.aRor = this.aRor - 20;
} else {
this.aRor = this.aRor + 20;
}
return(undefined);
}
if (Math.abs(this.adx) < 4) {
this.adx = 0;
return(undefined);
}
this.aRor = -this.aRor;
if (0 < this.adx) {
this.px = _root.shikiriTopThisList[i]._x - 15;
} else {
this.px = _root.shikiriTopThisList[i]._x + 15;
}
this.adx = (-this.adx) * 0.8;
return(undefined);
}
i++;
}
i = 0;
while (i < _root.shikiriThisList.length) {
if (this.hitdummyMC.hitTest(_root.shikiriThisList[i]) == true) {
if (Math.abs(this.adx) < 4) {
this.adx = 0;
return(undefined);
}
this.aRor = -this.aRor;
this.playSE("SE_po");
if (0 < this.adx) {
this.px = _root.shikiriThisList[i]._x - 15;
} else {
this.px = _root.shikiriThisList[i]._x + 15;
}
this.adx = -this.adx;
return(undefined);
}
i++;
}
}
function waruGet() {
this.procNum = 4;
}
function waru() {
this.px = _root.waruMC.px;
this.py = _root.waruMC.py - 20;
}
function nageru(nax, nay) {
this.adx = nax;
this.ady = nay;
this.procNum = 2;
}
function playSE(seName) {
this.SEObj[seName].start(0, 0);
}
this.SE01 = new Sound(this);
this.SE01.attachSound("SE_po");
this.SE02 = new Sound(this);
this.SE02.attachSound("SE_long");
this.SE03 = new Sound(this);
this.SE03.attachSound("SE_ng2");
this.SEObj = {SE_po:this.SE01, SE_long:this.SE02, SE_ng2:this.SE03};
this.init();
Symbol 217 MovieClip Frame 4
this.main();
this._x = this.px;
this._y = this.py;
this._rotation = this.rotation;
this.gotoAndPlay(_currentframe - 1);
Symbol 221 MovieClip Frame 1
function init() {
this.craneStartX = 80;
this.speed = 2;
this.amp = 8.7;
this.angle = 270;
this.px = -50;
this.py = 44;
this.ballStat = "stay";
this.UrePEndflg = false;
this.procNum = 1;
this.adx = 0;
this.armMC.gotoAndPlay("close");
}
function main() {
if (this.procNum == 1) {
this.setCrane();
}
if (this.procNum == 2) {
this.moveLR();
}
if (this.procNum == 3) {
this.backCrane();
}
if (this.procNum == 4) {
this.waitBallOut();
}
if (this.procNum == 5) {
this.waitUreP();
}
}
function setCrane() {
if (_root.playFlg == true) {
var dx = ((this.craneStartX - this.px) / 5);
this.px = this.px + dx;
if (dx < 1) {
this.procNum = 2;
}
}
}
function moveLR() {
this.adx = Math.cos((this.Angle * Math.PI) / 180) * this.amp;
this.px = this.px + this.adx;
this.Angle = this.Angle + this.speed;
this.Angle = this.Angle % 360;
if (0 < this.adx) {
_parent.tobbyMC.gotoAndStop("foword");
} else {
_parent.tobbyMC.gotoAndStop("back");
}
}
function moveLR2() {
this.adx = (-(this.px - _root._xmouse)) / 5;
this.px = this.px + this.adx;
if (0 < this.adx) {
_parent.tobbyMC.gotoAndStop("foword");
} else {
_parent.tobbyMC.gotoAndStop("back");
}
}
function openArm() {
if (this.procNum == 2) {
this.armMC.gotoAndPlay("open");
_parent.tamaMC.entryFall(this.adx);
_parent.tobbyMC.gotoAndStop("back");
this.procNum = 3;
}
}
function backCrane() {
this.px = this.px + this.adx;
this.adx = this.adx - 0.25;
if (this.px < -50) {
this.px = -50;
this.procNum = 4;
}
}
function waitBallOut() {
if ((this.ballStat == "fall") || ((this.ballStat == "catchJ") || (this.ballStat == "catchW"))) {
if ((_root.getPresentCnt < 3) && ((this.ballStat == "catchJ") || (this.ballStat == "catchW"))) {
this.procNum = 5;
} else {
this.init();
_parent.tamaMC.craneResetOK();
}
}
}
function waitUreP() {
if (this.UrePEndflg == true) {
if (this.ballStat == "catchJ") {
}
this.init();
_parent.tamaMC.craneResetOK();
}
}
function UrePEndOK() {
this.UrePEndFlg = true;
}
function ballOutOK(stat) {
this.ballStat = stat;
}
this.init();
Symbol 221 MovieClip Frame 3
this.main();
this._x = this.px;
this._y = this.py;
this.gotoAndPlay(_currentframe - 1);
Symbol 235 MovieClip Frame 1
function main() {
if (this.procNum == 1) {
if ((_root.gStageNum == 3) || (_root.gStageNum == 5)) {
this.workLR2();
} else {
this.workLR();
}
this.hitCheck();
}
if (this.procNum == 2) {
this.workLR();
}
}
function workLR() {
if ((this.px < 50) || (590 < this.px)) {
this.adx = -this.adx;
this._xscale = -this._xscale;
}
this.px = this.px + this.adx;
}
function workLR2() {
this.adx = (_root.tamaMC._x - this.px) / 40;
if (0 < this.adx) {
this._xscale = 100;
} else {
this._xscale = -100;
}
this.px = this.px + this.adx;
}
function hitCheck() {
if (this.hitTest(_root.tamaMC.hitdummyMC) == true) {
_root.tamaMC.waruGet();
this.adx = 4;
if (_root.gStageNum == 9) {
_root.tamaMC.presentMC.gotoAndPlay("tobbymogaku");
_root.tamaMC.rotation = 0;
}
this.procNum = 2;
}
}
function res(r) {
if (this.procNum == 2) {
if (r == "miss") {
this.gotoAndPlay("UreP2");
}
if (r == "okin") {
this.gotoAndPlay("shit");
}
}
}
this.procNum = 1;
this.px = this._x;
this.py = this._y;
this.adx = 4;
Symbol 235 MovieClip Frame 5
if (_root.playFlg == true) {
this.loopAnmMC.play();
this.main();
} else {
this.loopAnmMC.stop();
}
this._x = this.px;
this._y = this.py;
if (this.procNum == 2) {
this.gotoAndPlay("UreP");
} else {
this.gotoAndPlay(_currentframe - 1);
}
Symbol 235 MovieClip Frame 39
this.walkCnt = 0;
if (this.px < 320) {
this.adx = Math.abs(this.adx);
this._xscale = 100;
} else {
this.adx = -Math.abs(this.adx);
this._xscale = -100;
}
Symbol 235 MovieClip Frame 41
if (this.walkCnt < 30) {
this.walkCnt++;
this.px = this.px + this.adx;
this._x = this.px;
this.gotoAndPlay(_currentframe - 1);
} else if (_root.randomInt(5) == 1) {
this.gotoAndPlay("korobu");
} else {
this.gotoAndPlay("nageru");
}
Symbol 235 MovieClip Frame 50
this.px = this.px + this.adx;
this._x = this.px;
Symbol 235 MovieClip Frame 51
this.px = this.px + this.adx;
this._x = this.px;
Symbol 235 MovieClip Frame 52
this.px = this.px + this.adx;
this._x = this.px;
var nax = (this.adx * 1.5);
var nay = -4;
if (_root.gStageNum == 9) {
_root.tamaMC.presentMC.gotoAndPlay("tobbyjump");
}
_root.tamaMC.nageru(nax, nay);
Symbol 235 MovieClip Frame 53
this.px = this.px + this.adx;
this._x = this.px;
Symbol 235 MovieClip Frame 54
this.px = this.px + this.adx;
this._x = this.px;
Symbol 235 MovieClip Frame 55
this.px = this.px + this.adx;
this._x = this.px;
Symbol 235 MovieClip Frame 56
this.px = this.px + (this.adx * 0.8);
this._x = this.px;
Symbol 235 MovieClip Frame 57
this.px = this.px + (this.adx * 0.6);
this._x = this.px;
Symbol 235 MovieClip Frame 58
this.px = this.px + (this.adx * 0.4);
this._x = this.px;
Symbol 235 MovieClip Frame 59
this.px = this.px + (this.adx * 0.2);
this._x = this.px;
Symbol 235 MovieClip Frame 63
this.gotoAndPlay("waitTamaRes");
Symbol 235 MovieClip Frame 68
var nax = this.adx;
var nay = -10;
if (_root.gStageNum == 9) {
_root.tamaMC.presentMC.gotoAndPlay("tobbyjump");
}
_root.tamaMC.nageru(nax, nay);
Symbol 235 MovieClip Frame 79
this.stop();
Symbol 235 MovieClip Frame 113
this.procNum = 1;
this.gotoAndPlay("loop");
Symbol 235 MovieClip Frame 137
this.procNum = 1;
this.gotoAndPlay("loop");