Combined Code
frame 1 {
play();
}
// unknown tag 88 length 107
button 6 {
on (release) {
this.nextFrame();
}
}
movieClip 10 {
frame 1 {
this._visible = false;
if (_root.initFlag != true) {
_root.initFlag = true;
_root.LC_recv = new LocalConnection();
_root.LC_send = new LocalConnection();
_global.spellCardPointList = new Array();
_global.niceShotPointList = new Array();
_global.nearMissPointList = new Array();
_global.partRoot = _root;
_global.asThis = {'bunkachouStartFrame': this.bunkachouStartFrame, 'bunkachouEndFrame': this.bunkachouEndFrame, 'bunkachouMinX': this.bunkachouMinX, 'bunkachouMaxX': this.bunkachouMaxX, 'bunkachouMinY': this.bunkachouMinY, 'bunkachouMaxY': this.bunkachouMaxY};
trace('[作å“å´] component ' + this.bunkachouStartFrame + ' - ' + this.bunkachouEndFrame);
_root.LC_recv.connect('mesopota03_mainContents');
this.stop();
_root.LC_recv.init = function () {
_root.LC_recv.playMovie = function (frame) {
trace('[LocalConnection]playMovie:' + frame);
_root.gotoAndPlay(frame);
};
_root.LC_recv.playBunkachoMovie = function () {
trace('文花帖モードEF始動');
_root.onEnterFrame = function () {
if (_root._currentframe >= asThis.bunkachouEndFrame) {
trace('文花帖モードEF終了');
_root.stop();
_root.onEnterFrame = null;
_root.LC_send.send('mesopota03_interface', 'movieEnd');
}
};
trace('[LocalConnection]playBunkachoMovie:' + asThis.bunkachouStartFrame);
_root.gotoAndPlay(asThis.bunkachouStartFrame);
};
_root.LC_recv.stopMovie = function () {
trace('[LocalConnection]stopMovie:');
_root.stop();
};
_root.LC_recv.snap = function () {
var v12 = new Array();
var v11 = new Array();
var v10 = new Array();
var v3 = new Object();
var v4 = 1;
i = 0;
while (i < _global.niceShotPointList.length) {
if (niceShotPointList[i] != null) {
v3 = niceShotPointList[i].getBounds(_root);
if (v3.xMax - v3.xMin > v3.yMax - v3.yMin) {
v4 = (v3.yMax - v3.yMin) / 58.8;
} else {
v4 = (v3.xMax - v3.xMin) / 58.8;
}
v12.push({'x': (v3.xMin + v3.xMax) / 2, 'y': (v3.yMin + v3.yMax) / 2, 'score': niceShotPointList[i].score, 'scale': v4, 'text': niceShotPointList[i].photoType});
}
++i;
}
i = 0;
while (i < _global.spellCardPointList.length) {
if (spellCardPointList[i] != null) {
v3 = spellCardPointList[i].getBounds(_root);
if (v3.xMax - v3.xMin > v3.yMax - v3.yMin) {
v4 = (v3.yMax - v3.yMin) / 58.8;
} else {
v4 = (v3.xMax - v3.xMin) / 58.8;
}
v11.push({'x': (v3.xMin + v3.xMax) / 2, 'y': (v3.yMin + v3.yMax) / 2, 'text': spellCardPointList[i].spellName, 'score': spellCardPointList[i].score, 'scale': v4});
}
++i;
}
i = 0;
while (i < _global.nearMissPointList.length) {
if (nearMissPointList[i] != null) {
v3 = nearMissPointList[i].getBounds(_root);
if (v3.xMax - v3.xMin > v3.yMax - v3.yMin) {
v4 = (v3.yMax - v3.yMin) / 58.8;
} else {
v4 = (v3.xMax - v3.xMin) / 58.8;
}
v10.push({'x': (v3.xMin + v3.xMax) / 2, 'y': (v3.yMin + v3.yMax) / 2, 'scale': v4});
}
++i;
}
trace('[LocalConnection]bunkachoCalc: SPCount' + v12.length + ', ' + v11.length + ', ' + v10.length);
_root.LC_send.send('mesopota03_interface', 'receiveScorePoints', v12, v11, v10);
};
_root.LC_recv.disconnectFlash = function () {
trace('[LocalConnection]disconnectFlash:');
_root.LC_recv.close();
stopAllSounds();
_root.stop();
};
var initEFCount = 0;
trace('INIT返信EF始動');
_root.onEnterFrame = function () {
trace('[作å“å´] send (receiveInitReply)' + asThis.bunkachouStartFrame + ' - ' + asThis.bunkachouEndFrame);
_root.LC_send.send('mesopota03_interface', 'receiveInitReply', {'bunkachouStartFrame': asThis.bunkachouStartFrame, 'bunkachouEndFrame': asThis.bunkachouEndFrame, 'bunkachouMinX': asThis.bunkachouMinX, 'bunkachouMaxX': asThis.bunkachouMaxX, 'bunkachouMinY': asThis.bunkachouMinY, 'bunkachouMaxY': asThis.bunkachouMaxY});
++initEFCount;
if (initEFCount > 150) {
initEFCount = 0;
trace('INIT返信EF終了(send失敗)');
trace('通常å†ç”Ÿ 最終フレーム検知EF始動');
_root.onEnterFrame = function () {
if (_root._currentframe >= asThis.bunkachouEndFrame) {
_root.LC_send.send('mesopota03_interface', 'movieEnd');
trace('通常å†ç”Ÿ 最終フレーム検知EF終了');
_root.onEnterFrame = null;
}
};
trace('SWFå´ã€€é€ä¿¡å¤±æ•—');
}
};
_root.LC_send.onStatus = function (infoObject) {
switch (infoObject.level) {
case 'status':
trace('INIT返信EF終了(sendæˆåŠŸ)');
_root.onEnterFrame = null;
trace('通常å†ç”Ÿ 最終フレーム検知EF始動');
_root.onEnterFrame = function () {
if (_root._currentframe >= asThis.bunkachouEndFrame) {
_root.LC_send.send('mesopota03_interface', 'movieEnd');
trace('通常å†ç”Ÿ 最終フレーム検知EF終了');
_root.onEnterFrame = null;
}
};
_root.LC_send.onStatus = null;
break;
case 'error':
}
};
trace('[作å“å´] init完了');
};
_root.LC_recv.playMovie = function (frame) {};
_root.LC_recv.stopMovie = function () {};
_root.LC_recv.playBunkachoMovie = function (frame, endFrame) {};
_root.LC_recv.bunkachoCalcNiceShot = function (rx, ry, rw, rh) {};
_root.LC_recv.disconnectFlash = function () {};
_root.onUnload = function () {
trace('[UNLOAD]');
_root.stop();
_root.stopAllSounds();
_root.LC_recv.close();
};
} else {}
_root.stopAllClip = function (mc) {
for (i in mc) {
if (mc[i] instanceof MovieClip) {
trace('(stop) ' + mc.toString);
mc[i].stop();
stopAllClip(mc[i]);
}
}
};
}
}
instance of movieClip 10 {
onClipEvent (construct) {
bunkachouStartFrame = 21;
bunkachouEndFrame = 5980;
bunkachouMinX = 0;
bunkachouMaxX = 512;
bunkachouMinY = 48;
bunkachouMaxY = 288;
}
}
frame 10 {
stop();
onRelease;
}
frame 11 {
play();
}
frame 21 {
play();
}
movieClip 13 {
}
movieClip 15 {
}
movieClip 18 {
}
movieClip 20 {
}
movieClip 23 {
}
movieClip 24 {
}
movieClip 36 {
}
movieClip 38 {
}
movieClip 42 {
}
movieClip 44 {
}
// unknown tag 88 length 107
movieClip 48 {
}
movieClip 50 {
}
movieClip 52 {
}
movieClip 78 {
frame 1 {
_global.niceShotPointList.push(this);
this._visible = false;
trace('[NiceShot] ADDED');
asThis = this;
this.onUnload = function () {
var v2 = 0;
while (v2 < _global.niceShotPointList.length) {
if (_global.niceShotPointList[v2] == asThis) {
_global.niceShotPointList.splice(v2, 1);
}
++v2;
}
trace('[NiceShot] REMOVED');
};
}
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 1.5;
photoType = 'Face Shot';
}
}
movieClip 127 {
}
movieClip 130 {
}
movieClip 131 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 1.5;
photoType = 'Face Shot';
}
}
movieClip 134 {
}
movieClip 136 {
}
movieClip 143 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 1.5;
photoType = 'Face Shot';
}
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 1.5;
photoType = 'Nice Shot';
}
}
movieClip 158 {
}
movieClip 188 {
}
movieClip 193 {
}
movieClip 202 {
}
movieClip 207 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 1.5;
photoType = 'Face Shot';
}
}
movieClip 210 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 1.5;
photoType = 'Face Shot';
}
}
movieClip 279 {
}
movieClip 308 {
}
movieClip 314 {
}
movieClip 340 {
}
movieClip 346 {
}
movieClip 353 {
}
movieClip 358 {
}
movieClip 420 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 2;
photoType = 'Nice Shot';
}
}
movieClip 423 {
}
movieClip 425 {
}
movieClip 427 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 2;
photoType = 'Nice Shot';
}
}
movieClip 429 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 1.5;
photoType = 'Face Shot';
}
}
movieClip 432 {
}
movieClip 436 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 2;
photoType = 'Face Shot';
}
}
movieClip 439 {
}
movieClip 461 {
}
movieClip 463 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 2;
photoType = 'Nice Shot';
}
}
movieClip 477 {
}
movieClip 480 {
}
movieClip 483 {
}
movieClip 487 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 2;
photoType = 'Face Shot';
}
}
movieClip 492 {
}
movieClip 536 {
}
movieClip 541 {
}
movieClip 544 {
}
movieClip 551 {
}
movieClip 553 {
}
movieClip 556 {
}
movieClip 560 {
}
movieClip 562 {
}
movieClip 565 {
}
movieClip 567 {
}
movieClip 569 {
}
movieClip 581 {
}
movieClip 583 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 2;
photoType = 'Nice Shot';
}
}
movieClip 586 {
}
movieClip 589 {
}
movieClip 591 {
}
movieClip 593 {
}
movieClip 601 {
}
movieClip 603 {
}
movieClip 605 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 1.5;
photoType = 'Face Shot';
}
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 1.5;
photoType = 'Face Shot';
}
}
movieClip 607 {
}
movieClip 634 {
}
movieClip 636 {
}
movieClip 655 {
frame 42 {
stop();
}
}
movieClip 666 {
frame 42 {
stop();
}
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 2;
photoType = 'Nice Shot';
}
}
movieClip 675 {
}
movieClip 677 {
}
movieClip 679 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 1.5;
photoType = 'Face Shot';
}
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 2;
photoType = 'Face Shot';
}
}
movieClip 686 {
}
movieClip 688 {
}
movieClip 690 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 1.5;
photoType = 'Face Shot';
}
}
movieClip 702 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 2;
photoType = 'Nice Shot';
}
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 2;
photoType = 'Nice Shot';
}
}
movieClip 710 {
}
movieClip 714 {
}
movieClip 719 {
frame 22 {
stop();
}
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 3;
photoType = 'Nice Shot';
}
}
movieClip 731 {
}
movieClip 734 {
}
movieClip 737 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 2;
photoType = 'Face Shot';
}
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 3;
photoType = 'Nice Shot';
}
}
movieClip 739 {
}
movieClip 741 {
}
movieClip 743 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 3;
photoType = 'Nice Shot';
}
}
movieClip 793 {
}
movieClip 803 {
}
movieClip 814 {
}
movieClip 816 {
}
movieClip 818 {
}
movieClip 820 {
}
movieClip 822 {
}
movieClip 825 {
}
movieClip 827 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 2;
photoType = 'Nice Shot';
}
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 2;
photoType = 'Spell Shot';
}
}
movieClip 846 {
}
movieClip 849 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 2;
photoType = 'Spell Shot';
}
}
movieClip 858 {
}
movieClip 871 {
}
movieClip 873 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 2;
photoType = 'Nice Shot';
}
}
movieClip 875 {
}
movieClip 877 {
}
instance of movieClip 78 {
onClipEvent (construct) {
score = 5;
photoType = 'Nice Shot';
}
}
movieClip 880 {
}
movieClip 882 {
}
movieClip 886 {
}
movieClip 888 {
}
movieClip 908 {
}
movieClip 922 {
}
movieClip 924 {
}
movieClip 926 {
}
movieClip 928 {
}
movieClip 930 {
}
movieClip 932 {
}
movieClip 933 {
}
movieClip 935 {
}
movieClip 937 {
}
movieClip 939 {
}
movieClip 941 {
}
movieClip 943 {
}
movieClip 945 {
}
movieClip 947 {
}
movieClip 948 {
}
movieClip 954 {
}
movieClip 956 {
}
movieClip 958 {
}
movieClip 960 {
}
movieClip 962 {
}
movieClip 964 {
}
movieClip 967 {
}
button 972 {
on (release) {
this.nextFrame();
}
}
frame 5990 {
stop();
}
frame 5991 {
play();
}
frame 6000 {
this.gotoAndPlay('start');
}