Frame 1
this.play();
Frame 2
this.stop();
Frame 5
this.gotoAndStop(_currentframe - 2);
Frame 6
this.gotoAndStop(_currentframe - 3);
Frame 10
this.gotoAndStop(_currentframe + 3);
Frame 12
function SoundStop() {
trace("\u30B5\u30A6\u30F3\u30C9\u5168\u505C\u6B62");
theSound.stop();
}
function ChangeVol(vol) {
if (vol == "g") {
return(theSound.getVolume());
}
so.data.volume = vol;
theSound.setVolume(vol);
}
function AllRemove() {
trace("\n_root\u30A2\u30A4\u30C6\u30E0\u5168\u6D88\u53BB\u5B9F\u884C\n");
_root.SoundStop();
var i;
i = 0;
while (i < 1000) {
_root.attachMovie("removeItem", "removeItem", i);
i++;
}
_root.onEnterFrame = null;
}
_global.cgiAd = "http://cgi35.plala.or.jp/nextfram/ss2/ssTimeAttack101.cgi";
so = SharedObject.getLocal("myCas");
if (so.data.effectLv != null) {
trace("\u30ED\u30FC\u30AB\u30EB\u304B\u3089\u3001\u30A8\u30D5\u30A7\u30AF\u30C8L\uFF56\u3092\u30ED\u30FC\u30C9\u3057\u307E\u3057\u305F");
_global.effectLv = so.data.effectLv;
} else {
_global.effectLv = 1;
}
_global.enemyLv = 2;
if (so.data.quality != null) {
trace("\u30ED\u30FC\u30AB\u30EB\u304B\u3089\u3001\u753B\u8CEA\u3092\u30ED\u30FC\u30C9\u3057\u307E\u3057\u305F");
_quality = so.data.quality;
} else if (_quality == "HIGH") {
_quality = "MEDIUM";
}
if (so.data.keyModeChangeWepon != null) {
trace("\u30ED\u30FC\u30AB\u30EB\u304B\u3089\u3001\u6B66\u88C5\u5909\u66F4\u30E2\u30FC\u30C9\u3092\u30ED\u30FC\u30C9\u3057\u307E\u3057\u305F keyMode=" + so.data.keyModeChangeWepon);
_global.keyModeWeponChange = _root.so.data.keyModeChangeWepon;
} else {
_global.keyModeChangeWepon = 0;
}
if (so.data.keyModeCon != null) {
trace("\u30ED\u30FC\u30AB\u30EB\u304B\u3089\u3001\u6A5F\u4F53\u64CD\u4F5C\u30E2\u30FC\u30C9\u3092\u30ED\u30FC\u30C9\u3057\u307E\u3057\u305F keyMode=" + so.data.keyModeCon);
_global.keyModeCon = _root.so.data.keyModeCon;
} else {
_global.keyModeCon = 0;
}
if (so.data.keyCas != null) {
trace("\u30ED\u30FC\u30AB\u30EB\u304B\u3089\u3001\u30AD\u30FC\u8A2D\u5B9A\u3092\u30ED\u30FC\u30C9\u3057\u307E\u3057\u305F");
_global.keyCas = new Array();
i = 0;
while (i < so.data.keyCas.length) {
trace("\u30ED\u30FC\u30AB\u30EB\u304B\u3089\u30C7\u30FC\u30BF\u53D6\u5F97");
_global.keyCas[i] = so.data.keyCas[i];
i++;
}
} else {
_global.keyCas = new Array();
_global.keyCas = [0, 32, 83, 68, 69, 90, 65, 67, 70, 0, 0, 49, 50, 51];
}
theSound = new Sound();
if (so.data.volume != null) {
trace("\u30ED\u30FC\u30AB\u30EB\u304B\u3089\u3001\u30DC\u30EA\u30E5\u30FC\u30E0\u8A2D\u5B9A\u3092\u30ED\u30FC\u30C9\u3057\u307E\u3057\u305F");
theSound.setVolume(so.data.volume);
} else {
theSound.setVolume(70);
}
_global.nextStage = null;
_global.shotDmg = null;
_global.braidDmg = null;
_global.extDmg = null;
_global.parDmg = null;
_global.keyDef = new Array();
_global.keyDef = [0, 32, 83, 68, 69, 90, 65, 67, 0, 0, 0, 49, 50, 51];
charData1 = new Array();
charData1 = ["laphis_prototype", "\u30E9\u30D4\u30B9\u30FB\u30D7\u30ED\u30C8\u30BF\u30A4\u30D7", "\u30E9\u30D4\u30B9\u30D5\u30EC\u30FC\u30E0\u306E\u5148\u884C\u91CF\u7523\u578B\u3002\n\u904B\u52D5\u6027\u3001\u706B\u529B\u3001\u88C5\u7532\u306E\u5168\u3066\u3092\u6E80\u305F\u3059\u5F37\u529B\u306A\u6A5F\u4F53\u3067\u3001\u3042\u3089\u3086\u308B\u8DDD\u96E2\u3067\u6226\u95D8\u3092\u884C\u3046\u4E8B\u304C\u53EF\u80FD\u306A\u4E07\u80FD\u6A5F\u3002\u307E\u305F\u5909\u5F62\u6A5F\u69CB\u3092\u6301\u3061\u9AD8\u901F\u79FB\u52D5\u304C\u53EF\u80FD\u3002", 3, 4, 5, 6, 3800, 0, 45, 230, 160, 30, 8.5, 5.5, 2, 0.1, 0.05, 0.8, 0.01, 350, 1.5, 0, 0, 0, 300, 1000, 1500, 1500, 1000, 0, 1000, 250, 0, 200, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1];
charData2 = new Array();
charData2 = ["laphis", "\u30E9\u30D4\u30B9", "\u30E9\u30D4\u30B9\u30D5\u30EC\u30FC\u30E0\u306E\u91CF\u7523\u578B\u3067\u3001\u6226\u95D8\u6027\u80FD\u7684\u306B\u306F\u5B8C\u5168\u306B\u30D0\u30E9\u30F3\u30B9\u306E\u53D6\u308C\u305F\u4E07\u80FD\u6A5F\u3002\n\u5909\u5F62\u6A5F\u69CB\u3092\u6301\u3061\u9AD8\u901F\u79FB\u52D5\u304C\u53EF\u80FD\u3060\u304C\u3001\u91CF\u7523\u306B\u3042\u305F\u308A\u5909\u5F62\u6642\u306E\u653B\u6483\u529B\u304C\u5F37\u5316\u3055\u308C\u3066\u3044\u308B\u3002", 3, 4, 5, 6, 4000, 0, 55, 200, 150, 30, 10, 5.5, 2, 0.1, 0.05, 0.8, 0.01, 300, 1.5, 0, 0, 0, 300, 1000, 1500, 1500, 1000, 0, 1000, 250, 0, 200, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1];
charData3 = new Array();
charData3 = ["laphis_prototype", "\u30EC\u30C3\u30C9\u30D9\u30EA\u30EB", "\u5927\u578B\u8266\u306E\u6483\u7834\u3084\u3001\u706B\u529B\u652F\u63F4\u3092\u76EE\u7684\u306B\u958B\u767A\u3055\u308C\u305F\u91CD\u706B\u529B\u30D5\u30EC\u30FC\u30E0\u3002\n\u88C5\u7532\u3082\u539A\u304F\u3001\u751F\u534A\u306A\u653B\u6483\u3067\u306F\u6483\u7834\u3059\u308B\u3053\u3068\u3082\u96E3\u3057\u3044\u3002\u3057\u304B\u3057\u904B\u52D5\u6027\u304C\u4F4E\u3044\u305F\u3081\u3001\u8D85\u6A5F\u52D5\u6226\u95D8\u3067\u306F\u4E0D\u5229\u306B\u306A\u308B\u3002", 3, 4, 5, 6, 4400, 0, 60, 230, 130, 30, 8.5, 4.5, 2, 0.1, 0.05, 0.8, 0.01, 230, 1.5, 0, 0, 0, 200, 0, 1000, 1000, 1200, 0, 0, 150, 100, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1];
charData4 = new Array();
charData4 = ["ZeroType32Custom", "\u96F6\u5F0F32\u578B\u30FB\u6539", "\u65E7\u4E16\u4EE3\u578B\u306E\u30D5\u30EC\u30FC\u30E0\u3067\u3042\u308B\u96F6\u5F0F32\u578B\u306B\u6539\u9020\u3092\u52A0\u3048\u305F\u7279\u6B8A\u30D5\u30EC\u30FC\u30E0\u3002\n\u904B\u52D5\u6027\u3068\u8FD1\u63A5\u6226\u95D8\u80FD\u529B\u306B\u512A\u308C\u308B\u304C\u3001\u9632\u5FA1\u529B\u304C\u4F4E\u304F\u5C04\u6483\u6B66\u5668\u304C\u8CA7\u5F31\u306A\u305F\u3081\u3001\u9060\u8DDD\u96E2\u6226\u95D8\u3068\u6301\u4E45\u6226\u95D8\u3067\u306F\u4E0D\u5229\u3067\u3042\u308B\u3002", 3, 4, 5, 6, 3000, 0, 25, 0, 150, 0, 0, 6.5, 0, 0, 0, 0.8, 0.01, 360, 1.45, 0, 0, 0, 150, 700, 1800, 2500, 500, 0, 0, 500, 200, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1];
this.AllRemove();
this.stop();
Frame 15
this.gotoAndStop(_currentframe - 2);
Frame 16
this.gotoAndStop(_currentframe - 3);
Frame 20
this.gotoAndStop(_currentframe + 3);
Instance of Symbol 783 MovieClip in Frame 20
//component parameters
onClipEvent (initialize) {
moveX = "null";
maxX = "null";
minX = "null";
moveY = 1;
maxY = 490;
minY = -10;
}
Instance of Symbol 783 MovieClip in Frame 20
//component parameters
onClipEvent (initialize) {
moveX = "null";
maxX = "null";
minX = "null";
moveY = 0.5;
maxY = 490;
minY = -10;
}
Instance of Symbol 783 MovieClip in Frame 20
//component parameters
onClipEvent (initialize) {
moveX = 0.5;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
Instance of Symbol 783 MovieClip in Frame 20
//component parameters
onClipEvent (initialize) {
moveX = 1;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
Instance of Symbol 783 MovieClip in Frame 20
//component parameters
onClipEvent (initialize) {
moveX = 0.3;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
Instance of Symbol 783 MovieClip in Frame 20
//component parameters
onClipEvent (initialize) {
moveX = "null";
maxX = "null";
minX = "null";
moveY = 0.3;
maxY = 490;
minY = -10;
}
Instance of Symbol 783 MovieClip in Frame 20
//component parameters
onClipEvent (initialize) {
moveX = "null";
maxX = "null";
minX = "null";
moveY = 0.5;
maxY = 490;
minY = -10;
}
Instance of Symbol 783 MovieClip in Frame 20
//component parameters
onClipEvent (initialize) {
moveX = 0.5;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
Frame 22
function SetMainChar() {
trace("\u4E3B\u4EBA\u516C\u306E\u8A2D\u7F6E\u5B9F\u884C \u540D\u524D\u306F" + _global.mainCharName);
_root.attachMovie(_global.mainCharName, "mainChar", 1);
_root.mainChar._x = 420;
_root.mainChar._y = 300;
if (_global.mainCharName == "A_SET_Char4db") {
_root.mainChar._xscale = (_root.mainChar._yscale = 30);
} else {
_root.mainChar._xscale = (_root.mainChar._yscale = 25);
}
_root.gotoAndStop(_global.firstStage);
}
this.SoundStop();
this.AllRemove();
this.stop();
Frame 25
this.gotoAndStop(_currentframe - 2);
Frame 26
this.gotoAndStop(_currentframe - 3);
Frame 30
this.gotoAndStop(_currentframe + 3);
Instance of Symbol 1001 MovieClip in Frame 30
//component parameters
onClipEvent (initialize) {
moveExt = 2;
}
Instance of Symbol 1003 MovieClip in Frame 30
//component parameters
onClipEvent (initialize) {
moveExt = 2;
}
Instance of Symbol 1001 MovieClip in Frame 30
//component parameters
onClipEvent (initialize) {
moveExt = 2;
}
Instance of Symbol 1003 MovieClip in Frame 30
//component parameters
onClipEvent (initialize) {
moveExt = 2;
}
Instance of Symbol 1001 MovieClip in Frame 30
//component parameters
onClipEvent (initialize) {
moveExt = 1;
}
Instance of Symbol 1003 MovieClip in Frame 30
//component parameters
onClipEvent (initialize) {
moveExt = 1;
}
Instance of Symbol 1001 MovieClip in Frame 30
//component parameters
onClipEvent (initialize) {
moveExt = 1;
}
Instance of Symbol 1001 MovieClip in Frame 30
//component parameters
onClipEvent (initialize) {
moveExt = 1;
}
Instance of Symbol 1003 MovieClip in Frame 30
//component parameters
onClipEvent (initialize) {
moveExt = 1;
}
Frame 32
this.stop();
Frame 35
this.gotoAndStop(_currentframe - 2);
Frame 36
this.gotoAndStop(_currentframe - 3);
Frame 40
this.gotoAndStop(_currentframe + 3);
Instance of Symbol 1077 MovieClip in Frame 40
onClipEvent (load) {
moveX = 0.008;
moveY = 0;
moveXext = 0.4;
moveYext = 0.4;
}
Instance of Symbol 1079 MovieClip in Frame 40
onClipEvent (load) {
moveX = 0.001;
moveY = 0;
moveXext = 0.3;
moveYext = 0.3;
}
Instance of Symbol 1077 MovieClip in Frame 40
onClipEvent (load) {
moveX = 0.7;
moveY = 0.05;
moveXext = 1;
moveYext = 1;
}
Instance of Symbol 1077 MovieClip in Frame 40
onClipEvent (load) {
moveX = 0.3;
moveY = 0;
moveXext = 1;
moveYext = 1;
}
Instance of Symbol 1079 MovieClip in Frame 40
onClipEvent (load) {
moveX = 2.6;
moveY = 0.1;
moveXext = 1;
moveYext = 1;
}
Instance of Symbol 1088 MovieClip in Frame 40
onClipEvent (enterFrame) {
this._rotation = _root.mainChar._rotation;
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Frame 42
function AutoSetEnemy() {
var pat = setEnemyAry.length;
var nowNo = Math.round(Math.random() * (pat - 1));
trace((("\u914D\u5217\u5185\u30D1\u30BF\u30FC\u30F3\u6570=" + pat) + " \u9078\u629E\u3055\u308C\u305FNo=") + nowNo);
en0 = setEnemyAry[nowNo][0];
en1 = setEnemyAry[nowNo][1];
en2 = setEnemyAry[nowNo][2];
en3 = setEnemyAry[nowNo][3];
setI = 0;
i = 0;
while (i < enemyTypeNo) {
tempNo = this["en" + i];
i2 = 0;
while (i2 < tempNo) {
setI++;
_root.attachMovie(enemyList[i], setI, setI + 250);
var tempX = ((Math.random() * 300) + 600);
if (Math.random() > 0.5) {
tempX = tempX * -1;
}
var tempY = ((Math.random() * 300) + 600);
if (Math.random() > 0.5) {
tempY = tempY * -1;
}
_root[setI]._x = tempX;
_root[setI]._y = tempY;
i2++;
}
i++;
}
_global.SetMaxEnemyNo = setI + 1;
_root.displayMes.AddMes("AWACS", "\u6575\u6A5F\u4EA4\u6226\u57DF\u4FB5\u5165\u78BA\u8A8D", 0);
mes = "";
i = 0;
while (i < enemyTypeNo) {
tempName = "en" + i;
trace("tempName = " + this[tempName]);
if (this[tempName] > 0) {
trace((i + "mes =") + this[tempName]);
mes = mes + (((enemyNameList[i] + "<FONT COLOR='#00FF00'>") + this[tempName]) + "</FONT> ");
}
i++;
}
_root.displayMes.AddMes("AWACS", mes, null);
}
function CheckDeep() {
if (_global.extDeep > 240) {
trace("\u6DF1\u5EA6=" + _global.extDeep);
trace("extDeep\u3092\u521D\u671F\u5316\u3057\u307E\u3057\u305F");
_global.extDeep = 221;
}
if (_global.backEffectDeep > 350) {
trace("backEffectDeep\u3092\u521D\u671F\u5316\u3057\u307E\u3057\u305F");
_global.backEffectDeep = 51;
}
if (_global.enemyShotDeep > 400) {
trace("enemyShotDeep\u3092\u521D\u671F\u5316\u3057\u307E\u3057\u305F");
_global.enemyShotDeep = 301;
}
}
function EnemyDown() {
setI--;
trace(("EnemyDown\u5B9F\u884C\u3000\u6575\u6483\u7834 \u6B8B\u308A=" + setI) + "\u6A5F");
if (setI == 0) {
time0 = getTimer() + 500;
setI--;
}
}
_global.SetMaxEnemyNo = 8;
_global.setMaxMisNo = 6;
_global.extDeep = 221;
_global.backEffectDeep = 51;
_global.enemyShotDeep = 301;
time0 = getTimer() + 1000;
enemyTypeNo = 4;
setEnemyAry = new Array();
setEnemyAry[0] = [3, 0, 0];
setEnemyAry[1] = [3, 1, 0];
setEnemyAry[2] = [0, 3, 0];
setEnemyAry[3] = [5, 1, 0];
setEnemyAry[4] = [5, 2, 0];
setEnemyAry[5] = [2, 2, 0];
setEnemyAry[6] = [7, 0, 0];
setEnemyAry[7] = [7, 1, 0];
setEnemyAry[8] = [2, 0, 1];
setEnemyAry[9] = [0, 2, 1];
setEnemyAry[10] = [3, 2, 0, 1];
setEnemyAry[11] = [0, 3, 0, 1];
setEnemyAry[12] = [5, 1, 0, 1];
setEnemyAry[13] = [2, 2, 0, 1];
setEnemyAry[14] = [3, 2, 0, 2];
setEnemyAry[15] = [1, 3, 0, 2];
setEnemyAry[16] = [5, 1, 0, 2];
setEnemyAry[17] = [2, 2, 0, 2];
enemyList = ["floatGun", "floatSAM", "ship1", "floatECM"];
enemyNameList = ["\u30AC\u30F3\u30D5\u30ED\u30FC\u30C8", "SAM\u30D5\u30ED\u30FC\u30C8", "\u99C6\u9010\u6226\u95D8\u8247", "ECM\u30D5\u30ED\u30FC\u30C8"];
this.attachMovie("displayMes", "displayMes", 590);
this.displayMes._x = 260;
this.displayMes._y = 400;
this.onEnterFrame = function () {
this.CheckDeep();
if (getTimer() > time0) {
time0 = getTimer() + 30000;
this.AutoSetEnemy();
}
};
this.stop();
Frame 45
this.gotoAndStop(_currentframe - 2);
Frame 46
this.gotoAndStop(_currentframe - 3);
Frame 50
this.gotoAndStop(_currentframe + 3);
Instance of Symbol 1095 MovieClip in Frame 50
onClipEvent (load) {
targetName = "2";
}
Instance of Symbol 1095 MovieClip in Frame 50
onClipEvent (load) {
targetName = "3";
}
Instance of Symbol 1095 MovieClip in Frame 50
onClipEvent (load) {
targetName = "1";
}
Instance of Symbol 1097 MovieClip in Frame 50
onClipEvent (load) {
targetName = null;
}
Frame 52
function AutoSetEnemy() {
var pat = setEnemyAry.length;
var nowNo = Math.round(Math.random() * (pat - 1));
trace((("\u914D\u5217\u5185\u30D1\u30BF\u30FC\u30F3\u6570=" + pat) + " \u9078\u629E\u3055\u308C\u305FNo=") + nowNo);
en0 = setEnemyAry[nowNo][0];
en1 = setEnemyAry[nowNo][1];
en2 = setEnemyAry[nowNo][2];
en3 = setEnemyAry[nowNo][3];
trace(((((("\n\u914D\u7F6E\u6575\n\u914D\u7F6E\u6570 GF=" + en0) + " SAMF=") + en1) + " DES=") + en2) + newline);
setI = 0;
i = 0;
while (i < enemyTypeNo) {
tempNo = this["en" + i];
i2 = 0;
while (i2 < tempNo) {
setI++;
_root.attachMovie(enemyList[i], setI, setI + 250);
_root[setI]._xscale = (_root[setI]._yscale = 20);
if (Math.random() > 0.5) {
tempX = 5000;
} else {
tempX = -5000;
}
if (Math.random() > 0.5) {
tempY = 5000;
} else {
tempY = -5000;
}
_root[setI]._x = tempX;
_root[setI]._y = tempY;
i2++;
}
i++;
}
_global.SetMaxEnemyNo = setI + 1;
_root.displayMes.AddMes("AWACS", "\u6575\u6A5F\u4EA4\u6226\u57DF\u4FB5\u5165\u78BA\u8A8D", 0);
_root.displayMes.AddMes("AWACS", "<font color=\"#FF5555\">-ALART- </font>\u4FB5\u5165\u6A5F\u306F\u30D1\u30B7\u30D5\u30A3\u30AF\u30B9", 1);
mes = "";
i = 0;
while (i < enemyTypeNo) {
tempName = "en" + i;
trace("tempName = " + this[tempName]);
if (this[tempName] > 0) {
trace((i + "mes =") + this[tempName]);
mes = mes + (((("<font color=\"#FF0000\">PAC</font>" + enemyNameList[i]) + "<FONT COLOR='#00FF00'>") + this[tempName]) + "</FONT> ");
}
i++;
}
_root.displayMes.AddMes("AWACS", mes, null);
}
function CheckDeep() {
if (_global.extDeep > 240) {
trace("\u6DF1\u5EA6=" + _global.extDeep);
trace("extDeep\u3092\u521D\u671F\u5316\u3057\u307E\u3057\u305F");
_global.extDeep = 221;
}
if (_global.backEffectDeep > 350) {
trace("backEffectDeep\u3092\u521D\u671F\u5316\u3057\u307E\u3057\u305F");
_global.backEffectDeep = 51;
}
if (_global.enemyShotDeep > 400) {
trace("enemyShotDeep\u3092\u521D\u671F\u5316\u3057\u307E\u3057\u305F");
_global.enemyShotDeep = 301;
}
}
function EnemyDown() {
setI--;
trace(("EnemyDown\u5B9F\u884C\u3000\u6575\u6483\u7834 \u6B8B\u308A=" + setI) + "\u6A5F");
if (setI == 0) {
time0 = getTimer() + 2000;
setI--;
}
}
_global.SetMaxEnemyNo = 5;
_global.setMaxMisNo = 0;
_global.extDeep = 221;
_global.backEffectDeep = 51;
_global.enemyShotDeep = 301;
time0 = getTimer() + 1000;
enemyTypeNo = 4;
setEnemyAry = new Array();
setEnemyAry[0] = [0, 1, 0, 0];
setEnemyAry[1] = [0, 0, 1, 0];
setEnemyAry[2] = [0, 0, 0, 1];
setEnemyAry[3] = [0, 1, 0, 0];
enemyList = ["char1", "char2", "char3", "char4"];
enemyNameList = ["\u30E9\u30D4\u30B9Pr", "\u30E9\u30D4\u30B9", "\u30EC\u30C3\u30C9\u30D9\u30EA\u30EB", "\u96F6\u5F0F32\u6539"];
this.attachMovie("displayMes", "displayMes", 590);
this.displayMes._x = 260;
this.displayMes._y = 400;
this.onEnterFrame = function () {
this.CheckDeep();
if (getTimer() > time0) {
time0 = getTimer() + 180000;
this.AutoSetEnemy();
}
};
this.stop();
Frame 55
this.gotoAndStop(_currentframe - 2);
Frame 56
this.gotoAndStop(_currentframe - 3);
Frame 60
this.gotoAndStop(_currentframe + 3);
Instance of Symbol 1092 MovieClip in Frame 60
onClipEvent (load) {
if (_global.keyMode != 1) {
_visible = 0;
}
}
Frame 62
function AutoSetEnemy() {
if (nowNo > 19) {
_root.timeDis.TimeCon(0);
trace("\u5168\u6A5F\u6483\u7834");
_root.displayMes.AddMes("AWACS", "<FONT COLOR='#FFAA00'>\u6575\u90E8\u968A\u6BB2\u6EC5\u5B8C\u4E86 - Enemy annihilate</FONT>", 0);
time0 = getTimer() + 999999999999999;
this.attachMovie("display_timeAttackCOMPLETE", "dis", 800);
this.dis._x = 320;
this.dis._y = 230;
return(0);
}
en0 = setEnemyAry[nowNo][0];
en1 = setEnemyAry[nowNo][1];
en2 = setEnemyAry[nowNo][2];
en3 = setEnemyAry[nowNo][3];
setI = 0;
i = 0;
while (i < enemyTypeNo) {
tempNo = this["en" + i];
i2 = 0;
while (i2 < tempNo) {
setI++;
_root.attachMovie(enemyList[i], setI, setI + 250);
var tempX = ((Math.random() * 300) + 600);
if (Math.random() > 0.5) {
tempX = tempX * -1;
}
var tempY = ((Math.random() * 300) + 600);
if (Math.random() > 0.5) {
tempY = tempY * -1;
}
_root[setI]._x = tempX;
_root[setI]._y = tempY;
i2++;
}
i++;
}
_global.SetMaxEnemyNo = setI + 1;
_root.displayMes.AddMes("AWACS", ("\u7B2C<FONT COLOR='#FFAA00'>" + (nowNo + 1)) + "</FONT>\u90E8\u968A\u914D\u7F6E", 0);
mes = "";
i = 0;
while (i < enemyTypeNo) {
tempName = "en" + i;
trace("tempName = " + this[tempName]);
if (this[tempName] > 0) {
trace((i + "mes =") + this[tempName]);
mes = mes + (((enemyNameList[i] + "<FONT COLOR='#00FF00'>") + this[tempName]) + "</FONT> ");
}
i++;
}
_root.displayMes.AddMes("AWACS", mes, null);
nowNo++;
}
function CheckDeep() {
if (_global.extDeep > 240) {
trace("\u6DF1\u5EA6=" + _global.extDeep);
trace("extDeep\u3092\u521D\u671F\u5316\u3057\u307E\u3057\u305F");
_global.extDeep = 221;
}
if (_global.backEffectDeep > 350) {
trace("backEffectDeep\u3092\u521D\u671F\u5316\u3057\u307E\u3057\u305F");
_global.backEffectDeep = 51;
}
if (_global.enemyShotDeep > 400) {
trace("enemyShotDeep\u3092\u521D\u671F\u5316\u3057\u307E\u3057\u305F");
_global.enemyShotDeep = 301;
}
}
function EnemyDown() {
setI--;
trace(("EnemyDown\u5B9F\u884C\u3000\u6575\u6483\u7834 \u6B8B\u308A=" + setI) + "\u6A5F");
if (setI == 0) {
time0 = getTimer() + 500;
setI--;
}
}
nowNo = 0;
_global.SetMaxEnemyNo = 8;
_global.setMaxMisNo = 6;
_global.extDeep = 221;
_global.backEffectDeep = 51;
_global.enemyShotDeep = 301;
time0 = getTimer() + 999999999999999;
enemyTypeNo = 4;
setEnemyAry = new Array();
setEnemyAry[0] = [1, 0, 0];
setEnemyAry[1] = [2, 0, 0];
setEnemyAry[2] = [3, 0, 0];
setEnemyAry[3] = [5, 0, 0];
setEnemyAry[4] = [0, 1, 0];
setEnemyAry[5] = [0, 2, 0];
setEnemyAry[6] = [0, 3, 0];
setEnemyAry[7] = [5, 1, 0];
setEnemyAry[8] = [5, 1, 0, 1];
setEnemyAry[9] = [2, 2, 0, 0];
setEnemyAry[10] = [4, 2, 0, 0];
setEnemyAry[11] = [5, 2, 0, 0];
setEnemyAry[12] = [3, 2, 0, 1];
setEnemyAry[13] = [2, 0, 1, 1];
setEnemyAry[14] = [0, 4, 0, 1];
setEnemyAry[15] = [0, 4, 0, 2];
setEnemyAry[16] = [5, 0, 0, 1];
setEnemyAry[17] = [3, 2, 0, 1];
setEnemyAry[18] = [4, 2, 0, 2];
setEnemyAry[19] = [1, 1, 1, 1];
enemyList = ["floatGun", "floatSAM", "ship1", "floatECM"];
enemyNameList = ["\u30AC\u30F3\u30D5\u30ED\u30FC\u30C8", "SAM\u30D5\u30ED\u30FC\u30C8", "\u99C6\u9010\u6226\u95D8\u8247", "ECM\u30D5\u30ED\u30FC\u30C8"];
this.attachMovie("displayMes", "displayMes", 590);
this.displayMes._x = 260;
this.displayMes._y = 400;
this.attachMovie("display_timeAttackFirst", "dis", 800);
this.dis._x = 320;
this.dis._y = 230;
this.onEnterFrame = function () {
this.CheckDeep();
if (getTimer() > time0) {
time0 = getTimer() + 500000;
this.AutoSetEnemy();
}
};
this.stop();
Frame 65
this.gotoAndStop(_currentframe - 2);
Frame 66
this.gotoAndStop(_currentframe - 3);
Frame 70
this.gotoAndStop(_currentframe + 3);
Instance of Symbol 783 MovieClip in Frame 70
//component parameters
onClipEvent (initialize) {
moveX = "null";
maxX = "null";
minX = "null";
moveY = 1;
maxY = 490;
minY = -10;
}
Instance of Symbol 783 MovieClip in Frame 70
//component parameters
onClipEvent (initialize) {
moveX = "null";
maxX = "null";
minX = "null";
moveY = 0.5;
maxY = 490;
minY = -10;
}
Instance of Symbol 783 MovieClip in Frame 70
//component parameters
onClipEvent (initialize) {
moveX = 0.5;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
Instance of Symbol 783 MovieClip in Frame 70
//component parameters
onClipEvent (initialize) {
moveX = 1;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
Instance of Symbol 783 MovieClip in Frame 70
//component parameters
onClipEvent (initialize) {
moveX = 0.3;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
Instance of Symbol 783 MovieClip in Frame 70
//component parameters
onClipEvent (initialize) {
moveX = "null";
maxX = "null";
minX = "null";
moveY = 0.3;
maxY = 490;
minY = -10;
}
Instance of Symbol 783 MovieClip in Frame 70
//component parameters
onClipEvent (initialize) {
moveX = "null";
maxX = "null";
minX = "null";
moveY = 0.5;
maxY = 490;
minY = -10;
}
Instance of Symbol 783 MovieClip in Frame 70
//component parameters
onClipEvent (initialize) {
moveX = 0.5;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
Frame 72
_root.AllRemove();
this.stop();
Frame 75
this.gotoAndStop(_currentframe - 2);
Frame 76
this.gotoAndStop(_currentframe - 3);
Symbol 12 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 25 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 35 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 44 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 45 MovieClip [UpArrow] Frame 1
stop();
Symbol 45 MovieClip [UpArrow] Frame 2
stop();
Symbol 45 MovieClip [UpArrow] Frame 3
stop();
Symbol 52 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 59 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 64 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 65 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 73 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 81 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 89 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 90 MovieClip [DownArrow] Frame 1
stop();
Symbol 90 MovieClip [DownArrow] Frame 2
stop();
Symbol 90 MovieClip [DownArrow] Frame 3
stop();
Symbol 126 MovieClip Frame 1
Symbol 127 MovieClip Frame 1
_parent.style = "p_standing";
Symbol 131 MovieClip Frame 1
this._visible = false;
Symbol 132 MovieClip Frame 1
_parent.style = "p_normal";
Symbol 133 MovieClip Frame 1
_parent.style = "p_normal";
Symbol 133 MovieClip Frame 5
_parent.gotoAndStop("paci_normal");
Symbol 139 MovieClip Frame 1
if (_parent._parent._parent._name == "mainChar") {
i = 1;
while (i < _global.SetMaxEnemyNo) {
if (this.hitTest(_root[i]._x, _root[i]._y, true)) {
_root[i].hit(dmgType, efType);
}
i++;
}
i = 21;
while (i < (21 + _global.setMaxMisNo)) {
if (this.hitTest(_root[i]._x, _root[i]._y, true)) {
_root[i].hit(dmgType, efType);
}
i++;
}
} else if (this.hitTest(_root.mainChar._x, _root.mainChar._y, true)) {
_root.mainChar.damage(100, 0);
}
_visible = false;
Instance of Symbol 139 MovieClip in Symbol 142 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
dmgType = 0;
efType = 0;
}
Symbol 144 MovieClip Frame 1
_parent.changeAttackDmg(1);
Symbol 144 MovieClip Frame 5
this.gotoAndPlay(_currentframe - 2);
Symbol 146 MovieClip Frame 1
if (_parent._parent._name == "mainChar") {
i = 1;
while (i < _global.SetMaxEnemyNo) {
if (this.hitTest(_root[i].char.hitArea_b1)) {
trace("\u30E1\u30A4\u30F3\u30AD\u30E3\u30E9\u3000\u6B66\u88C5\u63A5\u89E6");
} else if (this.hitTest(_root[i])) {
_root[i].hit(1, 1);
}
i++;
}
i = 21;
while (i < (21 + _global.setMaxMisNo)) {
if (this.hitTest(_root[i])) {
_root[i].hit(1, 1);
}
i++;
}
} else {
trace("\u6575\u30D1\u30B7\u30D5\u30A3\u30AF\u30B9\u3000\u8FD1\u63A5\u5224\u5B9A\u767A\u751F");
if (this.hitTest(_root.mainChar.char.hitArea_b1)) {
trace("\u30D6\u30EC\u30FC\u30C9\u3068\u30D6\u30EC\u30FC\u30C9\u304C\u63A5\u89E6");
_parent.hitBraid();
} else if (this.hitTest(_root.mainChar.damageArea)) {
_root.mainChar.damage(700, 1);
}
}
this._visible = false;
Symbol 151 MovieClip Frame 1
if (_parent._parent._name != "mainChar") {
if (this.hitTest(_root.mainChar.char.hitArea_b1)) {
trace("\u30D6\u30EC\u30FC\u30C9\u3068\u30D6\u30EC\u30FC\u30C9\u304C\u63A5\u89E6");
_parent.hitBraid();
}
}
this._visible = false;
Symbol 157 MovieClip Frame 1
function setEffect() {
theSound.start(0);
i = 0;
while (i < 3) {
efName = "ef" + i;
this.attachMovie("ef_btbHit2", efName, i);
this[efName]._x = 100 + (Math.random() * 400);
this[efName]._y = (Math.random() * 300) - 150;
i++;
}
i = 3;
while (i < 13) {
efName = "ef" + i;
this.attachMovie("ef_btbHit", efName, i);
this[efName]._x = 300;
i++;
}
}
function hitBraid() {
trace("\u30D6\u30EC\u30FC\u30C9\u63A5\u89E6\u5224\u5B9A");
if (!stopFlag) {
timeEnd = getTimer() + wait;
stopFlag = 1;
_root.mainChar.char.hitBraid();
this.setEffect();
this.stop();
}
}
stopFlag = 0;
wait = 200;
theSound = new Sound();
theSound.attachSound("set_3");
this.onEnterFrame = function () {
if (stopFlag && (getTimer() < timeEnd)) {
trace("\u505C\u6B62\u4E2D");
} else {
stopFlag = 0;
this.play();
}
};
this.gotoAndPlay(7);
Symbol 157 MovieClip Frame 9
_global.braidDmg = _root.charData4[27];
Symbol 157 MovieClip Frame 13
if (_parent._name == "mainChar") {
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("braid2");
}
} else {
this.gotoAndPlay("braid2");
}
Symbol 157 MovieClip Frame 17
_parent.gotoAndStop("paci_standing");
Symbol 157 MovieClip Frame 34
_global.braidDmg = _root.charData4[28];
Symbol 157 MovieClip Frame 36
if (_parent._name == "mainChar") {
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("braid3");
}
} else {
this.gotoAndPlay("braid3");
}
Symbol 157 MovieClip Frame 46
_parent.gotoAndStop("paci_standing");
Symbol 162 MovieClip Frame 1
_parent.style = "equipWepon";
Symbol 162 MovieClip Frame 12
_parent.ChangeAttackDmg(8);
_parent.ChangeAttackDmg(3);
Symbol 162 MovieClip Frame 13
Symbol 162 MovieClip Frame 14
thePoint = {x:220, y:0};
this.localToGlobal(thePoint);
_global.extDeep++;
shotName = "braidAttack" + _global.extDeep;
_root.attachMovie("braidAttack", shotName, _global.extDeep);
_root[shotName]._rotation = _parent._rotation;
_root[shotName]._x = thePoint.x;
_root[shotName]._y = thePoint.y;
Symbol 162 MovieClip Frame 23
_parent.style = "p_standing";
_parent.gotoAndPlay("paci_standing");
Symbol 166 MovieClip Frame 1
_rotation = (_rotation + 5);
Symbol 166 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 170 MovieClip Frame 1
this._visible = false;
Symbol 171 MovieClip Frame 1
this.onEnterFrame = function () {
if (!Key.isDown(_global.keyCas[3])) {
_parent.gotoAndStop("paci_standing");
}
};
Symbol 171 MovieClip Frame 5
this.stop();
Symbol 174 MovieClip Frame 5
_parent.gotoAndStop("paci_normal");
Symbol 181 MovieClip Frame 5
this.onEnterFrame = function () {
_parent._y = _parent._y + 10;
this._rotation = 0;
};
Symbol 181 MovieClip Frame 50
this.stop();
Symbol 182 MovieClip [char4] Frame 1
bodyName = "charData4";
score = 80000 /* 0x013880 */;
myType = "p4";
if (!userCon) {
this.gotoAndStop(7);
}
Symbol 182 MovieClip [char4] Frame 2
function ChangeAttackDmg(atkNo) {
if (atkNo < 3) {
_global.shotDmg = _root[bodyName][24 + atkNo];
} else if (atkNo < 8) {
_global.braidDmg = _root[bodyName][24 + atkNo];
} else if (atkNo < 10) {
_global.extDmg = _root[bodyName][24 + atkNo];
} else {
_global.parDmg = _root[bodyName][24 + atkNo];
}
trace("\u653B\u6483\u529B\u5909\u66F4 No = " + (24 + atkNo));
trace((((("s=" + _global.shotDmg) + "\nb=") + _global.braidDmg) + "\ne=") + _global.extDmg);
}
function getBraidmode() {
return(braidMode);
}
function ChangeWepon() {
braidMode = !braidMode;
this.char.handF.braid.InBraidOpen(braidMode);
_root.weponSymbol.WeponSymbolChange(braidMode);
}
function getDirection() {
return(direction);
}
function boostMove(flag) {
if (flag > 0) {
this.gotoAndPlay("boost");
theBoostSE.start();
speedDownCnt = 5;
if (_global.keyModeCon == 2) {
var tempKakudo = mousekakudo;
} else {
var tempKakudo = ((_rotation * Math.PI) / 180);
}
XnowSpeed = XnowSpeed + (boostSpeed * Math.cos(tempKakudo));
YnowSpeed = YnowSpeed + (boostSpeed * Math.sin(tempKakudo));
} else if (speedDownCnt > 0) {
XnowSpeed = XnowSpeed / boostDownExt;
YnowSpeed = YnowSpeed / boostDownExt;
nowSpeed = Math.abs(XnowSpeed) + Math.abs(YnowSpeed);
speedDownCnt--;
if (speedDownCnt == 0) {
boostMode = 0;
}
}
}
function SpeedUP() {
if (!boostMode) {
if (style == "s") {
maxSpeed = SmaxSpeed;
addSpeed = SaddSpeed;
} else if (style == "overGun") {
maxSpeed = EmaxSpeed;
addSpeed = EaddSpeed;
} else {
maxSpeed = PmaxSpeed;
addSpeed = PaddSpeed;
}
if (style == "p_standing") {
this.gotoAndStop("paci(s->n)");
}
if (_global.keyModeCon == 2) {
trace("\u7279\u6B8A\u306A\u5411\u304D\u53D6\u5F97 ModeCon=2");
var tempKakudo = mouseKakudo;
} else {
var tempKakudo = ((_rotation * Math.PI) / 180);
}
var tempXspeed = (XnowSpeed + (addSpeed * Math.cos(tempKakudo)));
var tempYspeed = (YnowSpeed + (addSpeed * Math.sin(tempKakudo)));
var tempnowSpeed = (Math.abs(tempXspeed) + Math.abs(tempYspeed));
if (tempnowSpeed <= maxSpeed) {
XnowSpeed = tempXspeed;
YnowSpeed = tempYspeed;
nowSpeed = Math.abs(XnowSpeed) + Math.abs(YnowSpeed);
}
}
}
function normal() {
this.gotoAndStop("paci_standing");
}
function SpeedDown() {
if ((YnowSpeed < 5) && (YnowSpeed > -5)) {
YnowSpeed = YnowSpeed / 1.1;
} else if (YnowSpeed > 0) {
YnowSpeed = YnowSpeed - 3;
} else {
YnowSpeed = YnowSpeed + 3;
}
if ((XnowSpeed < 5) && (XnowSpeed > -5)) {
XnowSpeed = XnowSpeed / 1.1;
} else if (XnowSpeed > 0) {
XnowSpeed = XnowSpeed - 3;
} else {
XnowSpeed = XnowSpeed + 3;
}
}
function gard() {
if (gardFlag > 0) {
this.gotoAndStop("paci_gard");
}
}
function change() {
if (changeFlag > 0) {
if ((style == "p_normal") || (style == "p_standing")) {
braidMode = 0;
this.gotoAndStop("change(p->s)");
} else {
this.gotoAndStop("change(s->p)");
}
}
}
function GunChange() {
if (overFlag > 0) {
if ((style == "p_normal") || (style == "p_standing")) {
braidMode = 0;
this.gotoAndStop("paci(n->over)");
}
}
}
function atkStart() {
if (_global.keyModeChangeWepon == 0) {
if (style == "s") {
this.shot_s1();
} else if (braidMode) {
this.braid1();
} else {
this.shot_p1();
}
} else {
xDis = _root._xmouse - _x;
yDis = _root._ymouse - _y;
var x = Math.pow(Math.abs(xDis), 2);
var y = Math.pow(Math.abs(yDis), 2);
var sa = Math.sqrt(x + y);
if (sa < changeWeponRange) {
braidMode = 1;
} else {
braidMode = 0;
}
if (style == "s") {
this.shot_s1();
} else if (braidMode) {
this.braid1();
} else {
this.shot_p1();
}
}
}
function atkEnd() {
if (style == "s") {
this.gotoAndStop("sky_normal");
} else if (!braidMode) {
if (nowSpeed <= 25) {
this.gotoAndStop("paci_standing");
} else {
this.gotoAndStop("paci_normal");
}
}
shotMode = "ready";
}
function shot_p1() {
this.gotoAndStop("paci_s(shot1)");
}
function shot_s1() {
this.gotoAndStop("sky_shot1");
}
function braid1() {
this.gotoAndStop("paci_s(braid1)");
}
function openWepon1() {
if (extFlag > 0) {
if (style == "s") {
if (skyExtFlag > 0) {
this.gotoAndStop("sky_Ext");
}
} else {
this.gotoAndStop("paci_openWepon1");
}
}
}
function TraceMouse() {
xDis = _root._xmouse - _x;
yDis = _root._ymouse - _y;
radian = Math.atan2(yDis, xDis);
kakudo = radian / (Math.PI/180);
_rotation = kakudo;
if ((_rotation <= 180) && (_rotation > 90)) {
direction = "left";
_yscale = (-scale);
} else if (_rotation <= -90) {
direction = "left";
_yscale = (-scale);
} else {
direction = "right";
_yscale = scale;
}
}
function searchEnemy(searchMode) {
trace("\n\u6575\u30B5\u30FC\u30C1\u958B\u59CB\u3000\u30E2\u30FC\u30C9=" + searchMode);
i = 0;
if (searchMode == 0) {
i = 1;
while (i < _global.SetMaxEnemyNo) {
if (_root[i] != undefined) {
nowTarget = i;
break;
}
i++;
}
} else if (searchMode == 1) {
}
trace(("nowTarget\u3092ENEMY" + nowTarget) + "\u306B\u5909\u66F4\u3057\u307E\u3057\u305F\u3002");
}
function autoTrace() {
if (_root[nowTarget] == undefined) {
this.searchEnemy(0);
}
var xDis = (_root[nowTarget]._x - _x);
var yDis = (_root[nowTarget]._y - _y);
trace((("\u6575\u4E00\u60C5\u5831=" + xDis) + "-") + yDis);
var radian = Math.atan2(yDis, xDis);
var nextRo = (radian / (Math.PI/180));
if ((nextRo > 90) && (_rotation < -90)) {
_rotation = (_rotation + (((-360 + nextRo) - _rotation) / roSpeed));
} else if ((nextRo < -90) && (_rotation > 90)) {
_rotation = (_rotation + (((nextRo + 360) - _rotation) / roSpeed));
} else {
_rotation = (_rotation + ((nextRo - this._rotation) / roSpeed));
}
if ((_rotation <= 180) && (_rotation > 90)) {
direction = "left";
_yscale = (-scale);
} else if (_rotation <= -90) {
direction = "left";
_yscale = (-scale);
} else {
direction = "right";
_yscale = scale;
}
}
function lockTrace() {
var xDis = (_root[nowTarget]._x - _x);
var yDis = (_root[nowTarget]._y - _y);
var radian = Math.atan2(yDis, xDis);
_rotation = (radian / (Math.PI/180));
if ((_rotation <= 180) && (_rotation > 90)) {
direction = "left";
_yscale = (-scale);
} else if (_rotation <= -90) {
direction = "left";
_yscale = (-scale);
} else {
direction = "right";
_yscale = scale;
}
}
function CheckMouseDown() {
if (((getDC > -1) && (boostCnt == 0)) && (dushFlag > 0)) {
boostMode = 1;
boostCnt = 6;
speedMode = 1;
} else {
speedMode = 1;
getDC = DCtime;
}
}
function damage(dmgPoint, dmgType, Nouse1, Nouse2, Nouse3) {
s1++;
_root.mainHp.ChangeHp(dmgPoint - def);
dmgName = "dmg" + s1;
this.attachMovie(this.efTypeAry[dmgType], dmgName, s1);
}
function MainSystem() {
if (_global.keyModeCon) {
this.autoTrace();
}
if (speedMode) {
this.speedUP();
} else if (nowSpeed <= 25) {
if ((_currentframe == 11) || (_currentframe == 51)) {
this.normal();
}
}
if (XnowSpeed >= 0) {
XnowSpeed = XnowSpeed - Xdown;
}
if (XnowSpeed <= 0) {
XnowSpeed = XnowSpeed + Xdown;
}
YnowSpeed = YnowSpeed + Ydown;
if (shotMode == "shot") {
this.atkStart();
} else if (shotMode == "stop") {
this.atkEnd();
}
}
function getMouseRotation() {
var xDis = (_root._xmouse - _x);
var yDis = (_root._ymouse - _y);
mouseKakudo = Math.atan2(yDis, xDis);
}
function GetAction() {
if (Key.isDown(_global[keyName][1])) {
if (style != "overGun") {
shotMode = "shot";
}
} else if (shotMode == "shot") {
shotMode = "stop";
}
if (Key.isDown(_global[keyName][2]) && (_global.keyModeChangeWepon == 0)) {
if (bCnt) {
bCnt = 0;
this.ChangeWepon();
}
} else {
bCnt = 1;
}
if (Key.isDown(_global[keyName][3])) {
this.gard();
}
if (Key.isDown(_global[keyName][4])) {
this.openWepon1();
}
if (Key.isDown(_global[keyName][5])) {
this.GunChange();
}
if (Key.isDown(_global[keyName][6])) {
this.change();
}
if (Key.isDown(_global[keyName][7])) {
this.SpeedDown();
}
if (Key.isDown(_global[keyName][8])) {
if (oCnt) {
oCnt = 0;
_root.attachMovie("ECCM", "ECCM", 800);
_root.ECCM._x = this._x;
_root.ECCM._y = this._y;
}
} else {
oCnt = 1;
}
if (boostCnt > 0) {
if (boostCnt == 6) {
getNowXspeed = XnowSpeed;
getNowYspeed = YnowSpeed;
this.boostMove(1);
}
if (boostCnt != 1) {
this.boostMove(0);
}
boostCnt--;
}
if (getDC > -1) {
getDC--;
}
}
nowTarget = 1;
roSpeed = 2;
changeWeponRange = 80;
_global.hp = _root[bodyName][7];
_root.mainHp.HpSet();
en = _root[bodyName][8];
def = _root[bodyName][9];
SmaxSpeed = _root[bodyName][10];
PmaxSpeed = _root[bodyName][11];
EmaxSpeed = _root[bodyName][12];
SaddSpeed = _root[bodyName][13];
PaddSPeed = _root[bodyName][14];
EaddSpeed = _root[bodyName][15];
Sxdown = _root[bodyName][16];
Sydown = _root[bodyName][17];
Pxdown = _root[bodyName][18];
Pydown = _root[bodyName][19];
BoostSpeed = _root[bodyName][20];
boostDownExt = _root[bodyName][21];
weponChangeFlag = _root[bodyName][40];
changeFlag = _root[bodyName][41];
skyExtFlag = _root[bodyName][42];
skyDushFlag = _root[bodyName][43];
extFlag = _root[bodyName][44];
overFlag = _root[bodyName][45];
dushFlag = _root[bodyName][46];
gardFlag = _root[bodyName][47];
scale = _xscale;
direction = "right";
XaddSpeed = 0;
YaddSpeed = 0;
nowSpeed = 0;
XnowSpeed = 0;
YnowSpeed = 0;
maxSpeed = PmaxSpeed;
addSpeed = PaddSpeed;
Xdown = Pxdown;
Ydown = Pydown;
style = "p_standing";
braidMode = 0;
shotMode = "ready";
speedMode = 0;
boostMode = 0;
getDC = 0;
DCtime = 3;
boostCnt = 0;
weponChangeWait = 300;
weponChangeCount = 0;
theBoostSE = new Sound();
theBoostSE.attachSound("boostSE3");
keyName = "keyCas";
s1 = 0;
efTypeAry = ["efHitShot2", "efHitBraid2"];
if (_global.effectLv > 1) {
pas = eval (_root.backArea);
pas.attachMovie("mainCharSmoke", "mainChar", 1);
theLoc = {x:this._x, y:this._y};
pas.globalToLocal(theLoc);
pas[_name]._x = theLoc.x;
pas[_name]._y = theLoc.y;
}
oCnt = 1;
bCnt = 1;
this.onEnterFrame = function () {
this.GetAction();
this.MainSystem();
};
this.onMouseDown = function () {
this.CheckMouseDown();
};
this.onMouseUp = function () {
speedMode = 0;
};
this.onMouseMove = function () {
if (_global.keyModeCon == 0) {
this.TraceMouse();
} else if (_global.keyModeCon == 2) {
this.getMouseRotation();
}
};
this.gotoAndStop("paci_standing");
trace("\u5B9A\u7FA9\u7D42\u4E86" + _global.hp);
Symbol 182 MovieClip [char4] Frame 7
function hit(dmgType, efType) {
if (mode) {
trace((("_name\u88AB\u5F3E dmg=" + dmgType) + " ef=") + efType);
this.attachMovie([efTypeAry[efType]], "ef", 1);
this.ef.scaleExt = 4;
hp = hp - (_global[dmgTypeAry[dmgType]] - def);
_root[barName].bar._xscale = (hp / baseHp) * 100;
if (hp < 0) {
_root.mainHp.AddScore(score, myType);
_root.lerder.RemoveCoItem(_name);
_root.enemyDown();
mode = 0;
_name = null;
this.gotoAndPlay("bomb");
}
}
}
function ChangeWepon() {
braidMode = !braidMode;
this.char.handF.braid.InBraidOpen(braidMode);
}
function getDirection() {
return(direction);
}
function boostMove(flag) {
if (flag) {
this.gotoAndPlay("boost");
theBoostSE.start();
speedDownCnt = 5;
var tempKakudo = ((_rotation * Math.PI) / 180);
XnowSpeed = XnowSpeed + (boostSpeed * Math.cos(tempKakudo));
YnowSpeed = YnowSpeed + (boostSpeed * Math.sin(tempKakudo));
} else if (speedDownCnt > 0) {
XnowSpeed = XnowSpeed / boostDownExt;
YnowSpeed = YnowSpeed / boostDownExt;
nowSpeed = Math.abs(XnowSpeed) + Math.abs(YnowSpeed);
speedDownCnt--;
if (speedDownCnt == 0) {
boostMode = 0;
}
}
}
function SpeedUP() {
if (!boostMode) {
if (style == "s") {
maxSpeed = SmaxSpeed;
addSpeed = SaddSpeed;
} else if (style == "overGun") {
maxSpeed = EmaxSpeed;
addSpeed = EaddSpeed;
} else {
maxSpeed = PmaxSpeed;
addSpeed = PaddSpeed;
}
if (style == "p_standing") {
this.gotoAndStop("paci(s->n)");
}
var tempKakudo = ((_rotation * Math.PI) / 180);
var tempXspeed = (XnowSpeed + (addSpeed * Math.cos(tempKakudo)));
var tempYspeed = (YnowSpeed + (addSpeed * Math.sin(tempKakudo)));
var tempnowSpeed = (Math.abs(tempXspeed) + Math.abs(tempYspeed));
if (tempnowSpeed <= maxSpeed) {
XnowSpeed = tempXspeed;
YnowSpeed = tempYspeed;
nowSpeed = Math.abs(XnowSpeed) + Math.abs(YnowSpeed);
}
}
}
function normal() {
this.gotoAndStop("paci_standing");
}
function SpeedDown() {
if ((YnowSpeed < 5) && (YnowSpeed > -5)) {
YnowSpeed = YnowSpeed / 1.1;
} else if (YnowSpeed > 0) {
YnowSpeed = YnowSpeed - 3;
} else {
YnowSpeed = YnowSpeed + 3;
}
if ((XnowSpeed < 5) && (XnowSpeed > -5)) {
XnowSpeed = XnowSpeed / 1.1;
} else if (XnowSpeed > 0) {
XnowSpeed = XnowSpeed - 3;
} else {
XnowSpeed = XnowSpeed + 3;
}
}
function gard() {
if (gardFlag > 0) {
this.gotoAndStop("paci_gard");
}
}
function change() {
if (changeFlag > 0) {
if ((style == "p_normal") || (style == "p_standing")) {
braidMode = 0;
this.gotoAndStop("change(p->s)");
} else {
this.gotoAndStop("change(s->p)");
}
}
}
function GunChange() {
if (overFlag > 0) {
if ((style == "p_normal") || (style == "p_standing")) {
braidMode = 0;
this.gotoAndStop("paci(n->over)");
}
}
}
function atkStart() {
if (style == "s") {
this.shot_s1();
} else if (braidMode) {
this.braid1();
} else {
this.shot_p1();
}
}
function atkEnd() {
if (style == "s") {
this.gotoAndStop("sky_normal");
} else if (!braidMode) {
if (nowSpeed <= 25) {
this.gotoAndStop("paci_standing");
} else {
this.gotoAndStop("paci_normal");
}
}
shotMode = "ready";
}
function shot_p1() {
this.gotoAndStop("paci_s(shot1)");
}
function shot_s1() {
this.gotoAndStop("sky_shot1");
}
function braid1() {
this.gotoAndStop("paci_s(braid1)");
}
function openWepon1() {
if (extFlag > 0) {
if (style == "s") {
if (skyExtFlag > 0) {
this.gotoAndStop("sky_Ext");
}
} else {
this.gotoAndStop("paci_openWepon1");
}
}
}
function MainSystem() {
if (boostCnt > 0) {
if (boostCnt == 6) {
getNowXspeed = XnowSpeed;
getNowYspeed = YnowSpeed;
this.boostMove(1);
}
if (boostCnt != 1) {
this.boostMove(0);
}
boostCnt--;
}
if (speedMode) {
if (Math.random() > dushPar) {
trace(_name + "\u30C0\u30C3\u30B7\u30E5\u5B9F\u884C");
boostMode = 1;
boostCnt = 6;
}
if (Math.random() > 0.2) {
this.speedUP();
} else {
this.SpeedDown();
}
} else if (nowSpeed <= 25) {
if ((_currentframe == 11) || (_currentframe == 51)) {
this.normal();
}
}
if (shotMode) {
this.atkStart();
} else if (shotMode == 0) {
this.atkEnd();
}
_root.radar.getCo(_name, this._x, this._y, 4);
}
function AI() {
var xDis = (_root.mainChar._x - _x);
var yDis = (_root.mainChar._y - _y);
var radian = Math.atan2(yDis, xDis);
nextRo = radian / (Math.PI/180);
if ((nextRo > 90) && (_rotation < -90)) {
_rotation = (_rotation + (((-360 + nextRo) - _rotation) / roSpeed));
} else if ((nextRo < -90) && (_rotation > 90)) {
_rotation = (_rotation + (((nextRo + 360) - _rotation) / roSpeed));
} else {
_rotation = (_rotation + ((nextRo - this._rotation) / roSpeed));
}
if ((_rotation <= 180) && (_rotation > 90)) {
direction = "left";
_yscale = (-scale);
} else if (_rotation <= -90) {
direction = "left";
_yscale = (-scale);
} else {
direction = "right";
_yscale = scale;
}
if (getTimer() > (time0 + 5000)) {
time0 = getTimer();
if (nowTac == 1) {
ChangeWepon();
nowTac = 2;
dushPar = 0.85;
} else {
ChangeWepon();
nowTac = 1;
dushPar = 0.97;
}
}
if (nowTac == 1) {
if ((Math.abs(xDis) + Math.abs(yDis)) < 900) {
this.SpeedDown();
shotMode = 1;
speedMode = 0;
} else {
shotMode = 0;
speedMode = 1;
}
} else if (nowTac == 2) {
if ((Math.abs(xDis) + Math.abs(yDis)) < 300) {
this.SpeedDown();
shotMode = 1;
speedMode = 0;
} else {
shotMode = 0;
speedMode = 1;
}
}
this._x = this._x - ((-XnowSpeed) + _root.mainChar.XnowSpeed);
this._y = this._y - ((-YnowSpeed) + _root.mainChar.YnowSpeed);
if (speedMode == 0) {
this._x = this._x + (xDis / 8);
this._y = this._y + (yDis / 8);
}
}
hp = (baseHp = 7000);
dushPar = 0.97;
roSpeed = 5;
en = _root[bodyName][8];
def = _root[bodyName][9];
SmaxSpeed = _root[bodyName][10];
PmaxSpeed = _root[bodyName][11];
EmaxSpeed = _root[bodyName][12];
SaddSpeed = _root[bodyName][13];
PaddSPeed = _root[bodyName][14];
EaddSpeed = _root[bodyName][15];
Sxdown = _root[bodyName][16];
Sydown = _root[bodyName][17];
Pxdown = _root[bodyName][18];
Pydown = _root[bodyName][19];
BoostSpeed = _root[bodyName][20];
boostDownExt = _root[bodyName][21];
weponChangeFlag = _root[bodyName][40];
changeFlag = _root[bodyName][41];
skyExtFlag = _root[bodyName][42];
skyDushFlag = _root[bodyName][43];
extFlag = _root[bodyName][44];
overFlag = _root[bodyName][45];
dushFlag = _root[bodyName][46];
gardFlag = _root[bodyName][47];
scale = _xscale;
direction = "right";
XaddSpeed = 0;
YaddSpeed = 0;
nowSpeed = 0;
XnowSpeed = 0;
YnowSpeed = 0;
maxSpeed = PmaxSpeed;
addSpeed = PaddSpeed;
Xdown = Pxdown;
Ydown = Pydown;
style = "p_standing";
braidMode = 0;
shotMode = "ready";
speedMode = 0;
boostMode = 0;
getDC = 0;
DCtime = 3;
boostCnt = 0;
weponChangeWait = 300;
weponChangeCount = 0;
theBoostSE = new Sound();
theBoostSE.attachSound("boostSE3");
mode = 1;
nowTac = 1;
efTypeAry = new Array();
efTypeAry = ["efHitShot2", "efHitBraid2"];
dmgTypeAry = new Array();
dmgTypeAry = ["shotDmg", "braidDmg", "extDmg", "parDmg"];
temp = Number(_name) + 1000;
barName = "hpBar" + temp;
trace("NO!!!!??? =" + name);
_root.attachMovie("enemyHpBar2", barName, temp);
_root[barName].traceName = _name;
time0 = getTimer();
this.onEnterFrame = function () {
if (mode) {
this.AI();
this.MainSystem();
} else {
this._x = this._x - _root.mainChar.XnowSpeed;
this._y = this._y - _root.mainChar.YnowSpeed;
}
};
this.gotoAndStop("paci_standing");
Symbol 182 MovieClip [char4] Frame 11
this.stop();
Symbol 182 MovieClip [char4] Frame 20
this.stop();
Symbol 182 MovieClip [char4] Frame 30
this.stop();
Symbol 182 MovieClip [char4] Frame 40
this.stop();
Symbol 182 MovieClip [char4] Frame 50
this.stop();
Symbol 182 MovieClip [char4] Frame 60
this.stop();
Symbol 182 MovieClip [char4] Frame 70
this.stop();
Symbol 182 MovieClip [char4] Frame 80
this.stop();
Symbol 182 MovieClip [char4] Frame 90
this.stop();
Symbol 182 MovieClip [char4] Frame 100
this.stop();
Symbol 182 MovieClip [char4] Frame 110
this.stop();
Symbol 182 MovieClip [char4] Frame 120
this.stop();
Symbol 182 MovieClip [char4] Frame 130
this.stop();
Symbol 182 MovieClip [char4] Frame 140
this.stop();
Symbol 182 MovieClip [char4] Frame 150
this.stop();
Symbol 182 MovieClip [char4] Frame 160
this.stop();
Symbol 184 MovieClip Frame 1
function DrowMissileSmoke() {
i++;
var missileLineName = ("missile" + i);
_parent.attachMovie(efName, missileLineName, i);
_parent[missileLineName]._xscale = this._x - oldX;
_parent[missileLineName]._yscale = this._y - oldY;
_parent[missileLineName]._x = oldX;
_parent[missileLineName]._y = oldY;
oldX = this._x;
oldY = this._y;
}
_visible = false;
addSpeed = 4 + (Math.random() * 2);
ext = 1.3;
YnowSpeed = (Math.random() * 60) - 30;
XnowSpeed = (Math.random() * 80) - 90;
oldX = this._x;
oldY = this._y;
i = 0;
i3 = 0;
removeLine = 10;
if (_global.effectLv > 0) {
efName = "lineLeaesrLine";
} else {
efName = "lineLeaserLineLow";
}
this.onEnterFrame = function () {
i3++;
if (i3 < 20) {
this.DrowMissileSmoke();
if (i3 == 8) {
radian = (Math.random() * 360) - 180;
}
} else {
_parent.removeMovieClip();
}
ext = ext * 1.15;
XnowSpeed = XnowSpeed + ((addSpeed * Math.cos(radian)) * ext);
YnowSpeed = YnowSpeed + ((addSpeed * Math.sin(radian)) * ext);
this._x = this._x + XnowSpeed;
this._y = this._y + YnowSpeed;
i2 = 1;
while (i2 < _global.SetMaxEnemyNo) {
if (this.hitTest(_root[i2])) {
_root[i2].hit(2, 0);
}
i2++;
}
i2 = 21;
while (i2 < (21 + _global.setMaxMisNo)) {
if (this.hitTest(_root[i2])) {
_root[i2].hit(2, 0);
}
i2++;
}
};
this.stop();
Symbol 185 MovieClip [lineLeaser] Frame 1
this._rotation = _root.mainChar._rotation;
this.onEnterFrame = function () {
this._x = this._x - _root.mainChar.XnowSpeed;
this._y = this._y - _root.mainChar.YnowSpeed;
};
Symbol 202 MovieClip Frame 1
rand = Math.floor(Math.random() * 3) + 5;
this.gotoAndPlay(rand);
Symbol 202 MovieClip Frame 8
this.gotoAndPlay(5);
Symbol 203 MovieClip Frame 1
this.onEnterFrame = function () {
if (Key.isDown(16)) {
this.gotoAndPlay("leaser");
}
if (Key.isDown(39)) {
this.gotoAndPlay("leaserField");
}
};
this.stop();
Symbol 203 MovieClip Frame 10
this.stop();
Symbol 203 MovieClip Frame 42
this.attachMovie("enemy_beam1EF", "beam", 1);
this.beam._x = -330;
this.beam._yscale = 80;
this.beam._xscale = 2000;
Symbol 203 MovieClip Frame 43
this.beam._yscale = 40;
Symbol 203 MovieClip Frame 44
this.beam.removeMovieClip();
Symbol 203 MovieClip Frame 57
this.gotoAndStop("wait");
Symbol 203 MovieClip Frame 75
this.stop();
Symbol 210 MovieClip Frame 10
_parent.gotoAndStop("wToN");
Symbol 214 MovieClip [enemyHpBar2] Frame 1
this.onEnterFrame = function () {
this._x = _root[traceName]._x;
this._y = _root[traceName]._y - 50;
};
Symbol 215 MovieClip Frame 29
_parent.gotoAndStop("normal");
Symbol 217 MovieClip Frame 1
function shot() {
_global.enemyShotDeep++;
var shotName = ("enemy_shot" + _global.enemyShotDeep);
var thePoint = {x:0, y:0};
this.localToGlobal(thePoint);
var xDis = (_root.mainChar._x - thePoint.x);
var yDis = (_root.mainChar._y - thePoint.y);
var radian = Math.atan2(yDis, xDis);
var kakudo = (radian / (Math.PI/180));
_root.attachMovie("enemy_shot1EF", shotName, _global.enemyShotDeep);
_root[shotName]._x = thePoint.x;
_root[shotName]._y = thePoint.y;
_root[shotName]._rotation = kakudo;
}
this._visible = false;
Symbol 217 MovieClip Frame 5
this.shot();
Symbol 217 MovieClip Frame 10
this.shot();
Symbol 217 MovieClip Frame 15
this.shot();
Symbol 217 MovieClip Frame 20
this.shot();
Symbol 217 MovieClip Frame 25
this.shot();
Symbol 217 MovieClip Frame 60
this.gotoAndPlay(5);
Symbol 227 MovieClip Frame 51
this._visible = false;
_root.enemyDown();
_root.attachMovie("whiteMask", "whiteMask", 5000);
_parent.removeMovieClip();
Symbol 227 MovieClip Frame 52
_parent.removeMovieClip();
Symbol 227 MovieClip Frame 53
_parent.removeMovieClip();
Symbol 227 MovieClip Frame 60
this.stop();
Symbol 228 MovieClip [ship1] Frame 1
function hit(dmgType, efType) {
if (mode) {
trace((("_name\u88AB\u5F3E dmg=" + dmgType) + " ef=") + efType);
this.attachMovie([efTypeAry[efType]], "ef", 1);
hp = hp - (_global[dmgTypeAry[dmgType]] - def);
this.hpBar._xscale = (hp / baseHp) * 1000;
if (hp < 0) {
this.onEnterFrame = function () {
this._x = this._x - _root.mainChar.XnowSpeed;
this._y = this._y - _root.mainChar.YnowSpeed;
};
_root.radar.RemoveCoItem(_name);
_root.mainHp.AddScore(score, "s1");
mode = 0;
_name = null;
this.gotoAndPlay("bomb");
}
}
}
mode = 1;
this._xscale = (this._yscale = 50);
score = 15000;
baseHp = (hp = 15000);
this.hpBar._xscale = (hp / baseHp) * 1000;
def = 30;
efTypeAry = new Array();
efTypeAry = ["efHitShot", "efHitBraid"];
dmgTypeAry = new Array();
dmgTypeAry = ["shotDmg", "braidDmg", "extDmg", "parDmg"];
this.onEnterFrame = function () {
this._x = this._x - (moveX + _root.mainChar.XnowSpeed);
this._y = this._y - (moveY + _root.mainChar.YnowSpeed);
xDis = this._x - _root.mainChar._x;
yDis = this._y - _root.mainChar._y;
_root.radar.getCo(_name, this._x, this._y, 3);
if (Key.isDown(38)) {
this.gotoAndStop("wToN");
}
if (Key.isDown(36)) {
this._visible = true;
this.gotoAndStop("wait");
}
if (Key.isDown(40)) {
radian = Math.atan2(yDis, xDis);
kakudo = radian / (Math.PI/180);
this._rotation = kakudo;
} else {
this._rotation = 0;
}
};
this.stop();
Symbol 228 MovieClip [ship1] Frame 10
this.stop();
Symbol 228 MovieClip [ship1] Frame 20
this.stop();
Symbol 228 MovieClip [ship1] Frame 30
this.stop();
Symbol 264 MovieClip Frame 1
function InBraidOpen(tempMode) {
trace("\u30D6\u30EC\u30FC\u30C9\u3001open\u30E1\u30BD\u30C3\u30C9\u5B9F\u884C tempMode =" + tempMode);
if (tempMode) {
this.gotoAndPlay("open");
} else {
this.gotoAndPlay("close");
}
}
if (_parent._parent._parent._name == "mainChar") {
if (_root.mainChar.getBraidmode()) {
this.gotoAndPlay("oa");
} else {
this.gotoAndStop("open");
}
}
Symbol 264 MovieClip Frame 10
this.stop();
Symbol 264 MovieClip Frame 11
Symbol 264 MovieClip Frame 16
this.gotoAndPlay(_currentframe - 2);
Symbol 264 MovieClip Frame 17
Symbol 264 MovieClip Frame 20
this.gotoAndStop("open");
Symbol 273 MovieClip Frame 1
_parent.style = "p_normal";
Symbol 277 MovieClip Frame 5
Symbol 277 MovieClip Frame 7
_parent.style = "s";
Symbol 277 MovieClip Frame 15
_parent.gotoAndStop("sky_normal");
Symbol 279 MovieClip Frame 4
Symbol 279 MovieClip Frame 6
_parent.style = "p_normal";
Symbol 279 MovieClip Frame 14
_parent.gotoAndStop("paci_normal");
Symbol 281 MovieClip Frame 1
_parent.style = "p_standing";
Symbol 282 MovieClip Frame 1
_parent.style = "p_normal";
Symbol 282 MovieClip Frame 5
_parent.gotoAndStop("paci_normal");
Instance of Symbol 139 MovieClip in Symbol 285 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
dmgType = 0;
efType = 0;
}
Symbol 287 MovieClip Frame 1
_parent.ChangeAttackDmg(1);
Symbol 287 MovieClip Frame 6
this.gotoAndPlay(_currentframe - 2);
Symbol 308 MovieClip Frame 3
_parent.ChangeAttackDmg(3);
Instance of Symbol 146 MovieClip "hitArea_b1" in Symbol 308 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainChar.char.hitArea_b1)) {
_root.mainChar.BraidHit();
_parent.BraidHit();
trace("\u30E1\u30A4\u30F3\u30AD\u30E3\u30E9\u3068\u5263\u4EA4\u5DEE");
}
if (this.hitTest(_root.mainChar.damageArea)) {
_global.mainCharNowHp = _global.mainCharNowHp - 300;
}
}
Symbol 308 MovieClip Frame 9
if (_parent._name == "mainChar") {
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("braid2");
}
} else {
this.gotoAndPlay("braid2");
}
Symbol 308 MovieClip Frame 12
_parent.gotoAndStop("paci_standing");
Symbol 308 MovieClip Frame 24
_parent.ChangeAttackDmg(4);
Instance of Symbol 146 MovieClip "hitArea_b1" in Symbol 308 MovieClip Frame 26
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainChar.char.hitArea_b1)) {
_root.mainChar.BraidHit();
_parent.BraidHit();
trace("\u30E1\u30A4\u30F3\u30AD\u30E3\u30E9\u3068\u5263\u4EA4\u5DEE");
}
if (this.hitTest(_root.mainChar.damageArea)) {
_global.mainCharNowHp = _global.mainCharNowHp - 300;
}
}
Symbol 308 MovieClip Frame 31
if (_parent._name == "mainChar") {
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("braid3");
}
} else {
this.gotoAndPlay("braid3");
}
Symbol 308 MovieClip Frame 36
_parent.gotoAndStop("paci_standing");
Symbol 308 MovieClip Frame 53
_parent.ChangeAttackDmg(5);
Instance of Symbol 146 MovieClip "hitArea_b1" in Symbol 308 MovieClip Frame 54
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainChar.char.hitArea_b1)) {
_root.mainChar.BraidHit();
_parent.BraidHit();
trace("\u30E1\u30A4\u30F3\u30AD\u30E3\u30E9\u3068\u5263\u4EA4\u5DEE");
}
}
Instance of Symbol 146 MovieClip "hitArea_b1" in Symbol 308 MovieClip Frame 58
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainChar.char.hitArea_b1)) {
_root.mainChar.BraidHit();
_parent.BraidHit();
trace("\u30E1\u30A4\u30F3\u30AD\u30E3\u30E9\u3068\u5263\u4EA4\u5DEE");
}
}
Symbol 308 MovieClip Frame 65
_parent.gotoAndStop("paci_standing");
Symbol 309 MovieClip Frame 1
_parent.ChangeAttackDmg(1);
Symbol 309 MovieClip Frame 5
this.gotoAndPlay(_currentframe - 2);
Symbol 317 MovieClip [openWeponEF1] Frame 6
this.removeMovieClip();
this.stop();
Symbol 318 MovieClip Frame 1
function setWeponSystem1() {
thePoint = {x:-350, y:180};
this.localToGlobal(thePoint);
_root.attachMovie("WeponSystem1_or", WeponName, 5 + i);
_root[WeponName]._x = thePoint.x;
_root[WeponName]._y = thePoint.y;
var randSize = (Math.random() * 2);
_root[WeponName]._xscale = BaseSize + randSize;
_root[WeponName]._yscale = BaseSize + randSize;
}
randSizeWidth = 0;
BaseSize = _parent._xscale + 10;
_root.textDisplay.mesRecord("\u5B50\u6A5F\u5C55\u958B");
_parent.style = "equipWepon";
Symbol 318 MovieClip Frame 7
_parent.changeAttackDmg(10);
i = 1;
WeponName = "wepon0";
this.setWeponSystem1();
Symbol 318 MovieClip Frame 9
WeponName = "wepon1";
i = 2;
this.setWeponSystem1();
Symbol 318 MovieClip Frame 11
WeponName = "wepon2";
i = 3;
this.setWeponSystem1();
Symbol 318 MovieClip Frame 22
_parent.style = "p_standing";
_parent.gotoAndPlay("paci_standing");
Symbol 320 MovieClip Frame 1
_root.textDisplay.mesRecord("\u30AA\u30FC\u30D0\u30FC\u30AC\u30F3\u30E2\u30FC\u30C9\u3078\u79FB\u884C");
Symbol 320 MovieClip Frame 14
_parent.style = "overGun";
Symbol 320 MovieClip Frame 15
i = 0;
while (i <= 100) {
EFname = "changeEF" + i;
this.attachMovie("EF", EFname, i + 10);
this[EFname]._rotation = Math.random() * 360;
this[EFname]._xscale = (_root[EFname]._yscale = (Math.random() * 300) + 50);
this[EFname]._x = 0;
this[EFname]._y = 0;
i++;
}
Symbol 320 MovieClip Frame 17
_parent.gotoAndStop("overGun");
Symbol 321 MovieClip Frame 1
function overShotEnd() {
this.gotoAndPlay(1);
}
EFsize = 100;
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("charge");
}
Symbol 321 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 2);
Symbol 321 MovieClip Frame 7
this.attachMovie("sarcleEF", "sarcleEF", 600);
this.sarcleEF._x = 266;
this.sarcleEF._y = 5;
Symbol 321 MovieClip Frame 8
if (Key.isDown(_global.keyCas[1])) {
EFsize = EFsize + 5;
this.sarcleEF._xscale = (this.sarcleEF._yscale = EFsize);
} else {
this.gotoAndStop("shot");
}
Symbol 321 MovieClip Frame 9
this.gotoAndPlay(_currentframe - 1);
Symbol 321 MovieClip Frame 15
_parent.ChangeAttackDmg(2);
name = "shotArea";
this.attachMovie("overShotEF", name, 600);
this[name]._x = 260;
this[name]._y = 6;
this[name]._xscale = EFsize * 2;
this[name]._yscale = EFsize * 2;
this[name].cnt = EFsize;
Symbol 323 MovieClip Frame 1
this.onEnterFrame = function () {
this._rotation = this._rotation + _parent.ro;
};
Symbol 325 MovieClip Frame 1
this.onEnterFrame = function () {
if (!Key.isDown(_global.keyCas[3])) {
_parent.gotoAndStop("paci_standing");
}
};
Instance of Symbol 324 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
ro = 5;
}
Instance of Symbol 324 MovieClip in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
ro = -5;
}
Symbol 325 MovieClip Frame 6
this.stop();
Symbol 326 MovieClip Frame 5
_parent.gotoAndStop("paci_normal");
Symbol 327 MovieClip [char1] Frame 1
bodyName = "charData1";
if (!userCon) {
this.gotoAndStop(7);
}
Symbol 327 MovieClip [char1] Frame 2
function ChangeAttackDmg(atkNo) {
if (atkNo < 3) {
_global.shotDmg = _root[bodyName][24 + atkNo];
} else if (atkNo < 8) {
_global.braidDmg = _root[bodyName][24 + atkNo];
} else if (atkNo < 10) {
_global.extDmg = _root[bodyName][24 + atkNo];
} else {
_global.parDmg = _root[bodyName][24 + atkNo];
}
trace("\u653B\u6483\u529B\u5909\u66F4 No = " + (24 + atkNo));
trace((((("s=" + _global.shotDmg) + "\nb=") + _global.braidDmg) + "\ne=") + _global.extDmg);
}
function getBraidmode() {
return(braidMode);
}
function ChangeWepon() {
braidMode = !braidMode;
this.char.handF.braid.InBraidOpen(braidMode);
_root.weponSymbol.WeponSymbolChange(braidMode);
}
function getDirection() {
return(direction);
}
function boostMove(flag) {
if (flag > 0) {
this.gotoAndPlay("boost");
theBoostSE.start();
speedDownCnt = 5;
if (_global.keyModeCon == 2) {
var tempKakudo = mousekakudo;
} else {
var tempKakudo = ((_rotation * Math.PI) / 180);
}
XnowSpeed = XnowSpeed + (boostSpeed * Math.cos(tempKakudo));
YnowSpeed = YnowSpeed + (boostSpeed * Math.sin(tempKakudo));
} else if (speedDownCnt > 0) {
XnowSpeed = XnowSpeed / boostDownExt;
YnowSpeed = YnowSpeed / boostDownExt;
nowSpeed = Math.abs(XnowSpeed) + Math.abs(YnowSpeed);
speedDownCnt--;
if (speedDownCnt == 0) {
boostMode = 0;
}
}
}
function SpeedUP() {
if (!boostMode) {
if (style == "s") {
maxSpeed = SmaxSpeed;
addSpeed = SaddSpeed;
} else if (style == "overGun") {
maxSpeed = EmaxSpeed;
addSpeed = EaddSpeed;
} else {
maxSpeed = PmaxSpeed;
addSpeed = PaddSpeed;
}
if (style == "p_standing") {
this.gotoAndStop("paci(s->n)");
}
if (_global.keyModeCon == 2) {
trace("\u7279\u6B8A\u306A\u5411\u304D\u53D6\u5F97 ModeCon=2");
var tempKakudo = mouseKakudo;
} else {
var tempKakudo = ((_rotation * Math.PI) / 180);
}
var tempXspeed = (XnowSpeed + (addSpeed * Math.cos(tempKakudo)));
var tempYspeed = (YnowSpeed + (addSpeed * Math.sin(tempKakudo)));
var tempnowSpeed = (Math.abs(tempXspeed) + Math.abs(tempYspeed));
if (tempnowSpeed <= maxSpeed) {
XnowSpeed = tempXspeed;
YnowSpeed = tempYspeed;
nowSpeed = Math.abs(XnowSpeed) + Math.abs(YnowSpeed);
}
}
}
function normal() {
this.gotoAndStop("paci_standing");
}
function SpeedDown() {
if ((YnowSpeed < 5) && (YnowSpeed > -5)) {
YnowSpeed = YnowSpeed / 1.1;
} else if (YnowSpeed > 0) {
YnowSpeed = YnowSpeed - 3;
} else {
YnowSpeed = YnowSpeed + 3;
}
if ((XnowSpeed < 5) && (XnowSpeed > -5)) {
XnowSpeed = XnowSpeed / 1.1;
} else if (XnowSpeed > 0) {
XnowSpeed = XnowSpeed - 3;
} else {
XnowSpeed = XnowSpeed + 3;
}
}
function gard() {
if (gardFlag > 0) {
this.gotoAndStop("paci_gard");
}
}
function change() {
if (changeFlag > 0) {
if ((style == "p_normal") || (style == "p_standing")) {
braidMode = 0;
this.gotoAndStop("change(p->s)");
} else {
this.gotoAndStop("change(s->p)");
}
}
}
function GunChange() {
if (overFlag > 0) {
if ((style == "p_normal") || (style == "p_standing")) {
braidMode = 0;
this.gotoAndStop("paci(n->over)");
}
}
}
function atkStart() {
if (_global.keyModeChangeWepon == 0) {
if (style == "s") {
this.shot_s1();
} else if (braidMode) {
this.braid1();
} else {
this.shot_p1();
}
} else {
xDis = _root._xmouse - _x;
yDis = _root._ymouse - _y;
var x = Math.pow(Math.abs(xDis), 2);
var y = Math.pow(Math.abs(yDis), 2);
var sa = Math.sqrt(x + y);
if (sa < changeWeponRange) {
braidMode = 1;
} else {
braidMode = 0;
}
if (style == "s") {
this.shot_s1();
} else if (braidMode) {
this.braid1();
} else {
this.shot_p1();
}
}
}
function atkEnd() {
if (style == "s") {
this.gotoAndStop("sky_normal");
} else if (!braidMode) {
if (nowSpeed <= 25) {
this.gotoAndStop("paci_standing");
} else {
this.gotoAndStop("paci_normal");
}
}
shotMode = "ready";
}
function shot_p1() {
this.gotoAndStop("paci_s(shot1)");
}
function shot_s1() {
this.gotoAndStop("sky_shot1");
}
function braid1() {
this.gotoAndStop("paci_s(braid1)");
}
function openWepon1() {
if (extFlag > 0) {
if (style == "s") {
if (skyExtFlag > 0) {
this.gotoAndStop("sky_Ext");
}
} else {
this.gotoAndStop("paci_openWepon1");
}
}
}
function TraceMouse() {
xDis = _root._xmouse - _x;
yDis = _root._ymouse - _y;
radian = Math.atan2(yDis, xDis);
kakudo = radian / (Math.PI/180);
_rotation = kakudo;
if ((_rotation <= 180) && (_rotation > 90)) {
direction = "left";
_yscale = (-scale);
} else if (_rotation <= -90) {
direction = "left";
_yscale = (-scale);
} else {
direction = "right";
_yscale = scale;
}
}
function searchEnemy(searchMode) {
trace("\n\u6575\u30B5\u30FC\u30C1\u958B\u59CB\u3000\u30E2\u30FC\u30C9=" + searchMode);
i = 0;
if (searchMode == 0) {
i = 1;
while (i < _global.SetMaxEnemyNo) {
if (_root[i] != undefined) {
nowTarget = i;
break;
}
i++;
}
} else if (searchMode == 1) {
}
trace(("nowTarget\u3092ENEMY" + nowTarget) + "\u306B\u5909\u66F4\u3057\u307E\u3057\u305F\u3002");
}
function autoTrace() {
if (_root[nowTarget] == undefined) {
this.searchEnemy(0);
}
var xDis = (_root[nowTarget]._x - _x);
var yDis = (_root[nowTarget]._y - _y);
trace((("\u6575\u4E00\u60C5\u5831=" + xDis) + "-") + yDis);
var radian = Math.atan2(yDis, xDis);
var nextRo = (radian / (Math.PI/180));
if ((nextRo > 90) && (_rotation < -90)) {
_rotation = (_rotation + (((-360 + nextRo) - _rotation) / roSpeed));
} else if ((nextRo < -90) && (_rotation > 90)) {
_rotation = (_rotation + (((nextRo + 360) - _rotation) / roSpeed));
} else {
_rotation = (_rotation + ((nextRo - this._rotation) / roSpeed));
}
if ((_rotation <= 180) && (_rotation > 90)) {
direction = "left";
_yscale = (-scale);
} else if (_rotation <= -90) {
direction = "left";
_yscale = (-scale);
} else {
direction = "right";
_yscale = scale;
}
}
function lockTrace() {
var xDis = (_root[nowTarget]._x - _x);
var yDis = (_root[nowTarget]._y - _y);
var radian = Math.atan2(yDis, xDis);
_rotation = (radian / (Math.PI/180));
if ((_rotation <= 180) && (_rotation > 90)) {
direction = "left";
_yscale = (-scale);
} else if (_rotation <= -90) {
direction = "left";
_yscale = (-scale);
} else {
direction = "right";
_yscale = scale;
}
}
function CheckMouseDown() {
if (((getDC > -1) && (boostCnt == 0)) && (dushFlag > 0)) {
boostMode = 1;
boostCnt = 6;
speedMode = 1;
} else {
speedMode = 1;
getDC = DCtime;
}
}
function damage(dmgPoint, dmgType, Nouse1, Nouse2, Nouse3) {
s1++;
_root.mainHp.ChangeHp(dmgPoint - def);
dmgName = "dmg" + s1;
this.attachMovie(this.efTypeAry[dmgType], dmgName, s1);
}
function MainSystem() {
if (_global.keyModeCon) {
this.autoTrace();
}
if (speedMode) {
this.speedUP();
} else if (nowSpeed <= 25) {
if ((_currentframe == 11) || (_currentframe == 51)) {
this.normal();
}
}
if (XnowSpeed >= 0) {
XnowSpeed = XnowSpeed - Xdown;
}
if (XnowSpeed <= 0) {
XnowSpeed = XnowSpeed + Xdown;
}
YnowSpeed = YnowSpeed + Ydown;
if (shotMode == "shot") {
this.atkStart();
} else if (shotMode == "stop") {
this.atkEnd();
}
}
function getMouseRotation() {
var xDis = (_root._xmouse - _x);
var yDis = (_root._ymouse - _y);
mouseKakudo = Math.atan2(yDis, xDis);
}
function GetAction() {
if (Key.isDown(_global[keyName][1])) {
if (style != "overGun") {
shotMode = "shot";
}
} else if (shotMode == "shot") {
shotMode = "stop";
}
if (Key.isDown(_global[keyName][2]) && (_global.keyModeChangeWepon == 0)) {
if (bCnt) {
bCnt = 0;
this.ChangeWepon();
}
} else {
bCnt = 1;
}
if (Key.isDown(_global[keyName][3])) {
this.gard();
}
if (Key.isDown(_global[keyName][4])) {
this.openWepon1();
}
if (Key.isDown(_global[keyName][5])) {
this.GunChange();
}
if (Key.isDown(_global[keyName][6])) {
this.change();
}
if (Key.isDown(_global[keyName][7])) {
this.SpeedDown();
}
if (Key.isDown(_global[keyName][8])) {
if (oCnt) {
oCnt = 0;
_root.attachMovie("ECCM", "ECCM", 800);
_root.ECCM._x = this._x;
_root.ECCM._y = this._y;
}
} else {
oCnt = 1;
}
if (boostCnt > 0) {
if (boostCnt == 6) {
getNowXspeed = XnowSpeed;
getNowYspeed = YnowSpeed;
this.boostMove(1);
}
if (boostCnt != 1) {
this.boostMove(0);
}
boostCnt--;
}
if (getDC > -1) {
getDC--;
}
}
nowTarget = 1;
roSpeed = 2;
changeWeponRange = 80;
_global.hp = _root[bodyName][7];
_root.mainHp.HpSet();
en = _root[bodyName][8];
def = _root[bodyName][9];
SmaxSpeed = _root[bodyName][10];
PmaxSpeed = _root[bodyName][11];
EmaxSpeed = _root[bodyName][12];
SaddSpeed = _root[bodyName][13];
PaddSPeed = _root[bodyName][14];
EaddSpeed = _root[bodyName][15];
Sxdown = _root[bodyName][16];
Sydown = _root[bodyName][17];
Pxdown = _root[bodyName][18];
Pydown = _root[bodyName][19];
BoostSpeed = _root[bodyName][20];
boostDownExt = _root[bodyName][21];
weponChangeFlag = _root[bodyName][40];
changeFlag = _root[bodyName][41];
skyExtFlag = _root[bodyName][42];
skyDushFlag = _root[bodyName][43];
extFlag = _root[bodyName][44];
overFlag = _root[bodyName][45];
dushFlag = _root[bodyName][46];
gardFlag = _root[bodyName][47];
scale = _xscale;
direction = "right";
XaddSpeed = 0;
YaddSpeed = 0;
nowSpeed = 0;
XnowSpeed = 0;
YnowSpeed = 0;
maxSpeed = PmaxSpeed;
addSpeed = PaddSpeed;
Xdown = Pxdown;
Ydown = Pydown;
style = "p_standing";
braidMode = 0;
shotMode = "ready";
speedMode = 0;
boostMode = 0;
getDC = 0;
DCtime = 3;
boostCnt = 0;
weponChangeWait = 300;
weponChangeCount = 0;
theBoostSE = new Sound();
theBoostSE.attachSound("boostSE3");
keyName = "keyCas";
s1 = 0;
efTypeAry = ["efHitShot2", "efHitBraid2"];
if (_global.effectLv > 1) {
pas = eval (_root.backArea);
pas.attachMovie("mainCharSmoke", "mainChar", 1);
theLoc = {x:this._x, y:this._y};
pas.globalToLocal(theLoc);
pas[_name]._x = theLoc.x;
pas[_name]._y = theLoc.y;
}
oCnt = 1;
bCnt = 1;
this.onEnterFrame = function () {
this.GetAction();
this.MainSystem();
};
this.onMouseDown = function () {
this.CheckMouseDown();
};
this.onMouseUp = function () {
speedMode = 0;
};
this.onMouseMove = function () {
if (_global.keyModeCon == 0) {
this.TraceMouse();
} else if (_global.keyModeCon == 2) {
this.getMouseRotation();
}
};
this.gotoAndStop("paci_standing");
trace("\u5B9A\u7FA9\u7D42\u4E86" + _global.hp);
Symbol 327 MovieClip [char1] Frame 7
function hit(dmgType, efType) {
if (mode) {
trace((("_name\u88AB\u5F3E dmg=" + dmgType) + " ef=") + efType);
this.attachMovie([efTypeAry[efType]], "ef", 1);
this.ef.scaleExt = 4;
hp = hp - (_global[dmgTypeAry[dmgType]] - def);
_root.hpBar.bar._xscale = (hp / baseHp) * 100;
if (hp < 0) {
_root.mainHp.AddScore(800, "flo");
mode = 0;
_name = null;
this.gotoAndPlay("bomb");
}
}
}
function AI() {
var xDis = (_root.mainChar._x - _x);
var yDis = (_root.mainChar._y - _y);
var radian = Math.atan2(yDis, xDis);
_rotation = (radian / (Math.PI/180));
if ((_rotation <= 180) && (_rotation > 90)) {
direction = "left";
_yscale = (-scale);
} else if (_rotation <= -90) {
direction = "left";
_yscale = (-scale);
} else {
direction = "right";
_yscale = scale;
}
this._x = this._x - (XnowSpeed + _root.mainChar.XnowSpeed);
this._y = this._y - (YnowSpeed + _root.mainChar.YnowSpeed);
}
en = _root[bodyName][8];
def = _root[bodyName][9];
SmaxSpeed = _root[bodyName][10];
PmaxSpeed = _root[bodyName][11];
EmaxSpeed = _root[bodyName][12];
SaddSpeed = _root[bodyName][13];
PaddSPeed = _root[bodyName][14];
EaddSpeed = _root[bodyName][15];
Sxdown = _root[bodyName][16];
Sydown = _root[bodyName][17];
Pxdown = _root[bodyName][18];
Pydown = _root[bodyName][19];
BoostSpeed = _root[bodyName][20];
boostDownExt = _root[bodyName][21];
weponChangeFlag = _root[bodyName][40];
changeFlag = _root[bodyName][41];
skyExtFlag = _root[bodyName][42];
skyDushFlag = _root[bodyName][43];
extFlag = _root[bodyName][44];
overFlag = _root[bodyName][45];
dushFlag = _root[bodyName][46];
gardFlag = _root[bodyName][47];
scale = _xscale;
direction = "right";
XaddSpeed = 0;
YaddSpeed = 0;
nowSpeed = 0;
XnowSpeed = 0;
YnowSpeed = 0;
maxSpeed = PmaxSpeed;
addSpeed = PaddSpeed;
Xdown = Pxdown;
Ydown = Pydown;
style = "p_standing";
braidMode = 0;
shotMode = "ready";
speedMode = 0;
boostMode = 0;
getDC = 0;
DCtime = 3;
boostCnt = 0;
weponChangeWait = 300;
weponChangeCount = 0;
theBoostSE = new Sound();
theBoostSE.attachSound("boostSE3");
hp = (baseHp = 4000);
mode = 1;
efTypeAry = new Array();
efTypeAry = ["efHitShot2", "efHitBraid2"];
dmgTypeAry = new Array();
dmgTypeAry = ["shotDmg", "braidDmg", "extDmg", "parDmg"];
_root.attachMovie("enemyHpBar2", "hpBar", 1000);
_root.hpBar.traceName = _name;
this.onEnterFrame = function () {
this.AI();
};
this.gotoAndStop("paci_standing");
Symbol 327 MovieClip [char1] Frame 11
this.stop();
Symbol 327 MovieClip [char1] Frame 20
this.stop();
Symbol 327 MovieClip [char1] Frame 30
this.stop();
Symbol 327 MovieClip [char1] Frame 40
this.stop();
Symbol 327 MovieClip [char1] Frame 50
this.stop();
Symbol 327 MovieClip [char1] Frame 60
this.stop();
Symbol 327 MovieClip [char1] Frame 70
this.stop();
Symbol 327 MovieClip [char1] Frame 80
this.stop();
Symbol 327 MovieClip [char1] Frame 90
this.stop();
Symbol 327 MovieClip [char1] Frame 100
this.stop();
Symbol 327 MovieClip [char1] Frame 110
this.stop();
Symbol 327 MovieClip [char1] Frame 120
this.stop();
Symbol 327 MovieClip [char1] Frame 130
this.stop();
Symbol 327 MovieClip [char1] Frame 140
this.stop();
Symbol 327 MovieClip [char1] Frame 150
this.stop();
Symbol 331 MovieClip Frame 1
speed = 15;
i = 0;
Symbol 331 MovieClip Frame 2
this._x = this._x + ((speed = speed - 1));
this._alpha = this._alpha - 6;
i++;
if (i >= 20) {
_parent.removeMovieClip();
}
Symbol 331 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 1);
Symbol 332 MovieClip [boostEF2] Frame 1
cnt = 6;
Symbol 332 MovieClip [boostEF2] Frame 2
this.onEnterFrame = function () {
this._x = this._x - ((_root.mainChar.XnowSpeed + (Math.random() * 20)) - 10);
this._y = this._y - ((_root.mainChar.YnowSpeed + (Math.random() * 20)) - 10);
cnt--;
if (cnt == 0) {
trace("\u6D88\u53BB");
this.removeMovieClip();
}
};
Symbol 333 MovieClip [boostEF] Frame 1
this.onEnterFrame = function () {
this._x = this._x - _root.mainChar.XnowSpeed;
this._y = this._y - _root.mainChar.YnowSpeed;
};
Symbol 349 MovieClip Frame 1
function OpenHeadBraid() {
this.play();
}
this.stop();
Symbol 349 MovieClip Frame 16
this.stop();
Symbol 349 MovieClip Frame 19
this.stop();
Instance of Symbol 264 MovieClip "braid" in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
function open() {
if (mode == "close") {
mode = "-";
this.gotoAndPlay(2);
} else if (mode == "open") {
mode = "-";
this.gotoAndPlay(8);
}
}
mode = "close";
tempmode = _root.mainChar.getBraidmode();
if (tempmode == "braidOpen") {
mode = "open";
this.gotoAndPlay(7);
} else {
mode = "close";
}
}
Instance of Symbol 380 MovieClip "braid" in Symbol 381 MovieClip Frame 1
onClipEvent (load) {
function open() {
if (mode == "close") {
mode = "-";
this.gotoAndPlay(2);
} else if (mode == "open") {
mode = "-";
this.gotoAndPlay(10);
}
}
mode = "close";
tempmode = _root.mainChar.getBraidmode();
if (tempmode == "braidOpen") {
mode = "open";
this.gotoAndPlay(10);
} else {
mode = "close";
}
}
Symbol 382 MovieClip Frame 1
_parent.style = "p_normal";
Symbol 421 MovieClip Frame 5
Symbol 421 MovieClip Frame 7
_parent.style = "s";
Symbol 421 MovieClip Frame 15
_parent.gotoAndStop("sky_normal");
Symbol 423 MovieClip Frame 4
Symbol 423 MovieClip Frame 6
_parent.style = "p_normal";
Symbol 423 MovieClip Frame 14
_parent.gotoAndStop("paci_normal");
Symbol 425 MovieClip Frame 1
function open() {
if (mode == "close") {
mode = "-";
this.gotoAndPlay(2);
} else if (mode == "open") {
mode = "-";
this.gotoAndPlay(8);
}
}
mode = "close";
tempmode = _root.mainChar.getBraidmode();
if (tempmode == "braidOpen") {
mode = "open";
this.gotoAndPlay(7);
} else {
mode = "close";
}
this.stop();
Symbol 425 MovieClip Frame 10
this.stop();
Symbol 425 MovieClip Frame 19
this.stop();
Symbol 428 MovieClip Frame 1
_parent.style = "p_standing";
Symbol 429 MovieClip Frame 1
_parent.style = "p_normal";
Symbol 429 MovieClip Frame 7
_parent.gotoAndStop("paci_normal");
Symbol 430 MovieClip Frame 1
_parent.ChangeAttackDmg(1);
Symbol 430 MovieClip Frame 3
Symbol 430 MovieClip Frame 5
this.gotoAndPlay(_currentframe - 2);
Symbol 432 MovieClip Frame 1
i = 0;
Symbol 432 MovieClip Frame 3
if (i >= 10) {
i = 0;
} else {
i++;
}
thePoint = {x:220, y:0};
this.localToGlobal(thePoint);
_global.mainCharNowEn = _global.mainCharNowEn - _parent.drShot;
shotName = "c2re_shot1EF" + i;
_root.attachMovie("c2re_shot1EF", shotName, 200 + i);
trace("\uFF2E\uFF4F" + (i + 200));
_root[shotName]._rotation = _parent._rotation;
_root[shotName]._x = thePoint.x;
_root[shotName]._y = thePoint.y - 14;
Symbol 432 MovieClip Frame 5
this.gotoAndPlay(_currentframe - 2);
Symbol 445 MovieClip Frame 1
function setEffect() {
theSound.start(0);
i = 0;
while (i < 3) {
efName = "ef" + i;
this.attachMovie("ef_btbHit2", efName, i);
this[efName]._x = 100 + (Math.random() * 400);
this[efName]._y = (Math.random() * 300) - 150;
i++;
}
i = 3;
while (i < 13) {
efName = "ef" + i;
this.attachMovie("ef_btbHit", efName, i);
this[efName]._x = 300;
i++;
}
}
function hitBraid() {
trace("\u30D6\u30EC\u30FC\u30C9\u63A5\u89E6\u5224\u5B9A");
if (!stopFlag) {
timeEnd = getTimer() + wait;
stopFlag = 1;
_root.mainChar.char.hitBraid();
this.setEffect();
this.stop();
}
}
stopFlag = 0;
wait = 200;
theSound = new Sound();
theSound.attachSound("set_3");
this.onEnterFrame = function () {
if (stopFlag && (getTimer() < timeEnd)) {
trace("\u505C\u6B62\u4E2D");
} else {
stopFlag = 0;
this.play();
}
};
this.gotoAndPlay(8);
Symbol 445 MovieClip Frame 10
_parent.changeAttackDmg(3);
Symbol 445 MovieClip Frame 11
Symbol 445 MovieClip Frame 15
if (_parent._name == "mainChar") {
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("braid2");
}
} else {
this.gotoAndPlay("braid2");
}
Symbol 445 MovieClip Frame 17
this.gotoAndPlay(18);
Symbol 445 MovieClip Frame 23
_parent.gotoAndStop("paci_standing");
Symbol 445 MovieClip Frame 42
_parent.changeAttackDmg(4);
Symbol 445 MovieClip Frame 43
Symbol 445 MovieClip Frame 48
if (_parent._name == "mainChar") {
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("braid3");
}
} else {
this.gotoAndPlay("braid3");
}
Symbol 445 MovieClip Frame 49
this.gotoAndPlay(50);
Symbol 445 MovieClip Frame 55
_parent.gotoAndStop("paci_standing");
Symbol 445 MovieClip Frame 70
_parent.changeAttackDmg(5);
Symbol 445 MovieClip Frame 71
Symbol 445 MovieClip Frame 86
_parent.gotoAndStop("paci_standing");
Symbol 446 MovieClip Frame 1
_parent.ChangeAttackDmg(1);
Symbol 446 MovieClip Frame 5
this.gotoAndPlay(_currentframe - 2);
Symbol 449 MovieClip Frame 1
_parent.ChangeAttackDmg(8);
_parent.style = "equipWepon";
Symbol 449 MovieClip Frame 4
i = 0;
while (i < 8) {
_global.extDeep++;
thePoint = {x:-220, y:0};
this.localToGlobal(thePoint);
shotName = "shot1EF" + _global.extDeep;
_root.attachMovie("lineLeaser", shotName, _global.extDeep);
_root[shotName]._x = thePoint.x;
_root[shotName]._y = thePoint.y;
i++;
}
Symbol 449 MovieClip Frame 15
_parent.style = "p_standing";
_parent.gotoAndPlay("paci_standing");
Symbol 454 MovieClip Frame 2
trace("\u30D8\u30C3\u30C9\u30D6\u30EC\u30A4\u30C9\u5C55\u958B\u8981\u6C42");
this.braid.OpenHeadBraid(1);
Symbol 454 MovieClip Frame 16
_parent.style = "overGun";
Symbol 454 MovieClip Frame 18
trace("\u30D8\u30C3\u30C9\u30D6\u30EC\u30A4\u30C9\u5C55\u958B\u8981\u6C42");
this.braid.OpenHeadBraid(0);
this.stop();
_parent.gotoAndStop("overGun");
Instance of Symbol 425 MovieClip "braid" in Symbol 454 MovieClip Frame 18
onClipEvent (load) {
this.gotoAndStop("close");
}
Symbol 459 MovieClip Frame 1
waitFlag = 0;
this.onEnterFrame = function () {
if (Key.isDown(_global.keyCas[1]) && (waitFlag == 0)) {
waitFlag = 1;
this.gotoAndPlay("attack1");
}
};
Instance of Symbol 425 MovieClip "braid" in Symbol 459 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("open");
}
Symbol 459 MovieClip Frame 30
this.gotoAndPlay("wait");
Symbol 459 MovieClip Frame 40
Instance of Symbol 425 MovieClip "braid" in Symbol 459 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop("open");
}
Symbol 459 MovieClip Frame 49
_parent.changeAttackDmg(3);
_parent.changeAttackDmg(9);
Symbol 459 MovieClip Frame 50
any = 8;
i = 0;
while (i < any) {
_global.extDeep++;
efName = "effect" + i;
_root.attachMovie("effect_baidSarcle", efName, _global.extDeep);
tempX = (this._x + 300) + (Math.random() * 500);
tempY = (this._y + (Math.random() * 1000)) - 500;
tempXY = {x:tempX, y:tempY};
this.localToGlobal(tempXY);
_root[efName]._x = tempXY.x;
_root[efName]._y = tempXY.y;
_root[efName]._xscale = (_root[efName]._yscale = (Math.random() * 100) + 30);
_root[efName]._rotation = (_parent._rotation + (Math.random() * 160)) - 80;
_root[efName].gotoAndPlay(Math.floor(Math.random() * 5));
i++;
}
Symbol 459 MovieClip Frame 69
waitFlag = 0;
this.gotoAndPlay("wait");
Symbol 463 MovieClip Frame 1
this.onEnterFrame = function () {
if (!Key.isDown(_global.keyCas[3])) {
_parent.gotoAndStop("paci_standing");
}
};
Symbol 463 MovieClip Frame 6
this.stop();
Symbol 464 MovieClip Frame 5
_parent.gotoAndStop("paci_normal");
Symbol 466 MovieClip Frame 14
_parent.style = "overGun";
Symbol 466 MovieClip Frame 15
i = 0;
while (i <= 100) {
EFname = "changeEF" + i;
this.attachMovie("EF", EFname, i + 10);
this[EFname]._rotation = Math.random() * 360;
this[EFname]._xscale = (_root[EFname]._yscale = (Math.random() * 300) + 50);
this[EFname]._x = 0;
this[EFname]._y = 0;
i++;
}
Symbol 466 MovieClip Frame 17
_parent.gotoAndStop("overGun");
Symbol 467 MovieClip Frame 5
this.onEnterFrame = function () {
_parent._y = _parent._y + 10;
this._rotation = 0;
};
Symbol 467 MovieClip Frame 50
_parent._parent.removeMovieClip();
this.stop();
Symbol 468 MovieClip [char3] Frame 1
bodyName = "charData3";
score = 100000 /* 0x0186A0 */;
myType = "p3";
if (!userCon) {
this.gotoAndStop(7);
}
Symbol 468 MovieClip [char3] Frame 2
function ChangeAttackDmg(atkNo) {
if (atkNo < 3) {
_global.shotDmg = _root[bodyName][24 + atkNo];
} else if (atkNo < 8) {
_global.braidDmg = _root[bodyName][24 + atkNo];
} else if (atkNo < 10) {
_global.extDmg = _root[bodyName][24 + atkNo];
} else {
_global.parDmg = _root[bodyName][24 + atkNo];
}
trace("\u653B\u6483\u529B\u5909\u66F4 No = " + (24 + atkNo));
trace((((("s=" + _global.shotDmg) + "\nb=") + _global.braidDmg) + "\ne=") + _global.extDmg);
}
function getBraidmode() {
return(braidMode);
}
function ChangeWepon() {
braidMode = !braidMode;
this.char.handF.braid.InBraidOpen(braidMode);
_root.weponSymbol.WeponSymbolChange(braidMode);
}
function getDirection() {
return(direction);
}
function boostMove(flag) {
if (flag > 0) {
this.gotoAndPlay("boost");
theBoostSE.start();
speedDownCnt = 5;
if (_global.keyModeCon == 2) {
var tempKakudo = mousekakudo;
} else {
var tempKakudo = ((_rotation * Math.PI) / 180);
}
XnowSpeed = XnowSpeed + (boostSpeed * Math.cos(tempKakudo));
YnowSpeed = YnowSpeed + (boostSpeed * Math.sin(tempKakudo));
} else if (speedDownCnt > 0) {
XnowSpeed = XnowSpeed / boostDownExt;
YnowSpeed = YnowSpeed / boostDownExt;
nowSpeed = Math.abs(XnowSpeed) + Math.abs(YnowSpeed);
speedDownCnt--;
if (speedDownCnt == 0) {
boostMode = 0;
}
}
}
function SpeedUP() {
if (!boostMode) {
if (style == "s") {
maxSpeed = SmaxSpeed;
addSpeed = SaddSpeed;
} else if (style == "overGun") {
maxSpeed = EmaxSpeed;
addSpeed = EaddSpeed;
} else {
maxSpeed = PmaxSpeed;
addSpeed = PaddSpeed;
}
if (style == "p_standing") {
this.gotoAndStop("paci(s->n)");
}
if (_global.keyModeCon == 2) {
trace("\u7279\u6B8A\u306A\u5411\u304D\u53D6\u5F97 ModeCon=2");
var tempKakudo = mouseKakudo;
} else {
var tempKakudo = ((_rotation * Math.PI) / 180);
}
var tempXspeed = (XnowSpeed + (addSpeed * Math.cos(tempKakudo)));
var tempYspeed = (YnowSpeed + (addSpeed * Math.sin(tempKakudo)));
var tempnowSpeed = (Math.abs(tempXspeed) + Math.abs(tempYspeed));
if (tempnowSpeed <= maxSpeed) {
XnowSpeed = tempXspeed;
YnowSpeed = tempYspeed;
nowSpeed = Math.abs(XnowSpeed) + Math.abs(YnowSpeed);
}
}
}
function normal() {
this.gotoAndStop("paci_standing");
}
function SpeedDown() {
if ((YnowSpeed < 5) && (YnowSpeed > -5)) {
YnowSpeed = YnowSpeed / 1.1;
} else if (YnowSpeed > 0) {
YnowSpeed = YnowSpeed - 3;
} else {
YnowSpeed = YnowSpeed + 3;
}
if ((XnowSpeed < 5) && (XnowSpeed > -5)) {
XnowSpeed = XnowSpeed / 1.1;
} else if (XnowSpeed > 0) {
XnowSpeed = XnowSpeed - 3;
} else {
XnowSpeed = XnowSpeed + 3;
}
}
function gard() {
if (gardFlag > 0) {
this.gotoAndStop("paci_gard");
}
}
function change() {
if (changeFlag > 0) {
if ((style == "p_normal") || (style == "p_standing")) {
braidMode = 0;
this.gotoAndStop("change(p->s)");
} else {
this.gotoAndStop("change(s->p)");
}
}
}
function GunChange() {
if (overFlag > 0) {
if ((style == "p_normal") || (style == "p_standing")) {
braidMode = 0;
this.gotoAndStop("paci(n->over)");
}
}
}
function atkStart() {
if (_global.keyModeChangeWepon == 0) {
if (style == "s") {
this.shot_s1();
} else if (braidMode) {
this.braid1();
} else {
this.shot_p1();
}
} else {
xDis = _root._xmouse - _x;
yDis = _root._ymouse - _y;
var x = Math.pow(Math.abs(xDis), 2);
var y = Math.pow(Math.abs(yDis), 2);
var sa = Math.sqrt(x + y);
if (sa < changeWeponRange) {
braidMode = 1;
} else {
braidMode = 0;
}
if (style == "s") {
this.shot_s1();
} else if (braidMode) {
this.braid1();
} else {
this.shot_p1();
}
}
}
function atkEnd() {
if (style == "s") {
this.gotoAndStop("sky_normal");
} else if (!braidMode) {
if (nowSpeed <= 25) {
this.gotoAndStop("paci_standing");
} else {
this.gotoAndStop("paci_normal");
}
}
shotMode = "ready";
}
function shot_p1() {
this.gotoAndStop("paci_s(shot1)");
}
function shot_s1() {
this.gotoAndStop("sky_shot1");
}
function braid1() {
this.gotoAndStop("paci_s(braid1)");
}
function openWepon1() {
if (extFlag > 0) {
if (style == "s") {
if (skyExtFlag > 0) {
this.gotoAndStop("sky_Ext");
}
} else {
this.gotoAndStop("paci_openWepon1");
}
}
}
function TraceMouse() {
xDis = _root._xmouse - _x;
yDis = _root._ymouse - _y;
radian = Math.atan2(yDis, xDis);
kakudo = radian / (Math.PI/180);
_rotation = kakudo;
if ((_rotation <= 180) && (_rotation > 90)) {
direction = "left";
_yscale = (-scale);
} else if (_rotation <= -90) {
direction = "left";
_yscale = (-scale);
} else {
direction = "right";
_yscale = scale;
}
}
function searchEnemy(searchMode) {
trace("\n\u6575\u30B5\u30FC\u30C1\u958B\u59CB\u3000\u30E2\u30FC\u30C9=" + searchMode);
i = 0;
if (searchMode == 0) {
i = 1;
while (i < _global.SetMaxEnemyNo) {
if (_root[i] != undefined) {
nowTarget = i;
break;
}
i++;
}
} else if (searchMode == 1) {
}
trace(("nowTarget\u3092ENEMY" + nowTarget) + "\u306B\u5909\u66F4\u3057\u307E\u3057\u305F\u3002");
}
function autoTrace() {
if (_root[nowTarget] == undefined) {
this.searchEnemy(0);
}
var xDis = (_root[nowTarget]._x - _x);
var yDis = (_root[nowTarget]._y - _y);
trace((("\u6575\u4E00\u60C5\u5831=" + xDis) + "-") + yDis);
var radian = Math.atan2(yDis, xDis);
var nextRo = (radian / (Math.PI/180));
if ((nextRo > 90) && (_rotation < -90)) {
_rotation = (_rotation + (((-360 + nextRo) - _rotation) / roSpeed));
} else if ((nextRo < -90) && (_rotation > 90)) {
_rotation = (_rotation + (((nextRo + 360) - _rotation) / roSpeed));
} else {
_rotation = (_rotation + ((nextRo - this._rotation) / roSpeed));
}
if ((_rotation <= 180) && (_rotation > 90)) {
direction = "left";
_yscale = (-scale);
} else if (_rotation <= -90) {
direction = "left";
_yscale = (-scale);
} else {
direction = "right";
_yscale = scale;
}
}
function lockTrace() {
var xDis = (_root[nowTarget]._x - _x);
var yDis = (_root[nowTarget]._y - _y);
var radian = Math.atan2(yDis, xDis);
_rotation = (radian / (Math.PI/180));
if ((_rotation <= 180) && (_rotation > 90)) {
direction = "left";
_yscale = (-scale);
} else if (_rotation <= -90) {
direction = "left";
_yscale = (-scale);
} else {
direction = "right";
_yscale = scale;
}
}
function CheckMouseDown() {
if (((getDC > -1) && (boostCnt == 0)) && (dushFlag > 0)) {
boostMode = 1;
boostCnt = 6;
speedMode = 1;
} else {
speedMode = 1;
getDC = DCtime;
}
}
function damage(dmgPoint, dmgType, Nouse1, Nouse2, Nouse3) {
s1++;
_root.mainHp.ChangeHp(dmgPoint - def);
dmgName = "dmg" + s1;
this.attachMovie(this.efTypeAry[dmgType], dmgName, s1);
}
function MainSystem() {
if (_global.keyModeCon) {
this.autoTrace();
}
if (speedMode) {
this.speedUP();
} else if (nowSpeed <= 25) {
if ((_currentframe == 11) || (_currentframe == 51)) {
this.normal();
}
}
if (XnowSpeed >= 0) {
XnowSpeed = XnowSpeed - Xdown;
}
if (XnowSpeed <= 0) {
XnowSpeed = XnowSpeed + Xdown;
}
YnowSpeed = YnowSpeed + Ydown;
if (shotMode == "shot") {
this.atkStart();
} else if (shotMode == "stop") {
this.atkEnd();
}
}
function getMouseRotation() {
var xDis = (_root._xmouse - _x);
var yDis = (_root._ymouse - _y);
mouseKakudo = Math.atan2(yDis, xDis);
}
function GetAction() {
if (Key.isDown(_global[keyName][1])) {
if (style != "overGun") {
shotMode = "shot";
}
} else if (shotMode == "shot") {
shotMode = "stop";
}
if (Key.isDown(_global[keyName][2]) && (_global.keyModeChangeWepon == 0)) {
if (bCnt) {
bCnt = 0;
this.ChangeWepon();
}
} else {
bCnt = 1;
}
if (Key.isDown(_global[keyName][3])) {
this.gard();
}
if (Key.isDown(_global[keyName][4])) {
this.openWepon1();
}
if (Key.isDown(_global[keyName][5])) {
this.GunChange();
}
if (Key.isDown(_global[keyName][6])) {
this.change();
}
if (Key.isDown(_global[keyName][7])) {
this.SpeedDown();
}
if (Key.isDown(_global[keyName][8])) {
if (oCnt) {
oCnt = 0;
_root.attachMovie("ECCM", "ECCM", 800);
_root.ECCM._x = this._x;
_root.ECCM._y = this._y;
}
} else {
oCnt = 1;
}
if (boostCnt > 0) {
if (boostCnt == 6) {
getNowXspeed = XnowSpeed;
getNowYspeed = YnowSpeed;
this.boostMove(1);
}
if (boostCnt != 1) {
this.boostMove(0);
}
boostCnt--;
}
if (getDC > -1) {
getDC--;
}
}
nowTarget = 1;
roSpeed = 2;
changeWeponRange = 80;
_global.hp = _root[bodyName][7];
_root.mainHp.HpSet();
en = _root[bodyName][8];
def = _root[bodyName][9];
SmaxSpeed = _root[bodyName][10];
PmaxSpeed = _root[bodyName][11];
EmaxSpeed = _root[bodyName][12];
SaddSpeed = _root[bodyName][13];
PaddSPeed = _root[bodyName][14];
EaddSpeed = _root[bodyName][15];
Sxdown = _root[bodyName][16];
Sydown = _root[bodyName][17];
Pxdown = _root[bodyName][18];
Pydown = _root[bodyName][19];
BoostSpeed = _root[bodyName][20];
boostDownExt = _root[bodyName][21];
weponChangeFlag = _root[bodyName][40];
changeFlag = _root[bodyName][41];
skyExtFlag = _root[bodyName][42];
skyDushFlag = _root[bodyName][43];
extFlag = _root[bodyName][44];
overFlag = _root[bodyName][45];
dushFlag = _root[bodyName][46];
gardFlag = _root[bodyName][47];
scale = _xscale;
direction = "right";
XaddSpeed = 0;
YaddSpeed = 0;
nowSpeed = 0;
XnowSpeed = 0;
YnowSpeed = 0;
maxSpeed = PmaxSpeed;
addSpeed = PaddSpeed;
Xdown = Pxdown;
Ydown = Pydown;
style = "p_standing";
braidMode = 0;
shotMode = "ready";
speedMode = 0;
boostMode = 0;
getDC = 0;
DCtime = 3;
boostCnt = 0;
weponChangeWait = 300;
weponChangeCount = 0;
theBoostSE = new Sound();
theBoostSE.attachSound("boostSE3");
keyName = "keyCas";
s1 = 0;
efTypeAry = ["efHitShot2", "efHitBraid2"];
if (_global.effectLv > 1) {
pas = eval (_root.backArea);
pas.attachMovie("mainCharSmoke", "mainChar", 1);
theLoc = {x:this._x, y:this._y};
pas.globalToLocal(theLoc);
pas[_name]._x = theLoc.x;
pas[_name]._y = theLoc.y;
}
oCnt = 1;
bCnt = 1;
this.onEnterFrame = function () {
this.GetAction();
this.MainSystem();
};
this.onMouseDown = function () {
this.CheckMouseDown();
};
this.onMouseUp = function () {
speedMode = 0;
};
this.onMouseMove = function () {
if (_global.keyModeCon == 0) {
this.TraceMouse();
} else if (_global.keyModeCon == 2) {
this.getMouseRotation();
}
};
this.gotoAndStop("paci_standing");
trace("\u5B9A\u7FA9\u7D42\u4E86" + _global.hp);
Symbol 468 MovieClip [char3] Frame 7
function hit(dmgType, efType) {
if (mode) {
trace((("_name\u88AB\u5F3E dmg=" + dmgType) + " ef=") + efType);
this.attachMovie([efTypeAry[efType]], "ef", 1);
this.ef.scaleExt = 4;
hp = hp - (_global[dmgTypeAry[dmgType]] - def);
_root[barName].bar._xscale = (hp / baseHp) * 100;
if (hp < 0) {
_root.mainHp.AddScore(score, myType);
_root.lerder.RemoveCoItem(_name);
_root.enemyDown();
mode = 0;
_name = null;
this.gotoAndPlay("bomb");
}
}
}
function ChangeWepon() {
braidMode = !braidMode;
this.char.handF.braid.InBraidOpen(braidMode);
}
function getDirection() {
return(direction);
}
function boostMove(flag) {
if (flag) {
this.gotoAndPlay("boost");
theBoostSE.start();
speedDownCnt = 5;
var tempKakudo = ((_rotation * Math.PI) / 180);
XnowSpeed = XnowSpeed + (boostSpeed * Math.cos(tempKakudo));
YnowSpeed = YnowSpeed + (boostSpeed * Math.sin(tempKakudo));
} else if (speedDownCnt > 0) {
XnowSpeed = XnowSpeed / boostDownExt;
YnowSpeed = YnowSpeed / boostDownExt;
nowSpeed = Math.abs(XnowSpeed) + Math.abs(YnowSpeed);
speedDownCnt--;
if (speedDownCnt == 0) {
boostMode = 0;
}
}
}
function SpeedUP() {
if (!boostMode) {
if (style == "s") {
maxSpeed = SmaxSpeed;
addSpeed = SaddSpeed;
} else if (style == "overGun") {
maxSpeed = EmaxSpeed;
addSpeed = EaddSpeed;
} else {
maxSpeed = PmaxSpeed;
addSpeed = PaddSpeed;
}
if (style == "p_standing") {
this.gotoAndStop("paci(s->n)");
}
var tempKakudo = ((_rotation * Math.PI) / 180);
var tempXspeed = (XnowSpeed + (addSpeed * Math.cos(tempKakudo)));
var tempYspeed = (YnowSpeed + (addSpeed * Math.sin(tempKakudo)));
var tempnowSpeed = (Math.abs(tempXspeed) + Math.abs(tempYspeed));
if (tempnowSpeed <= maxSpeed) {
XnowSpeed = tempXspeed;
YnowSpeed = tempYspeed;
nowSpeed = Math.abs(XnowSpeed) + Math.abs(YnowSpeed);
}
}
}
function normal() {
this.gotoAndStop("paci_standing");
}
function SpeedDown() {
if ((YnowSpeed < 5) && (YnowSpeed > -5)) {
YnowSpeed = YnowSpeed / 1.1;
} else if (YnowSpeed > 0) {
YnowSpeed = YnowSpeed - 3;
} else {
YnowSpeed = YnowSpeed + 3;
}
if ((XnowSpeed < 5) && (XnowSpeed > -5)) {
XnowSpeed = XnowSpeed / 1.1;
} else if (XnowSpeed > 0) {
XnowSpeed = XnowSpeed - 3;
} else {
XnowSpeed = XnowSpeed + 3;
}
}
function gard() {
if (gardFlag > 0) {
this.gotoAndStop("paci_gard");
}
}
function change() {
if (changeFlag > 0) {
if ((style == "p_normal") || (style == "p_standing")) {
braidMode = 0;
this.gotoAndStop("change(p->s)");
} else {
this.gotoAndStop("change(s->p)");
}
}
}
function GunChange() {
if (overFlag > 0) {
if ((style == "p_normal") || (style == "p_standing")) {
braidMode = 0;
this.gotoAndStop("paci(n->over)");
}
}
}
function atkStart() {
if (style == "s") {
this.shot_s1();
} else if (braidMode) {
this.braid1();
} else {
this.shot_p1();
}
}
function atkEnd() {
if (style == "s") {
this.gotoAndStop("sky_normal");
} else if (!braidMode) {
if (nowSpeed <= 25) {
this.gotoAndStop("paci_standing");
} else {
this.gotoAndStop("paci_normal");
}
}
shotMode = "ready";
}
function shot_p1() {
this.gotoAndStop("paci_s(shot1)");
}
function shot_s1() {
this.gotoAndStop("sky_shot1");
}
function braid1() {
this.gotoAndStop("paci_s(braid1)");
}
function openWepon1() {
if (extFlag > 0) {
if (style == "s") {
if (skyExtFlag > 0) {
this.gotoAndStop("sky_Ext");
}
} else {
this.gotoAndStop("paci_openWepon1");
}
}
}
function MainSystem() {
if (boostCnt > 0) {
if (boostCnt == 6) {
getNowXspeed = XnowSpeed;
getNowYspeed = YnowSpeed;
this.boostMove(1);
}
if (boostCnt != 1) {
this.boostMove(0);
}
boostCnt--;
}
if (speedMode) {
if (Math.random() > dushPar) {
trace(_name + "\u30C0\u30C3\u30B7\u30E5\u5B9F\u884C");
boostMode = 1;
boostCnt = 6;
}
if (Math.random() > 0.2) {
this.speedUP();
} else {
this.SpeedDown();
}
} else if (nowSpeed <= 25) {
if ((_currentframe == 11) || (_currentframe == 51)) {
this.normal();
}
}
if (shotMode) {
this.atkStart();
} else if (shotMode == 0) {
this.atkEnd();
}
_root.radar.getCo(_name, this._x, this._y, 4);
}
function AI() {
var xDis = (_root.mainChar._x - _x);
var yDis = (_root.mainChar._y - _y);
var radian = Math.atan2(yDis, xDis);
nextRo = radian / (Math.PI/180);
if ((nextRo > 90) && (_rotation < -90)) {
_rotation = (_rotation + (((-360 + nextRo) - _rotation) / roSpeed));
} else if ((nextRo < -90) && (_rotation > 90)) {
_rotation = (_rotation + (((nextRo + 360) - _rotation) / roSpeed));
} else {
_rotation = (_rotation + ((nextRo - this._rotation) / roSpeed));
}
if ((_rotation <= 180) && (_rotation > 90)) {
direction = "left";
_yscale = (-scale);
} else if (_rotation <= -90) {
direction = "left";
_yscale = (-scale);
} else {
direction = "right";
_yscale = scale;
}
if (getTimer() > (time0 + 5000)) {
time0 = getTimer();
if (nowTac == 1) {
ChangeWepon();
nowTac = 2;
dushPar = 0.85;
} else {
ChangeWepon();
nowTac = 1;
dushPar = 0.97;
}
}
if (nowTac == 1) {
if ((Math.abs(xDis) + Math.abs(yDis)) < 900) {
this.SpeedDown();
shotMode = 1;
speedMode = 0;
} else {
shotMode = 0;
speedMode = 1;
}
} else if (nowTac == 2) {
if ((Math.abs(xDis) + Math.abs(yDis)) < 300) {
this.SpeedDown();
shotMode = 1;
speedMode = 0;
} else {
shotMode = 0;
speedMode = 1;
}
}
this._x = this._x - ((-XnowSpeed) + _root.mainChar.XnowSpeed);
this._y = this._y - ((-YnowSpeed) + _root.mainChar.YnowSpeed);
if (speedMode == 0) {
this._x = this._x + (xDis / 8);
this._y = this._y + (yDis / 8);
}
}
hp = (baseHp = 12000);
dushPar = 0.97;
roSpeed = 5;
en = _root[bodyName][8];
def = _root[bodyName][9];
SmaxSpeed = _root[bodyName][10];
PmaxSpeed = _root[bodyName][11];
EmaxSpeed = _root[bodyName][12];
SaddSpeed = _root[bodyName][13];
PaddSPeed = _root[bodyName][14];
EaddSpeed = _root[bodyName][15];
Sxdown = _root[bodyName][16];
Sydown = _root[bodyName][17];
Pxdown = _root[bodyName][18];
Pydown = _root[bodyName][19];
BoostSpeed = _root[bodyName][20];
boostDownExt = _root[bodyName][21];
weponChangeFlag = _root[bodyName][40];
changeFlag = _root[bodyName][41];
skyExtFlag = _root[bodyName][42];
skyDushFlag = _root[bodyName][43];
extFlag = _root[bodyName][44];
overFlag = _root[bodyName][45];
dushFlag = _root[bodyName][46];
gardFlag = _root[bodyName][47];
scale = _xscale;
direction = "right";
XaddSpeed = 0;
YaddSpeed = 0;
nowSpeed = 0;
XnowSpeed = 0;
YnowSpeed = 0;
maxSpeed = PmaxSpeed;
addSpeed = PaddSpeed;
Xdown = Pxdown;
Ydown = Pydown;
style = "p_standing";
braidMode = 0;
shotMode = "ready";
speedMode = 0;
boostMode = 0;
getDC = 0;
DCtime = 3;
boostCnt = 0;
weponChangeWait = 300;
weponChangeCount = 0;
theBoostSE = new Sound();
theBoostSE.attachSound("boostSE3");
mode = 1;
nowTac = 1;
efTypeAry = new Array();
efTypeAry = ["efHitShot2", "efHitBraid2"];
dmgTypeAry = new Array();
dmgTypeAry = ["shotDmg", "braidDmg", "extDmg", "parDmg"];
temp = Number(_name) + 1000;
barName = "hpBar" + temp;
trace("NO!!!!??? =" + name);
_root.attachMovie("enemyHpBar2", barName, temp);
_root[barName].traceName = _name;
time0 = getTimer();
this.onEnterFrame = function () {
if (mode) {
this.AI();
this.MainSystem();
} else {
this._x = this._x - _root.mainChar.XnowSpeed;
this._y = this._y - _root.mainChar.YnowSpeed;
}
};
this.gotoAndStop("paci_standing");
Symbol 468 MovieClip [char3] Frame 11
this.stop();
Symbol 468 MovieClip [char3] Frame 20
this.stop();
Symbol 468 MovieClip [char3] Frame 30
this.stop();
Symbol 468 MovieClip [char3] Frame 40
this.stop();
Symbol 468 MovieClip [char3] Frame 50
this.stop();
Symbol 468 MovieClip [char3] Frame 60
this.stop();
Symbol 468 MovieClip [char3] Frame 70
this.stop();
Symbol 468 MovieClip [char3] Frame 80
this.stop();
Symbol 468 MovieClip [char3] Frame 90
this.stop();
Symbol 468 MovieClip [char3] Frame 100
this.stop();
Symbol 468 MovieClip [char3] Frame 110
this.stop();
Symbol 468 MovieClip [char3] Frame 120
this.stop();
Symbol 468 MovieClip [char3] Frame 130
this.stop();
Symbol 468 MovieClip [char3] Frame 140
this.stop();
Symbol 468 MovieClip [char3] Frame 150
this.stop();
Symbol 468 MovieClip [char3] Frame 160
this.stop();
Symbol 468 MovieClip [char3] Frame 170
this.stop();
Symbol 469 MovieClip Frame 1
_parent.style = "p_normal";
Symbol 470 MovieClip Frame 1
_parent.style = "p_standing";
Symbol 471 MovieClip Frame 1
_parent.style = "p_normal";
Symbol 471 MovieClip Frame 5
_parent.gotoAndStop("paci_normal");
Symbol 472 MovieClip Frame 1
_parent.ChangeAttackDmg(1);
Symbol 472 MovieClip Frame 6
this.gotoAndPlay(_currentframe - 2);
Symbol 476 MovieClip Frame 1
function setEffect() {
theSound.start(0);
i = 0;
while (i < 3) {
efName = "ef" + i;
this.attachMovie("ef_btbHit2", efName, i);
this[efName]._x = 100 + (Math.random() * 400);
this[efName]._y = (Math.random() * 300) - 150;
i++;
}
i = 3;
while (i < 13) {
efName = "ef" + i;
this.attachMovie("ef_btbHit", efName, i);
this[efName]._x = 300;
i++;
}
}
function hitBraid() {
trace("\u30D6\u30EC\u30FC\u30C9\u63A5\u89E6\u5224\u5B9A");
if (!stopFlag) {
timeEnd = getTimer() + wait;
stopFlag = 1;
_root.mainChar.char.hitBraid();
this.setEffect();
this.stop();
}
}
stopFlag = 0;
wait = 200;
theSound = new Sound();
theSound.attachSound("set_3");
this.onEnterFrame = function () {
if (stopFlag && (getTimer() < timeEnd)) {
trace("\u505C\u6B62\u4E2D");
} else {
stopFlag = 0;
this.play();
}
};
Symbol 476 MovieClip Frame 3
_parent.ChangeAttackDmg(3);
Symbol 476 MovieClip Frame 8
if (_parent._name == "mainChar") {
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("braid2");
}
} else {
this.gotoAndPlay("braid2");
}
Symbol 476 MovieClip Frame 12
_parent.gotoAndStop("paci_standing");
Symbol 476 MovieClip Frame 25
_parent.ChangeAttackDmg(4);
Symbol 476 MovieClip Frame 31
if (_parent._name == "mainChar") {
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("braid3");
}
} else {
this.gotoAndPlay("braid3");
}
Symbol 476 MovieClip Frame 36
_parent.gotoAndStop("paci_standing");
Symbol 476 MovieClip Frame 53
_parent.ChangeAttackDmg(5);
Symbol 476 MovieClip Frame 70
_parent.gotoAndStop("paci_standing");
Symbol 476 MovieClip Frame 80
function setEffect() {
theSound.start(0);
i = 0;
while (i < 3) {
efName = "ef" + i;
this.attachMovie("ef_btbHit2", efName, i);
this[efName]._x = 100 + (Math.random() * 400);
this[efName]._y = (Math.random() * 300) - 150;
i++;
}
i = 3;
while (i < 13) {
efName = "ef" + i;
this.attachMovie("ef_btbHit", efName, i);
this[efName]._x = 300;
i++;
}
}
function hitBraid() {
trace("\u30D6\u30EC\u30FC\u30C9\u63A5\u89E6\u5224\u5B9A");
if (!stopFlag) {
timeEnd = getTimer() + wait;
stopFlag = 1;
_root.mainChar.char.hitBraid();
this.setEffect();
this.stop();
}
}
stopFlag = 0;
wait = 200;
theSound = new Sound();
theSound.attachSound("set_3");
this.onEnterFrame = function () {
if (stopFlag && (getTimer() < timeEnd)) {
trace("\u505C\u6B62\u4E2D");
} else {
stopFlag = 0;
this.play();
}
};
Symbol 477 MovieClip Frame 1
function setWeponSystem1() {
thePoint = {x:-350, y:180};
this.localToGlobal(thePoint);
_root.attachMovie("WeponSystem1_sb", WeponName, 5 + i);
_root[WeponName]._x = thePoint.x;
_root[WeponName]._y = thePoint.y;
var randSize = (Math.random() * 2);
_root[WeponName]._xscale = BaseSize + randSize;
_root[WeponName]._yscale = BaseSize + randSize;
}
randSizeWidth = 0;
BaseSize = _parent._xscale + 10;
_root.textDisplay.mesRecord("\u5B50\u6A5F\u5C55\u958B");
_parent.style = "equipWepon";
Symbol 477 MovieClip Frame 7
_parent.changeAttackDmg(10);
i = 1;
WeponName = "wepon0";
this.setWeponSystem1();
Symbol 477 MovieClip Frame 9
WeponName = "wepon1";
i = 2;
this.setWeponSystem1();
Symbol 477 MovieClip Frame 11
WeponName = "wepon2";
i = 3;
this.setWeponSystem1();
Symbol 477 MovieClip Frame 22
_parent.style = "p_standing";
_parent.gotoAndPlay("paci_standing");
Symbol 478 MovieClip Frame 1
function overShotEnd() {
this.gotoAndPlay(1);
}
EFsize = 100;
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("charge");
}
Symbol 478 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 2);
Symbol 478 MovieClip Frame 7
this.attachMovie("sarcleEF", "sarcleEF", 600);
this.sarcleEF._x = 266;
this.sarcleEF._y = 5;
Symbol 478 MovieClip Frame 8
if (Key.isDown(_global.keyCas[1])) {
EFsize = EFsize + 5;
this.sarcleEF._xscale = (this.sarcleEF._yscale = EFsize);
} else {
this.gotoAndStop("shot");
}
Symbol 478 MovieClip Frame 9
this.gotoAndPlay(_currentframe - 1);
Symbol 478 MovieClip Frame 15
_parent.ChangeAttackDmg(2);
name = "shotArea";
this.attachMovie("overShotEF", name, 600);
this[name]._x = 260;
this[name]._y = 6;
this[name]._xscale = EFsize * 2;
this[name]._yscale = EFsize * 2;
this[name].cnt = EFsize;
Symbol 479 MovieClip Frame 1
function setGardEffect() {
i2 = 0;
while (i2 < 4) {
name = "ef" + i;
this.attachMovie("ef_shotHitGard", name, i);
this[name]._x = 220;
this[name]._y = -80 + (Math.random() * 100);
this[name]._xscale = Math.random() * 200;
this[name]._yscale = (Math.random() * 200) - 100;
i++;
i2++;
}
}
i = 0;
this.onEnterFrame = function () {
if (!Key.isDown(_global.keyCas[3])) {
_parent.gotoAndStop("paci_standing");
}
};
Instance of Symbol 324 MovieClip in Symbol 479 MovieClip Frame 1
onClipEvent (load) {
ro = 5;
}
Instance of Symbol 324 MovieClip in Symbol 479 MovieClip Frame 1
onClipEvent (load) {
ro = -5;
}
Symbol 479 MovieClip Frame 6
this.stop();
Symbol 480 MovieClip Frame 5
_parent.gotoAndStop("paci_normal");
Symbol 486 MovieClip Frame 36
_parent.changeAttackDmg(7);
Symbol 486 MovieClip Frame 57
_parent.gotoAndStop("sky_normal");
Symbol 487 MovieClip Frame 5
this.onEnterFrame = function () {
_parent._y = _parent._y + 10;
this._rotation = 0;
};
Symbol 487 MovieClip Frame 50
this.stop();
Symbol 488 MovieClip [char2] Frame 1
bodyName = "charData2";
score = 120000 /* 0x01D4C0 */;
myType = "p2";
if (!userCon) {
this.gotoAndStop(7);
}
Symbol 488 MovieClip [char2] Frame 2
function ChangeAttackDmg(atkNo) {
if (atkNo < 3) {
_global.shotDmg = _root[bodyName][24 + atkNo];
} else if (atkNo < 8) {
_global.braidDmg = _root[bodyName][24 + atkNo];
} else if (atkNo < 10) {
_global.extDmg = _root[bodyName][24 + atkNo];
} else {
_global.parDmg = _root[bodyName][24 + atkNo];
}
trace("\u653B\u6483\u529B\u5909\u66F4 No = " + (24 + atkNo));
trace((((("s=" + _global.shotDmg) + "\nb=") + _global.braidDmg) + "\ne=") + _global.extDmg);
}
function getBraidmode() {
return(braidMode);
}
function ChangeWepon() {
braidMode = !braidMode;
this.char.handF.braid.InBraidOpen(braidMode);
_root.weponSymbol.WeponSymbolChange(braidMode);
}
function getDirection() {
return(direction);
}
function boostMove(flag) {
if (flag > 0) {
this.gotoAndPlay("boost");
theBoostSE.start();
speedDownCnt = 5;
if (_global.keyModeCon == 2) {
var tempKakudo = mousekakudo;
} else {
var tempKakudo = ((_rotation * Math.PI) / 180);
}
XnowSpeed = XnowSpeed + (boostSpeed * Math.cos(tempKakudo));
YnowSpeed = YnowSpeed + (boostSpeed * Math.sin(tempKakudo));
} else if (speedDownCnt > 0) {
XnowSpeed = XnowSpeed / boostDownExt;
YnowSpeed = YnowSpeed / boostDownExt;
nowSpeed = Math.abs(XnowSpeed) + Math.abs(YnowSpeed);
speedDownCnt--;
if (speedDownCnt == 0) {
boostMode = 0;
}
}
}
function SpeedUP() {
if (!boostMode) {
if (style == "s") {
maxSpeed = SmaxSpeed;
addSpeed = SaddSpeed;
} else if (style == "overGun") {
maxSpeed = EmaxSpeed;
addSpeed = EaddSpeed;
} else {
maxSpeed = PmaxSpeed;
addSpeed = PaddSpeed;
}
if (style == "p_standing") {
this.gotoAndStop("paci(s->n)");
}
if (_global.keyModeCon == 2) {
trace("\u7279\u6B8A\u306A\u5411\u304D\u53D6\u5F97 ModeCon=2");
var tempKakudo = mouseKakudo;
} else {
var tempKakudo = ((_rotation * Math.PI) / 180);
}
var tempXspeed = (XnowSpeed + (addSpeed * Math.cos(tempKakudo)));
var tempYspeed = (YnowSpeed + (addSpeed * Math.sin(tempKakudo)));
var tempnowSpeed = (Math.abs(tempXspeed) + Math.abs(tempYspeed));
if (tempnowSpeed <= maxSpeed) {
XnowSpeed = tempXspeed;
YnowSpeed = tempYspeed;
nowSpeed = Math.abs(XnowSpeed) + Math.abs(YnowSpeed);
}
}
}
function normal() {
this.gotoAndStop("paci_standing");
}
function SpeedDown() {
if ((YnowSpeed < 5) && (YnowSpeed > -5)) {
YnowSpeed = YnowSpeed / 1.1;
} else if (YnowSpeed > 0) {
YnowSpeed = YnowSpeed - 3;
} else {
YnowSpeed = YnowSpeed + 3;
}
if ((XnowSpeed < 5) && (XnowSpeed > -5)) {
XnowSpeed = XnowSpeed / 1.1;
} else if (XnowSpeed > 0) {
XnowSpeed = XnowSpeed - 3;
} else {
XnowSpeed = XnowSpeed + 3;
}
}
function gard() {
if (gardFlag > 0) {
this.gotoAndStop("paci_gard");
}
}
function change() {
if (changeFlag > 0) {
if ((style == "p_normal") || (style == "p_standing")) {
braidMode = 0;
this.gotoAndStop("change(p->s)");
} else {
this.gotoAndStop("change(s->p)");
}
}
}
function GunChange() {
if (overFlag > 0) {
if ((style == "p_normal") || (style == "p_standing")) {
braidMode = 0;
this.gotoAndStop("paci(n->over)");
}
}
}
function atkStart() {
if (_global.keyModeChangeWepon == 0) {
if (style == "s") {
this.shot_s1();
} else if (braidMode) {
this.braid1();
} else {
this.shot_p1();
}
} else {
xDis = _root._xmouse - _x;
yDis = _root._ymouse - _y;
var x = Math.pow(Math.abs(xDis), 2);
var y = Math.pow(Math.abs(yDis), 2);
var sa = Math.sqrt(x + y);
if (sa < changeWeponRange) {
braidMode = 1;
} else {
braidMode = 0;
}
if (style == "s") {
this.shot_s1();
} else if (braidMode) {
this.braid1();
} else {
this.shot_p1();
}
}
}
function atkEnd() {
if (style == "s") {
this.gotoAndStop("sky_normal");
} else if (!braidMode) {
if (nowSpeed <= 25) {
this.gotoAndStop("paci_standing");
} else {
this.gotoAndStop("paci_normal");
}
}
shotMode = "ready";
}
function shot_p1() {
this.gotoAndStop("paci_s(shot1)");
}
function shot_s1() {
this.gotoAndStop("sky_shot1");
}
function braid1() {
this.gotoAndStop("paci_s(braid1)");
}
function openWepon1() {
if (extFlag > 0) {
if (style == "s") {
if (skyExtFlag > 0) {
this.gotoAndStop("sky_Ext");
}
} else {
this.gotoAndStop("paci_openWepon1");
}
}
}
function TraceMouse() {
xDis = _root._xmouse - _x;
yDis = _root._ymouse - _y;
radian = Math.atan2(yDis, xDis);
kakudo = radian / (Math.PI/180);
_rotation = kakudo;
if ((_rotation <= 180) && (_rotation > 90)) {
direction = "left";
_yscale = (-scale);
} else if (_rotation <= -90) {
direction = "left";
_yscale = (-scale);
} else {
direction = "right";
_yscale = scale;
}
}
function searchEnemy(searchMode) {
trace("\n\u6575\u30B5\u30FC\u30C1\u958B\u59CB\u3000\u30E2\u30FC\u30C9=" + searchMode);
i = 0;
if (searchMode == 0) {
i = 1;
while (i < _global.SetMaxEnemyNo) {
if (_root[i] != undefined) {
nowTarget = i;
break;
}
i++;
}
} else if (searchMode == 1) {
}
trace(("nowTarget\u3092ENEMY" + nowTarget) + "\u306B\u5909\u66F4\u3057\u307E\u3057\u305F\u3002");
}
function autoTrace() {
if (_root[nowTarget] == undefined) {
this.searchEnemy(0);
}
var xDis = (_root[nowTarget]._x - _x);
var yDis = (_root[nowTarget]._y - _y);
trace((("\u6575\u4E00\u60C5\u5831=" + xDis) + "-") + yDis);
var radian = Math.atan2(yDis, xDis);
var nextRo = (radian / (Math.PI/180));
if ((nextRo > 90) && (_rotation < -90)) {
_rotation = (_rotation + (((-360 + nextRo) - _rotation) / roSpeed));
} else if ((nextRo < -90) && (_rotation > 90)) {
_rotation = (_rotation + (((nextRo + 360) - _rotation) / roSpeed));
} else {
_rotation = (_rotation + ((nextRo - this._rotation) / roSpeed));
}
if ((_rotation <= 180) && (_rotation > 90)) {
direction = "left";
_yscale = (-scale);
} else if (_rotation <= -90) {
direction = "left";
_yscale = (-scale);
} else {
direction = "right";
_yscale = scale;
}
}
function lockTrace() {
var xDis = (_root[nowTarget]._x - _x);
var yDis = (_root[nowTarget]._y - _y);
var radian = Math.atan2(yDis, xDis);
_rotation = (radian / (Math.PI/180));
if ((_rotation <= 180) && (_rotation > 90)) {
direction = "left";
_yscale = (-scale);
} else if (_rotation <= -90) {
direction = "left";
_yscale = (-scale);
} else {
direction = "right";
_yscale = scale;
}
}
function CheckMouseDown() {
if (((getDC > -1) && (boostCnt == 0)) && (dushFlag > 0)) {
boostMode = 1;
boostCnt = 6;
speedMode = 1;
} else {
speedMode = 1;
getDC = DCtime;
}
}
function damage(dmgPoint, dmgType, Nouse1, Nouse2, Nouse3) {
s1++;
_root.mainHp.ChangeHp(dmgPoint - def);
dmgName = "dmg" + s1;
this.attachMovie(this.efTypeAry[dmgType], dmgName, s1);
}
function MainSystem() {
if (_global.keyModeCon) {
this.autoTrace();
}
if (speedMode) {
this.speedUP();
} else if (nowSpeed <= 25) {
if ((_currentframe == 11) || (_currentframe == 51)) {
this.normal();
}
}
if (XnowSpeed >= 0) {
XnowSpeed = XnowSpeed - Xdown;
}
if (XnowSpeed <= 0) {
XnowSpeed = XnowSpeed + Xdown;
}
YnowSpeed = YnowSpeed + Ydown;
if (shotMode == "shot") {
this.atkStart();
} else if (shotMode == "stop") {
this.atkEnd();
}
}
function getMouseRotation() {
var xDis = (_root._xmouse - _x);
var yDis = (_root._ymouse - _y);
mouseKakudo = Math.atan2(yDis, xDis);
}
function GetAction() {
if (Key.isDown(_global[keyName][1])) {
if (style != "overGun") {
shotMode = "shot";
}
} else if (shotMode == "shot") {
shotMode = "stop";
}
if (Key.isDown(_global[keyName][2]) && (_global.keyModeChangeWepon == 0)) {
if (bCnt) {
bCnt = 0;
this.ChangeWepon();
}
} else {
bCnt = 1;
}
if (Key.isDown(_global[keyName][3])) {
this.gard();
}
if (Key.isDown(_global[keyName][4])) {
this.openWepon1();
}
if (Key.isDown(_global[keyName][5])) {
this.GunChange();
}
if (Key.isDown(_global[keyName][6])) {
this.change();
}
if (Key.isDown(_global[keyName][7])) {
this.SpeedDown();
}
if (Key.isDown(_global[keyName][8])) {
if (oCnt) {
oCnt = 0;
_root.attachMovie("ECCM", "ECCM", 800);
_root.ECCM._x = this._x;
_root.ECCM._y = this._y;
}
} else {
oCnt = 1;
}
if (boostCnt > 0) {
if (boostCnt == 6) {
getNowXspeed = XnowSpeed;
getNowYspeed = YnowSpeed;
this.boostMove(1);
}
if (boostCnt != 1) {
this.boostMove(0);
}
boostCnt--;
}
if (getDC > -1) {
getDC--;
}
}
nowTarget = 1;
roSpeed = 2;
changeWeponRange = 80;
_global.hp = _root[bodyName][7];
_root.mainHp.HpSet();
en = _root[bodyName][8];
def = _root[bodyName][9];
SmaxSpeed = _root[bodyName][10];
PmaxSpeed = _root[bodyName][11];
EmaxSpeed = _root[bodyName][12];
SaddSpeed = _root[bodyName][13];
PaddSPeed = _root[bodyName][14];
EaddSpeed = _root[bodyName][15];
Sxdown = _root[bodyName][16];
Sydown = _root[bodyName][17];
Pxdown = _root[bodyName][18];
Pydown = _root[bodyName][19];
BoostSpeed = _root[bodyName][20];
boostDownExt = _root[bodyName][21];
weponChangeFlag = _root[bodyName][40];
changeFlag = _root[bodyName][41];
skyExtFlag = _root[bodyName][42];
skyDushFlag = _root[bodyName][43];
extFlag = _root[bodyName][44];
overFlag = _root[bodyName][45];
dushFlag = _root[bodyName][46];
gardFlag = _root[bodyName][47];
scale = _xscale;
direction = "right";
XaddSpeed = 0;
YaddSpeed = 0;
nowSpeed = 0;
XnowSpeed = 0;
YnowSpeed = 0;
maxSpeed = PmaxSpeed;
addSpeed = PaddSpeed;
Xdown = Pxdown;
Ydown = Pydown;
style = "p_standing";
braidMode = 0;
shotMode = "ready";
speedMode = 0;
boostMode = 0;
getDC = 0;
DCtime = 3;
boostCnt = 0;
weponChangeWait = 300;
weponChangeCount = 0;
theBoostSE = new Sound();
theBoostSE.attachSound("boostSE3");
keyName = "keyCas";
s1 = 0;
efTypeAry = ["efHitShot2", "efHitBraid2"];
if (_global.effectLv > 1) {
pas = eval (_root.backArea);
pas.attachMovie("mainCharSmoke", "mainChar", 1);
theLoc = {x:this._x, y:this._y};
pas.globalToLocal(theLoc);
pas[_name]._x = theLoc.x;
pas[_name]._y = theLoc.y;
}
oCnt = 1;
bCnt = 1;
this.onEnterFrame = function () {
this.GetAction();
this.MainSystem();
};
this.onMouseDown = function () {
this.CheckMouseDown();
};
this.onMouseUp = function () {
speedMode = 0;
};
this.onMouseMove = function () {
if (_global.keyModeCon == 0) {
this.TraceMouse();
} else if (_global.keyModeCon == 2) {
this.getMouseRotation();
}
};
this.gotoAndStop("paci_standing");
trace("\u5B9A\u7FA9\u7D42\u4E86" + _global.hp);
Symbol 488 MovieClip [char2] Frame 7
function hit(dmgType, efType) {
if (mode) {
trace((("_name\u88AB\u5F3E dmg=" + dmgType) + " ef=") + efType);
this.attachMovie([efTypeAry[efType]], "ef", 1);
this.ef.scaleExt = 4;
hp = hp - (_global[dmgTypeAry[dmgType]] - def);
_root[barName].bar._xscale = (hp / baseHp) * 100;
if (hp < 0) {
_root.mainHp.AddScore(score, myType);
_root.lerder.RemoveCoItem(_name);
_root.enemyDown();
mode = 0;
_name = null;
this.gotoAndPlay("bomb");
}
}
}
function ChangeWepon() {
braidMode = !braidMode;
this.char.handF.braid.InBraidOpen(braidMode);
}
function getDirection() {
return(direction);
}
function boostMove(flag) {
if (flag) {
this.gotoAndPlay("boost");
theBoostSE.start();
speedDownCnt = 5;
var tempKakudo = ((_rotation * Math.PI) / 180);
XnowSpeed = XnowSpeed + (boostSpeed * Math.cos(tempKakudo));
YnowSpeed = YnowSpeed + (boostSpeed * Math.sin(tempKakudo));
} else if (speedDownCnt > 0) {
XnowSpeed = XnowSpeed / boostDownExt;
YnowSpeed = YnowSpeed / boostDownExt;
nowSpeed = Math.abs(XnowSpeed) + Math.abs(YnowSpeed);
speedDownCnt--;
if (speedDownCnt == 0) {
boostMode = 0;
}
}
}
function SpeedUP() {
if (!boostMode) {
if (style == "s") {
maxSpeed = SmaxSpeed;
addSpeed = SaddSpeed;
} else if (style == "overGun") {
maxSpeed = EmaxSpeed;
addSpeed = EaddSpeed;
} else {
maxSpeed = PmaxSpeed;
addSpeed = PaddSpeed;
}
if (style == "p_standing") {
this.gotoAndStop("paci(s->n)");
}
var tempKakudo = ((_rotation * Math.PI) / 180);
var tempXspeed = (XnowSpeed + (addSpeed * Math.cos(tempKakudo)));
var tempYspeed = (YnowSpeed + (addSpeed * Math.sin(tempKakudo)));
var tempnowSpeed = (Math.abs(tempXspeed) + Math.abs(tempYspeed));
if (tempnowSpeed <= maxSpeed) {
XnowSpeed = tempXspeed;
YnowSpeed = tempYspeed;
nowSpeed = Math.abs(XnowSpeed) + Math.abs(YnowSpeed);
}
}
}
function normal() {
this.gotoAndStop("paci_standing");
}
function SpeedDown() {
if ((YnowSpeed < 5) && (YnowSpeed > -5)) {
YnowSpeed = YnowSpeed / 1.1;
} else if (YnowSpeed > 0) {
YnowSpeed = YnowSpeed - 3;
} else {
YnowSpeed = YnowSpeed + 3;
}
if ((XnowSpeed < 5) && (XnowSpeed > -5)) {
XnowSpeed = XnowSpeed / 1.1;
} else if (XnowSpeed > 0) {
XnowSpeed = XnowSpeed - 3;
} else {
XnowSpeed = XnowSpeed + 3;
}
}
function gard() {
if (gardFlag > 0) {
this.gotoAndStop("paci_gard");
}
}
function change() {
if (changeFlag > 0) {
if ((style == "p_normal") || (style == "p_standing")) {
braidMode = 0;
this.gotoAndStop("change(p->s)");
} else {
this.gotoAndStop("change(s->p)");
}
}
}
function GunChange() {
if (overFlag > 0) {
if ((style == "p_normal") || (style == "p_standing")) {
braidMode = 0;
this.gotoAndStop("paci(n->over)");
}
}
}
function atkStart() {
if (style == "s") {
this.shot_s1();
} else if (braidMode) {
this.braid1();
} else {
this.shot_p1();
}
}
function atkEnd() {
if (style == "s") {
this.gotoAndStop("sky_normal");
} else if (!braidMode) {
if (nowSpeed <= 25) {
this.gotoAndStop("paci_standing");
} else {
this.gotoAndStop("paci_normal");
}
}
shotMode = "ready";
}
function shot_p1() {
this.gotoAndStop("paci_s(shot1)");
}
function shot_s1() {
this.gotoAndStop("sky_shot1");
}
function braid1() {
this.gotoAndStop("paci_s(braid1)");
}
function openWepon1() {
if (extFlag > 0) {
if (style == "s") {
if (skyExtFlag > 0) {
this.gotoAndStop("sky_Ext");
}
} else {
this.gotoAndStop("paci_openWepon1");
}
}
}
function MainSystem() {
if (boostCnt > 0) {
if (boostCnt == 6) {
getNowXspeed = XnowSpeed;
getNowYspeed = YnowSpeed;
this.boostMove(1);
}
if (boostCnt != 1) {
this.boostMove(0);
}
boostCnt--;
}
if (speedMode) {
roSpeed = 10 - (_global.enemyLv * 2);
if (Math.random() > dushPar) {
trace(_name + "\u30C0\u30C3\u30B7\u30E5\u5B9F\u884C");
boostMode = 1;
boostCnt = 6;
}
if (Math.random() > 0.2) {
this.speedUP();
} else {
this.SpeedDown();
}
} else {
roSpeed = 17 - (_global.enemyLv * 2);
if (nowSpeed <= 25) {
if ((_currentframe == 11) || (_currentframe == 51)) {
this.normal();
}
}
}
if (shotMode) {
this.atkStart();
} else if (shotMode == 0) {
this.atkEnd();
}
_root.radar.getCo(_name, this._x, this._y, 4);
}
function AI() {
var xDis = (_root.mainChar._x - _x);
var yDis = (_root.mainChar._y - _y);
var radian = Math.atan2(yDis, xDis);
nextRo = radian / (Math.PI/180);
if ((nextRo > 90) && (_rotation < -90)) {
_rotation = (_rotation + (((-360 + nextRo) - _rotation) / roSpeed));
} else if ((nextRo < -90) && (_rotation > 90)) {
_rotation = (_rotation + (((nextRo + 360) - _rotation) / roSpeed));
} else {
_rotation = (_rotation + ((nextRo - this._rotation) / roSpeed));
}
if ((_rotation <= 180) && (_rotation > 90)) {
direction = "left";
_yscale = (-scale);
} else if (_rotation <= -90) {
direction = "left";
_yscale = (-scale);
} else {
direction = "right";
_yscale = scale;
}
if (getTimer() > (time0 + 5000)) {
time0 = getTimer();
if (nowTac == 1) {
ChangeWepon();
nowTac = 2;
dushPar = 0.85;
} else {
ChangeWepon();
nowTac = 1;
dushPar = 0.97;
}
}
if (nowTac == 1) {
if ((Math.abs(xDis) + Math.abs(yDis)) < 900) {
this.SpeedDown();
shotMode = 1;
speedMode = 0;
} else {
shotMode = 0;
speedMode = 1;
}
} else if (nowTac == 2) {
if ((Math.abs(xDis) + Math.abs(yDis)) < 300) {
this.SpeedDown();
shotMode = 1;
speedMode = 0;
} else {
shotMode = 0;
speedMode = 1;
}
}
this._x = this._x - ((-XnowSpeed) + _root.mainChar.XnowSpeed);
this._y = this._y - ((-YnowSpeed) + _root.mainChar.YnowSpeed);
if (speedMode == 0) {
this._x = this._x + (xDis / 8);
this._y = this._y + (yDis / 8);
}
}
dushPar = 0.98;
roSpeed = 17 - (_global.enemyLv * 2);
hp = (baseHp = _root[bodyName][7] * 3);
en = _root[bodyName][8];
def = _root[bodyName][9];
SmaxSpeed = _root[bodyName][10];
PmaxSpeed = _root[bodyName][11];
EmaxSpeed = _root[bodyName][12];
SaddSpeed = _root[bodyName][13];
PaddSPeed = _root[bodyName][14];
EaddSpeed = _root[bodyName][15];
Sxdown = _root[bodyName][16];
Sydown = _root[bodyName][17];
Pxdown = _root[bodyName][18];
Pydown = _root[bodyName][19];
BoostSpeed = _root[bodyName][20];
boostDownExt = _root[bodyName][21];
weponChangeFlag = _root[bodyName][40];
skyDushFlag = _root[bodyName][43];
changeFlag = _root[bodyName][41];
skyExtFlag = _root[bodyName][42];
extFlag = _root[bodyName][44];
overFlag = _root[bodyName][45];
dushFlag = _root[bodyName][46];
gardFlag = _root[bodyName][47];
scale = _xscale;
direction = "right";
XaddSpeed = 0;
YaddSpeed = 0;
nowSpeed = 0;
XnowSpeed = 0;
YnowSpeed = 0;
maxSpeed = PmaxSpeed;
addSpeed = PaddSpeed;
Xdown = Pxdown;
Ydown = Pydown;
style = "p_standing";
braidMode = 0;
shotMode = "ready";
speedMode = 0;
boostMode = 0;
getDC = 0;
DCtime = 3;
boostCnt = 0;
weponChangeWait = 300;
weponChangeCount = 0;
theBoostSE = new Sound();
theBoostSE.attachSound("boostSE3");
mode = 1;
nowTac = 1;
efTypeAry = new Array();
efTypeAry = ["efHitShot2", "efHitBraid2"];
dmgTypeAry = new Array();
dmgTypeAry = ["shotDmg", "braidDmg", "extDmg", "parDmg"];
temp = Number(_name) + 1000;
barName = "hpBar" + temp;
trace("NO!!!!??? =" + name);
_root.attachMovie("enemyHpBar2", barName, temp);
_root[barName].traceName = _name;
time0 = getTimer();
this.onEnterFrame = function () {
if (mode) {
this.AI();
this.MainSystem();
} else {
this._x = this._x - _root.mainChar.XnowSpeed;
this._y = this._y - _root.mainChar.YnowSpeed;
}
};
this.gotoAndStop("paci_standing");
Symbol 488 MovieClip [char2] Frame 11
this.stop();
Symbol 488 MovieClip [char2] Frame 20
this.stop();
Symbol 488 MovieClip [char2] Frame 30
this.stop();
Symbol 488 MovieClip [char2] Frame 40
this.stop();
Symbol 488 MovieClip [char2] Frame 50
this.stop();
Symbol 488 MovieClip [char2] Frame 60
this.stop();
Symbol 488 MovieClip [char2] Frame 70
this.stop();
Symbol 488 MovieClip [char2] Frame 80
this.stop();
Symbol 488 MovieClip [char2] Frame 90
this.stop();
Symbol 488 MovieClip [char2] Frame 100
this.stop();
Symbol 488 MovieClip [char2] Frame 110
this.stop();
Symbol 488 MovieClip [char2] Frame 120
this.stop();
Symbol 488 MovieClip [char2] Frame 130
this.stop();
Symbol 488 MovieClip [char2] Frame 140
this.stop();
Symbol 488 MovieClip [char2] Frame 150
this.stop();
Symbol 488 MovieClip [char2] Frame 160
this.stop();
Symbol 488 MovieClip [char2] Frame 170
this.stop();
Symbol 488 MovieClip [char2] Frame 180
this.stop();
Symbol 490 MovieClip Frame 1
var total = 0;
var speed = 80;
var i;
Symbol 490 MovieClip Frame 2
this._x = this._x + speed;
total = total + speed;
if (total >= 1000) {
_parent.removeMovieClip();
}
Symbol 490 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 1);
Symbol 490 MovieClip Frame 11
_parent.removeMovieClip();
Symbol 491 MovieClip [c1sb_shot1EF_enemy] Frame 1
this.onEnterFrame = function () {
this._x = this._x + (-_root.mainChar.XnowSpeed);
this._y = this._y + (-_root.mainChar.YnowSpeed);
if (this.hitTest(_root.mainChar.damageArea)) {
_root.mainChar.damage(dmgPoint, dmgType);
this.gotoAndPlay("hit");
}
if ((this.hitTest(_root.mainChar.char.hitArea_b1) || (this.hitTest(_root.mainChar.char.overShotEF))) || (this.hitTest(_root.mainChar.char.gardArea))) {
this.gotoAndPlay("hit");
}
};
this.stop();
Instance of Symbol 490 MovieClip in Symbol 491 MovieClip [c1sb_shot1EF_enemy] Frame 1
onClipEvent (enterFrame) {
speed = 120;
}
Symbol 491 MovieClip [c1sb_shot1EF_enemy] Frame 2
this.onEnterFrame = function () {
this._x = this._x + ((-_root.mainChar.XnowSpeed) / 3);
this._y = this._y + ((-_root.mainChar.YnowSpeed) / 3);
};
Symbol 491 MovieClip [c1sb_shot1EF_enemy] Frame 11
this.removeMovieClip();
Symbol 493 MovieClip Frame 1
total = 0;
speed = 80;
Symbol 493 MovieClip Frame 2
Symbol 493 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 1);
Symbol 496 MovieClip Frame 1
total = 0;
speed = 100;
Symbol 496 MovieClip Frame 2
Symbol 496 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 1);
Symbol 500 MovieClip [shot1EF2] Frame 1
this.onEnterFrame = function () {
this._x = this._x + moveX;
this._y = this._y + moveY;
};
Symbol 504 MovieClip [floatSAM] Frame 1
function hit(dmgType, efType) {
if (mode) {
trace((("_name\u88AB\u5F3E dmg=" + dmgType) + " ef=") + efType);
this.attachMovie([efTypeAry[efType]], "ef", 1);
hp = hp - (_global[dmgTypeAry[dmgType]] - def);
this.hpBar._xscale = (hp / baseHp) * 100;
if (hp < 0) {
this.onEnterFrame = function () {
this._x = this._x - _root.mainChar.XnowSpeed;
this._y = this._y - _root.mainChar.YnowSpeed;
};
_root.radar.RemoveCoItem(_name);
_root.enemyDown();
_root.mainHp.AddScore(score, "fs");
mode = 0;
this.gotoAndPlay("bomb");
}
}
}
function shotMis() {
i = 21;
while (i < 26) {
if (_root[i] == undefined) {
break;
}
i++;
}
if (i < 26) {
_root.attachMovie("missileTypeA", i, i + 250);
_root[i]._x = this._x;
_root[i]._y = this._y;
}
}
var mode = 1;
var i = 10;
score = 2000;
follow = (Math.random() * 10) + 50;
extra = (Math.random() * 300) + 500;
if (Math.random() > 0.5) {
extra = extra * -1;
}
extraX = extra;
extra = (Math.random() * 300) + 500;
if (Math.random() > 0.5) {
extra = extra * -1;
}
extraY = extra;
hp = (baseHp = 200);
def = 10;
shotWait = 5000;
shotCnt = getTimer() + shotWait;
efTypeAry = new Array();
efTypeAry = ["efHitShot", "efHitBraid"];
dmgTypeAry = new Array();
dmgTypeAry = ["shotDmg", "braidDmg", "extDmg", "parDmg"];
this.onEnterFrame = function () {
if ((getTimer() > shotCnt) && (mode)) {
this.ShotMis();
shotCnt = getTimer() + shotWait;
}
this._x = this._x + ((((_root.mainChar._x + extraX) - _x) / follow) - _root.mainChar.XnowSpeed);
this._y = this._y + ((((_root.mainChar._y + extraY) - _y) / follow) - _root.mainChar.YnowSpeed);
_root.radar.getCo(_name, this._x, this._y, 2);
};
this.stop();
Symbol 504 MovieClip [floatSAM] Frame 17
this.removeMovieClip();
Symbol 504 MovieClip [floatSAM] Frame 18
this.stop();
Symbol 506 MovieClip [floatECM] Frame 1
function hit(dmgType, efType) {
if (mode) {
trace((("_name\u88AB\u5F3E dmg=" + dmgType) + " ef=") + efType);
this.attachMovie([efTypeAry[efType]], "ef", 1);
hp = hp - (_global[dmgTypeAry[dmgType]] - def);
this.hpBar._xscale = (hp / baseHp) * 100;
if (hp < 0) {
this.onEnterFrame = function () {
this._x = this._x - _root.mainChar.XnowSpeed;
this._y = this._y - _root.mainChar.YnowSpeed;
};
_root.radar.ChangeAntiRadar(-ecmPower);
_root.radar.RemoveCoItem(_name);
_root.enemyDown();
_root.mainHp.AddScore(score, "fe");
mode = 0;
this.gotoAndPlay("bomb");
}
}
}
var mode = 1;
var i = 10;
score = 3500;
ecmPower = 60;
_root.radar.ChangeAntiRadar(ecmPower);
follow = (Math.random() * 10) + 50;
extra = (Math.random() * 300) + 800;
if (Math.random() > 0.5) {
extra = extra * -1;
}
extraX = extra;
extra = (Math.random() * 300) + 800;
if (Math.random() > 0.5) {
extra = extra * -1;
}
extraY = extra;
hp = (baseHp = 500);
def = 10;
efTypeAry = new Array();
efTypeAry = ["efHitShot", "efHitBraid"];
dmgTypeAry = new Array();
dmgTypeAry = ["shotDmg", "braidDmg", "extDmg", "parDmg"];
this.onEnterFrame = function () {
this._x = this._x + ((((_root.mainChar._x + extraX) - _x) / follow) - _root.mainChar.XnowSpeed);
this._y = this._y + ((((_root.mainChar._y + extraY) - _y) / follow) - _root.mainChar.YnowSpeed);
_root.radar.getCo(_name, this._x, this._y, 5);
};
this.stop();
Symbol 506 MovieClip [floatECM] Frame 17
this.removeMovieClip();
Symbol 506 MovieClip [floatECM] Frame 18
this.stop();
Symbol 508 MovieClip [floatGun] Frame 1
function hit(dmgType, efType) {
if (mode) {
trace((("_name\u88AB\u5F3E dmg=" + dmgType) + " ef=") + efType);
this.attachMovie([efTypeAry[efType]], "ef", 1);
hp = hp - (_global[dmgTypeAry[dmgType]] - def);
this.hpBar._xscale = (hp / baseHp) * 100;
if (hp < 0) {
this.onEnterFrame = function () {
this._x = this._x - _root.mainChar.XnowSpeed;
this._y = this._y - _root.mainChar.YnowSpeed;
};
_root.radar.RemoveCoItem(_name);
_root.enemyDown();
_root.mainHp.AddScore(score, "fg");
mode = 0;
_root.lerder.RemoveCoItem(_name);
_name = null;
this.gotoAndPlay("bomb");
}
}
}
function shot() {
_global.enemyShotDeep++;
var shotName = ("enemy_shot" + _global.enemyShotDeep);
var xDis = (_root.mainChar._x - _x);
var yDis = (_root.mainChar._y - _y);
var radian = Math.atan2(yDis, xDis);
var kakudo = (radian / (Math.PI/180));
_root.attachMovie("enemy_shot1EF", shotName, _global.enemyShotDeep);
_root[shotName]._x = this._x;
_root[shotName]._y = this._y;
_root[shotName]._rotation = kakudo;
}
var mode = 1;
var i = 10;
var i2 = 0;
var wait = 10;
var cnt = 0;
var shotMode = "-";
score = 1000;
follow = (Math.random() * 20) + 10;
extraX = (Math.random() * 200) - 100;
extraY = (Math.random() * 200) - 100;
hp = (baseHp = 300);
def = 10;
efTypeAry = new Array();
efTypeAry = ["efHitShot", "efHitBraid"];
dmgTypeAry = new Array();
dmgTypeAry = ["shotDmg", "braidDmg", "extDmg", "parDmg"];
this.onEnterFrame = function () {
if (cnt == 10) {
Shotmode = "shot";
}
cnt++;
if (shotMode == "shot") {
i2++;
if ((i2 > 7) && (mode)) {
i2 = 0;
cnt++;
this.shot();
if (cnt >= 21) {
cnt = 0;
shotMode = "-";
}
}
}
this._x = this._x + ((((_root.mainChar._x + extraX) - _x) / follow) - _root.mainChar.XnowSpeed);
this._y = this._y + ((((_root.mainChar._y + extraY) - _y) / follow) - _root.mainChar.YnowSpeed);
_root.radar.getCo(_name, this._x, this._y, 1);
};
this.stop();
Symbol 508 MovieClip [floatGun] Frame 17
this.removeMovieClip();
Symbol 508 MovieClip [floatGun] Frame 18
this.stop();
Symbol 525 MovieClip [BGEF4] Frame 1
Symbol 525 MovieClip [BGEF4] Frame 100
this.removeMovieClip();
Symbol 536 MovieClip [BGEF3] Frame 10
this.removeMovieClip();
Symbol 539 MovieClip [BGEF2] Frame 40
this.removeMovieClip();
Symbol 540 MovieClip [BGEF1] Frame 40
this.removeMovieClip();
Symbol 543 MovieClip Frame 1
this.stop();
Symbol 544 MovieClip Frame 1
i = 1;
while (i < _global.SetMaxEnemyNo) {
if (this.hitTest(_root[i]._x, _root[i]._y, true)) {
_root[i].hit(dmgType, efType);
}
i++;
}
i = 21;
while (i < (21 + _global.setMaxMisNo)) {
if (this.hitTest(_root[i]._x, _root[i]._y, true)) {
_root[i].hit(dmgType, efType);
}
i++;
}
_visible = false;
Instance of Symbol 544 MovieClip "shotArea" in Symbol 548 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
dmgType = 3;
efType = 0;
}
Symbol 550 MovieClip [WeponSystem1_or] Frame 1
function ChangeMode() {
if (attackMode == 3) {
attackMode = 1;
} else {
attackMode++;
}
}
var time0 = getTimer();
var battleTime = 10000;
battleTime = battleTime + time0;
var mode = 0;
var attackMode = 1;
var follow = (3 + (Math.random() * 3));
var i = Math.round(Math.random() * 10);
extraX = (Math.random() * 50) + 50;
if ((Math.random() * 2) >= 1) {
extraX = extraX * -1;
}
extraY = (Math.random() * 50) + 40;
if ((Math.random() * 2) >= 1) {
extraY = extraY * -1;
}
this.onEnterFrame = function () {
if ((getTimer() > battleTime) && (follow > 2)) {
extraX = (extraY = 0);
follow = 1.5;
this.gotoAndPlay("end");
}
if (Key.isDown(16)) {
if (bCnt < 1) {
bCnt = 1;
this.ChangeMode();
}
} else {
bCnt = 0;
}
if (Key.isDown(_global.keyCas[1])) {
mode = 1;
} else {
mode = 0;
}
this._x = this._x + ((((_root.mainChar._x + extraX) - _x) / follow) - _root.mainChar.XnowSpeed);
this._y = this._y + ((((_root.mainChar._y + extraY) - _y) / follow) - _root.mainChar.YnowSpeed);
if (attackMode == 1) {
this._rotation = _root.mainChar._rotation;
} else if (attackMode == 2) {
xDis = _root._xmouse - _x;
yDis = _root._ymouse - _y;
radian = Math.atan2(yDis, xDis);
_rotation = (radian / (Math.PI/180));
}
if (mode) {
i++;
if (i >= 20) {
i = 0;
if (attackMode == 3) {
this._rotation = (Math.random() * 360) - 180;
}
this.play();
}
}
};
Symbol 550 MovieClip [WeponSystem1_or] Frame 7
this.stop();
Symbol 550 MovieClip [WeponSystem1_or] Frame 11
this.gotoAndStop(7);
Symbol 550 MovieClip [WeponSystem1_or] Frame 22
this.removeMovieClip();
this.stop();
Symbol 553 MovieClip [WeponSystem1_sb] Frame 1
function ChangeMode() {
if (attackMode == 3) {
attackMode = 1;
} else {
attackMode++;
}
}
var time0 = getTimer();
var battleTime = 10000;
battleTime = battleTime + time0;
var mode = 0;
var attackMode = 1;
var follow = (3 + (Math.random() * 3));
var i = Math.round(Math.random() * 10);
extraX = (Math.random() * 50) + 50;
if ((Math.random() * 2) >= 1) {
extraX = extraX * -1;
}
extraY = (Math.random() * 50) + 40;
if ((Math.random() * 2) >= 1) {
extraY = extraY * -1;
}
this.onEnterFrame = function () {
if ((getTimer() > battleTime) && (follow > 2)) {
extraX = (extraY = 0);
follow = 1.5;
this.gotoAndPlay("end");
}
if (Key.isDown(16)) {
if (bCnt < 1) {
bCnt = 1;
this.ChangeMode();
}
} else {
bCnt = 0;
}
if (Key.isDown(_global.keyCas[1])) {
mode = 1;
} else {
mode = 0;
}
this._x = this._x + ((((_root.mainChar._x + extraX) - _x) / follow) - _root.mainChar.XnowSpeed);
this._y = this._y + ((((_root.mainChar._y + extraY) - _y) / follow) - _root.mainChar.YnowSpeed);
if (attackMode == 1) {
this._rotation = _root.mainChar._rotation;
} else if (attackMode == 2) {
xDis = _root._xmouse - _x;
yDis = _root._ymouse - _y;
radian = Math.atan2(yDis, xDis);
_rotation = (radian / (Math.PI/180));
}
if (mode) {
i++;
if (i >= 20) {
i = 0;
if (attackMode == 3) {
this._rotation = (Math.random() * 360) - 180;
}
this.play();
}
}
};
Symbol 553 MovieClip [WeponSystem1_sb] Frame 7
this.stop();
Symbol 553 MovieClip [WeponSystem1_sb] Frame 11
this.gotoAndStop(7);
Symbol 553 MovieClip [WeponSystem1_sb] Frame 22
this.removeMovieClip();
this.stop();
Symbol 556 MovieClip [overShotEF] Frame 1
this.onEnterFrame = function () {
i = 1;
while (i < _global.SetMaxEnemyNo) {
if (this.hitTest(_root[i]._x, _root[i]._y, true)) {
_root[i].hit(0, 0);
}
i++;
}
i = 21;
while (i < (21 + _global.setMaxMisNo)) {
if (this.hitTest(_root[i]._x, _root[i]._y, true)) {
_root[i].hit(0, 0);
}
i++;
}
};
Symbol 556 MovieClip [overShotEF] Frame 6
cnt = cnt - 40;
if (cnt <= 0) {
this._name = "end";
this.gotoAndPlay("end");
}
Symbol 556 MovieClip [overShotEF] Frame 8
this.gotoAndPlay(_currentframe - 2);
Symbol 556 MovieClip [overShotEF] Frame 15
this.onEnterFrame = null;
Symbol 556 MovieClip [overShotEF] Frame 23
_root.mainChar.char.overShotEnd();
this.removeMovieClip();
Symbol 558 MovieClip Frame 1
_visible = false;
if (this.hitTest(_root.mainChar._x, _root.mainChar._y, true)) {
_parent.Hit(0);
}
if (this.hitTest(_root.mainChar.char.gardArea)) {
_parent.Hit(1);
}
if (this.hitTest(_root.mainChar.char.hitArea_b1)) {
_parent.Hit(2);
}
Symbol 560 MovieClip Frame 1
function Hit(param) {
trace("\u6575\u5F3E\u5F53\u305F\u308A\u5224\u5B9A\u51E6\u7406");
if (param < 1) {
_root.mainChar.damage(dmgPoint, dmgType);
this.gotoAndPlay("hit");
} else if (param < 2) {
_root.mainHp.AddScore(10, "gos");
this.gotoAndPlay("hit");
} else {
_root.mainHp.AddScore(100, "sos");
this.gotoAndPlay("hit");
}
}
var total = 0;
var speed = 50;
var dmgPoint = 70;
Symbol 560 MovieClip Frame 2
this._x = this._x + speed;
total = total + speed;
if (total >= 1500) {
_parent.removeMovieClip();
}
Symbol 560 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 1);
Symbol 560 MovieClip Frame 4
EliSound = new Sound();
EliSound.attachSound("noize3");
Elisound.start(0, 1);
Symbol 560 MovieClip Frame 13
_parent.removeMovieClip();
Symbol 561 MovieClip [enemy_shot1EF] Frame 1
this.onEnterFrame = function () {
this._x = this._x - _root.mainChar.XnowSpeed;
this._y = this._y - _root.mainChar.YnowSpeed;
};
Symbol 564 MovieClip [dmg] Frame 1
this.dmgC.dmg = 50;
Symbol 564 MovieClip [dmg] Frame 15
this.removeMovieClip();
Symbol 567 MovieClip [effect_baidSarcle] Frame 1
this.onEnterFrame = function () {
i = 1;
while (i < _global.SetMaxEnemyNo) {
if (this.hitTest(_root[i])) {
_root[i].hit(2, 0);
}
i++;
}
i = 21;
while (i < (21 + _global.setMaxMisNo)) {
if (this.hitTest(_root[i])) {
_root[i].hit(2, 0);
}
i++;
}
this._x = this._x - (moveX + _root.mainChar.XnowSpeed);
this._y = this._y - (moveY + _root.mainChar.YnowSpeed);
};
Symbol 567 MovieClip [effect_baidSarcle] Frame 19
this.onEnterFrame = null;
Symbol 567 MovieClip [effect_baidSarcle] Frame 21
this.removeMovieClip();
Symbol 568 MovieClip [mainCharSmoke] Frame 1
function DrowMissileSmoke() {
theLoc = {x:_root[_name]._x, y:_root[_name]._y};
_root.backArea.globalToLocal(theLoc);
this._x = theLoc.x;
this._y = theLoc.y;
ix++;
if (ix > setWait) {
ix = 0;
_global.backEffectDeep++;
var missileLineName = ("smokeLine" + _global.backEffectDeep);
_parent.attachMovie("smokeLine", missileLineName, _global.backEffectDeep);
_parent[missileLineName]._xscale = this._x - oldX;
_parent[missileLineName]._yscale = this._y - oldY;
_parent[missileLineName]._x = oldX;
_parent[missileLineName]._y = oldY;
oldX = this._x;
oldY = this._y;
}
}
setWait = 0;
oldX = this._x;
oldY = this._y;
ix = 0;
this.onEnterFrame = function () {
this.DrowMissileSmoke();
};
Symbol 569 MovieClip [missileTypeAsmoke] Frame 1
function DrowMissileSmoke() {
theLoc = {x:_root[_name]._x, y:_root[_name]._y};
_root.backArea.globalToLocal(theLoc);
this._x = theLoc.x;
this._y = theLoc.y;
ix++;
if (ix > setWait) {
ix = 0;
_global.backEffectDeep++;
var missileLineName = ("missile" + _global.backEffectDeep);
_parent.attachMovie("missileLine", missileLineName, _global.backEffectDeep);
_parent[missileLineName]._xscale = this._x - oldX;
_parent[missileLineName]._yscale = this._y - oldY;
_parent[missileLineName]._x = oldX;
_parent[missileLineName]._y = oldY;
oldX = this._x;
oldY = this._y;
}
}
setWait = 1;
oldX = this._x;
oldY = this._y;
ix = 0;
this.onEnterFrame = function () {
this.DrowMissileSmoke();
};
Symbol 573 MovieClip [missileTypeA] Frame 1
function hit(dmgType, efType) {
if (mode) {
trace((("_name\u88AB\u5F3E dmg=" + dmgType) + " ef=") + efType);
this.attachMovie([efTypeAry[efType]], "ef", 1);
hp = hp - (_global[dmgTypeAry[dmgType]] - def);
this.hpBar._xscale = (hp / baseHp) * 100;
if (hp < 0) {
this.onEnterFrame = function () {
this._x = this._x - _root.mainChar.XnowSpeed;
this._y = this._y - _root.mainChar.YnowSpeed;
};
_root.mainHp.AddScore(score, "m1");
this.Down(1);
}
}
}
function Down(param) {
if (mode) {
if (param) {
_root.mainHp.AddScore(1000, "mis");
} else if (param == 0) {
_root.mainChar.damage(dmgPoint, 0);
} else {
_root.mainChar.damage(dmgPoint / 2, 0);
}
mode = 0;
pas[_name].removeMovieClip();
_root.radar.RemoveCoItem(_name);
_root.warningDis.warning(0);
this.gotoAndPlay("bomb");
}
}
function MissileMove() {
var xDis = (_root.mainChar._x - this._x);
var yDis = (_root.mainChar._y - this._y);
var radian = Math.atan2(yDis, xDis);
var XaddSpeed = (addSpeed * Math.cos(radian));
var YaddSpeed = (addSpeed * Math.sin(radian));
this._rotation = radian / (Math.PI/180);
this._x = this._x + (XaddSpeed - _root.mainChar.XnowSpeed);
this._y = this._y + (YaddSpeed - _root.mainChar.YnowSpeed);
}
function DisplayLerder() {
if (mode) {
_root.radar.getCo(_name, this._x, this._y, 0);
}
}
function HitCheck() {
if (this.hitTest(_root.mainChar.damageArea)) {
this.Down(0);
}
if (this.hitTest(_root.mainChar.char.gardArea)) {
this.Down(2);
}
}
mode = 1;
pas = eval (_root.backArea);
score = 1500;
dmgPoint = 200;
hp = 10;
def = 0;
addSpeed = (Math.random() * 10) + 40;
_root.warningDis.warning(1);
if (_global.effectLv > 0) {
pas.attachMovie("missileTypeAsmoke", _name, Number(_name));
theLoc = {x:this._x, y:this._y};
pas.globalToLocal(theLoc);
pas[_name]._x = theLoc.x;
pas[_name]._y = theLoc.y;
}
efTypeAry = new Array();
efTypeAry = ["efHitShot", "efHitBraid"];
dmgTypeAry = new Array();
dmgTypeAry = ["shotDmg", "braidDmg", "extDmg", "parDmg"];
this.onEnterFrame = function () {
this.MissileMove();
this.DisplayLerder();
this.HitCheck();
};
this.stop();
Symbol 573 MovieClip [missileTypeA] Frame 17
this.removeMovieClip();
Symbol 575 MovieClip [smokeLineTutorial] Frame 1
trace("Line\u914D\u7F6E");
Symbol 580 MovieClip [smokeLine] Frame 30
this.removeMovieClip();
Symbol 582 MovieClip [lineLeaserLineLow] Frame 9
this.removeMovieClip();
Symbol 585 MovieClip [lineLeaesrLine] Frame 9
this.removeMovieClip();
Symbol 588 MovieClip [missileLine] Frame 19
this.removeMovieClip();
Symbol 590 MovieClip [whiteMask] Frame 50
trace("\u914D\u7F6E\u3055\u308C\u305FwhiteMask\u3092\u6D88\u53BB\u3057\u307E\u3057\u305F");
this.removeMovieClip();
Symbol 592 MovieClip [hitEF1] Frame 5
this.removeMovieClip();
Symbol 602 MovieClip [tutorial_shotItem] Frame 1
function hit() {
if ((mode == 0) && (shotHit == 1)) {
mode = 1;
_root.pointer.point++;
this.gotoAndPlay("bomb");
}
}
function HitExtra() {
if ((mode == 0) && (braidHit == 1)) {
mode = 1;
_root.pointer.point++;
this.gotoAndPlay("bomb");
}
}
function RemoveMe() {
this.gotoAndPlay("remove");
}
i = 0;
i2 = 0;
No = 1;
mode = 0;
extraX = (Math.random() * 600) - 300;
extraY = (Math.random() * 500) - 250;
follow = 20;
this.onEnterFrame = function () {
this._x = this._x + ((((_root.mainChar._x + extraX) - _x) / follow) - _root.mainChar.XnowSpeed);
this._y = this._y + ((((_root.mainChar._y + extraY) - _y) / follow) - _root.mainChar.YnowSpeed);
_root.lerder0.lerder1.getCo(_name, this._x, this._y, 6);
};
Symbol 602 MovieClip [tutorial_shotItem] Frame 10
function shot() {
i++;
if (i >= 30) {
i = 0;
_root.missileArea.SetMissile();
_root.missileArea.SetMissile();
}
thePoint = {x:0, y:0};
this.localToGlobal(thePoint);
shotName = ("enemy_shot" + No) + i;
deep = (i * No) + 250;
xDis = _root.mainChar._x - _x;
yDis = _root.mainChar._y - _y;
radian = Math.atan2(yDis, xDis);
kakudo = radian / (Math.PI/180);
_root.attachMovie("enemy_shot1EF", shotName, deep);
_root[shotName]._x = _x;
_root[shotName]._y = _y;
_root[shotName]._rotation = (kakudo + (Math.random() * 30)) - 15;
}
i2++;
if (i2 >= 30) {
this.gotoAndPlay("remove");
}
this.shot();
Instance of Symbol 131 MovieClip "hitArea" in Symbol 602 MovieClip [tutorial_shotItem] Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainChar.char.hitArea_b1)) {
_parent.HitExtra();
}
}
Symbol 602 MovieClip [tutorial_shotItem] Frame 12
this.gotoAndPlay(_currentframe - 2);
Symbol 602 MovieClip [tutorial_shotItem] Frame 25
this._x = Math.random() * 800;
this._y = Math.random() * 600;
this.gotoAndPlay("first");
Symbol 606 MovieClip [tutorial_enemy1] Frame 1
function hit() {
if ((mode == 0) && (shotHit == 1)) {
mode = 1;
_root.pointer.point++;
this.gotoAndPlay("bomb");
}
}
function HitExtra() {
if ((mode == 0) && (braidHit == 1)) {
mode = 1;
_root.pointer.point++;
this.gotoAndPlay("bomb");
}
}
function RemoveMe() {
this.gotoAndPlay("remove");
}
mode = 0;
extraX = (Math.random() * 600) - 300;
extraY = (Math.random() * 500) - 250;
follow = (Math.random() * 5) + 2;
this.onEnterFrame = function () {
this._x = this._x + ((((_root.mainChar._x + extraX) - _x) / follow) - _root.mainChar.XnowSpeed);
this._y = this._y + ((((_root.mainChar._y + extraY) - _y) / follow) - _root.mainChar.YnowSpeed);
_root.lerder0.lerder1.getCo(_name, this._x, this._y, 6);
};
Symbol 606 MovieClip [tutorial_enemy1] Frame 10
this.stop();
Instance of Symbol 131 MovieClip "hitArea" in Symbol 606 MovieClip [tutorial_enemy1] Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainChar.char.hitArea_b1)) {
_parent.HitExtra();
}
}
Symbol 606 MovieClip [tutorial_enemy1] Frame 28
_root.lerder0.lerder1.RemoveCoItem(_name);
_root.menu.inMenu.ResetEnemy();
this.removeMovieClip();
Symbol 606 MovieClip [tutorial_enemy1] Frame 35
_root.lerder0.lerder1.RemoveCoItem(_name);
this.removeMovieClip();
Symbol 613 MovieClip [tutorial_moveGoal] Frame 1
_root.attachMovie("tutorial_yajirusi", "yajirusi", 242);
_root.yajirusi._x = _root.mainChar._x;
_root.yajirusi._y = _root.mainChar._y;
this.onEnterFrame = function () {
this._x = this._x + (-_root.mainChar.XnowSpeed);
this._y = this._y + (-_root.mainChar.YnowSpeed);
_root.lerder0.lerder1.getCo(_name, this._x, this._y, 6);
_root.attachMovie("smokeLineTutorial", "smokeLineTutorial", 241);
_root.smokeLineTutorial._x = this._x;
_root.smokeLineTutorial._y = this._y;
_root.smokeLineTutorial._xscale = _root.mainChar._x - this._x;
_root.smokeLineTutorial._yscale = _root.mainChar._y - this._y;
};
this.stop();
Instance of Symbol 131 MovieClip in Symbol 613 MovieClip [tutorial_moveGoal] Frame 1
onClipEvent (load) {
mode = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainChar.damageArea) && (mode == 1)) {
mode = 0;
_parent.gotoAndPlay("ok");
}
}
Instance of Symbol 608 MovieClip in Symbol 613 MovieClip [tutorial_moveGoal] Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 5;
}
Instance of Symbol 608 MovieClip in Symbol 613 MovieClip [tutorial_moveGoal] Frame 10
onClipEvent (enterFrame) {
this._rotation = this._rotation + 5;
}
Symbol 613 MovieClip [tutorial_moveGoal] Frame 25
_root.menu.inMenu.SetMoveTutorial();
Symbol 614 MovieClip [removeItem] Frame 2
this.removeMovieClip();
Symbol 621 Button
on (release) {
_global.firstStage = "tutorial";
_root.SetMainChar();
this.removeMovieClip();
}
Symbol 624 Button
on (release) {
_global.firstStage = "Test";
_root.SetMainChar();
this.removeMovieClip();
}
Symbol 627 Button
on (release) {
_parent.play();
}
Symbol 629 MovieClip [selectWindow] Frame 8
this.stop();
Symbol 629 MovieClip [selectWindow] Frame 14
this.removeMovieClip();
Symbol 633 MovieClip [tutorial_yajirusi] Frame 1
this.onEnterFrame = function () {
xDis = _root.goal._x - _root.mainChar._x;
yDis = _root.goal._y - _root.mainChar._y;
radian = Math.atan2(yDis, xDis);
kakudo = radian / (Math.PI/180);
this._rotation = kakudo;
};
Symbol 635 MovieClip Frame 1
total = 0;
speed = 90;
Symbol 635 MovieClip Frame 2
i = 1;
while (i < _global.SetMaxEnemyNo) {
if (this.hitTest(_root[i])) {
_root[i].hit(2, 1);
}
i++;
}
i = 21;
while (i < (21 + _global.setMaxMisNo)) {
if (this.hitTest(_root[i])) {
_root[i].hit(2, 1);
}
i++;
}
this._x = this._x + speed;
total = total + speed;
if (total >= 600) {
_parent.removeMovieClip();
}
Symbol 635 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 1);
Symbol 649 MovieClip Frame 1
this.stop();
Symbol 649 MovieClip Frame 10
_parent.gotoAndPlay("result");
Symbol 654 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 655 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var tmp = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
tmp = Math.min(tmp, this.maxPos);
this.setScrollPosition(Math.max(tmp, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var wasEnabled = this.enable;
if (enabledFlag && (!wasEnabled)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (wasEnabled)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var delt = this.smallScroll;
if (inc != "one") {
delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var newPos = (this.getScrollPosition() + (mode * delt));
if (newPos > this.maxPos) {
newPos = this.maxPos;
} else if (newPos < this.minPos) {
newPos = this.minPos;
}
this.setScrollPosition(newPos);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var c = this.controller;
c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var pos = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxhscroll));
} else {
var pos = this.textField.scroll;
var pageSize = (this.textField.bottomScroll - this.textField.scroll);
this.setScrollProperties(pageSize, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 666 Button
on (release) {
_root.SoundStop();
_root.gotoAndStop("menu");
this.removeMovieClip();
}
Instance of Symbol 649 MovieClip in Symbol 675 MovieClip [gameOverDisplay] Frame 41
onClipEvent (load) {
this._xscale = 0;
par = 0;
}
onClipEvent (enterFrame) {
this._xscale = this._xscale + ((100 - this._xscale) / 5);
if (this._xscale > 98) {
_parent.textResult.gotoAndStop(1);
this._xscale = 100;
this.play();
}
}
Symbol 675 MovieClip [gameOverDisplay] Frame 42
mes = ((("\u30DF\u30C3\u30B7\u30E7\u30F3\u540D\uFF1A" + missionName) + "\n\u6A5F\u4F53\u540D\u79F0\uFF1A") + charName) + newline;
mes = mes + (("\u6226\u95D8\u6642\u9593\uFF1A" + totalTime) + newline);
mes = mes + (("\u88AB\u5F3E\u6570 " + dmgCnt) + newline);
mes = mes + "\u6483\u589C\u6A5F\u8A73\u7D30--------------\n";
totalDown = (((((((fg + fs) + fe) + s1) + m1) + p1) + p2) + p3) + p4;
if (totalDown < 1) {
mes = mes + "\u6483\u7834\u306A\u3057";
}
if (p1 > 0) {
mes = mes + (("\u30D1\u30B7\u30D5\u30A3\u30AF\u30B9 \u30E9\u30D4\u30B9\u30FB\u30D7\u30ED\u30C8\u30BF\u30A4\u30D7 x" + p1) + newline);
}
if (p2 > 0) {
mes = mes + (("\u30D1\u30B7\u30D5\u30A3\u30AF\u30B9 \u30E9\u30D4\u30B9 x" + p2) + newline);
}
if (p3 > 0) {
mes = mes + (("\u30D1\u30B7\u30D5\u30A3\u30AF\u30B9 \u30EC\u30C3\u30C9\u30D9\u30EA\u30EB x" + p3) + newline);
}
if (p4 > 0) {
mes = mes + (("\u30D1\u30B7\u30D5\u30A3\u30AF\u30B9 \u96F6\u5F0F32\u578B\u6539 x" + p4) + newline);
}
if (fg > 0) {
mes = mes + (("\u30AC\u30F3\u30D5\u30ED\u30FC\u30C8 x" + fg) + newline);
}
if (fs > 0) {
mes = mes + (("SAM\u30D5\u30ED\u30FC\u30C8 x" + fs) + newline);
}
if (fe > 0) {
mes = mes + (("ECM\u30D5\u30ED\u30FC\u30C8 x" + fe) + newline);
}
if (s1 > 0) {
mes = mes + (("\u99C6\u9010\u6226\u95D8\u8247 x" + s1) + newline);
}
if (m1 > 0) {
mes = mes + (("\u30DF\u30B5\u30A4\u30EB x" + m1) + newline);
}
mes = mes + ("\n\u7DCF\u6483\u7834\u6570 " + totalDown);
mes = mes + ("\n\u7DCF\u5408\u5F97\u70B9 " + score);
this.stop();
Instance of Symbol 655 MovieClip [FScrollBarSymbol] in Symbol 675 MovieClip [gameOverDisplay] Frame 56
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "InstanceName_3";
horizontal = false;
}
Instance of Symbol 655 MovieClip [FScrollBarSymbol] in Symbol 675 MovieClip [gameOverDisplay] Frame 56
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "InstanceName_3";
horizontal = false;
}
Instance of Symbol 655 MovieClip [FScrollBarSymbol] in Symbol 675 MovieClip [gameOverDisplay] Frame 56
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "InstanceName_4";
horizontal = false;
}
Symbol 675 MovieClip [gameOverDisplay] Frame 60
this.stop();
Symbol 679 MovieClip [efHitBraid2] Frame 1
this._xscale = (Math.random() * 1200) - 600;
this._yscale = (Math.random() * 300) + 100;
this._rotation = Math.random() * 360;
Symbol 679 MovieClip [efHitBraid2] Frame 3
this.removeMovieClip();
Symbol 680 MovieClip [efHitBraid] Frame 1
this._xscale = (Math.random() * 300) - 150;
this._rotation = Math.random() * 360;
Symbol 680 MovieClip [efHitBraid] Frame 3
this.removeMovieClip();
Symbol 683 MovieClip [efHitShot2] Frame 1
this._xscale = (Math.random() * 1200) - 600;
this._yscale = (Math.random() * 1200) - 600;
this._rotation = Math.random() * 360;
Symbol 683 MovieClip [efHitShot2] Frame 2
this.removeMovieClip();
Symbol 684 MovieClip [efHitShot] Frame 1
this._xscale = (Math.random() * 300) - 150;
this._yscale = (Math.random() * 300) - 150;
Symbol 684 MovieClip [efHitShot] Frame 2
this.removeMovieClip();
Symbol 685 MovieClip [shotHit] Frame 1
this._xscale = (Math.random() * 300) - 150;
this._yscale = (Math.random() * 300) - 150;
Symbol 685 MovieClip [shotHit] Frame 2
this.removeMovieClip();
Symbol 688 MovieClip Frame 1
if (_global.effectLv > 0) {
this.gotoAndStop(2);
} else {
this.stop();
}
Symbol 693 Button
on (release) {
_root.mainHp.EndGame();
}
Symbol 695 MovieClip [displayMes] Frame 1
function AddMes(name, tempMes, mesType, mesTemp) {
theSound.attachSound(getMesSe[mesType]);
theSound.start();
mesRecord.pop();
mesRecord.unshift(((name + ":") + tempMes) + newline);
mes = "";
i = 0;
while (i < 4) {
mes = mes + mesRecord[i];
i++;
}
this.gotoAndPlay(6);
}
theSound = new Sound();
getMesSe = new Array();
getMesSe = ["SE_getMes1", "SE_getMes2"];
mesRecord = new Array();
i = 0;
while (i < 4) {
mesRecord[i] = "";
i++;
}
randomMes = new Array();
randomMes = ["AWACS", "\u30D5\u30ED\u30FC\u30C8\u8B66\u6212", 0, "AWACS", "\u30D1\u30B7\u30D5\u30A3\u30AF\u30B9\u78BA\u8A8D\u3000\u6A5F\u6570 6", 0, "AWACS", "\u30A4\u30FC\u30B8\u30D5\u30EC\u30FC\u30E0\u78BA\u8A8D\u3000\u6A5F\u6570 8", 0, "<FONT COLOR='#FFAAAA'>\u306F\u308B\u304B\u305C(P)</FONT>", "\u8ABF\u5B50\u3069\u3046\uFF1F\u3000\u3044\u3051\u308B\uFF1F", 1, "\u306F\u308B\u304B\u305C(P)", "\u3068\u308A\u3042\u3048\u305A\u52D5\u304F\u4E8B\u3002\u6B62\u307E\u308B\u3068\u3082\u3089\u3063\u3061\u3083\u3046\u3088", 1];
this.AddMes("SYSTEM", "SYSTEMS ALL GREEN", 1);
Symbol 695 MovieClip [displayMes] Frame 5
this.stop();
Symbol 695 MovieClip [displayMes] Frame 64
this.gotoAndStop(5);
Symbol 702 MovieClip [ECCM] Frame 8
this.removeMovieClip();
Symbol 710 Button
on (release) {
_root.gotoAndStop("menu");
_root.AllRemove();
this.removeMovieClip();
}
Symbol 711 Button
on (release) {
_global.command = "write";
_root.gotoAndStop("ranking");
this.removeMovieClip();
}
Symbol 724 MovieClip [display_timeAttackCOMPLETE] Frame 4
best1 = 0;
best2 = 0;
time = _root.timeDis.GetTime();
hpPer = _root.mainHp.getHp("per");
pe = Math.floor(10 * (100 - hpPer)) / 100;
totalTime = Number(time) + pe;
time1 = Math.floor(totalTime * 100);
if ((time1 % 10) == 0) {
if ((time1 % 100) == 0) {
trace("2\u6841\u8DB3\u3059 h=" + time1);
totalTime = (time1 / 100) + ".00";
} else {
trace("1\u6841\u8DB3\u3059 h=" + time1);
totalTime = (time1 / 100) + "0";
}
} else {
totalTime = time1 / 100;
}
_global.gTime = totalTime;
if ((_global.gTime < _root.so.data.yourBestTime) || (_root.so.data.yourBestTime == null)) {
trace("\n\u81EA\u5DF1\u6700\u9AD8\u8A18\u9332\u66F4\u65B0\n");
_root.so.data.yourBestTime = _global.gTime;
_root.so.data.yourBestPac = _root.charName;
best1 = 1;
}
tempI = _root.charName;
if ((_global.gTime < _root.so.data[("pac" + tempI) + "bestTime"]) || (_root.so.data[("pac" + tempI) + "bestTime"] == null)) {
trace(("\n\u6A5F\u4F53\u5225\u6700\u9AD8\u8A18\u9332\u66F4\u65B0 no = " + tempI) + newline);
_root.so.data[("pac" + tempI) + "bestTime"] = _global.gTime;
best2 = 1;
}
disMes = (((("(TIME " + time) + ") + (PENALTY ") + pe) + ") = TOTALTIME ") + totalTime;
trace((((((("\n\n\u7D4C\u904E\u6642\u9593=" + time) + "\nHP\u6B8B\u91CF=") + hpPer) + "\n\u30DA\u30CA\u30EB\u30C6\u30A3=") + pe) + "\n\u7DCF\u5408=") + totalTime);
Instance of Symbol 720 MovieClip in Symbol 724 MovieClip [display_timeAttackCOMPLETE] Frame 68
onClipEvent (load) {
if (!_parent.best1) {
this._visible = 0;
}
}
Instance of Symbol 723 MovieClip in Symbol 724 MovieClip [display_timeAttackCOMPLETE] Frame 68
onClipEvent (load) {
if (!_parent.best2) {
this._visible = 0;
}
}
Symbol 724 MovieClip [display_timeAttackCOMPLETE] Frame 69
this.stop();
Symbol 738 MovieClip [display_timeAttackFirst] Frame 112
_root.time0 = 50;
_root.timeDis.TimeCon(1);
this.removeMovieClip();
this._visible = 0;
this.stop();
Symbol 742 MovieClip [ef_btbHit] Frame 1
this._xscale = (Math.random() * 800) - 400;
this._yscale = (Math.random() * 800) - 400;
Symbol 742 MovieClip [ef_btbHit] Frame 4
this.removeMovieClip();
Symbol 745 MovieClip [ef_btbHit2] Frame 1
this._xscale = (this._yscale = Math.random() * 150);
Symbol 745 MovieClip [ef_btbHit2] Frame 3
this.removeMovieClip();
Symbol 749 MovieClip [ef_shotHitGard] Frame 4
this.removeMovieClip();
Symbol 771 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 773 MovieClip Frame 1
dwonload = _root.getBytesLoaded;
Symbol 773 MovieClip Frame 2
this.onEnterFrame = function () {
loadedSize = _root.getBytesLoaded();
totalSize = _root.getBytesTotal();
if (loadedSize >= totalSize) {
this.gotoAndStop(5);
this.onEnterFrame = null;
} else {
downloadParcent = (loadedSize / totalSize) * 100;
this.bar._xscale = downloadParcent;
}
};
this.stop();
Symbol 779 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 783 MovieClip Frame 1
this.onEnterFrame = function () {
if (moveX != null) {
this._x = this._x + moveX;
if (this._x > maxX) {
this._x = minX + (this._x - maxX);
}
if (this._x < minX) {
this._x = maxX + this._x;
}
}
if (moveY != null) {
this._y = this._y + moveY;
if (this._y > maxY) {
this._y = minY + (this._y - maxY);
}
if (this._y < minY) {
this._y = maxY + this._y;
}
}
};
Symbol 793 MovieClip Frame 7
this.stop();
Symbol 796 Button
on (release) {
_parent.SelectMenu("test");
}
Symbol 798 Button
on (release) {
_parent.SelectMenu("option");
}
Symbol 800 Button
on (release) {
getURL ("http://www12.plala.or.jp/nextframe", _blank);
}
Symbol 802 Button
on (release) {
_parent.SelectMenu("credit");
}
Symbol 806 Button
on (release) {
_parent.SelectMenu("timeAttack");
}
Symbol 809 Button
on (release) {
_parent.SelectMenu("log");
}
Symbol 827 Button
on (release) {
this.SelectMenu(0);
}
Symbol 839 MovieClip Frame 1
_visible = 0;
Symbol 847 MovieClip Frame 1
if (_global.effectLv > 1) {
this.gotoAndStop(3);
} else if (_global.effectLv > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(4);
}
Symbol 847 MovieClip Frame 2
_global.effectLv = (_root.so.data.effectLv = 1);
this.stop();
Symbol 847 MovieClip Frame 3
_global.effectLv = (_root.so.data.effectLv = 2);
this.stop();
Symbol 847 MovieClip Frame 4
_global.effectLv = (_root.so.data.effectLv = 0);
this.stop();
Symbol 847 MovieClip Frame 5
this.gotoAndStop(2);
Symbol 848 MovieClip Frame 1
this.hitArea = myHitArea;
this.stop();
Symbol 851 Button
on (press) {
this.play();
}
Symbol 863 MovieClip Frame 1
if (_quality == "HIGH") {
this.gotoAndStop(3);
} else if (_quality == "LOW") {
this.gotoAndStop(4);
}
Symbol 863 MovieClip Frame 2
_quality = ((_root.so.data.quality = "MEDIUM"));
this.stop();
Symbol 863 MovieClip Frame 3
_quality = ((_root.so.data.quality = "HIGH"));
this.stop();
Symbol 863 MovieClip Frame 4
_quality = ((_root.so.data.quality = "LOW"));
this.stop();
Symbol 863 MovieClip Frame 5
this.gotoAndStop(2);
Symbol 864 MovieClip Frame 1
this.hitArea = myHitArea;
this.stop();
Symbol 870 Button
on (press) {
flag = 1;
this.gotoAndStop(5);
}
on (release, releaseOutside) {
flag = 0;
_root.SoundStop();
this.gotoAndStop(2);
}
Symbol 872 MovieClip Frame 1
flag = 0;
vol = _root.ChangeVol("g");
trace("\u97F3\u91CF\u306F=" + vol);
this._x = vol * 1.4;
this.onEnterFrame = function () {
if (flag) {
this._x = _parent._xmouse;
if (this._x > 140) {
this._x = 140;
}
if (this._x < 0) {
this._x = 0;
}
vol = (this._x / 140) * 100;
_parent.disVol = Math.floor(vol);
_root.ChangeVol(vol);
}
};
Symbol 872 MovieClip Frame 2
this.stop();
Symbol 872 MovieClip Frame 5
this.stop();
Symbol 873 MovieClip Frame 1
disVol = _root.ChangeVol("g");
Symbol 878 MovieClip Frame 1
if (_global.keyModeChangeWepon == 1) {
this.gotoAndStop(2);
} else if (_global.keyModeChangeWepon == 0) {
this.gotoAndStop(3);
}
Symbol 878 MovieClip Frame 2
_global.keyModeChangeWepon = (_root.so.data.keyModeChangeWepon = 1);
this.stop();
Symbol 878 MovieClip Frame 3
_global.keyModeChangeWepon = (_root.so.data.keyModeChangeWepon = 0);
this.stop();
Symbol 878 MovieClip Frame 4
this.gotoAndStop(2);
Symbol 879 MovieClip Frame 1
this.hitArea = myHitArea;
this.stop();
Symbol 887 MovieClip Frame 1
if (_global.keyModeCon == 2) {
this.gotoAndStop(2);
} else if (_global.keyModeCon == 1) {
this.gotoAndStop(3);
} else if (_global.keyModeCon == 0) {
this.gotoAndStop(4);
}
Symbol 887 MovieClip Frame 2
_global.keyModeCon = (_root.so.data.keyModeCon = 2);
this.stop();
Symbol 887 MovieClip Frame 3
_global.keyModeCon = (_root.so.data.keyModeCon = 1);
this.stop();
Symbol 887 MovieClip Frame 4
_global.keyModeCon = (_root.so.data.keyModeCon = 0);
this.stop();
Symbol 887 MovieClip Frame 5
this.gotoAndStop(2);
Symbol 888 MovieClip Frame 1
this.hitArea = myHitArea;
this.stop();
Symbol 891 Button
on (release) {
this.SelectMenu("option");
}
Symbol 896 Button
on (press) {
this.Select();
}
Symbol 903 MovieClip Frame 1
function Select(param) {
if (param == 0) {
_parent.mainPanel.Select(0);
_parent.keyChangeFlag = 1;
this.gotoAndStop("normal");
} else if (_parent.keyChangeFlag) {
_parent.keyChangeFlag = 0;
_parent.mainPanel.Select(1);
this.gotoAndStop("lock");
}
}
function KeyChack(getKey) {
trace("\u30AD\u30FC\u30C0\u30A6\u30F3\u5B9F\u884C");
getKey = Key.getCode();
if ((getKey > 47) && (getKey < 91)) {
trace("\u4F7F\u7528\u53EF\u80FD\u30AD\u30FC");
_global.keyCas[keyNo] = getKey;
this.Select(0);
_parent.SetDisKey();
} else if (getKey == 32) {
trace("\u4F8B\u5916\u4F7F\u7528\u53EF\u80FD\u30AD\u30FC SPACE");
_global.keyCas[keyNo] = getKey;
this.Select(0);
_parent.SetDisKey();
} else {
trace("\u4F7F\u7528\u4E0D\u53EF\u80FD\u30AD\u30FC");
_parent.mainPanel.Select(2);
}
}
Symbol 903 MovieClip Frame 2
this.stop();
Symbol 903 MovieClip Frame 10
this.stop();
Instance of Symbol 170 MovieClip in Symbol 903 MovieClip Frame 10
onClipEvent (keyDown) {
_parent.KeyChack();
}
Symbol 913 Button
on (release) {
this.gotoAndStop("normal");
_parent.SetDisKey();
}
Symbol 920 MovieClip Frame 1
this.stop();
Symbol 920 MovieClip Frame 10
this.stop();
Symbol 920 MovieClip Frame 20
this.stop();
Symbol 923 Button
on (release) {
i = 0;
while (i < 15) {
_global.keyCas[i] = _global.keyDef[i];
i++;
}
this.SetDisKey();
}
Symbol 927 Button
on (release) {
_root.so.data.keyCas = new Array();
i = 0;
while (i < _global.keyCas.length) {
_root.so.data.keyCas[i] = _global.keyCas[i];
i++;
}
this.SetDisKey();
}
Symbol 928 MovieClip Frame 1
function SetDisKey() {
var i = null;
var i2 = 1;
var nowKey = null;
i = 1;
while (i < 12) {
this["box" + i].keyJpn = keyCasMes[(i * 2) - 1];
this["box" + i].keyEng = keyCasMes[i * 2];
this["box" + i].Select(0);
if (_global.keyCas[i2] == 32) {
this["box" + i].nowKey = "SPACE";
} else {
this["box" + i].nowKey = chr(_global.keyCas[i2]);
}
this["box" + i].keyNo = i2;
if (i2 == 8) {
i2 = 10;
}
i2++;
i++;
}
}
keyChangeFlag = 1;
keyCasMes = new Array();
keyCasMes = ["\u30AD\u30FC\u5272\u308A\u5F53\u3066\u540D\u914D\u5217", "\u653B\u6483\u5B9F\u884C", "Attack", "\u6B66\u5668\u5207\u308A\u66FF\u3048", "Wepon change", "\u30AC\u30FC\u30C9", "Gard", "\u7279\u6B8A\u884C\u52D5", "Extra attack", "\u653B\u6483\u5F37\u5316\u5F62\u614B\u79FB\u884C", "Change special mode", "\u5909\u5F62", "Change style", "\u6E1B\u901F", "Brake", "\u8FFD\u52A0\u88C5\u5099\u4F7F\u7528", "Use optional wepon", "\u30EC\u30FC\u30C0\u30FC\u7BC4\u56F2\u3000\u72ED", "Radar range NARROW", "\u30EC\u30FC\u30C0\u30FC\u7BC4\u56F2\u3000\u901A\u5E38", "Radar range NORMAL", "\u30EC\u30FC\u30C0\u30FC\u7BC4\u56F2\u3000\u5E83", "Radar range WIDE"];
mes = _global.keyCas;
this.SetDisKey();
Instance of Symbol 920 MovieClip "mainPanel" in Symbol 928 MovieClip Frame 1
onClipEvent (load) {
function Select(param) {
if (param == 1) {
this.gotoAndStop("select");
} else if (param == 2) {
this.gotoAndStop("cation");
} else {
this.gotoAndStop("normal");
}
}
}
Instance of Symbol 903 MovieClip in Symbol 928 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
Symbol 935 Button
on (release) {
_global.command = "read";
_root.gotoAndStop("ranking");
}
Symbol 937 Button
on (release) {
this.gotoAndPlay("selectCharFirst");
}
Symbol 939 Button
on (release) {
this.SelectMenu(0);
}
Symbol 947 Button
on (release) {
_global.nextStage = "test";
this.gotoAndPlay("selectCharFirst");
}
Symbol 949 Button
on (release) {
_global.nextStage = "test2";
this.gotoAndPlay("selectCharFirst");
}
Symbol 961 MovieClip Frame 1
var tempName = ("char" + _parent.charName);
this.gotoAndStop(tempName);
this.stop();
Symbol 961 MovieClip Frame 10
this.stop();
Symbol 961 MovieClip Frame 20
this.stop();
Symbol 961 MovieClip Frame 30
this.stop();
Symbol 965 MovieClip Frame 1
flag = 0;
this.onEnterFrame = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
flag = 1;
this.gotoAndStop("hit");
} else {
flag = 0;
this.gotoAndStop("noHit");
}
};
this.onMouseDown = function () {
if (flag) {
_parent._parent.SelectChar(charName);
}
};
Symbol 965 MovieClip Frame 2
this.stop();
Symbol 965 MovieClip Frame 10
this.stop();
Symbol 966 MovieClip Frame 1
function SelectChar(charName) {
_parent.charDis.CharDisFn(1);
}
Instance of Symbol 965 MovieClip in Symbol 966 MovieClip Frame 1
onClipEvent (load) {
charName = 4;
}
Instance of Symbol 965 MovieClip in Symbol 966 MovieClip Frame 1
onClipEvent (load) {
charName = 3;
}
Instance of Symbol 965 MovieClip in Symbol 966 MovieClip Frame 1
onClipEvent (load) {
charName = 2;
}
Instance of Symbol 965 MovieClip in Symbol 966 MovieClip Frame 1
onClipEvent (load) {
charName = 1;
}
Symbol 966 MovieClip Frame 5
this.stop();
Symbol 971 MovieClip Frame 10
this.stop();
Symbol 991 Button
on (release) {
_parent.SelectChar(-1);
}
Symbol 992 Button
on (release) {
_parent.SelectChar(0);
}
Instance of Symbol 380 MovieClip "braid" in Symbol 994 MovieClip Frame 1
onClipEvent (load) {
function open() {
if (mode == "close") {
mode = "-";
this.gotoAndPlay(2);
} else if (mode == "open") {
mode = "-";
this.gotoAndPlay(10);
}
}
mode = "close";
tempmode = _root.mainChar.getBraidmode();
if (tempmode == "braidOpen") {
mode = "open";
this.gotoAndPlay(10);
} else {
mode = "close";
}
}
Symbol 997 MovieClip Frame 1
bodyName = "charData" + _parent.charName;
name = _root[bodyName][1];
hp = _root[bodyName][7];
def = _root[bodyName][9];
addSpeed = _root[bodyName][14];
maxSpeed = _root[bodyName][11];
dush = _root[bodyName][20];
com = _root[bodyName][2];
trace("charName=" + _parent.charName);
this.gotoAndStop("f" + _parent.charName);
Symbol 997 MovieClip Frame 10
this.stop();
Symbol 997 MovieClip Frame 20
this.stop();
Symbol 997 MovieClip Frame 30
this.stop();
Symbol 997 MovieClip Frame 40
this.stop();
Symbol 998 MovieClip Frame 1
function SelectMenu(tempMenu) {
trace("\u30E1\u30CB\u30E5\u30FC\u9078\u629E\u5B9F\u884C tempMenu=" + tempMenu);
if (tempMenu == 0) {
_root.SoundStop();
this.gotoAndPlay("menu");
}
if (tempMenu == "practice") {
_global.nextStage = "practice";
this.gotoAndPlay("selectCharFirst");
}
if (tempMenu == "test") {
_root.missionName = "\u6226\u95D8\u30C6\u30B9\u30C8";
this.gotoAndPlay("survival");
}
if (tempMenu == "timeAttack") {
_root.missionName = "\u30BF\u30A4\u30E0\u30A2\u30BF\u30C3\u30AF";
_global.nextStage = "timeAttack";
this.gotoAndPlay("timeAttack");
}
if (tempMenu == "option") {
this.gotoAndPlay("option");
}
if (tempMenu == "log") {
this.gotoAndPlay("log");
}
if (tempMenu == "credit") {
this.gotoAndPlay("credit");
}
}
function SetMainChar(setName) {
_root.charName = setName;
setName = "char" + setName;
trace("\u4E3B\u4EBA\u516C\u306E\u8A2D\u7F6E\u5B9F\u884C \u540D\u524D\u306F" + setName);
_root.attachMovie(setName, "mainChar", 1);
_root.mainChar._x = 320;
_root.mainChar._y = 240;
_root.mainChar._xscale = (_root.mainChar._yscale = 20);
_root.mainChar.userCon = 1;
_root.gotoAndStop(_global.firstStage);
}
function SelectChar(tempChar) {
if (tempChar < 0) {
this.SetMainChar(charName);
_root.SoundStop();
_root.gotoAndStop(_global.nextStage);
} else if (tempChar < 1) {
charName = null;
this.gotoAndStop("selectChar1");
} else {
charName = tempChar;
this.gotoAndStop("selectChar2");
}
}
charName = null;
Symbol 998 MovieClip Frame 8
this.stop();
Instance of Symbol 818 MovieClip in Symbol 998 MovieClip Frame 20
onClipEvent (load) {
mainMes = "CREDIT";
mes = "\u5236\u4F5C\u8005\u30FB\u7D20\u6750\u63D0\u4F9B\u5143";
}
Symbol 998 MovieClip Frame 26
this.stop();
Instance of Symbol 818 MovieClip in Symbol 998 MovieClip Frame 30
onClipEvent (load) {
mainMes = "OPTION";
mes = "\u8A2D\u5B9A\u5909\u66F4";
}
Instance of Symbol 848 MovieClip in Symbol 998 MovieClip Frame 30
on (press) {
this.inButtan.play();
}
Instance of Symbol 864 MovieClip in Symbol 998 MovieClip Frame 30
on (press) {
this.inButtan.play();
}
Instance of Symbol 879 MovieClip in Symbol 998 MovieClip Frame 30
on (press) {
this.inButtan.play();
}
Instance of Symbol 888 MovieClip in Symbol 998 MovieClip Frame 30
on (press) {
this.inButtan.play();
}
Symbol 998 MovieClip Frame 35
this.stop();
Symbol 998 MovieClip Frame 41
this.stop();
Instance of Symbol 818 MovieClip in Symbol 998 MovieClip Frame 45
onClipEvent (load) {
mainMes = "TIME ATTACK";
mes = "\u30BF\u30A4\u30E0\u30A2\u30BF\u30C3\u30AF";
}
Symbol 998 MovieClip Frame 50
this.stop();
Instance of Symbol 818 MovieClip in Symbol 998 MovieClip Frame 55
onClipEvent (load) {
mainMes = "SURVIVAL";
mes = "\u6226\u95D8\u30C6\u30B9\u30C8";
}
Symbol 998 MovieClip Frame 60
this.stop();
Instance of Symbol 818 MovieClip in Symbol 998 MovieClip Frame 65
onClipEvent (load) {
mainMes = "UP DATE LOG";
mes = "\u66F4\u65B0\u30ED\u30B0";
}
Instance of Symbol 655 MovieClip [FScrollBarSymbol] in Symbol 998 MovieClip Frame 65
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "InstanceName_0";
horizontal = false;
}
Symbol 998 MovieClip Frame 70
this.stop();
Symbol 998 MovieClip Frame 90
this.stop();
Instance of Symbol 818 MovieClip in Symbol 998 MovieClip Frame 90
onClipEvent (load) {
mainMes = "FrameSelect";
mes = "\u30D5\u30EC\u30FC\u30E0\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044";
}
Symbol 998 MovieClip Frame 95
this.stop();
Symbol 998 MovieClip Frame 110
this.stop();
Symbol 1001 MovieClip Frame 1
this.onEnterFrame = function () {
if (this._y > 480) {
this._y = 0 + (this._y - 480);
}
if (this._y < 0) {
this._y = 480 + this._y;
}
this._y = this._y - ((_root.mainChar.YnowSpeed + 0.5) / moveExt);
};
Symbol 1003 MovieClip Frame 1
this.onEnterFrame = function () {
if (this._x > 640) {
this._x = this._x - 640;
}
if (this._x < 0) {
this._x = 640 + this._x;
}
this._x = this._x - ((_root.mainChar.XnowSpeed + 0.5) / moveExt);
};
Symbol 1004 MovieClip Frame 1
function SetMissile() {
if (i >= 10) {
i = 0;
}
i++;
rand = Math.random();
if (rand > 0.75) {
thePoint = {x:2000, y:(Math.random() * 2000) - 1000};
} else if (rand > 0.5) {
thePoint = {x:-2000, y:(Math.random() * 2000) - 1000};
} else if (rand > 0.25) {
thePoint = {x:(Math.random() * 2000) - 1000, y:2000};
} else {
thePoint = {x:(Math.random() * 2000) - 1000, y:-2000};
}
this.globalToLocal(thePoint);
this.attachMovie("missileTypeA", i, i);
this[i]._x = thePoint.x;
this[i]._y = thePoint.y;
}
function SetPointMissile(pointX, pointY) {
if (i >= 15) {
i = 0;
}
i++;
this.attachMovie("missileTypeA", i, i);
thePoint = {x:pointX, y:pointY};
this.globalToLocal(thePoint);
this[i]._x = thePoint.x;
this[i]._y = thePoint.y;
}
function SetTraceLine() {
if (_global.effectLv > 1) {
this.followSmoke1.StartFollow();
this.followSmoke2.StartFollow();
this.followSmoke3.StartFollow();
this.followSmoke4.StartFollow();
}
}
this.onEnterFrame = function () {
this._x = this._x - _root.mainChar.XnowSpeed;
this._y = this._y - _root.mainChar.YnowSpeed;
};
Instance of Symbol 139 MovieClip in Symbol 1004 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
dmgType = 0;
efType = 0;
}
Symbol 1007 MovieClip Frame 1
function warning(param) {
if (param == 1) {
misCount++;
this.gotoAndPlay(5);
} else {
misCount--;
}
}
misCount = 0;
this.stop();
Symbol 1007 MovieClip Frame 8
if (misCount > 0) {
this.gotoAndPlay("warningMisRoop");
} else {
this.gotoAndStop(1);
}
Symbol 1011 MovieClip Frame 1
if (_global.effectLv < 1) {
this.gotoAndStop(2);
}
this.stop();
Symbol 1011 MovieClip Frame 2
this.stop();
Symbol 1014 Button
on (rollOver) {
_root.mes.inMes.ShowHelpMes("helpMove");
}
on (rollOut) {
_root.mes.inMes.ShowHelpMes();
}
on (release) {
_root.mes.inMes.ShowHelpMes2("move");
this.ChangeStage("move");
}
Symbol 1017 Button
on (rollOver) {
_root.mes.inMes.ShowHelpMes("helpShot");
}
on (rollOut) {
_root.mes.inMes.ShowHelpMes();
}
on (release) {
_root.mes.inMes.ShowHelpMes2("shot");
this.ChangeStage("shot");
}
Symbol 1020 Button
on (rollOver) {
_root.mes.inMes.ShowHelpMes("helpInFight");
}
on (rollOut) {
_root.mes.inMes.ShowHelpMes();
}
on (release) {
_root.mes.inMes.ShowHelpMes2("inFight");
this.ChangeStage("inFight");
}
Symbol 1023 Button
on (rollOver) {
_root.mes.inMes.ShowHelpMes("helpGard");
}
on (rollOut) {
_root.mes.inMes.ShowHelpMes();
}
on (release) {
_root.mes.inMes.ShowHelpMes2("gard");
this.ChangeStage("gard");
}
Symbol 1026 Button
on (rollOver) {
_root.mes.inMes.ShowHelpMes("helpEnd");
}
on (rollOut) {
_root.mes.inMes.ShowHelpMes();
}
on (release) {
this.ChangeStage("end");
}
Symbol 1027 MovieClip Frame 1
function ShowMes(tempMes) {
trace("menu.showMes\u5B9F\u884C");
if (tempMes == "end") {
_root.mes.inMes.ShowHelpMes();
} else if (tempMes) {
_root.mes.inMes.ShowHelpMes(tempMes);
}
}
function ChangeStage(tempStage) {
trace("\u30C1\u30E5\u30FC\u30C8\u30EA\u30A2\u30EB\u30E1\u30CB\u30E5\u30FC\uFF1AnextStage=" + nextStage);
if (tempStage == "end") {
this.RemoveAllEnemy(0);
this.RemoveCharMusic();
_root.gotoAndStop("menu");
} else if (tempStage == "move") {
_global.tempTutorialName = "\u79FB\u52D5";
this.SetMoveTutorial();
_parent.play();
} else if (tempStage == "shot") {
_global.tempTutorialName = "\u5C04\u6483";
this.SetEnemy(tempStage);
_parent.play();
} else if (tempStage == "inFight") {
_global.tempTutorialName = "\u8FD1\u63A5\u653B\u6483";
this.SetEnemy(tempStage);
_parent.play();
} else if (tempStage == "gard") {
_global.tempTutorialName = "\u9632\u5FA1";
this.SetGardTutorial();
_parent.play();
}
}
function RemoveCharMusic() {
theSound.stop();
_root.mainChar.removeMovieClip();
}
function SetEnemy(tempTMode) {
trace("tempTMode =" + tempTMode);
if (tempTMode != 0) {
_global.SetEnemyTempMode = tempTMode;
} else {
trace("tempMode=" + SetEnemyTempMode);
}
_global.setEnemyNo = 8;
var i = 1;
var setX = 750;
var setY = 550;
while (i < 9) {
enemyName = ("enemy0" + i) + "0";
_root.attachMovie("tutorial_enemy1", enemyName, i + 220);
setX = (Math.random() * 300) + 300;
if (setX > 400) {
setX = setX + 150;
} else {
setX = setX - 150;
}
setY = (Math.random() * 300) + 100;
if (setY > 300) {
setY = setY + 150;
} else {
setY = setY - 150;
}
_root[enemyName]._x = setX;
_root[enemyName]._y = setY;
if (SetEnemyTempMode == "shot") {
trace("\u5C04\u6483\u6F14\u7FD2\u7528\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u914D\u7F6E");
_root[enemyName].shotHit = 1;
_root[enemyName].braidHit = 0;
} else if (SetEnemyTempMode == "inFight") {
trace("\u8FD1\u63A5\u6F14\u7FD2\u7528\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u914D\u7F6E");
_root[enemyName].shotHit = 0;
_root[enemyName].braidHit = 1;
} else {
trace("\u6F14\u7FD2\u7528\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u30BF\u30A4\u30D7\u306E\u53D6\u5F97\u306B\u5931\u6557");
}
trace("\u914D\u7F6E\u540D" + enemyName);
i++;
}
}
function RemoveAllEnemy(raeTemp) {
trace("\u4EEE\u60F3\u6575\u3000\u5168\u6D88\u53BB");
if (((raeTemp == 1) && (_global.tempTutorialName != "\u79FB\u52D5")) && (_global.tempTutorialName != "\u9632\u5FA1")) {
i = 1;
while (i < 9) {
enemyName = ("enemy0" + i) + "0";
_root[enemyName].removeMe();
i++;
}
} else {
i = 221;
while (i <= 249) {
_root.attachMovie("removeItem", "remove", i);
i++;
}
}
_root.lerder0.lerder1.RemoveAllCoItem();
}
function ResetEnemy() {
trace("setEnemyNo=" + setEnemyNo);
_global.setEnemyNo--;
if (_global.setEnemyNo <= 0) {
this.SetEnemy(0);
}
}
function SetMoveTutorial() {
_root.attachMovie("tutorial_moveGoal", "goal", 221);
goalX = (Math.random() * 3000) - 1500;
goalY = (Math.random() * 3000) - 1500;
_root.goal._x = _root.mainChar._x + goalX;
_root.goal._y = _root.mainChar._y + goalY;
}
function SetGardTutorial() {
_root.attachMovie("tutorial_shotItem", "item", 221);
}
theSound = new Sound(_root);
Symbol 1032 Button
on (release) {
_root.mes.inMes.ShowHelpMes2("normal");
_parent.inMenu.RemoveAllEnemy(1);
_parent.play();
}
Symbol 1033 MovieClip Frame 4
tutorialName = _global.tempTutorialName + "\u8A13\u7DF4";
Symbol 1033 MovieClip Frame 10
this.stop();
Symbol 1034 MovieClip Frame 1
function ChangeSWindow(tempMode) {
trace("\u30C1\u30E5\u30FC\u30C8\u30EA\u30A2\u30EB\u30E1\u30CB\u30E5\u30FC\u30A6\u30A4\u30F3\u30C9\u30A6change\uFF1Amode=" + tempMode);
this.play();
}
Symbol 1034 MovieClip Frame 7
this.stop();
Symbol 1034 MovieClip Frame 13
this.stop();
Instance of Symbol 1027 MovieClip "inMenu" in Symbol 1034 MovieClip Frame 13
onClipEvent (load) {
this._visible = false;
}
Symbol 1034 MovieClip Frame 20
this.gotoAndStop(7);
Symbol 1059 MovieClip Frame 1
function ShowHelpMes(tempMes) {
trace("\u30C1\u30E5\u30FC\u30C8\u30EA\u30A2\u30EB\u30E1\u30C3\u30BB\u30FC\u30B8wShowMes\u5B9F\u884C\u3055\u308C\u307E\u3057\u305F");
if (tempMes == "helpMove") {
mes = "\u57FA\u672C\u7684\u306A\u79FB\u52D5\u306E\u8A13\u7DF4\u3092\u884C\u3048\u307E\u3059";
} else if (tempMes == "helpShot") {
mes = "\u5C04\u6483\u306E\u8A13\u7DF4\u3092\u884C\u3048\u307E\u3059";
} else if (tempMes == "helpInFight") {
mes = "\u8FD1\u63A5\u653B\u6483\u306E\u8A13\u7DF4\u3092\u884C\u3048\u307E\u3059";
} else if (tempMes == "helpGard") {
mes = "\u9632\u5FA1\u3068\u56DE\u907F\u306E\u8A13\u7DF4\u3092\u884C\u3048\u307E\u3059";
} else if (tempMes == "helpEnd") {
mes = "\u8A13\u7DF4\u3092\u7D42\u4E86\u3057\u307E\u3059";
} else {
mes = "\u8A13\u7DF4\u3057\u305F\u3044\u9805\u76EE\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044";
}
}
function ShowHelpMes2(tempMes) {
trace("\u30C1\u30E5\u30FC\u30C8\u30EA\u30A2\u30EB\u30E1\u30C3\u30BB\u30FC\u30B8wShowMes2\u5B9F\u884C\u3055\u308C\u307E\u3057\u305F");
this.gotoAndPlay(tempMes);
}
this.ShowHelpMes();
Symbol 1059 MovieClip Frame 8
this.stop();
Symbol 1059 MovieClip Frame 17
this.stop();
Symbol 1059 MovieClip Frame 27
this.stop();
Symbol 1059 MovieClip Frame 37
this.stop();
Symbol 1059 MovieClip Frame 47
this.stop();
Symbol 1060 MovieClip Frame 7
this.stop();
Symbol 1065 MovieClip Frame 1
function WeponSymbolChange(param) {
if (param) {
this.gotoAndPlay("b");
} else {
this.gotoAndPlay("s");
}
}
if (_global.keyModeChangeWepon) {
this._visible = false;
}
this.stop();
Symbol 1065 MovieClip Frame 15
this.stop();
Symbol 1065 MovieClip Frame 25
this.stop();
Instance of Symbol 1069 MovieClip in Symbol 1070 MovieClip Frame 1
onClipEvent (load) {
function SetSpeedDis() {
var Xspeed = (_root.mainChar.YnowSpeed * -1);
var Yspeed = _root.mainChar.XnowSpeed;
var totalSpeed = Math.atan2(Yspeed, Xspeed);
_rotation = (totalSpeed / (Math.PI/180));
_yscale = (Math.abs(Xspeed) + Math.abs(Yspeed));
_xscale = (Math.abs(Xspeed) + Math.abs(Yspeed));
}
}
onClipEvent (enterFrame) {
this.SetSpeedDis();
}
Symbol 1072 MovieClip Frame 1
this.onEnterFrame = function () {
this._rotation = _root.mainChar._rotation;
};
Symbol 1073 MovieClip Frame 1
function ChangeAntiRadar(tempPar) {
clearPar = clearPar - (tempPar / 100);
if (clearPar < 0.1) {
clearPar = 0.1;
} else if (clearPar > radarPar) {
clearPar = radarPar;
}
trace((("\u30EC\u30FC\u30C0\u59A8\u5BB3\u5EA6=" + tempPar) + " \u73FE\u5728\u306E\u6709\u52B9\u5EA6=") + clearPar);
}
function getCo(getName, x, y, symType) {
var DisX = (((_root.mainChar._x - x) / cf) * -1);
var DisY = (((_root.mainChar._y - y) / cf) * -1);
if (((Math.abs(DisX) <= 70) && (Math.abs(DisY) <= 70)) && (Math.random() < clearPar)) {
this.attachMovie(symList[symType], getName, getName + 30);
this[getName]._x = DisX;
this[getName]._y = DisY;
} else {
this[getName].removeMovieClip();
}
}
function RemoveCoItem(getName) {
this[getName].removeMovieClip();
}
function RemoveAllCoItem() {
var i;
i = 0;
while (i < 100) {
this.attachMovie("removeItem", "item", i);
i++;
}
}
function ChangeLerderArea() {
if (Key.isDown(_global.keyCas[11])) {
cf = cf1;
displaycf = "1 NARROW";
this.changeArea(cf);
} else if (Key.isDown(_global.keyCas[12])) {
cf = cf2;
displaycf = "2 NORMAL";
this.changeArea(cf);
} else if (Key.isDown(_global.keyCas[13])) {
cf = cf3;
displaycf = "3 WIDE";
this.changeArea(cf);
}
}
function changeArea(cfsize) {
this.attachMovie("lerderArea", "lerderArea", 100);
this.lerderArea._xscale = (this.lerderArea._yscale = 100 / cfsize);
}
cf1 = 10;
cf2 = 20;
cf3 = 50;
cf = cf2;
this.changeArea(cf);
displaycf = "2 NORMAL";
radarPar = 1.2;
clearPar = radarPar;
symList = ["ls_mis", "ls_gunFloat", "ls_SAMFloat", "ls_ship1", "ls_pac", "ls_ECMFloat"];
this.onEnterFrame = function () {
this.ChangeLerderArea();
};
Symbol 1077 MovieClip Frame 1
this.onEnterFrame = function () {
this._x = this._x - (moveX + (_root.mainChar.XnowSpeed * moveXext));
this._y = this._y - (moveY + (_root.mainChar.YnowSpeed * moveYext));
if (this._x <= (-this._width)) {
this._x = 790 + this._width;
}
if (this._x >= (800 + this._width)) {
this._x = (-this._width) + 10;
}
if (this._y >= (550 + this._width)) {
this._y = (-this._width) + 10;
}
if (this._y <= (-this._width)) {
this._y = 540 + this.width;
}
};
Symbol 1079 MovieClip Frame 1
this.onEnterFrame = function () {
this._x = this._x - (moveX + (_root.mainChar.XnowSpeed * moveXext));
this._y = this._y - (moveY + (_root.mainChar.YnowSpeed * moveYext));
if (this._x <= (-this._width)) {
this._x = 790 + this._width;
}
if (this._x >= (800 + this._width)) {
this._x = (-this._width) + 10;
}
if (this._y >= (550 + this._width)) {
this._y = (-this._width) + 10;
}
if (this._y <= (-this._width)) {
this._y = 540 + this.width;
}
};
Symbol 1085 MovieClip Frame 1
function HpSet() {
nowHp = (basicHp = _global.hp);
}
function GetHp(com) {
if (com == "per") {
per = (nowHp / basicHp) * 1000;
per = Math.floor(per) / 10;
trace("\u6B8B\u308AHP\u306E\u30D1\u30FC\u30BB\u30F3\u30C6\u30FC\u30B8=" + per);
return(per);
}
}
function EndGame() {
i = 0;
while (i < 600) {
_root.attachMovie("removeItem", "removeItem", i);
i++;
}
_root.attachMovie("gameOverDisplay", "gameOverDisplay", 599);
_root.gameOverDisplay._x = 320;
_root.gameOverDisplay._y = 240;
_root.onEnterFrame = null;
var time1 = Math.round((getTimer() - time0) / 1000);
var s = (time1 % 60);
trace("\u7D4C\u904E\u6642\u9593=" + time1);
if (s < 10) {
s = "0" + s;
}
var m = ((time1 - s) / 60);
if (m < 10) {
m = "0" + m;
}
var totalTime = ((m + ":") + s);
trace("\u6226\u95D8\u6642\u9593=" + totalTime);
_root.gameOverDisplay.missionName = missionName;
_root.gameOverDisplay.totalTime = totalTime;
_root.gameOverDisplay.p1 = p1;
_root.gameOverDisplay.p2 = p2;
_root.gameOverDisplay.p3 = p3;
_root.gameOverDisplay.p4 = p4;
_root.gameOverDisplay.m1 = m1;
_root.gameOverDisplay.fg = fg;
_root.gameOverDisplay.fs = fs;
_root.gameOverDisplay.fe = fe;
_root.gameOverDisplay.s1 = s1;
_root.gameOverDisplay.dmgCnt = dmgCnt;
_root.gameOverDisplay.score = score;
_root.gameOverDisplay.charName = charNameList[_root.charName - 1];
_root.gameOverDisplay.missionName = _root.missionName;
}
function ChangeHp(damage) {
nowHp = nowHp - damage;
this.gageHp._xscale = (nowHp / basicHp) * 100;
dmgCnt++;
if ((nowHp < 0) && (mode == 1)) {
this.gageHp._xscale = 0;
mode = 0;
this.EndGame();
}
}
function AddScore(param, breakTargetName) {
trace(((("\n\n\u5F97\u70B9\u52A0\u7B97" + param) + "\u3000\u30BF\u30A4\u30D7\uFF1A") + breakTargetName) + "\n\n");
this[breakTargetName]++;
score = score + param;
}
mode = 1;
charNameList = ["\u30E9\u30D4\u30B9\u30FB\u30D7\u30ED\u30C8\u30BF\u30A4\u30D7", "\u30E9\u30D4\u30B9", "\u30EC\u30C3\u30C9\u30D9\u30EA\u30EB", "\u96F6\u5F0F32\u578B\u30FB\u6539"];
missionName = "\u4E0D\u660E";
time0 = getTimer();
score = 0;
dmgCnt = 0;
p1 = 0;
p2 = 0;
p3 = 0;
p4 = 0;
m1 = 0;
fg = 0;
fs = 0;
fe = 0;
s1 = 0;
this.onEnterFrame = function () {
if (Key.isDown(8)) {
this.GetHp("per");
}
};
Symbol 1087 MovieClip Frame 1
this.onEnterFrame = function () {
this._rotation = this._rotation + 5;
};
Symbol 1092 MovieClip Frame 1
if (_global.keyModeChangeWepon != 1) {
_visible = 0;
} else {
trace("\u5207\u308A\u66FF\u3048\u30EC\u30F3\u30B8=" + _root.mainChar.changeWeponRange);
}
Symbol 1092 MovieClip Frame 5
this._xscale = (this._yscale = _root.mainChar.changeWeponRange);
Symbol 1092 MovieClip Frame 7
this.stop();
Symbol 1095 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root[targetName] != undefined) {
_visible = 1;
this._x = _root.mainChar._x;
this._y = _root.mainChar._y;
xDis = _root[targetName]._x - _x;
yDis = _root[targetName]._y - _y;
_rotation = (Math.atan2(yDis, xDis) / (Math.PI/180));
} else {
_visible = 0;
}
};
Symbol 1097 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root[targetName] != undefined) {
_visible = 1;
this._x = _root.mainChar._x;
this._y = _root.mainChar._y;
xDis = -(_root[targetName]._x - _x);
yDis = -(_root[targetName]._y - _y);
_rotation = (Math.atan2(yDis, xDis) / (Math.PI/180));
} else {
_visible = 0;
}
};
Symbol 1097 MovieClip Frame 4
this.gotoAndPlay(2);
Symbol 1100 MovieClip Frame 1
function TimeCon(tempFlag) {
if (tempFlag) {
time0 = getTimer();
trace("\u30BF\u30A4\u30E0\u30A2\u30BF\u30C3\u30AF\u3000\u30BF\u30A4\u30DE\u30FC\u4F5C\u52D5");
} else {
time0 = 0;
trace("\u30BF\u30A4\u30E0\u30A2\u30BF\u30C3\u30AF\u3000\u30BF\u30A4\u30DE\u30FC\u505C\u6B62");
}
}
function GetTime() {
return(disTime);
}
time0 = 0;
this.onEnterFrame = function () {
if (time0 > 0) {
time1 = getTimer() - time0;
time1 = Math.floor(time1 / 10);
if ((time1 % 10) == 0) {
if ((time1 % 100) == 0) {
trace("2\u6841\u8DB3\u3059 h=" + time1);
disTime = (time1 / 100) + ".00";
} else {
trace("1\u6841\u8DB3\u3059 h=" + time1);
disTime = (time1 / 100) + "0";
}
} else {
disTime = time1 / 100;
}
}
};
Symbol 1110 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 1118 Button
on (release) {
this.gotoAndStop("first");
}
Symbol 1120 Button
on (release) {
_root.SoundStop();
_root.gotoAndStop("menu");
}
Symbol 1131 Button
on (release) {
_root.SoundStop();
_root.gotoAndStop("menu");
}
Symbol 1133 Button
on (release) {
_root.so.data.name = name;
this.gotoAndStop("connect");
}
Symbol 1136 Button
on (release) {
this.gotoAndStop("connect");
}
Symbol 1139 Button
on (release) {
_global.command = "read";
this.gotoAndStop("first");
}
Symbol 1140 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 1152 MovieClip Frame 1
_visible = 0;
if (_name == 1) {
this.play();
} else {
this.stop();
}
Symbol 1152 MovieClip Frame 2
_visible = 1;
Symbol 1152 MovieClip Frame 3
nextName = Number(_name);
nextName++;
trace("\u540D\u524D=" + nextName);
_parent[nextName].gotoAndPlay(2);
Symbol 1152 MovieClip Frame 15
this.stop();
Symbol 1153 Button
on (release) {
_root.SoundStop();
_root.gotoAndStop("menu");
}
Symbol 1161 Button
on (release) {
this.NextData(1);
}
Symbol 1162 Button
on (release) {
this.NextData(0);
}
Instance of Symbol 1114 MovieClip "cgiBox" in Symbol 1165 MovieClip Frame 1
onClipEvent (load) {
function Action(com) {
if (com == "read") {
command = "read";
score = null;
pacName = null;
name = null;
loadVariables (_global.cgiAd, "_root.ranking", "GET");
} else {
command = "write";
score = _global.gTime;
pacName = _root.charName;
name = _parent.name;
if ((name == null) || (name == "")) {
name = "unknow";
}
loadVariables (_global.cgiAd, "_root.ranking", "GET");
}
}
}
Symbol 1165 MovieClip Frame 2
_root.AllRemove();
command = "read";
this.cgiBox.Action("read");
timeOver = getTimer() + 5000;
this.onData = function () {
this.onEnterFrame = null;
if (_global.command == "read") {
if (command == "end") {
gotoAndStop (55);
} else if (command == "errorchk") {
gotoAndStop (10);
}
} else if (_global.command == "write") {
if (command == "end") {
score = _global.gTime;
temp = this[("score" + _root.charName) + "10"];
if ((score < Number(score10)) || (score10 == null)) {
trace((("score=" + score) + "\nscore10=") + score10);
this.gotoAndStop("rankIn");
} else if (score < Number(temp)) {
trace("\u6A5F\u4F53\u5225\u30E9\u30F3\u30AF\u30A4\u30F3");
this.gotoAndStop("rankIn");
} else {
trace((("score=" + score) + "\nscore10=") + score10);
trace("\u30E9\u30F3\u30AD\u30F3\u30B0\u5916");
this.gotoAndStop("rankOut");
}
} else if (command == "errorchk") {
trace("\u30A8\u30E9\u30FC command=" + command);
this.gotoAndStop("e1");
}
} else {
trace("command\u306B\u4E0D\u6B63\u306A\u5024\u304C\u5165\u529B\u3055\u308C\u3066\u3044\u307E\u3059=" + _global.command);
this.gotoAndStop("e1");
}
};
this.onEnterFrame = function () {
if (getTimer() > timeOver) {
this.gotoAndStop("e1");
}
};
this.stop();
Symbol 1165 MovieClip Frame 10
this.stop();
Symbol 1165 MovieClip Frame 20
if (_root.so.data.name != null) {
name = _root.so.data.name;
}
this.stop();
Symbol 1165 MovieClip Frame 27
this.cgiBox.Action("write");
timeOver = getTimer() + 20000;
this.onData = function () {
if (command == "end") {
_global.command = "read";
this.gotoAndStop("first");
} else if (command == "errorchk") {
trace("CGI\u66F8\u304D\u3053\u307F\u51E6\u7406\u6642\u306B\u30A8\u30E9\u30FC");
this.gotoAndStop("e2");
}
};
this.onEnterFrame = function () {
if (getTimer() > timeOver) {
trace("CGI\u66F8\u304D\u3053\u307F\u51E6\u7406\u6642\u306B\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8");
this.gotoAndStop("e2");
}
};
this.stop();
Symbol 1165 MovieClip Frame 35
this.stop();
Symbol 1165 MovieClip Frame 45
this.stop();
Symbol 1165 MovieClip Frame 55
function LoadRankingData() {
trace("\u30E9\u30F3\u30AD\u30F3\u30B0\u30C7\u30FC\u30BF\u518D\u8868\u793A readCa=" + readCa);
this.AllClear();
if (readCa == 0) {
this[1].name = "\u81EA\u5DF1\u6700\u9AD8\u8A18\u9332";
this[3].name = "\u6A5F\u4F53\u5225\u6700\u9AD8\u8A18\u9332";
var tempI = 2;
this[tempI].no = 1;
this[tempI].name = "Your best time";
if (_root.so.data.yourBestTime == null) {
this[tempI].time = "noData";
this[tempI].disPacName = "noData";
} else {
this[tempI].time = _root.so.data.yourBestTime;
this[tempI].disPacName = this.pacNameList[_root.so.data.yourBestPac];
}
i = 1;
while (i < 5) {
this[i + 3].name = pacNameList[i] + "bestTime";
if (_root.so.data[("pac" + i) + "bestTime"] == null) {
this[i + 3].no = 1;
this[i + 3].name = "Frame best time";
this[i + 3].time = "noData";
this[i + 3].disPacName = pacNameList[i];
} else {
this[i + 3].no = 1;
this[i + 3].name = "Frame best time";
this[i + 3].time = _root.so.data[("pac" + i) + "bestTime"];
this[i + 3].disPacName = pacNameList[i];
}
i++;
}
} else {
i = 1;
while (i < 11) {
this[i].no = i;
if (readCa == 1) {
i2 = i;
} else {
i2 = String(readCa - 1) + i;
trace("i2\u306F=" + i2);
}
this[i].name = this["name" + i2];
this[i].time = this["score" + i2];
tempCa = Number(readCa) + 1;
if (readCa == 1) {
pName = this["pacName" + i];
this[i].disPacName = this.pacNameList[pName];
} else {
this[i].disPacName = this.pacNameList[readCa - 1];
}
i++;
}
}
title = titleList[readCa];
}
function NextData(temp) {
if (temp) {
readCa++;
if (readCa > 5) {
readCa = 0;
}
} else {
readCa--;
if (readCa < 0) {
readCa = 5;
}
}
this.LoadRankingData();
this["1"].gotoAndPlay(2);
}
function AllClear() {
i = 1;
while (i < 11) {
this[i].no = "";
this[i].name = "";
this[i].time = "";
this[i].disPacName = "";
title = "";
i++;
}
}
readCa = 1;
titleList = ["\u81EA\u5DF1\u6700\u9AD8\u8A18\u9332", "\u7DCF\u5408", "\u6A5F\u4F53\u5225\u3000\u30E9\u30D4\u30B9\u30FB\u30D7\u30ED\u30C8\u30BF\u30A4\u30D7", "\u6A5F\u4F53\u5225\u3000\u30E9\u30D4\u30B9", "\u6A5F\u4F53\u5225\u3000\u30EC\u30C3\u30C9\u30D9\u30EA\u30EB", "\u6A5F\u4F53\u5225\u3000\u96F6\u5F0F32\u578B\u30FB\u6539"];
pacNameList = new Array();
pacNameList = ["", "laphis_prototype", "laphis", "redBeryl", "zero32c"];
this.LoadRankingData();
this.stop();