Combined Code
button 6 {
on (release) {
this._quality = 'low';
}
}
button 10 {
on (release) {
this._quality = 'medium';
}
}
button 14 {
on (release) {
this._quality = 'high';
}
}
button 19 {
on (release) {
gotoAndPlay(10);
}
}
movieClip 25 {
frame 1 {
_global.LENS_NORMAL = 0;
_global.LENS_ANOTHER = 1;
this._visible = false;
_global.finder_width = 320;
_global.finder_height = 240;
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.targetHiddenList = new Array();
_global.targetTransparentList = new Array();
_global.missShotPointList = 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);
trace('[作å“å´]ã€€å†™çœŸé ˜åŸŸ (' + this.bunkachouMinX + ', ' + this.bunkachouMinY + ') - (' + this.bunkachouMaxX + ', ' + this.bunkachouMaxY + ')');
_root.LC_recv.connect('mesopota05_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('mesopota05_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 (snapX, snapY, snapScale, lensType) {
lensType = Math.floor(lensType);
trace('[LC.snap] lensType = ' + lensType);
var v13 = new Array();
var v12 = new Array();
var v6 = new Array();
var v14 = new Array();
var v15 = 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;
}
if (niceShotPointList[i].scoreType.toString() == 'all' || niceShotPointList[i].scoreType.toString() == 'normal_only' && lensType == LENS_NORMAL || niceShotPointList[i].scoreType.toString() == 'another_only' && lensType == LENS_ANOTHER) {
v13.push({'x': (v3.xMin + v3.xMax) / 2, 'y': (v3.yMin + v3.yMax) / 2, 'score': niceShotPointList[i].score, 'scale': v4, 'text': niceShotPointList[i].photoType});
} else {
trace('[NICE SHOT]対応ã—ãªã„é”法陣ã‚り。');
}
}
++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;
}
trace('[SpellList] 対応モード: ' + spellCardPointList[i].scoreType.toString() + ' ç¾åœ¨ã®æ’®å½±ãƒ¢ãƒ¼ãƒ‰: ' + lensType);
trace('[SpellList] LENS_ANOTHER: ' + LENS_ANOTHER);
trace('[SpellList] lensType==LENS_ANOTHER: ' + (lensType == LENS_ANOTHER));
if (spellCardPointList[i].scoreType.toString() == 'all' || spellCardPointList[i].scoreType.toString() == 'normal_only' && lensType == LENS_NORMAL || spellCardPointList[i].scoreType.toString() == 'another_only' && lensType == LENS_ANOTHER) {
v12.push({'x': (v3.xMin + v3.xMax) / 2, 'y': (v3.yMin + v3.yMax) / 2, 'text': spellCardPointList[i].spellName, 'score': spellCardPointList[i].score, 'scale': v4});
} else {
trace('[SPELL]対応ã—ãªã„é”法陣ã‚り。');
v6.push({'x': (v3.xMin + v3.xMax) / 2, 'y': (v3.yMin + v3.yMax) / 2, '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;
}
v6.push({'x': (v3.xMin + v3.xMax) / 2, 'y': (v3.yMin + v3.yMax) / 2, 'scale': v4});
}
++i;
}
i = 0;
while (i < _global.missShotPointList.length) {
if (missShotPointList[i] != null) {
v3 = missShotPointList[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;
}
v14.push({'x': (v3.xMin + v3.xMax) / 2, 'y': (v3.yMin + v3.yMax) / 2, 'scale': v4});
}
++i;
}
_root.capture(snapX, snapY, snapScale, lensType);
trace('[LocalConnection]bunkachoCalc: SPCount' + v13.length + ', ' + v12.length + ', ' + v6.length);
_root.LC_send.send('mesopota05_interface', 'receiveScorePoints', v13, v12, v6, v14);
};
_root.LC_recv.snapSuccess = function () {
trace('[content] snapSuccess');
trace('[' + _root.bmpSnap + '] BMP削除');
removeMovieClip(_root.bmpSnap);
};
_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('mesopota05_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('mesopota05_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('mesopota05_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]);
}
}
};
_root.capture = function (x, y, scale, lensType) {
trace('[content] capture');
var v4 = new flash.display.BitmapData(finder_width, finder_height, true, 11154244);
var v6 = new flash.geom.Matrix(scale, 0, 0, scale, x * -scale + finder_width / 2, y * -scale + finder_height / 2);
_root.createEmptyMovieClip('bmpSnap', _root.getNextHighestDepth());
if (lensType == LENS_NORMAL) {
v4.draw(_root, v6);
} else {
if (lensType == LENS_ANOTHER) {
var v3;
v3 = 0;
while (v3 < _global.targetHiddenList.length) {
_global.targetHiddenList[v3].target._visible = true;
++v3;
}
v3 = 0;
while (v3 < _global.targetTransparentList.length) {
_global.targetTransparentList[v3].target._visible = false;
++v3;
}
v4.draw(_root, v6);
v3 = 0;
while (v3 < _global.targetHiddenList.length) {
_global.targetHiddenList[v3].target._visible = false;
++v3;
}
v3 = 0;
while (v3 < _global.targetTransparentList.length) {
_global.targetTransparentList[v3].target._visible = true;
++v3;
}
}
}
trace('[' + _root.bmpSnap + '] BMP表示');
_root.bmpSnap.attachBitmap(v4, _root.bmpSnap.getNextHighestDepth(), 'auto', true);
_root.bmpSnap._visible = true;
_root.bmpSnap._x = x - finder_width / 2;
_root.bmpSnap._y = y - finder_height / 2;
};
}
}
instance of movieClip 25 {
onClipEvent (construct) {
bunkachouStartFrame = 3;
bunkachouEndFrame = 6890;
bunkachouMinX = 0;
bunkachouMaxX = 512;
bunkachouMinY = 47;
bunkachouMaxY = 337;
}
}
frame 2 {
stop();
}
movieClip 57 {
frame 1 {
_global.niceShotPointList.push(this);
this._visible = false;
trace('[NiceShot] ADDED (' + this.photoType + ': ' + this.score + ')');
asThis = this;
this.onUnload = function () {
var v3 = 0;
while (v3 < _global.niceShotPointList.length) {
if (_global.niceShotPointList[v3] == asThis) {
_global.niceShotPointList.splice(v3, 1);
trace('[NiceShot] REMOVED (' + this.photoType + ': ' + this.score + ')');
}
++v3;
}
};
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 3;
photoType = 'Prayer of Death';
scoreType = 'all';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 1.5;
photoType = 'Expectation Shot';
scoreType = 'all';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 3;
photoType = 'Genocide Cutter';
scoreType = 'all';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 2;
photoType = 'Title Shot';
scoreType = 'all';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 2;
photoType = 'Baquartett';
scoreType = 'all';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 4;
photoType = 'Astonishment Shot';
scoreType = 'all';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 1.5;
photoType = 'Nakayosi Shot';
scoreType = 'all';
}
}
movieClip 198 {
frame 1 {
_global.targetHiddenList.push(this);
this._visible = false;
trace('[TargetHidden] ADDED');
asThis = this;
asThis.target = _parent;
asThis.target._visible = false;
this.onUnload = function () {
var v2 = 0;
while (v2 < _global.targetHiddenList.length) {
if (_global.targetHiddenList[v2] == asThis) {
_global.targetHiddenList.splice(v2, 1);
trace('[TargetHidden] REMOVED');
}
++v2;
}
};
}
}
movieClip 199 {
instance of movieClip 198 {
onClipEvent (construct) {
note = '';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 5;
photoType = 'Sangetusei Shot';
scoreType = 'another_only';
}
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 1.5;
photoType = 'Sankaku Mokuba';
scoreType = 'all';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 2;
photoType = 'Tetunotume';
scoreType = 'all';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 2.5;
photoType = 'Lovely Shot';
scoreType = 'all';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 5;
photoType = 'Siboritate Shot';
scoreType = 'all';
}
}
movieClip 312 {
instance of movieClip 198 {
onClipEvent (construct) {
note = '';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 4;
photoType = 'Tabemonono Urami';
scoreType = 'another_only';
}
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 3;
photoType = 'Pale Wing';
scoreType = 'all';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 2;
photoType = 'Youkan Tenkochan';
scoreType = 'all';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 2;
photoType = 'Gag Ball';
scoreType = 'all';
}
}
movieClip 408 {
frame 1 {
_global.nearMissPointList.push(this);
this._visible = false;
trace('[NearMiss] ADDED');
asThis = this;
this.onUnload = function () {
var v2 = 0;
while (v2 < _global.nearMissPointList.length) {
if (_global.nearMissPointList[v2] == asThis) {
_global.nearMissPointList.splice(v2, 1);
trace('[NearMiss] REMOVED');
return undefined;
}
++v2;
}
};
}
}
instance of movieClip 408 {
onClipEvent (construct) {
note = '';
}
}
movieClip 412 {
frame 1 {
_global.spellCardPointList.push(this);
this._visible = false;
trace('[SpellCard] ADDED (' + this.spellName + ': ' + this.score + ')');
asThis = this;
this.onUnload = function () {
var v3 = 0;
while (v3 < _global.spellCardPointList.length) {
if (_global.spellCardPointList[v3] == asThis) {
_global.spellCardPointList.splice(v3, 1);
trace('[SpellCard] REMOVED (' + this.spellName + ': ' + this.score + ')');
}
++v3;
}
};
}
}
instance of movieClip 412 {
onClipEvent (construct) {
spellName = 'å¾…å—「天人やりãŸã„放題ã€';
score = 3;
scoreType = 'all';
}
}
instance of movieClip 408 {
onClipEvent (construct) {
note = '';
}
}
movieClip 429 {
instance of movieClip 198 {
onClipEvent (construct) {
note = '';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 8;
photoType = 'Nue Shot';
scoreType = 'another_only';
}
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 3;
photoType = 'Okogamasii Shot';
scoreType = 'all';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 3;
photoType = 'BoShoot';
scoreType = 'all';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 3;
photoType = 'Misogi';
scoreType = 'all';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 3;
photoType = 'Tanosii Suika Wari';
scoreType = 'all';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 3;
photoType = 'Nice Shot';
scoreType = 'all';
}
}
movieClip 876 {
instance of movieClip 198 {
onClipEvent (construct) {
note = '';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 5;
photoType = 'Yukarin Shot';
scoreType = 'another_only';
}
}
}
instance of movieClip 408 {
onClipEvent (construct) {
note = '';
}
}
instance of movieClip 412 {
onClipEvent (construct) {
spellName = '比較「大体åˆã£ã¦ã‚‹ã€';
score = 12;
scoreType = 'all';
}
}
instance of movieClip 408 {
onClipEvent (construct) {
note = '';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 2.5;
photoType = 'Jack Dempsey';
scoreType = 'all';
}
}
instance of movieClip 57 {
onClipEvent (construct) {
score = 3;
photoType = 'Sityousei';
scoreType = 'all';
}
}
instance of movieClip 408 {
onClipEvent (construct) {
note = '';
}
}
instance of movieClip 412 {
onClipEvent (construct) {
spellName = 'å¾…å—「闇夜ã«ç¾ã‚Œã‚‹ï¼”匹ã®å¦–怪ã€';
score = 5;
scoreType = 'all';
}
}
instance of movieClip 408 {
onClipEvent (construct) {
note = '';
}
}
frame 6900 {
stop();
}
button 1035 {
on (release) {
gotoAndPlay(10);
}
}