Frame 1
langage = "en";
_lockroot = true;
if ((_parent == undefined) || (_parent == null)) {
gotoAndStop (2);
} else {
this.stop();
}
Frame 4
this.gotoAndStop(_currentframe + 3);
Frame 6
function SoundStop() {
theSound.stop();
}
function ChangeVol(vol) {
if (vol == "g") {
return(theSound.getVolume());
}
so.data.volume = vol;
theSound.setVolume(vol);
}
function AllRemove() {
_root.SoundStop();
var _local2;
_local2 = 0;
while (_local2 < 1000) {
_root.attachMovie("removeItem", "removeItem", _local2);
_local2++;
}
_root.onEnterFrame = null;
}
bgm = new Sound();
_global.nextStage = null;
_global.shotDmg = null;
_global.braidDmg = null;
_global.extDmg = null;
_global.parDmg = null;
_global.keyDef = new Array();
_global.keyDef = [0, 32, 16, 68, 83, 65, 81, 67, 999, 0, 0, 999, 999, 999];
_global.cgiAd = "";
so = SharedObject.getLocal("myCas");
if (so.data.effectLv != null) {
_global.effectLv = so.data.effectLv;
} else {
_global.effectLv = 2;
}
_global.enemyLv = 2;
if (so.data.quality != null) {
_quality = so.data.quality;
}
if (so.data.keyModeChangeWepon != null) {
_global.keyModeChangeWepon = _root.so.data.keyModeChangeWepon;
} else {
_global.keyModeChangeWepon = 0;
}
if (so.data.keyModeCon != null) {
_global.keyModeCon = _root.so.data.keyModeCon;
} else {
_global.keyModeCon = 0;
}
if (so.data.keyCas != null) {
_global.keyCas = new Array();
i = 0;
while (i < so.data.keyCas.length) {
_global.keyCas[i] = so.data.keyCas[i];
i++;
}
} else {
_global.keyCas = new Array();
_global.keyCas = _global.keyDef;
}
theSound = new Sound(this);
if (so.data.volume != null) {
theSound.setVolume(so.data.volume);
} else {
theSound.setVolume(70);
}
charData1 = new Array();
charData1 = ["laphis_prototype", "Lapis Prototype", "\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", "Lapis", "\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 = ["red_beryl", "Red Beryl", "", 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", "Zero Type 32C", "The old-model frame which was improved.\nThis frame is wonderful Mobility and infight ability, but the defense is very poor.\nOperation is difficult.", 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];
if (isNaN(_root.so.data.yourBestTime)) {
_root.so.data.yourBestTime = 99999 /* 0x01869F */;
}
var i2 = 0;
while (i2 < 4) {
if (isNaN(_root.so.data[("pac" + i2) + "bestTime"])) {
_root.so.data[("pac" + i2) + "bestTime"] = 99999 /* 0x01869F */;
}
i2++;
}
this.AllRemove();
this.stop();
Frame 9
this.gotoAndStop(_currentframe - 2);
Frame 10
this.gotoAndStop(_currentframe - 3);
Frame 14
this.gotoAndStop(_currentframe + 3);
Instance of Symbol 857 MovieClip in Frame 14
//component parameters
onClipEvent (construct) {
moveX = 1;
maxX = 490;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
onClipEvent (load) {
moveX = "null";
maxX = "null";
minX = "null";
moveY = 1;
maxY = 490;
minY = -10;
}
Instance of Symbol 857 MovieClip in Frame 14
//component parameters
onClipEvent (construct) {
moveX = 0.5;
maxX = 490;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
onClipEvent (load) {
moveX = "null";
maxX = "null";
minX = "null";
moveY = 0.5;
maxY = 490;
minY = -10;
}
Instance of Symbol 857 MovieClip in Frame 14
//component parameters
onClipEvent (construct) {
moveX = 0.5;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
onClipEvent (load) {
moveX = 0.5;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
Instance of Symbol 857 MovieClip in Frame 14
//component parameters
onClipEvent (construct) {
moveX = 1;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
onClipEvent (load) {
moveX = 1;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
Instance of Symbol 857 MovieClip in Frame 14
//component parameters
onClipEvent (construct) {
moveX = 0.3;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
onClipEvent (load) {
moveX = 0.3;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
Instance of Symbol 857 MovieClip in Frame 14
//component parameters
onClipEvent (construct) {
moveX = 0.3;
maxX = 490;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
onClipEvent (load) {
moveX = "null";
maxX = "null";
minX = "null";
moveY = 0.3;
maxY = 490;
minY = -10;
}
Instance of Symbol 857 MovieClip in Frame 14
//component parameters
onClipEvent (construct) {
moveX = 0.5;
maxX = 490;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
onClipEvent (load) {
moveX = "null";
maxX = "null";
minX = "null";
moveY = 0.5;
maxY = 490;
minY = -10;
}
Instance of Symbol 857 MovieClip in Frame 14
//component parameters
onClipEvent (construct) {
moveX = 0.5;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
onClipEvent (load) {
moveX = 0.5;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
Frame 16
function SetMainChar() {
_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.play();
ttt = "";
ttt = ttt + (_root.so.data.yourBestTime + newline);
ttt = ttt + (_root.so.data.pac0bestTime + newline);
ttt = ttt + (_root.so.data.pac1bestTime + newline);
ttt = ttt + (_root.so.data.pac2bestTime + newline);
ttt = ttt + (_root.so.data.pac3bestTime + newline);
ttt = ttt + _root.so.data.pac4bestTime;
Frame 17
this.stop();
Frame 19
this.gotoAndStop(_currentframe - 2);
Frame 20
this.gotoAndStop(_currentframe - 3);
Frame 24
this.gotoAndStop(_currentframe + 3);
Instance of Symbol 1087 MovieClip in Frame 24
//component parameters
onClipEvent (construct) {
moveExt = 2;
}
onClipEvent (load) {
moveExt = 2;
}
Instance of Symbol 1089 MovieClip in Frame 24
//component parameters
onClipEvent (construct) {
moveExt = 2;
}
onClipEvent (load) {
moveExt = 2;
}
Instance of Symbol 1089 MovieClip in Frame 24
//component parameters
onClipEvent (construct) {
moveExt = 1;
}
onClipEvent (load) {
moveExt = 1;
}
Instance of Symbol 1087 MovieClip in Frame 24
//component parameters
onClipEvent (construct) {
moveExt = 1;
}
onClipEvent (load) {
moveExt = 1;
}
Instance of Symbol 1087 MovieClip in Frame 24
//component parameters
onClipEvent (construct) {
moveExt = 1;
}
onClipEvent (load) {
moveExt = 1;
}
Frame 26
function CheckDeep() {
if (_global.extDeep > 240) {
_global.extDeep = 221;
}
if (_global.backEffectDeep > 350) {
_global.backEffectDeep = 51;
}
if (_global.enemyShotDeep > 400) {
_global.enemyShotDeep = 301;
}
}
function EnemyDown() {
setI--;
if (setI == 0) {
time0 = getTimer() + 500;
setI--;
}
}
_global.SetMaxEnemyNo = 10;
_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 = ["Gun float", "SAM float", "Double dagger ", "ECM float"];
this.stop();
Frame 29
this.gotoAndStop(_currentframe - 2);
Frame 30
this.gotoAndStop(_currentframe - 3);
Frame 34
this.gotoAndStop(_currentframe + 3);
Instance of Symbol 1183 MovieClip in Frame 34
onClipEvent (load) {
moveX = 0.008;
moveY = 0;
moveXext = 0.4;
moveYext = 0.4;
}
Instance of Symbol 1185 MovieClip in Frame 34
onClipEvent (load) {
moveX = 0.001;
moveY = 0;
moveXext = 0.3;
moveYext = 0.3;
}
Instance of Symbol 1183 MovieClip in Frame 34
onClipEvent (load) {
moveX = 0.7;
moveY = 0.05;
moveXext = 1;
moveYext = 1;
}
Instance of Symbol 1183 MovieClip in Frame 34
onClipEvent (load) {
moveX = 0.3;
moveY = 0;
moveXext = 1;
moveYext = 1;
}
Instance of Symbol 1185 MovieClip in Frame 34
onClipEvent (load) {
moveX = 2.6;
moveY = 0.1;
moveXext = 1;
moveYext = 1;
}
Instance of Symbol 1194 MovieClip in Frame 34
onClipEvent (enterFrame) {
this._rotation = _root.mainChar._rotation;
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Frame 36
function AutoSetEnemy() {
var _local7 = setEnemyAry.length;
var _local6 = Math.round(Math.random() * (_local7 - 1));
en0 = setEnemyAry[_local6][0];
en1 = setEnemyAry[_local6][1];
en2 = setEnemyAry[_local6][2];
en3 = setEnemyAry[_local6][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 _local5 = (Math.random() * 300) + 600;
if (Math.random() > 0.5) {
_local5 = _local5 * -1;
}
var _local4 = (Math.random() * 300) + 600;
if (Math.random() > 0.5) {
_local4 = _local4 * -1;
}
_root[setI]._x = _local5;
_root[setI]._y = _local4;
i2++;
}
i++;
}
_global.SetMaxEnemyNo = setI + 1;
_root.displayMes.AddMes("AWACS", "Enemy contacts", 0);
mes = "";
i = 0;
while (i < enemyTypeNo) {
tempName = "en" + i;
if (this[tempName] > 0) {
mes = mes + (((enemyNameList[i] + "<FONT COLOR='#00FF00'>") + this[tempName]) + "</FONT> ");
}
i++;
}
_root.displayMes.AddMes("AWACS", mes, null);
}
function CheckDeep() {
if (_global.extDeep > 240) {
_global.extDeep = 221;
}
if (_global.backEffectDeep > 350) {
_global.backEffectDeep = 51;
}
if (_global.enemyShotDeep > 400) {
_global.enemyShotDeep = 301;
}
}
function EnemyDown() {
setI--;
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 = ["Gun float", "SAM float", "Double dagger ", "ECM float"];
this.attachMovie("displayMes", "displayMes", 590);
this.displayMes._x = 265;
this.displayMes._y = 410;
this.onEnterFrame = function () {
this.CheckDeep();
if (getTimer() > time0) {
time0 = getTimer() + 30000;
this.AutoSetEnemy();
}
};
this.stop();
Frame 39
this.gotoAndStop(_currentframe - 2);
Frame 40
this.gotoAndStop(_currentframe - 3);
Frame 44
this.gotoAndStop(_currentframe + 3);
Instance of Symbol 1203 MovieClip in Frame 44
onClipEvent (load) {
targetName = "2";
}
Instance of Symbol 1203 MovieClip in Frame 44
onClipEvent (load) {
targetName = "3";
}
Instance of Symbol 1203 MovieClip in Frame 44
onClipEvent (load) {
targetName = "1";
}
Instance of Symbol 1205 MovieClip in Frame 44
onClipEvent (load) {
targetName = null;
}
Frame 46
function AutoSetEnemy() {
var _local5 = setEnemyAry.length;
var _local4 = Math.round(Math.random() * (_local5 - 1));
en0 = setEnemyAry[_local4][0];
en1 = setEnemyAry[_local4][1];
en2 = setEnemyAry[_local4][2];
en3 = setEnemyAry[_local4][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);
_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", "Enemy contacts", 0);
_root.displayMes.AddMes("AWACS", "<font color=\"#FF5555\">-ALART- </font>Enemy is Pacifics", 1);
mes = "";
i = 0;
while (i < enemyTypeNo) {
tempName = "en" + i;
if (this[tempName] > 0) {
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) {
_global.extDeep = 221;
}
if (_global.backEffectDeep > 350) {
_global.backEffectDeep = 51;
}
if (_global.enemyShotDeep > 400) {
_global.enemyShotDeep = 301;
}
}
function EnemyDown() {
setI--;
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 = ["Laphis-Prototype", "Laphis", "Red Beryl", "Zero Type 32C"];
this.attachMovie("displayMes", "displayMes", 590);
this.displayMes._x = 265;
this.displayMes._y = 410;
this.onEnterFrame = function () {
this.CheckDeep();
if (getTimer() > time0) {
time0 = getTimer() + 180000;
this.AutoSetEnemy();
}
};
this.stop();
Frame 49
this.gotoAndStop(_currentframe - 2);
Frame 50
this.gotoAndStop(_currentframe - 3);
Frame 54
this.gotoAndStop(_currentframe + 3);
Instance of Symbol 1199 MovieClip in Frame 54
onClipEvent (load) {
if (_global.keyMode != 1) {
_visible = 0;
}
}
Frame 56
function AutoSetEnemy() {
if (nowNo > 19) {
_root.timeDis.TimeCon(0);
_root.displayMes.AddMes("AWACS", "<FONT COLOR='#FFAA00'>Enemy annihilate. Mission complete.</FONT>", 0);
time0 = getTimer() + 1E15;
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 _local5 = (Math.random() * 300) + 600;
if (Math.random() > 0.5) {
_local5 = _local5 * -1;
}
var _local4 = (Math.random() * 300) + 600;
if (Math.random() > 0.5) {
_local4 = _local4 * -1;
}
_root[setI]._x = _local5;
_root[setI]._y = _local4;
i2++;
}
i++;
}
_global.SetMaxEnemyNo = setI + 1;
_root.displayMes.AddMes("AWACS", ("The <FONT COLOR='#FFAA00'>" + (nowNo + 1)) + "</FONT>UNITS", 0);
mes = "";
i = 0;
while (i < enemyTypeNo) {
tempName = "en" + i;
if (this[tempName] > 0) {
mes = mes + (((enemyNameList[i] + "<FONT COLOR='#00FF00'>") + this[tempName]) + "</FONT> ");
}
i++;
}
_root.displayMes.AddMes("AWACS", mes, null);
nowNo++;
}
function CheckDeep() {
if (_global.extDeep > 240) {
_global.extDeep = 221;
}
if (_global.backEffectDeep > 350) {
_global.backEffectDeep = 51;
}
if (_global.enemyShotDeep > 400) {
_global.enemyShotDeep = 301;
}
}
function EnemyDown() {
setI--;
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() + 1E15;
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 = ["Gun float", "SAM float", "Double dagger", "ECM float"];
this.attachMovie("displayMes", "displayMes", 590);
this.displayMes._x = 265;
this.displayMes._y = 410;
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 59
this.gotoAndStop(_currentframe - 2);
Frame 60
this.gotoAndStop(_currentframe - 3);
Frame 64
this.gotoAndStop(_currentframe + 3);
Instance of Symbol 857 MovieClip in Frame 64
//component parameters
onClipEvent (construct) {
moveX = 1;
maxX = 490;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
onClipEvent (load) {
moveX = "null";
maxX = "null";
minX = "null";
moveY = 1;
maxY = 490;
minY = -10;
}
Instance of Symbol 857 MovieClip in Frame 64
//component parameters
onClipEvent (construct) {
moveX = 0.5;
maxX = 490;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
onClipEvent (load) {
moveX = "null";
maxX = "null";
minX = "null";
moveY = 0.5;
maxY = 490;
minY = -10;
}
Instance of Symbol 857 MovieClip in Frame 64
//component parameters
onClipEvent (construct) {
moveX = 0.5;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
onClipEvent (load) {
moveX = 0.5;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
Instance of Symbol 857 MovieClip in Frame 64
//component parameters
onClipEvent (construct) {
moveX = 1;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
onClipEvent (load) {
moveX = 1;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
Instance of Symbol 857 MovieClip in Frame 64
//component parameters
onClipEvent (construct) {
moveX = 0.3;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
onClipEvent (load) {
moveX = 0.3;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
Instance of Symbol 857 MovieClip in Frame 64
//component parameters
onClipEvent (construct) {
moveX = 0.3;
maxX = 490;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
onClipEvent (load) {
moveX = "null";
maxX = "null";
minX = "null";
moveY = 0.3;
maxY = 490;
minY = -10;
}
Instance of Symbol 857 MovieClip in Frame 64
//component parameters
onClipEvent (construct) {
moveX = 0.5;
maxX = 490;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
onClipEvent (load) {
moveX = "null";
maxX = "null";
minX = "null";
moveY = 0.5;
maxY = 490;
minY = -10;
}
Instance of Symbol 857 MovieClip in Frame 64
//component parameters
onClipEvent (construct) {
moveX = 0.5;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
onClipEvent (load) {
moveX = 0.5;
maxX = 650;
minX = -10;
moveY = "null";
maxY = "null";
minY = "null";
}
Frame 66
_root.AllRemove();
this.stop();
Frame 69
this.gotoAndStop(_currentframe - 2);
Frame 70
this.gotoAndStop(_currentframe - 3);
Frame 74
this.gotoAndStop(_currentframe + 3);
Frame 75
this.gotoAndStop(_currentframe + 3);
Frame 81
this.gotoAndStop(_currentframe - 2);
Frame 82
this.gotoAndStop(_currentframe - 3);
Symbol 34 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 34 MovieClip "shotArea" in Symbol 38 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dmgType = 3;
efType = 0;
}
//component parameters
onClipEvent (initialize) {
dmgType = 3;
efType = 0;
}
Symbol 40 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(87)) {
if (bCnt < 1) {
bCnt = 1;
this.ChangeMode();
}
} else {
bCnt = 0;
}
mode = 1;
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 / 0.01745329);
}
if (mode) {
i++;
if (i >= 20) {
i = 0;
if (attackMode == 3) {
this._rotation = (Math.random() * 360) - 180;
}
this.play();
}
}
};
Symbol 40 MovieClip [WeponSystem1_sb] Frame 7
this.stop();
Symbol 40 MovieClip [WeponSystem1_sb] Frame 11
this.gotoAndStop(7);
Symbol 40 MovieClip [WeponSystem1_sb] Frame 22
this.removeMovieClip();
this.stop();
Symbol 43 MovieClip Frame 1
this.stop();
Symbol 44 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(87)) {
if (bCnt < 1) {
bCnt = 1;
this.ChangeMode();
}
} else {
bCnt = 0;
}
mode = 1;
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 / 0.01745329);
}
if (mode) {
i++;
if (i >= 20) {
i = 0;
if (attackMode == 3) {
this._rotation = (Math.random() * 360) - 180;
}
this.play();
}
}
};
Symbol 44 MovieClip [WeponSystem1_or] Frame 7
this.stop();
Symbol 44 MovieClip [WeponSystem1_or] Frame 11
this.gotoAndStop(7);
Symbol 44 MovieClip [WeponSystem1_or] Frame 22
this.removeMovieClip();
this.stop();
Symbol 57 MovieClip Frame 1
this._visible = false;
Symbol 59 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() {
_root.radar.RemoveCoItem(_name);
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.radar.getCo(_name, this._x, this._y, 1);
};
this.onUnload = function () {
_root.radar.RemoveCoItem(_name);
};
Symbol 59 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 / 0.01745329;
_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 57 MovieClip "hitArea" in Symbol 59 MovieClip [tutorial_shotItem] Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainChar.char.hitArea_b1)) {
_parent.HitExtra();
}
}
Symbol 59 MovieClip [tutorial_shotItem] Frame 12
this.gotoAndPlay(_currentframe - 2);
Symbol 59 MovieClip [tutorial_shotItem] Frame 60
pwait = 1000;
im = 21;
_root.attachMovie("missileTypeA", im, im + 250);
_root[im]._x = 640 + pwait;
_root[im]._y = 0;
im++;
_root.attachMovie("missileTypeA", im, im + 250);
_root[im]._x = -pwait;
_root[im]._y = 0;
im++;
_root.attachMovie("missileTypeA", im, im + 250);
_root[im]._x = 0;
_root[im]._y = 640 + pwait;
im++;
_root.attachMovie("missileTypeA", im, im + 250);
_root[im]._x = 0;
_root[im]._y = -pwait;
Symbol 59 MovieClip [tutorial_shotItem] Frame 164
this._x = Math.random() * 800;
this._y = Math.random() * 600;
this.gotoAndPlay("first");
Symbol 67 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;
_root.radar.getCo(_name, this._x, this._y, 1);
};
this.onUnload = function () {
_root.radar.RemoveCoItem(_name);
};
this.stop();
Instance of Symbol 57 MovieClip in Symbol 67 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 61 MovieClip in Symbol 67 MovieClip [tutorial_moveGoal] Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 5;
}
Instance of Symbol 61 MovieClip in Symbol 67 MovieClip [tutorial_moveGoal] Frame 10
onClipEvent (enterFrame) {
this._rotation = this._rotation + 5;
}
Symbol 67 MovieClip [tutorial_moveGoal] Frame 25
_root.radar.RemoveCoItem(_name);
_root.menu.inMenu.SetMoveTutorial();
stop();
Symbol 70 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() {
_root.radar.RemoveCoItem(_name);
this.gotoAndPlay("remove");
}
mode = 0;
extraX = (Math.random() * 600) - 300;
extraY = (Math.random() * 500) - 250;
follow = (Math.random() * 10) + 6;
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, 1);
};
this.onUnload = function () {
_root.radar.RemoveCoItem(_name);
};
Symbol 70 MovieClip [tutorial_enemy1] Frame 10
this.stop();
Instance of Symbol 57 MovieClip "hitArea" in Symbol 70 MovieClip [tutorial_enemy1] Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainChar.char.hitArea_b1)) {
_parent.HitExtra();
}
}
Symbol 70 MovieClip [tutorial_enemy1] Frame 19
_root.radar.RemoveCoItem(_name);
Symbol 70 MovieClip [tutorial_enemy1] Frame 28
_root.lerder0.lerder1.RemoveCoItem(_name);
_root.menu.inMenu.ResetEnemy();
this.removeMovieClip();
Symbol 70 MovieClip [tutorial_enemy1] Frame 36
_root.lerder0.lerder1.RemoveCoItem(_name);
_root.menu.inMenu.ResetEnemy();
this.removeMovieClip();
Symbol 86 MovieClip [missileTypeA] Frame 1
function hit(dmgType, efType) {
if (mode) {
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 == 0) {
_root.mainHp.AddScore(1000, "mis");
_root.mainChar.damage(dmgPoint, 0);
} else if (param == 2) {
_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 _local6 = _root.mainChar._x - this._x;
var _local7 = _root.mainChar._y - this._y;
var _local3 = Math.atan2(_local7, _local6);
var _local5 = addSpeed * Math.cos(_local3);
var _local4 = addSpeed * Math.sin(_local3);
this._rotation = _local3 / 0.01745329;
this._x = this._x + (_local5 - _root.mainChar.XnowSpeed);
this._y = this._y + (_local4 - _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 86 MovieClip [missileTypeA] Frame 17
this.removeMovieClip();
Symbol 88 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 96 MovieClip Frame 1
function Hit(param) {
if (param < 1) {
_root.mainChar.damage(dmgPoint, dmgType);
this.gotoAndPlay("hit");
} else if (param < 2) {
_root.mainHp.AddScore(10, "gos");
this.gotoAndPlay("guard");
} else {
_root.mainHp.AddScore(100, "sos");
this.gotoAndPlay("guard");
}
}
var total = 0;
var speed = 50;
var dmgPoint = 70;
Symbol 96 MovieClip Frame 2
this._x = this._x + speed;
total = total + speed;
if (total >= 1500) {
_parent.removeMovieClip();
}
Symbol 96 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 1);
Symbol 96 MovieClip Frame 13
_parent.removeMovieClip();
Symbol 96 MovieClip Frame 14
EliSound = new Sound(this);
EliSound.attachSound("noize3");
EliSound.start(0, 1);
Symbol 96 MovieClip Frame 23
_parent.removeMovieClip();
Symbol 97 MovieClip [enemy_shot1EF] Frame 1
this.onEnterFrame = function () {
this._x = this._x - _root.mainChar.XnowSpeed;
this._y = this._y - _root.mainChar.YnowSpeed;
};
Symbol 98 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 _local5 = "smokeLine" + _global.backEffectDeep;
_parent.attachMovie("smokeLine", _local5, _global.backEffectDeep);
_parent[_local5]._xscale = this._x - oldX;
_parent[_local5]._yscale = this._y - oldY;
_parent[_local5]._x = oldX;
_parent[_local5]._y = oldY;
oldX = this._x;
oldY = this._y;
}
}
setWait = 0;
oldX = this._x;
oldY = this._y;
ix = 0;
this.onEnterFrame = function () {
this.DrowMissileSmoke();
};
Symbol 111 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 121 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 130 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 131 MovieClip [DownArrow] Frame 1
stop();
Symbol 131 MovieClip [DownArrow] Frame 2
stop();
Symbol 131 MovieClip [DownArrow] Frame 3
stop();
Symbol 135 MovieClip [ef_shotHitGard] Frame 4
this.removeMovieClip();
Symbol 138 MovieClip [ef_btbHit2] Frame 1
this._xscale = (this._yscale = Math.random() * 150);
Symbol 138 MovieClip [ef_btbHit2] Frame 3
this.removeMovieClip();
Symbol 142 MovieClip [ef_btbHit] Frame 1
this._xscale = (Math.random() * 800) - 400;
this._yscale = (Math.random() * 800) - 400;
Symbol 142 MovieClip [ef_btbHit] Frame 4
this.removeMovieClip();
Symbol 147 MovieClip [ECCM] Frame 8
this.removeMovieClip();
Symbol 150 MovieClip [shotHit] Frame 1
this._xscale = (Math.random() * 300) - 150;
this._yscale = (Math.random() * 300) - 150;
Symbol 150 MovieClip [shotHit] Frame 2
this.removeMovieClip();
Symbol 151 MovieClip [efHitShot] Frame 1
this._xscale = (Math.random() * 300) - 150;
this._yscale = (Math.random() * 300) - 150;
Symbol 151 MovieClip [efHitShot] Frame 2
this.removeMovieClip();
Symbol 152 MovieClip [efHitShot2] Frame 1
this._xscale = (Math.random() * 1200) - 600;
this._yscale = (Math.random() * 1200) - 600;
this._rotation = Math.random() * 360;
Symbol 152 MovieClip [efHitShot2] Frame 2
this.removeMovieClip();
Symbol 156 MovieClip [efHitBraid] Frame 1
this._xscale = (Math.random() * 300) - 150;
this._rotation = Math.random() * 360;
Symbol 156 MovieClip [efHitBraid] Frame 3
this.removeMovieClip();
Symbol 157 MovieClip [efHitBraid2] Frame 1
this._xscale = (Math.random() * 1200) - 600;
this._yscale = (Math.random() * 300) + 100;
this._rotation = Math.random() * 360;
Symbol 157 MovieClip [efHitBraid2] Frame 3
this.removeMovieClip();
Symbol 159 MovieClip Frame 1
total = 0;
speed = 90;
Symbol 159 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 159 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 1);
Symbol 164 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 / 0.01745329;
this._rotation = kakudo;
};
Symbol 169 Button
on (release) {
_global.firstStage = "tutorial";
_root.SetMainChar();
this.removeMovieClip();
}
Symbol 172 Button
on (release) {
_global.firstStage = "Test";
_root.SetMainChar();
this.removeMovieClip();
}
Symbol 175 Button
on (release) {
_parent.play();
}
Symbol 177 MovieClip [selectWindow] Frame 8
this.stop();
Symbol 177 MovieClip [selectWindow] Frame 14
this.removeMovieClip();
Symbol 178 MovieClip [removeItem] Frame 2
this.removeMovieClip();
Symbol 180 MovieClip [hitEF1] Frame 8
this.removeMovieClip();
Symbol 184 MovieClip [whiteMask] Frame 50
this.removeMovieClip();
Symbol 187 MovieClip [missileLine] Frame 19
this.removeMovieClip();
Symbol 188 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 _local5 = "missile" + _global.backEffectDeep;
_parent.attachMovie("missileLine", _local5, _global.backEffectDeep);
_parent[_local5]._xscale = this._x - oldX;
_parent[_local5]._yscale = this._y - oldY;
_parent[_local5]._x = oldX;
_parent[_local5]._y = oldY;
oldX = this._x;
oldY = this._y;
}
}
setWait = 1;
oldX = this._x;
oldY = this._y;
ix = 0;
this.onEnterFrame = function () {
this.DrowMissileSmoke();
};
Symbol 191 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 191 MovieClip [effect_baidSarcle] Frame 19
this.onEnterFrame = null;
Symbol 191 MovieClip [effect_baidSarcle] Frame 21
this.removeMovieClip();
Symbol 196 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 196 MovieClip [overShotEF] Frame 6
cnt = cnt - 40;
if (cnt <= 0) {
this._name = "end";
this.gotoAndPlay("end");
}
Symbol 196 MovieClip [overShotEF] Frame 8
this.gotoAndPlay(_currentframe - 2);
Symbol 196 MovieClip [overShotEF] Frame 15
this.onEnterFrame = null;
Symbol 196 MovieClip [overShotEF] Frame 23
_root.mainChar.char.overShotEnd();
this.removeMovieClip();
Symbol 199 MovieClip [BGEF1] Frame 40
this.removeMovieClip();
Symbol 200 MovieClip [BGEF2] Frame 40
this.removeMovieClip();
Symbol 211 MovieClip [BGEF3] Frame 10
this.removeMovieClip();
Symbol 214 MovieClip [BGEF4] Frame 100
this.removeMovieClip();
Symbol 218 MovieClip [shot1EF2] Frame 1
this.onEnterFrame = function () {
this._x = this._x + moveX;
this._y = this._y + moveY;
};
Symbol 221 MovieClip Frame 1
var total = 0;
var speed = 80;
var i;
Symbol 221 MovieClip Frame 2
this._x = this._x + speed;
total = total + speed;
if (total >= 1000) {
_parent.removeMovieClip();
}
Symbol 221 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 1);
Symbol 221 MovieClip Frame 11
_parent.removeMovieClip();
Symbol 224 MovieClip Frame 1
total = 0;
speed = 100;
Symbol 224 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 1);
Symbol 227 MovieClip Frame 1
total = 0;
speed = 80;
Symbol 227 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 1);
Symbol 229 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 221 MovieClip in Symbol 229 MovieClip [c1sb_shot1EF_enemy] Frame 1
onClipEvent (enterFrame) {
speed = 120;
}
Symbol 229 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 229 MovieClip [c1sb_shot1EF_enemy] Frame 11
this.removeMovieClip();
Symbol 231 MovieClip Frame 1
speed = 15;
i = 0;
Symbol 231 MovieClip Frame 2
this._x = this._x + ((speed = speed - 1));
this._alpha = this._alpha - 6;
i++;
if (i >= 20) {
_parent.removeMovieClip();
}
Symbol 231 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 1);
Symbol 233 MovieClip [boostEF] Frame 1
this.onEnterFrame = function () {
this._x = this._x - _root.mainChar.XnowSpeed;
this._y = this._y - _root.mainChar.YnowSpeed;
};
Symbol 234 MovieClip [boostEF2] Frame 1
cnt = 6;
Symbol 234 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) {
this.removeMovieClip();
}
};
Symbol 243 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 250 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 255 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 256 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 264 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 272 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 280 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 281 MovieClip [UpArrow] Frame 1
stop();
Symbol 281 MovieClip [UpArrow] Frame 2
stop();
Symbol 281 MovieClip [UpArrow] Frame 3
stop();
Symbol 282 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 _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
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 _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
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, _local4);
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 _local17 = parseInt(value);
if (!isNaN(_local17)) {
value = _local17;
}
var _local16 = ((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 || (!_local16)) {
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 _local18 = propName.subString(4, propName.length);
this.textStyle[_local18] = value;
this.invalidate("setSize");
} else {
for (var _local15 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local15]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
continue;
}
_local4.setRGB(value);
}
}
this.styleTable[propName].useGlobal = _local16;
}
};
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 _local4 = new Color(skinMCRef);
_local4.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 _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local4 = 0;
while (_local4 < arguments.length) {
var _local3 = arguments[_local4];
this.listeners[arguments[_local4]] = _local3;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local3.updateStyleProperty(this, _local5.toString());
}
}
_local4++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
continue;
}
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 284 MovieClip [smokeLineTutorial] Frame 1
Symbol 291 MovieClip [smokeLine] Frame 30
this.removeMovieClip();
Symbol 311 MovieClip [lineLeaserLineLow] Frame 9
this.removeMovieClip();
Symbol 314 MovieClip [lineLeaserLine] Frame 1
Symbol 314 MovieClip [lineLeaserLine] Frame 9
this.removeMovieClip();
Symbol 316 MovieClip Frame 1
function DrowMissileSmoke() {
i++;
var _local3 = "missile" + i;
_parent.attachMovie(efName, _local3, i);
_parent[_local3]._xscale = this._x - oldX;
_parent[_local3]._yscale = this._y - oldY;
_parent[_local3]._x = oldX;
_parent[_local3]._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;
liveFlg = true;
if (_global.effectLv > 0) {
efName = "lineLeaserLine";
} else {
efName = "lineLeaserLineLow";
}
this.onEnterFrame = function () {
i3++;
if (i3 < 20) {
this.DrowMissileSmoke();
if (i3 == 8) {
_rotation = ((Math.random() * 360) - 180);
}
} else if (i3 < 30) {
liveFlg = false;
} else {
_parent.removeMovieClip();
}
if (liveFlg) {
ext = ext * 1.15;
XnowSpeed = XnowSpeed + ((addSpeed * Math.cos(_rotation)) * ext);
YnowSpeed = YnowSpeed + ((addSpeed * Math.sin(_rotation)) * 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 317 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 331 MovieClip Frame 1
this.stop();
Symbol 331 MovieClip Frame 10
_parent.gotoAndPlay("result");
Symbol 337 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 338 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 _local2 = 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;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, 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 _local3 = this.enable;
if (enabledFlag && (!_local3)) {
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) && (_local3)) {
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 _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
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 _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.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 _local3 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxhscroll));
} else {
var _local3 = this.textField.scroll;
var _local2 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local2, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local3, 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 349 Button
on (release) {
_root.SoundStop();
_root.gotoAndStop("menu");
this.removeMovieClip();
}
Instance of Symbol 331 MovieClip in Symbol 357 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 357 MovieClip [gameOverDisplay] Frame 42
mes = ((("MISSION\uFF1A" + missionName) + "\nFRAME name\uFF1A") + charName) + newline;
mes = mes + (("Time\uFF1A" + totalTime) + newline);
mes = mes + (("Damage count " + dmgCnt) + newline);
mes = mes + "Battle Details--------------\n";
totalDown = (((((((fg + fs) + fe) + s1) + m1) + p1) + p2) + p3) + p4;
if (totalDown < 1) {
mes = mes + "none";
}
if (p1 > 0) {
mes = mes + (("Pacifics Laphis-prototype x" + p1) + newline);
}
if (p2 > 0) {
mes = mes + (("Pacifics Laphis x" + p2) + newline);
}
if (p3 > 0) {
mes = mes + (("Pacifics RedBeryl x" + p3) + newline);
}
if (p4 > 0) {
mes = mes + (("Pacifics Zero 32C x" + p4) + newline);
}
if (fg > 0) {
mes = mes + (("Gun float x" + fg) + newline);
}
if (fs > 0) {
mes = mes + (("SAM float x" + fs) + newline);
}
if (fe > 0) {
mes = mes + (("ECM float x" + fe) + newline);
}
if (s1 > 0) {
mes = mes + (("Double Dagger x" + s1) + newline);
}
if (m1 > 0) {
mes = mes + (("Missile x" + m1) + newline);
}
mes = mes + ("\nTotal Shooting down " + totalDown);
mes = mes + ("\nTotal point " + score);
this.stop();
Instance of Symbol 338 MovieClip [FScrollBarSymbol] in Symbol 357 MovieClip [gameOverDisplay] Frame 56
//component parameters
onClipEvent (construct) {
_targetInstanceName = "InstanceName_3";
horizontal = false;
}
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "InstanceName_3";
horizontal = false;
}
Instance of Symbol 338 MovieClip [FScrollBarSymbol] in Symbol 357 MovieClip [gameOverDisplay] Frame 56
//component parameters
onClipEvent (construct) {
_targetInstanceName = "InstanceName_3";
horizontal = false;
}
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "InstanceName_3";
horizontal = false;
}
Instance of Symbol 338 MovieClip [FScrollBarSymbol] in Symbol 357 MovieClip [gameOverDisplay] Frame 56
//component parameters
onClipEvent (construct) {
_targetInstanceName = "InstanceName_4";
horizontal = false;
}
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "InstanceName_4";
horizontal = false;
}
Symbol 357 MovieClip [gameOverDisplay] Frame 60
this.stop();
Symbol 360 MovieClip Frame 1
if (_global.effectLv > 0) {
this.gotoAndStop(2);
} else {
this.stop();
}
Symbol 365 Button
on (release) {
_root.mainHp.EndGame();
}
Symbol 367 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 367 MovieClip [displayMes] Frame 5
this.stop();
Symbol 367 MovieClip [displayMes] Frame 64
this.gotoAndStop(5);
Symbol 372 MovieClip [enemyHpBar2] Frame 1
this.onEnterFrame = function () {
this._x = _root[traceName]._x;
this._y = _root[traceName]._y - 50;
if (_root[traceName] == undefined) {
this.removeMovieClip();
}
};
Symbol 389 MovieClip Frame 1
rand = Math.floor(Math.random() * 3) + 5;
this.gotoAndPlay(rand);
Symbol 389 MovieClip Frame 8
this.gotoAndPlay(5);
Symbol 390 MovieClip Frame 1
this.stop();
Symbol 390 MovieClip Frame 10
this.stop();
Symbol 390 MovieClip Frame 42
this.attachMovie("enemy_beam1EF", "beam", 1);
this.beam._x = -330;
this.beam._yscale = 80;
this.beam._xscale = 2000;
Symbol 390 MovieClip Frame 43
this.beam._yscale = 40;
Symbol 390 MovieClip Frame 44
this.beam.removeMovieClip();
Symbol 390 MovieClip Frame 57
this.gotoAndStop("wait");
Symbol 390 MovieClip Frame 75
this.stop();
Symbol 397 MovieClip Frame 10
_parent.gotoAndStop("wToN");
Symbol 398 MovieClip Frame 29
_parent.gotoAndStop("normal");
Symbol 400 MovieClip Frame 1
function shot() {
_global.enemyShotDeep++;
var _local5 = "enemy_shot" + _global.enemyShotDeep;
var _local4 = {x:0, y:0};
this.localToGlobal(_local4);
var _local8 = _root.mainChar._x - _local4.x;
var _local9 = _root.mainChar._y - _local4.y;
var _local6 = Math.atan2(_local9, _local8);
var _local7 = _local6 / 0.01745329;
_root.attachMovie("enemy_shot1EF", _local5, _global.enemyShotDeep);
_root[_local5]._x = _local4.x;
_root[_local5]._y = _local4.y;
_root[_local5]._rotation = _local7;
}
this._visible = false;
Symbol 400 MovieClip Frame 5
this.shot();
Symbol 400 MovieClip Frame 10
this.shot();
Symbol 400 MovieClip Frame 15
this.shot();
Symbol 400 MovieClip Frame 20
this.shot();
Symbol 400 MovieClip Frame 25
this.shot();
Symbol 400 MovieClip Frame 60
this.gotoAndPlay(5);
Symbol 411 MovieClip Frame 51
this._visible = false;
_root.EnemyDown();
_root.attachMovie("whiteMask", "whiteMask", 5000);
_parent.removeMovieClip();
Symbol 411 MovieClip Frame 52
_parent.removeMovieClip();
Symbol 411 MovieClip Frame 53
_parent.removeMovieClip();
Symbol 411 MovieClip Frame 60
this.stop();
Symbol 412 MovieClip [ship1] Frame 1
function hit(dmgType, efType) {
if (liveFlg) {
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");
liveFlg = 0;
_name = null;
this.gotoAndPlay("bomb");
}
}
}
liveFlg = 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"];
moveX = 0;
moveY = 0;
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);
};
this.stop();
Symbol 412 MovieClip [ship1] Frame 10
this.stop();
Symbol 412 MovieClip [ship1] Frame 20
this.stop();
Symbol 412 MovieClip [ship1] Frame 30
this.stop();
Symbol 418 MovieClip [floatSAM] Frame 1
function hit(dmgType, efType) {
if (liveFlg) {
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");
liveFlg = 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 liveFlg = 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) && (liveFlg)) {
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 418 MovieClip [floatSAM] Frame 19
this.removeMovieClip();
Symbol 418 MovieClip [floatSAM] Frame 20
this.stop();
Symbol 420 MovieClip [floatGun] Frame 1
function hit(dmgType, efType) {
if (mode) {
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;
_name = null;
this.gotoAndPlay("bomb");
}
}
}
function shot() {
_global.enemyShotDeep++;
var _local4 = "enemy_shot" + _global.enemyShotDeep;
var _local7 = _root.mainChar._x - _x;
var _local8 = _root.mainChar._y - _y;
var _local5 = Math.atan2(_local8, _local7);
var _local6 = _local5 / 0.01745329;
_root.attachMovie("enemy_shot1EF", _local4, _global.enemyShotDeep);
_root[_local4]._x = this._x;
_root[_local4]._y = this._y;
_root[_local4]._rotation = _local6;
}
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 420 MovieClip [floatGun] Frame 19
this.removeMovieClip();
Symbol 420 MovieClip [floatGun] Frame 20
this.stop();
Symbol 422 MovieClip [floatECM] Frame 1
function hit(dmgType, efType) {
if (mode) {
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 422 MovieClip [floatECM] Frame 19
this.removeMovieClip();
Symbol 422 MovieClip [floatECM] Frame 20
this.stop();
Symbol 458 MovieClip Frame 1
Symbol 459 MovieClip Frame 1
_parent.style = "p_standing";
Symbol 460 MovieClip Frame 1
_parent.style = "p_normal";
Symbol 461 MovieClip Frame 1
_parent.style = "p_normal";
Symbol 461 MovieClip Frame 5
_parent.gotoAndStop("paci_normal");
Symbol 466 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 466 MovieClip in Symbol 469 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dmgType = 0;
efType = 0;
}
onClipEvent (load) {
dmgType = 0;
efType = 0;
}
Symbol 471 MovieClip Frame 1
_parent.ChangeAttackDmg(1);
Symbol 471 MovieClip Frame 5
this.gotoAndPlay(_currentframe - 2);
Symbol 473 MovieClip Frame 1
if (_parent._parent._name == "mainChar") {
i = 1;
while (i < _global.SetMaxEnemyNo) {
if (this.hitTest(_root[i].char.hitArea_b1)) {
} 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 if (this.hitTest(_root.mainChar.char.hitArea_b1)) {
_parent.hitBraid();
} else if (this.hitTest(_root.mainChar.damageArea)) {
_root.mainChar.damage(700, 1);
}
this._visible = false;
Symbol 478 MovieClip Frame 1
if (_parent._parent._name != "mainChar") {
if (this.hitTest(_root.mainChar.char.hitArea_b1)) {
_parent.hitBraid();
}
}
this._visible = false;
Symbol 484 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() {
if (!stopFlag) {
timeEnd = getTimer() + wait;
stopFlag = 1;
_root.mainChar.char.hitBraid();
this.setEffect();
this.stop();
}
}
stopFlag = 0;
wait = 200;
theSound = new Sound(this);
theSound.attachSound("set_3");
this.onEnterFrame = function () {
if (stopFlag && (getTimer() < timeEnd)) {
} else {
stopFlag = 0;
this.play();
}
};
this.gotoAndPlay(7);
Symbol 484 MovieClip Frame 9
_global.braidDmg = _root.charData4[27];
Symbol 484 MovieClip Frame 13
if (_parent._name == "mainChar") {
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("braid2");
}
} else {
this.gotoAndPlay("braid2");
}
Symbol 484 MovieClip Frame 17
_parent.gotoAndStop("paci_standing");
Symbol 484 MovieClip Frame 34
_global.braidDmg = _root.charData4[28];
Symbol 484 MovieClip Frame 36
if (_parent._name == "mainChar") {
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("braid3");
}
} else {
this.gotoAndPlay("braid3");
}
Symbol 484 MovieClip Frame 46
_parent.gotoAndStop("paci_standing");
Symbol 489 MovieClip Frame 1
_parent.style = "equipWepon";
Symbol 489 MovieClip Frame 12
_parent.ChangeAttackDmg(8);
_parent.ChangeAttackDmg(3);
Symbol 489 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 489 MovieClip Frame 23
_parent.style = "p_standing";
_parent.gotoAndPlay("paci_standing");
Symbol 492 MovieClip Frame 1
_rotation = (_rotation + 5);
Symbol 492 MovieClip Frame 2
this.gotoAndPlay(1);
Symbol 496 MovieClip Frame 1
this._visible = false;
Symbol 497 MovieClip Frame 1
this.onEnterFrame = function () {
if (!Key.isDown(_global.keyCas[3])) {
_parent.gotoAndStop("paci_standing");
}
};
Symbol 497 MovieClip Frame 5
this.stop();
Symbol 500 MovieClip Frame 5
_parent.gotoAndStop("paci_normal");
Symbol 506 MovieClip Frame 5
this.onEnterFrame = function () {
_parent._y = _parent._y + 10;
this._rotation = 0;
};
Symbol 506 MovieClip Frame 50
this.stop();
Symbol 507 MovieClip [char4] Frame 1
bodyName = "charData4";
score = 80000 /* 0x013880 */;
myType = "p4";
if (!userCon) {
this.gotoAndStop(7);
}
Symbol 507 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];
}
}
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 _local3 = mouseKakudo;
} else {
var _local3 = (_rotation * 3.141593) / 180;
}
XnowSpeed = XnowSpeed + (boostSpeed * Math.cos(_local3));
YnowSpeed = YnowSpeed + (boostSpeed * Math.sin(_local3));
} 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") && (shotMode != "shot")) {
this.gotoAndStop("paci(s->n)");
}
if (_global.keyModeCon == 2) {
var _local3 = mouseKakudo;
} else {
var _local3 = (_rotation * 3.141593) / 180;
}
var _local5 = XnowSpeed + (addSpeed * Math.cos(_local3));
var _local4 = YnowSpeed + (addSpeed * Math.sin(_local3));
var _local6 = Math.abs(_local5) + Math.abs(_local4);
if (_local6 <= maxSpeed) {
XnowSpeed = _local5;
YnowSpeed = _local4;
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 _local6 = Math.pow(Math.abs(xDis), 2);
var _local5 = Math.pow(Math.abs(yDis), 2);
var _local4 = Math.sqrt(_local6 + _local5);
if (_local4 < 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 / 0.01745329;
_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) {
i = 0;
if (searchMode == 0) {
i = 1;
while (i < _global.SetMaxEnemyNo) {
if (_root[i] != undefined) {
nowTarget = i;
break;
}
i++;
}
} else if (searchMode == 1) {
}
}
function autoTrace() {
if (_root[nowTarget] == undefined) {
this.searchEnemy(0);
}
var _local4 = _root[nowTarget]._x - _x;
var _local5 = _root[nowTarget]._y - _y;
var _local6 = Math.atan2(_local5, _local4);
var _local3 = _local6 / 0.01745329;
if ((_local3 > 90) && (_rotation < -90)) {
_rotation = (_rotation + (((-360 + _local3) - _rotation) / roSpeed));
} else if ((_local3 < -90) && (_rotation > 90)) {
_rotation = (_rotation + (((_local3 + 360) - _rotation) / roSpeed));
} else {
_rotation = (_rotation + ((_local3 - 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 _local3 = _root[nowTarget]._x - _x;
var _local4 = _root[nowTarget]._y - _y;
var _local2 = Math.atan2(_local4, _local3);
_rotation = (_local2 / 0.01745329);
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 _local2 = _root._xmouse - _x;
var _local3 = _root._ymouse - _y;
mouseKakudo = Math.atan2(_local3, _local2);
}
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(this);
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");
Symbol 507 MovieClip [char4] Frame 7
function hit(dmgType, efType) {
if (mode) {
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 _local2 = (_rotation * 3.141593) / 180;
XnowSpeed = XnowSpeed + (boostSpeed * Math.cos(_local2));
YnowSpeed = YnowSpeed + (boostSpeed * Math.sin(_local2));
} 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 _local2 = (_rotation * 3.141593) / 180;
var _local4 = XnowSpeed + (addSpeed * Math.cos(_local2));
var _local3 = YnowSpeed + (addSpeed * Math.sin(_local2));
var _local5 = Math.abs(_local4) + Math.abs(_local3);
if (_local5 <= maxSpeed) {
XnowSpeed = _local4;
YnowSpeed = _local3;
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) {
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 _local3 = _root.mainChar._x - _x;
var _local4 = _root.mainChar._y - _y;
var _local5 = Math.atan2(_local4, _local3);
nextRo = _local5 / 0.01745329;
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(_local3) + Math.abs(_local4)) < 900) {
this.SpeedDown();
shotMode = 1;
speedMode = 0;
} else {
shotMode = 0;
speedMode = 1;
}
} else if (nowTac == 2) {
if ((Math.abs(_local3) + Math.abs(_local4)) < 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 + (_local3 / 8);
this._y = this._y + (_local4 / 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(this);
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;
_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 507 MovieClip [char4] Frame 11
this.stop();
Symbol 507 MovieClip [char4] Frame 20
this.stop();
Symbol 507 MovieClip [char4] Frame 30
this.stop();
Symbol 507 MovieClip [char4] Frame 40
this.stop();
Symbol 507 MovieClip [char4] Frame 50
this.stop();
Symbol 507 MovieClip [char4] Frame 60
this.stop();
Symbol 507 MovieClip [char4] Frame 70
this.stop();
Symbol 507 MovieClip [char4] Frame 80
this.stop();
Symbol 507 MovieClip [char4] Frame 90
this.stop();
Symbol 507 MovieClip [char4] Frame 100
this.stop();
Symbol 507 MovieClip [char4] Frame 110
this.stop();
Symbol 507 MovieClip [char4] Frame 120
this.stop();
Symbol 507 MovieClip [char4] Frame 130
this.stop();
Symbol 507 MovieClip [char4] Frame 140
this.stop();
Symbol 507 MovieClip [char4] Frame 150
this.stop();
Symbol 507 MovieClip [char4] Frame 160
this.stop();
Symbol 523 MovieClip Frame 1
function OpenHeadBraid() {
this.play();
}
this.stop();
Symbol 523 MovieClip Frame 16
this.stop();
Symbol 523 MovieClip Frame 19
this.stop();
Symbol 556 MovieClip Frame 1
function InBraidOpen(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 556 MovieClip Frame 10
this.stop();
Symbol 556 MovieClip Frame 16
this.gotoAndPlay(_currentframe - 2);
Symbol 556 MovieClip Frame 20
this.gotoAndStop("open");
Instance of Symbol 556 MovieClip "braid" in Symbol 558 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 560 MovieClip "braid" in Symbol 561 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 562 MovieClip Frame 1
_parent.style = "p_normal";
Symbol 602 MovieClip Frame 7
_parent.style = "s";
Symbol 602 MovieClip Frame 15
_parent.gotoAndStop("sky_normal");
Symbol 604 MovieClip Frame 6
_parent.style = "p_normal";
Symbol 604 MovieClip Frame 14
_parent.gotoAndStop("paci_normal");
Symbol 606 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 606 MovieClip Frame 10
this.stop();
Symbol 606 MovieClip Frame 19
this.stop();
Symbol 608 MovieClip Frame 1
_parent.style = "p_standing";
Symbol 609 MovieClip Frame 1
_parent.style = "p_normal";
Symbol 609 MovieClip Frame 7
_parent.gotoAndStop("paci_normal");
Symbol 610 MovieClip Frame 1
_parent.ChangeAttackDmg(1);
Symbol 610 MovieClip Frame 5
this.gotoAndPlay(_currentframe - 2);
Symbol 612 MovieClip Frame 1
i = 0;
Symbol 612 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);
_root[shotName]._rotation = _parent._rotation;
_root[shotName]._x = thePoint.x;
_root[shotName]._y = thePoint.y - 14;
Symbol 612 MovieClip Frame 5
this.gotoAndPlay(_currentframe - 2);
Symbol 625 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() {
if (!stopFlag) {
timeEnd = getTimer() + wait;
stopFlag = 1;
_root.mainChar.char.hitBraid();
this.setEffect();
this.stop();
}
}
stopFlag = 0;
wait = 200;
theSound = new Sound(this);
theSound.attachSound("set_3");
this.onEnterFrame = function () {
if (stopFlag && (getTimer() < timeEnd)) {
} else {
stopFlag = 0;
this.play();
}
};
this.gotoAndPlay(8);
Symbol 625 MovieClip Frame 10
_parent.ChangeAttackDmg(3);
Symbol 625 MovieClip Frame 15
if (_parent._name == "mainChar") {
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("braid2");
}
} else {
this.gotoAndPlay("braid2");
}
Symbol 625 MovieClip Frame 17
this.gotoAndPlay(18);
Symbol 625 MovieClip Frame 23
_parent.gotoAndStop("paci_standing");
Symbol 625 MovieClip Frame 42
_parent.ChangeAttackDmg(4);
Symbol 625 MovieClip Frame 48
if (_parent._name == "mainChar") {
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("braid3");
}
} else {
this.gotoAndPlay("braid3");
}
Symbol 625 MovieClip Frame 49
this.gotoAndPlay(50);
Symbol 625 MovieClip Frame 55
_parent.gotoAndStop("paci_standing");
Symbol 625 MovieClip Frame 70
_parent.ChangeAttackDmg(5);
Symbol 625 MovieClip Frame 86
_parent.gotoAndStop("paci_standing");
Instance of Symbol 466 MovieClip in Symbol 628 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dmgType = 0;
efType = 0;
}
onClipEvent (load) {
dmgType = 0;
efType = 0;
}
Symbol 630 MovieClip Frame 1
_parent.ChangeAttackDmg(1);
Symbol 630 MovieClip Frame 5
this.gotoAndPlay(_currentframe - 2);
Symbol 633 MovieClip Frame 1
_parent.ChangeAttackDmg(8);
_parent.style = "equipWepon";
Symbol 633 MovieClip Frame 4
var i = 0;
while (i <= 5) {
_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 633 MovieClip Frame 23
_parent.style = "p_standing";
_parent.gotoAndPlay("paci_standing");
Symbol 638 MovieClip Frame 2
this.braid.OpenHeadBraid(1);
Symbol 638 MovieClip Frame 16
_parent.style = "overGun";
Symbol 638 MovieClip Frame 18
this.braid.OpenHeadBraid(0);
this.stop();
_parent.gotoAndStop("overGun");
Instance of Symbol 606 MovieClip "braid" in Symbol 638 MovieClip Frame 18
onClipEvent (load) {
this.gotoAndStop("close");
}
Symbol 644 MovieClip Frame 1
waitFlag = 0;
this.onEnterFrame = function () {
if (Key.isDown(_global.keyCas[1]) && (waitFlag == 0)) {
waitFlag = 1;
this.gotoAndPlay("attack1");
}
};
Instance of Symbol 606 MovieClip "braid" in Symbol 644 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("open");
}
Symbol 644 MovieClip Frame 30
this.gotoAndPlay("wait");
Instance of Symbol 606 MovieClip "braid" in Symbol 644 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop("open");
}
Symbol 644 MovieClip Frame 49
_parent.ChangeAttackDmg(3);
_parent.ChangeAttackDmg(9);
Symbol 644 MovieClip Frame 50
any = 8;
var 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 644 MovieClip Frame 69
waitFlag = 0;
this.gotoAndPlay("wait");
Symbol 648 MovieClip Frame 1
this.onEnterFrame = function () {
if (!Key.isDown(_global.keyCas[3])) {
_parent.gotoAndStop("paci_standing");
}
};
Symbol 648 MovieClip Frame 6
this.stop();
Symbol 649 MovieClip Frame 5
_parent.gotoAndStop("paci_normal");
Symbol 651 MovieClip Frame 14
_parent.style = "overGun";
Symbol 651 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 651 MovieClip Frame 17
_parent.gotoAndStop("overGun");
Symbol 652 MovieClip Frame 5
this.onEnterFrame = function () {
_parent._y = _parent._y + 10;
this._rotation = 0;
};
Symbol 652 MovieClip Frame 50
_parent._parent.removeMovieClip();
this.stop();
Symbol 653 MovieClip [char3] Frame 1
bodyName = "charData3";
score = 100000 /* 0x0186A0 */;
myType = "p3";
if (!userCon) {
this.gotoAndStop(7);
}
Symbol 653 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];
}
}
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 _local3 = mouseKakudo;
} else {
var _local3 = (_rotation * 3.141593) / 180;
}
XnowSpeed = XnowSpeed + (boostSpeed * Math.cos(_local3));
YnowSpeed = YnowSpeed + (boostSpeed * Math.sin(_local3));
} 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") && (shotMode != "shot")) {
this.gotoAndStop("paci(s->n)");
}
if (_global.keyModeCon == 2) {
var _local3 = mouseKakudo;
} else {
var _local3 = (_rotation * 3.141593) / 180;
}
var _local5 = XnowSpeed + (addSpeed * Math.cos(_local3));
var _local4 = YnowSpeed + (addSpeed * Math.sin(_local3));
var _local6 = Math.abs(_local5) + Math.abs(_local4);
if (_local6 <= maxSpeed) {
XnowSpeed = _local5;
YnowSpeed = _local4;
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 _local6 = Math.pow(Math.abs(xDis), 2);
var _local5 = Math.pow(Math.abs(yDis), 2);
var _local4 = Math.sqrt(_local6 + _local5);
if (_local4 < 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 / 0.01745329;
_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) {
i = 0;
if (searchMode == 0) {
i = 1;
while (i < _global.SetMaxEnemyNo) {
if (_root[i] != undefined) {
nowTarget = i;
break;
}
i++;
}
} else if (searchMode == 1) {
}
}
function autoTrace() {
if (_root[nowTarget] == undefined) {
this.searchEnemy(0);
}
var _local4 = _root[nowTarget]._x - _x;
var _local5 = _root[nowTarget]._y - _y;
var _local6 = Math.atan2(_local5, _local4);
var _local3 = _local6 / 0.01745329;
if ((_local3 > 90) && (_rotation < -90)) {
_rotation = (_rotation + (((-360 + _local3) - _rotation) / roSpeed));
} else if ((_local3 < -90) && (_rotation > 90)) {
_rotation = (_rotation + (((_local3 + 360) - _rotation) / roSpeed));
} else {
_rotation = (_rotation + ((_local3 - 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 _local3 = _root[nowTarget]._x - _x;
var _local4 = _root[nowTarget]._y - _y;
var _local2 = Math.atan2(_local4, _local3);
_rotation = (_local2 / 0.01745329);
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 _local2 = _root._xmouse - _x;
var _local3 = _root._ymouse - _y;
mouseKakudo = Math.atan2(_local3, _local2);
}
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(this);
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");
Symbol 653 MovieClip [char3] Frame 7
function hit(dmgType, efType) {
if (mode) {
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 _local2 = (_rotation * 3.141593) / 180;
XnowSpeed = XnowSpeed + (boostSpeed * Math.cos(_local2));
YnowSpeed = YnowSpeed + (boostSpeed * Math.sin(_local2));
} 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 _local2 = (_rotation * 3.141593) / 180;
var _local4 = XnowSpeed + (addSpeed * Math.cos(_local2));
var _local3 = YnowSpeed + (addSpeed * Math.sin(_local2));
var _local5 = Math.abs(_local4) + Math.abs(_local3);
if (_local5 <= maxSpeed) {
XnowSpeed = _local4;
YnowSpeed = _local3;
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) {
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 _local3 = _root.mainChar._x - _x;
var _local4 = _root.mainChar._y - _y;
var _local5 = Math.atan2(_local4, _local3);
nextRo = _local5 / 0.01745329;
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(_local3) + Math.abs(_local4)) < 900) {
this.SpeedDown();
shotMode = 1;
speedMode = 0;
} else {
shotMode = 0;
speedMode = 1;
}
} else if (nowTac == 2) {
if ((Math.abs(_local3) + Math.abs(_local4)) < 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 + (_local3 / 8);
this._y = this._y + (_local4 / 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(this);
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;
_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 653 MovieClip [char3] Frame 11
this.stop();
Symbol 653 MovieClip [char3] Frame 20
this.stop();
Symbol 653 MovieClip [char3] Frame 30
this.stop();
Symbol 653 MovieClip [char3] Frame 40
this.stop();
Symbol 653 MovieClip [char3] Frame 50
this.stop();
Symbol 653 MovieClip [char3] Frame 60
this.stop();
Symbol 653 MovieClip [char3] Frame 70
this.stop();
Symbol 653 MovieClip [char3] Frame 80
this.stop();
Symbol 653 MovieClip [char3] Frame 90
this.stop();
Symbol 653 MovieClip [char3] Frame 100
this.stop();
Symbol 653 MovieClip [char3] Frame 110
this.stop();
Symbol 653 MovieClip [char3] Frame 120
this.stop();
Symbol 653 MovieClip [char3] Frame 130
this.stop();
Symbol 653 MovieClip [char3] Frame 140
this.stop();
Symbol 653 MovieClip [char3] Frame 150
this.stop();
Symbol 653 MovieClip [char3] Frame 160
this.stop();
Symbol 653 MovieClip [char3] Frame 170
this.stop();
Symbol 654 MovieClip Frame 1
_parent.style = "p_normal";
Symbol 655 MovieClip Frame 1
_parent.style = "p_standing";
Symbol 656 MovieClip Frame 1
_parent.style = "p_normal";
Symbol 656 MovieClip Frame 5
_parent.gotoAndStop("paci_normal");
Symbol 657 MovieClip Frame 1
_parent.ChangeAttackDmg(1);
Symbol 657 MovieClip Frame 6
this.gotoAndPlay(_currentframe - 2);
Symbol 676 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() {
if (!stopFlag) {
timeEnd = getTimer() + wait;
stopFlag = 1;
_root.mainChar.char.hitBraid();
this.setEffect();
this.stop();
}
}
stopFlag = 0;
wait = 200;
theSound = new Sound(this);
theSound.attachSound("set_3");
this.onEnterFrame = function () {
if (stopFlag && (getTimer() < timeEnd)) {
} else {
stopFlag = 0;
this.play();
}
};
Symbol 676 MovieClip Frame 3
_parent.ChangeAttackDmg(3);
Symbol 676 MovieClip Frame 8
if (_parent._name == "mainChar") {
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("braid2");
}
} else {
this.gotoAndPlay("braid2");
}
Symbol 676 MovieClip Frame 12
_parent.gotoAndStop("paci_standing");
Symbol 676 MovieClip Frame 25
_parent.ChangeAttackDmg(4);
Symbol 676 MovieClip Frame 31
if (_parent._name == "mainChar") {
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("braid3");
}
} else {
this.gotoAndPlay("braid3");
}
Symbol 676 MovieClip Frame 36
_parent.gotoAndStop("paci_standing");
Symbol 676 MovieClip Frame 53
_parent.ChangeAttackDmg(5);
Symbol 676 MovieClip Frame 70
_parent.gotoAndStop("paci_standing");
Symbol 676 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() {
if (!stopFlag) {
timeEnd = getTimer() + wait;
stopFlag = 1;
_root.mainChar.char.hitBraid();
this.setEffect();
this.stop();
}
}
stopFlag = 0;
wait = 200;
theSound = new Sound(this);
theSound.attachSound("set_3");
this.onEnterFrame = function () {
if (stopFlag && (getTimer() < timeEnd)) {
} else {
stopFlag = 0;
this.play();
}
};
Symbol 683 MovieClip [openWeponEF1] Frame 6
this.removeMovieClip();
this.stop();
Symbol 684 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 _local3 = Math.random() * 2;
_root[WeponName]._xscale = BaseSize + _local3;
_root[WeponName]._yscale = BaseSize + _local3;
}
randSizeWidth = 0;
BaseSize = _parent._xscale + 10;
_root.textDisplay.mesRecord("\u5B50\u6A5F\u5C55\u958B");
_parent.style = "equipWepon";
Symbol 684 MovieClip Frame 7
_parent.ChangeAttackDmg(10);
i = 1;
WeponName = "wepon0";
this.setWeponSystem1();
Symbol 684 MovieClip Frame 9
WeponName = "wepon1";
i = 2;
this.setWeponSystem1();
Symbol 684 MovieClip Frame 11
WeponName = "wepon2";
i = 3;
this.setWeponSystem1();
Symbol 684 MovieClip Frame 22
_parent.style = "p_standing";
_parent.gotoAndPlay("paci_standing");
Symbol 685 MovieClip Frame 1
function overShotEnd() {
this.gotoAndPlay(1);
}
EFsize = 100;
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("charge");
}
Symbol 685 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 2);
Symbol 685 MovieClip Frame 7
this.attachMovie("sarcleEF", "sarcleEF", 600);
this.sarcleEF._x = 266;
this.sarcleEF._y = 5;
Symbol 685 MovieClip Frame 8
if (Key.isDown(_global.keyCas[1])) {
EFsize = EFsize + 5;
this.sarcleEF._xscale = (this.sarcleEF._yscale = EFsize);
} else {
this.gotoAndStop("shot");
}
Symbol 685 MovieClip Frame 9
this.gotoAndPlay(_currentframe - 1);
Symbol 685 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 687 MovieClip Frame 1
this.onEnterFrame = function () {
this._rotation = this._rotation + _parent.ro;
};
Symbol 689 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 688 MovieClip in Symbol 689 MovieClip Frame 1
onClipEvent (load) {
ro = 5;
}
Instance of Symbol 688 MovieClip in Symbol 689 MovieClip Frame 1
onClipEvent (load) {
ro = -5;
}
Symbol 689 MovieClip Frame 6
this.stop();
Symbol 690 MovieClip Frame 5
_parent.gotoAndStop("paci_normal");
Symbol 696 MovieClip Frame 36
_parent.ChangeAttackDmg(7);
Symbol 696 MovieClip Frame 57
_parent.gotoAndStop("sky_normal");
Symbol 697 MovieClip Frame 5
this.onEnterFrame = function () {
_parent._y = _parent._y + 10;
this._rotation = 0;
};
Symbol 697 MovieClip Frame 50
this.stop();
Symbol 698 MovieClip [char2] Frame 1
bodyName = "charData2";
score = 120000 /* 0x01D4C0 */;
myType = "p2";
if (!userCon) {
this.gotoAndStop(7);
}
Symbol 698 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];
}
}
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 _local3 = mouseKakudo;
} else {
var _local3 = (_rotation * 3.141593) / 180;
}
XnowSpeed = XnowSpeed + (boostSpeed * Math.cos(_local3));
YnowSpeed = YnowSpeed + (boostSpeed * Math.sin(_local3));
} 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") && (shotMode != "shot")) {
this.gotoAndStop("paci(s->n)");
}
if (_global.keyModeCon == 2) {
var _local3 = mouseKakudo;
} else {
var _local3 = (_rotation * 3.141593) / 180;
}
var _local5 = XnowSpeed + (addSpeed * Math.cos(_local3));
var _local4 = YnowSpeed + (addSpeed * Math.sin(_local3));
var _local6 = Math.abs(_local5) + Math.abs(_local4);
if (_local6 <= maxSpeed) {
XnowSpeed = _local5;
YnowSpeed = _local4;
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 _local6 = Math.pow(Math.abs(xDis), 2);
var _local5 = Math.pow(Math.abs(yDis), 2);
var _local4 = Math.sqrt(_local6 + _local5);
if (_local4 < 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 / 0.01745329;
_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) {
i = 0;
if (searchMode == 0) {
i = 1;
while (i < _global.SetMaxEnemyNo) {
if (_root[i] != undefined) {
nowTarget = i;
break;
}
i++;
}
} else if (searchMode == 1) {
}
}
function autoTrace() {
if (_root[nowTarget] == undefined) {
this.searchEnemy(0);
}
var _local4 = _root[nowTarget]._x - _x;
var _local5 = _root[nowTarget]._y - _y;
var _local6 = Math.atan2(_local5, _local4);
var _local3 = _local6 / 0.01745329;
if ((_local3 > 90) && (_rotation < -90)) {
_rotation = (_rotation + (((-360 + _local3) - _rotation) / roSpeed));
} else if ((_local3 < -90) && (_rotation > 90)) {
_rotation = (_rotation + (((_local3 + 360) - _rotation) / roSpeed));
} else {
_rotation = (_rotation + ((_local3 - 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 _local3 = _root[nowTarget]._x - _x;
var _local4 = _root[nowTarget]._y - _y;
var _local2 = Math.atan2(_local4, _local3);
_rotation = (_local2 / 0.01745329);
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 _local2 = _root._xmouse - _x;
var _local3 = _root._ymouse - _y;
mouseKakudo = Math.atan2(_local3, _local2);
}
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(this);
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");
Symbol 698 MovieClip [char2] Frame 7
function hit(dmgType, efType) {
if (mode) {
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 _local2 = (_rotation * 3.141593) / 180;
XnowSpeed = XnowSpeed + (boostSpeed * Math.cos(_local2));
YnowSpeed = YnowSpeed + (boostSpeed * Math.sin(_local2));
} 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 _local2 = (_rotation * 3.141593) / 180;
var _local4 = XnowSpeed + (addSpeed * Math.cos(_local2));
var _local3 = YnowSpeed + (addSpeed * Math.sin(_local2));
var _local5 = Math.abs(_local4) + Math.abs(_local3);
if (_local5 <= maxSpeed) {
XnowSpeed = _local4;
YnowSpeed = _local3;
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) {
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 _local3 = _root.mainChar._x - _x;
var _local4 = _root.mainChar._y - _y;
var _local5 = Math.atan2(_local4, _local3);
nextRo = _local5 / 0.01745329;
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(_local3) + Math.abs(_local4)) < 900) {
this.SpeedDown();
shotMode = 1;
speedMode = 0;
} else {
shotMode = 0;
speedMode = 1;
}
} else if (nowTac == 2) {
if ((Math.abs(_local3) + Math.abs(_local4)) < 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 + (_local3 / 8);
this._y = this._y + (_local4 / 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(this);
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;
_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 698 MovieClip [char2] Frame 11
this.stop();
Symbol 698 MovieClip [char2] Frame 20
this.stop();
Symbol 698 MovieClip [char2] Frame 30
this.stop();
Symbol 698 MovieClip [char2] Frame 40
this.stop();
Symbol 698 MovieClip [char2] Frame 50
this.stop();
Symbol 698 MovieClip [char2] Frame 60
this.stop();
Symbol 698 MovieClip [char2] Frame 70
this.stop();
Symbol 698 MovieClip [char2] Frame 80
this.stop();
Symbol 698 MovieClip [char2] Frame 90
this.stop();
Symbol 698 MovieClip [char2] Frame 100
this.stop();
Symbol 698 MovieClip [char2] Frame 110
this.stop();
Symbol 698 MovieClip [char2] Frame 120
this.stop();
Symbol 698 MovieClip [char2] Frame 130
this.stop();
Symbol 698 MovieClip [char2] Frame 140
this.stop();
Symbol 698 MovieClip [char2] Frame 150
this.stop();
Symbol 698 MovieClip [char2] Frame 160
this.stop();
Symbol 698 MovieClip [char2] Frame 170
this.stop();
Symbol 698 MovieClip [char2] Frame 180
this.stop();
Symbol 735 MovieClip Frame 1
_parent.style = "p_normal";
Symbol 739 MovieClip Frame 7
_parent.style = "s";
Symbol 739 MovieClip Frame 15
_parent.gotoAndStop("sky_normal");
Symbol 741 MovieClip Frame 6
_parent.style = "p_normal";
Symbol 741 MovieClip Frame 14
_parent.gotoAndStop("paci_normal");
Symbol 743 MovieClip Frame 1
_parent.style = "p_standing";
Symbol 744 MovieClip Frame 1
_parent.style = "p_normal";
Symbol 744 MovieClip Frame 5
_parent.gotoAndStop("paci_normal");
Symbol 745 MovieClip Frame 1
_parent.ChangeAttackDmg(1);
Symbol 745 MovieClip Frame 6
this.gotoAndPlay(_currentframe - 2);
Symbol 749 MovieClip Frame 3
_parent.ChangeAttackDmg(3);
Instance of Symbol 473 MovieClip "hitArea_b1" in Symbol 749 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainChar.char.hitArea_b1)) {
_root.mainChar.BraidHit();
_parent.BraidHit();
}
if (this.hitTest(_root.mainChar.damageArea)) {
_global.mainCharNowHp = _global.mainCharNowHp - 300;
}
}
Symbol 749 MovieClip Frame 9
if (_parent._name == "mainChar") {
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("braid2");
}
} else {
this.gotoAndPlay("braid2");
}
Symbol 749 MovieClip Frame 12
_parent.gotoAndStop("paci_standing");
Symbol 749 MovieClip Frame 24
_parent.ChangeAttackDmg(4);
Instance of Symbol 473 MovieClip "hitArea_b1" in Symbol 749 MovieClip Frame 26
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainChar.char.hitArea_b1)) {
_root.mainChar.BraidHit();
_parent.BraidHit();
}
if (this.hitTest(_root.mainChar.damageArea)) {
_global.mainCharNowHp = _global.mainCharNowHp - 300;
}
}
Symbol 749 MovieClip Frame 31
if (_parent._name == "mainChar") {
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("braid3");
}
} else {
this.gotoAndPlay("braid3");
}
Symbol 749 MovieClip Frame 36
_parent.gotoAndStop("paci_standing");
Symbol 749 MovieClip Frame 53
_parent.ChangeAttackDmg(5);
Instance of Symbol 473 MovieClip "hitArea_b1" in Symbol 749 MovieClip Frame 54
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainChar.char.hitArea_b1)) {
_root.mainChar.BraidHit();
_parent.BraidHit();
}
}
Instance of Symbol 473 MovieClip "hitArea_b1" in Symbol 749 MovieClip Frame 58
onClipEvent (enterFrame) {
if (this.hitTest(_root.mainChar.char.hitArea_b1)) {
_root.mainChar.BraidHit();
_parent.BraidHit();
}
}
Symbol 749 MovieClip Frame 65
_parent.gotoAndStop("paci_standing");
Symbol 750 MovieClip Frame 1
_parent.ChangeAttackDmg(1);
Symbol 750 MovieClip Frame 5
this.gotoAndPlay(_currentframe - 2);
Symbol 751 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 _local3 = Math.random() * 2;
_root[WeponName]._xscale = BaseSize + _local3;
_root[WeponName]._yscale = BaseSize + _local3;
}
randSizeWidth = 0;
BaseSize = _parent._xscale + 10;
_root.textDisplay.mesRecord("\u5B50\u6A5F\u5C55\u958B");
_parent.style = "equipWepon";
Symbol 751 MovieClip Frame 7
_parent.ChangeAttackDmg(10);
i = 1;
WeponName = "wepon0";
this.setWeponSystem1();
Symbol 751 MovieClip Frame 9
WeponName = "wepon1";
i = 2;
this.setWeponSystem1();
Symbol 751 MovieClip Frame 11
WeponName = "wepon2";
i = 3;
this.setWeponSystem1();
Symbol 751 MovieClip Frame 22
_parent.style = "p_standing";
_parent.gotoAndPlay("paci_standing");
Symbol 753 MovieClip Frame 1
_root.textDisplay.mesRecord("\u30AA\u30FC\u30D0\u30FC\u30AC\u30F3\u30E2\u30FC\u30C9\u3078\u79FB\u884C");
Symbol 753 MovieClip Frame 14
_parent.style = "overGun";
Symbol 753 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 753 MovieClip Frame 17
_parent.gotoAndStop("overGun");
Symbol 754 MovieClip Frame 1
function overShotEnd() {
this.gotoAndPlay(1);
}
EFsize = 100;
if (Key.isDown(_global.keyCas[1])) {
this.gotoAndPlay("charge");
}
Symbol 754 MovieClip Frame 3
this.gotoAndPlay(_currentframe - 2);
Symbol 754 MovieClip Frame 7
this.attachMovie("sarcleEF", "sarcleEF", 600);
this.sarcleEF._x = 266;
this.sarcleEF._y = 5;
Symbol 754 MovieClip Frame 8
if (Key.isDown(_global.keyCas[1])) {
EFsize = EFsize + 5;
this.sarcleEF._xscale = (this.sarcleEF._yscale = EFsize);
} else {
this.gotoAndStop("shot");
}
Symbol 754 MovieClip Frame 9
this.gotoAndPlay(_currentframe - 1);
Symbol 754 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 755 MovieClip Frame 1
this.onEnterFrame = function () {
if (!Key.isDown(_global.keyCas[3])) {
_parent.gotoAndStop("paci_standing");
}
};
Instance of Symbol 688 MovieClip in Symbol 755 MovieClip Frame 1
onClipEvent (load) {
ro = 5;
}
Instance of Symbol 688 MovieClip in Symbol 755 MovieClip Frame 1
onClipEvent (load) {
ro = -5;
}
Symbol 755 MovieClip Frame 6
this.stop();
Symbol 756 MovieClip Frame 5
_parent.gotoAndStop("paci_normal");
Symbol 757 MovieClip [char1] Frame 1
bodyName = "charData1";
if (!userCon) {
this.gotoAndStop(7);
}
Symbol 757 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];
}
}
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) {
var _local3;
if (flag > 0) {
this.gotoAndPlay("boost");
theBoostSE.start();
speedDownCnt = 5;
if (_global.keyModeCon == 2) {
_local3 = mouseKakudo;
} else {
_local3 = (_rotation * 3.141593) / 180;
}
XnowSpeed = XnowSpeed + (boostSpeed * Math.cos(_local3));
YnowSpeed = YnowSpeed + (boostSpeed * Math.sin(_local3));
} 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") && (shotMode != "shot")) {
this.gotoAndStop("paci(s->n)");
}
if (_global.keyModeCon == 2) {
tempKakudo = mouseKakudo;
} else {
tempKakudo = (_rotation * 3.141593) / 180;
}
tempXspeed = XnowSpeed + (addSpeed * Math.cos(tempKakudo));
tempYspeed = YnowSpeed + (addSpeed * Math.sin(tempKakudo));
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() {
}
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 _local6 = Math.pow(Math.abs(xDis), 2);
var _local5 = Math.pow(Math.abs(yDis), 2);
var _local4 = Math.sqrt(_local6 + _local5);
if (_local4 < 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 / 0.01745329;
_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) {
i = 0;
if (searchMode == 0) {
i = 1;
while (i < _global.SetMaxEnemyNo) {
if (_root[i] != undefined) {
nowTarget = i;
break;
}
i++;
}
} else if (searchMode == 1) {
}
}
function autoTrace() {
if (_root[nowTarget] == undefined) {
this.searchEnemy(0);
}
var _local4 = _root[nowTarget]._x - _x;
var _local5 = _root[nowTarget]._y - _y;
var _local6 = Math.atan2(_local5, _local4);
var _local3 = _local6 / 0.01745329;
if ((_local3 > 90) && (_rotation < -90)) {
_rotation = (_rotation + (((-360 + _local3) - _rotation) / roSpeed));
} else if ((_local3 < -90) && (_rotation > 90)) {
_rotation = (_rotation + (((_local3 + 360) - _rotation) / roSpeed));
} else {
_rotation = (_rotation + ((_local3 - 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 _local3 = _root[nowTarget]._x - _x;
var _local4 = _root[nowTarget]._y - _y;
var _local2 = Math.atan2(_local4, _local3);
_rotation = (_local2 / 0.01745329);
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 _local2 = _root._xmouse - _x;
var _local3 = _root._ymouse - _y;
mouseKakudo = Math.atan2(_local3, _local2);
}
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(this);
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");
Symbol 757 MovieClip [char1] Frame 7
function hit(dmgType, efType) {
if (mode) {
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 _local4 = _root.mainChar._x - _x;
var _local5 = _root.mainChar._y - _y;
var _local3 = Math.atan2(_local5, _local4);
_rotation = (_local3 / 0.01745329);
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(this);
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 757 MovieClip [char1] Frame 11
this.stop();
Symbol 757 MovieClip [char1] Frame 20
this.stop();
Symbol 757 MovieClip [char1] Frame 30
this.stop();
Symbol 757 MovieClip [char1] Frame 40
this.stop();
Symbol 757 MovieClip [char1] Frame 50
this.stop();
Symbol 757 MovieClip [char1] Frame 60
this.stop();
Symbol 757 MovieClip [char1] Frame 70
this.stop();
Symbol 757 MovieClip [char1] Frame 80
this.stop();
Symbol 757 MovieClip [char1] Frame 90
this.stop();
Symbol 757 MovieClip [char1] Frame 100
this.stop();
Symbol 757 MovieClip [char1] Frame 110
this.stop();
Symbol 757 MovieClip [char1] Frame 120
this.stop();
Symbol 757 MovieClip [char1] Frame 130
this.stop();
Symbol 757 MovieClip [char1] Frame 140
this.stop();
Symbol 757 MovieClip [char1] Frame 150
this.stop();
Symbol 768 MovieClip [display_timeAttackFirst] Frame 112
_root.time0 = 50;
_root.timeDis.TimeCon(1);
this.removeMovieClip();
this._visible = 0;
this.stop();
Symbol 774 Button
on (release) {
_root.gotoAndStop("menu");
_root.AllRemove();
this.removeMovieClip();
}
Symbol 783 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;
timeAttackTotalTime = Number(time) + pe;
time1 = Math.floor(timeAttackTotalTime * 100);
if ((time1 % 10) == 0) {
if ((time1 % 100) == 0) {
timeAttackTotalTime = (time1 / 100) + ".00";
} else {
timeAttackTotalTime = (time1 / 100) + "0";
}
} else {
timeAttackTotalTime = time1 / 100;
}
_global.gTime = timeAttackTotalTime;
if ((_global.gTime < _root.so.data.yourBestTime) || (_root.so.data.yourBestTime == null)) {
_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)) {
_root.so.data[("pac" + tempI) + "bestTime"] = _global.gTime;
best2 = 1;
}
disMes = (((("(TIME " + time) + ") + (PENALTY ") + pe) + ") = TotalTime ") + timeAttackTotalTime;
Instance of Symbol 780 MovieClip in Symbol 783 MovieClip [display_timeAttackCOMPLETE] Frame 68
onClipEvent (load) {
if (!_parent.best1) {
this._visible = 0;
}
}
Instance of Symbol 782 MovieClip in Symbol 783 MovieClip [display_timeAttackCOMPLETE] Frame 68
onClipEvent (load) {
if (!_parent.best2) {
this._visible = 0;
}
}
Symbol 783 MovieClip [display_timeAttackCOMPLETE] Frame 69
this.stop();
Symbol 795 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 821 MovieClip Frame 1
this.onEnterFrame = function () {
this._x = this._x - (moveX + (_root.MC_mainchar.mainchar.nowSpeedx / moveXext));
this._y = this._y - (moveY + (_root.MC_mainchar.mainchar.nowSpeedy / moveYext));
if (this._x < (-400 / _root.screenMag)) {
this._x = 300 / _root.screenMag;
} else if (this._x > (400 / _root.screenMag)) {
this._x = -300 / _root.screenMag;
}
if (this._y > (400 / _root.screenMag)) {
this._y = -300 / _root.screenMag;
}
if (this._y < (-400 / _root.screenMag)) {
this._y = 300 / _root.screenMag;
}
};
Symbol 824 MovieClip Frame 1
this.onEnterFrame = function () {
this._x = this._x - (moveX + (_root.MC_mainchar.mainchar.nowSpeedx * moveXext));
this._y = this._y - (moveY + (_root.MC_mainchar.mainchar.nowSpeedy * moveYext));
if (this._x < (-400 / _root.screenMag)) {
this._x = 300 / _root.screenMag;
} else if (this._x > (400 / _root.screenMag)) {
this._x = -300 / _root.screenMag;
}
if (this._y > (400 / _root.screenMag)) {
this._y = -300 / _root.screenMag;
}
if (this._y < (-400 / _root.screenMag)) {
this._y = 300 / _root.screenMag;
}
};
Symbol 825 MovieClip Frame 329
this.gotoAndPlay("s");
Symbol 837 Button
on (release) {
this.gotoAndPlay("nextScene");
}
on (rollOut, releaseOutside) {
this.out();
}
on (rollOver) {
this.roll();
}
Symbol 842 MovieClip Frame 94
_parent.reset();
Symbol 843 MovieClip Frame 1
function reset() {
_x = ((Math.random() * 650) - 50);
_y = ((Math.random() * 500) - 50);
}
function qMove() {
this.reset();
var _local2 = Math.round(Math.random() * 10);
this.inBar.gotoAndPlay(_local2);
}
if (Math.random() > 0.5) {
ex = 1;
} else {
ex = -1;
}
r = (Math.random() * 3) - 1.5;
s = (Math.random() * 200) + 200;
_xscale = (s * ex);
_yscale = s;
var f = Math.round(Math.random() * 10);
this.inBar.gotoAndPlay(f);
this.reset();
delete s;
delete ex;
this.stop();
this.firstSet();
this.onEnterFrame = function () {
_rotation = (_rotation + r);
};
Symbol 853 MovieClip Frame 1
function roll() {
i = 1;
while (i < 11) {
var _local2 = Math.round(Math.random() * 10);
this["b" + i].qMove();
i++;
}
}
function out() {
i = 1;
while (i < 11) {
var _local2 = 95 + Math.round(Math.random() * 10);
this["b" + i].inBar.gotoAndPlay(_local2);
i++;
}
}
Symbol 853 MovieClip Frame 10
this.stop();
Symbol 853 MovieClip Frame 11
v = 100;
this.onEnterFrame = function () {
v = v - 15;
};
_root.bgm.stop();
_root.bgm.setVolume(100);
Symbol 853 MovieClip Frame 17
this.onMouseDown = function () {
this.gotoAndPlay("end");
};
Symbol 853 MovieClip Frame 50
_root.gotoAndStop("menu");
Symbol 855 MovieClip Frame 2
url = _url;
ans = url.indexOf("http");
trueUrl01 = "http://nextframe.jp/swf/seventhsky_refine/seventhsky_refine.swf";
if (ans != -1) {
if (_url == trueUrl01) {
} else {
_root.onEnterFrame = function () {
_root.gotoAndStop("ade");
};
_root.gotoAndStop("ade");
}
}
this.stop();
Symbol 857 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 865 MovieClip Frame 7
this.stop();
Symbol 866 Button
on (release) {
_parent.SelectMenu("practice");
}
Symbol 868 Button
on (release) {
_parent.SelectMenu("test");
}
Symbol 870 Button
on (release) {
_parent.SelectMenu("option");
}
Symbol 872 Button
on (release) {
getURL ("http://nextframe.jp", _blank);
}
Symbol 874 Button
on (release) {
_parent.SelectMenu("credit");
}
Symbol 877 Button
on (release) {
_parent.SelectMenu("timeAttack");
}
Symbol 900 Button
on (release) {
this.SelectMenu(0);
}
Symbol 909 MovieClip Frame 1
_visible = 0;
Symbol 914 MovieClip Frame 1
if (_global.effectLv > 1) {
this.gotoAndStop(3);
} else if (_global.effectLv > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(4);
}
Symbol 914 MovieClip Frame 2
_global.effectLv = (_root.so.data.effectLv = 1);
this.stop();
Symbol 914 MovieClip Frame 3
_global.effectLv = (_root.so.data.effectLv = 2);
this.stop();
Symbol 914 MovieClip Frame 4
_global.effectLv = (_root.so.data.effectLv = 0);
this.stop();
Symbol 914 MovieClip Frame 5
this.gotoAndStop(2);
Symbol 915 MovieClip Frame 1
this.hitArea = myHitArea;
this.stop();
Symbol 920 MovieClip Frame 1
if (_quality == "HIGH") {
this.gotoAndStop(3);
} else if (_quality == "LOW") {
this.gotoAndStop(4);
}
Symbol 920 MovieClip Frame 2
_quality = ((_root.so.data.quality = "MEDIUM"));
this.stop();
Symbol 920 MovieClip Frame 3
_quality = ((_root.so.data.quality = "HIGH"));
this.stop();
Symbol 920 MovieClip Frame 4
_quality = ((_root.so.data.quality = "LOW"));
this.stop();
Symbol 920 MovieClip Frame 5
this.gotoAndStop(2);
Symbol 921 MovieClip Frame 1
this.hitArea = myHitArea;
this.stop();
Symbol 926 Button
on (press) {
flag = 1;
this.gotoAndStop(5);
}
on (release, releaseOutside) {
flag = 0;
_root.SoundStop();
this.gotoAndStop(2);
}
Symbol 927 MovieClip Frame 1
flag = 0;
vol = _root.ChangeVol("g");
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 927 MovieClip Frame 2
this.stop();
Symbol 927 MovieClip Frame 5
this.stop();
Symbol 928 MovieClip Frame 1
disVol = _root.ChangeVol("g");
Symbol 931 MovieClip Frame 1
if (_global.keyModeChangeWepon == 1) {
this.gotoAndStop(2);
} else if (_global.keyModeChangeWepon == 0) {
this.gotoAndStop(3);
}
Symbol 931 MovieClip Frame 2
_global.keyModeChangeWepon = (_root.so.data.keyModeChangeWepon = 1);
this.stop();
Symbol 931 MovieClip Frame 3
_global.keyModeChangeWepon = (_root.so.data.keyModeChangeWepon = 0);
this.stop();
Symbol 931 MovieClip Frame 4
this.gotoAndStop(2);
Symbol 932 MovieClip Frame 1
this.hitArea = myHitArea;
this.stop();
Symbol 935 MovieClip Frame 1
if (_global.keyModeCon == 2) {
this.gotoAndStop(2);
} else if (_global.keyModeCon == 0) {
this.gotoAndStop(3);
} else {
_global.keyModeCon = 0;
this.gotoAndStop(4);
}
Symbol 935 MovieClip Frame 2
_global.keyModeCon = (_root.so.data.keyModeCon = 2);
this.stop();
Symbol 935 MovieClip Frame 3
_global.keyModeCon = (_root.so.data.keyModeCon = 0);
this.stop();
Symbol 935 MovieClip Frame 4
this.gotoAndStop(2);
Symbol 936 MovieClip Frame 1
this.hitArea = myHitArea;
this.stop();
Symbol 942 Button
on (press) {
this.play();
}
Symbol 950 Button
on (press) {
this.Select();
}
Symbol 957 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) {
getKey = Key.getCode();
if ((getKey > 47) && (getKey < 91)) {
_global.keyCas[keyNo] = getKey;
this.Select(0);
_parent.SetDisKey();
} else if (getKey == 32) {
_global.keyCas[keyNo] = getKey;
this.Select(0);
_parent.SetDisKey();
} else {
_parent.mainPanel.Select(2);
}
}
Symbol 957 MovieClip Frame 2
this.stop();
Symbol 957 MovieClip Frame 10
this.stop();
Instance of Symbol 496 MovieClip in Symbol 957 MovieClip Frame 10
onClipEvent (keyDown) {
_parent.KeyChack();
}
Symbol 968 Button
on (release) {
this.gotoAndStop("normal");
_parent.SetDisKey();
}
Symbol 975 MovieClip Frame 1
this.stop();
Symbol 975 MovieClip Frame 10
this.stop();
Symbol 975 MovieClip Frame 20
this.stop();
Symbol 980 Button
on (release) {
i = 0;
while (i < 15) {
_global.keyCas[i] = _global.keyDef[i];
i++;
}
this.SetDisKey();
}
Symbol 986 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 987 MovieClip Frame 1
function SetDisKey() {
var _local3 = null;
var _local4 = 1;
var _local5 = null;
_local3 = 1;
while (_local3 < 12) {
this["box" + _local3].keyJpn = keyCasMes[(_local3 * 2) - 1];
this["box" + _local3].keyEng = keyCasMes[_local3 * 2];
this["box" + _local3].Select(0);
if (_global.keyCas[_local4] == 32) {
this["box" + _local3].nowKey = "SPACE";
} else {
this["box" + _local3].nowKey = chr(_global.keyCas[_local4]);
}
this["box" + _local3].keyNo = _local4;
if (_local4 == 8) {
_local4 = 10;
}
_local4++;
_local3++;
}
}
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 975 MovieClip "mainPanel" in Symbol 987 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 957 MovieClip in Symbol 987 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
Symbol 989 Button
on (release) {
this.SelectMenu("option");
}
Symbol 994 Button
on (release) {
sndBgm.stop();
this.gotoAndPlay("selectCharFirst");
}
Symbol 996 Button
on (release) {
this.SelectMenu(0);
}
Symbol 1001 Button
on (release) {
sndBgm.stop();
_global.nextStage = "test";
this.gotoAndPlay("selectCharFirst");
}
Symbol 1003 Button
on (release) {
sndBgm.stop();
_global.nextStage = "test2";
this.gotoAndPlay("selectCharFirst");
}
Symbol 1012 MovieClip Frame 1
var tempName = ("char" + _parent.charName);
this.gotoAndStop(tempName);
this.stop();
Symbol 1012 MovieClip Frame 10
this.stop();
Symbol 1012 MovieClip Frame 20
this.stop();
Symbol 1012 MovieClip Frame 30
this.stop();
Symbol 1015 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 1015 MovieClip Frame 2
this.stop();
Symbol 1015 MovieClip Frame 10
this.stop();
Symbol 1016 MovieClip Frame 1
function SelectChar(charName) {
_parent.charDis.CharDisFn(1);
}
Instance of Symbol 1015 MovieClip in Symbol 1016 MovieClip Frame 1
onClipEvent (load) {
charName = 4;
}
Instance of Symbol 1015 MovieClip in Symbol 1016 MovieClip Frame 1
onClipEvent (load) {
charName = 3;
}
Instance of Symbol 1015 MovieClip in Symbol 1016 MovieClip Frame 1
onClipEvent (load) {
charName = 2;
}
Instance of Symbol 1015 MovieClip in Symbol 1016 MovieClip Frame 1
onClipEvent (load) {
charName = 1;
}
Symbol 1016 MovieClip Frame 5
this.stop();
Symbol 1017 Button
on (release) {
this.SelectMenu(0);
}
Symbol 1063 Button
on (release) {
_parent.SelectChar(-1);
}
Symbol 1064 Button
on (release) {
_parent.SelectChar(0);
}
Instance of Symbol 560 MovieClip "braid" in Symbol 1068 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 1071 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];
this.gotoAndStop("f" + _parent.charName);
Symbol 1071 MovieClip Frame 10
this.stop();
Symbol 1071 MovieClip Frame 20
this.stop();
Symbol 1071 MovieClip Frame 30
this.stop();
Symbol 1071 MovieClip Frame 40
this.stop();
Symbol 1072 MovieClip Frame 1
function SelectMenu(tempMenu) {
if (tempMenu == 0) {
if (nowMenu == "charSelect") {
sndBgm.stop();
this.gotoAndPlay("menu");
} else {
this.gotoAndPlay("rMenu");
}
}
if (tempMenu == "practice") {
sndBgm.stop();
_global.nextStage = "practice";
this.gotoAndPlay("selectCharFirst");
}
if (tempMenu == "test") {
_root.missionName = "SURVIVAL";
this.gotoAndPlay("survival");
}
if (tempMenu == "timeAttack") {
_root.missionName = "TIME ATTACK";
_global.nextStage = "timeAttack";
this.gotoAndPlay("timeAttack");
}
if (tempMenu == "option") {
this.gotoAndPlay("option");
}
if (tempMenu == "log") {
this.gotoAndPlay("log");
}
if (tempMenu == "credit") {
this.gotoAndPlay("credit");
}
nowMenu = tempMenu;
}
function SetMainChar(setName) {
_root.charName = setName;
setName = "char" + 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);
sndBgm.stop();
_root.gotoAndStop(_global.nextStage);
} else if (tempChar < 1) {
charName = null;
this.gotoAndStop("selectChar1");
} else {
charName = tempChar;
this.gotoAndStop("selectChar2");
}
}
nowMenu = 0;
sndBgm = new Sound(this);
charName = null;
Symbol 1072 MovieClip Frame 8
this.stop();
Instance of Symbol 891 MovieClip in Symbol 1072 MovieClip Frame 20
onClipEvent (load) {
mainMes = "CREDIT";
mes = "CREDIT";
}
Symbol 1072 MovieClip Frame 26
this.stop();
Instance of Symbol 891 MovieClip in Symbol 1072 MovieClip Frame 30
onClipEvent (load) {
mainMes = "OPTION";
mes = "OPTION";
}
Instance of Symbol 915 MovieClip in Symbol 1072 MovieClip Frame 30
on (press) {
this.inButtan.play();
}
Instance of Symbol 921 MovieClip in Symbol 1072 MovieClip Frame 30
on (press) {
this.inButtan.play();
}
Instance of Symbol 932 MovieClip in Symbol 1072 MovieClip Frame 30
on (press) {
this.inButtan.play();
}
Instance of Symbol 936 MovieClip in Symbol 1072 MovieClip Frame 30
on (press) {
this.inButtan.play();
}
Symbol 1072 MovieClip Frame 35
this.stop();
Symbol 1072 MovieClip Frame 41
this.stop();
Instance of Symbol 891 MovieClip in Symbol 1072 MovieClip Frame 45
onClipEvent (load) {
mainMes = "TIME ATTACK";
mes = "TIME ATTACK";
}
Symbol 1072 MovieClip Frame 50
this.stop();
Instance of Symbol 891 MovieClip in Symbol 1072 MovieClip Frame 55
onClipEvent (load) {
mainMes = "SURVIVAL";
mes = "SURVIVAL";
}
Symbol 1072 MovieClip Frame 60
this.stop();
Symbol 1072 MovieClip Frame 65
this.stop();
nowMenu = "charSelect";
Instance of Symbol 891 MovieClip in Symbol 1072 MovieClip Frame 65
onClipEvent (load) {
mainMes = "Select FRAME";
mes = "Select FRAME";
}
Symbol 1072 MovieClip Frame 70
this.stop();
Symbol 1072 MovieClip Frame 85
this.stop();
Symbol 1079 MovieClip Frame 1
moveX = (moveY = 0);
moveXext = (moveYext = Math.round(this._xscale / 10) / 10);
this.onEnterFrame = function () {
this._x = this._x - (moveX + (_root.mainChar.XnowSpeed * moveXext));
this._y = this._y - (moveY + (_root.mainChar.YnowSpeed * moveYext));
if (this._x <= -200) {
this._x = 790;
}
if (this._x >= 1000) {
this._x = -190;
}
if (this._y >= 750) {
this._y = -190;
}
if (this._y <= -200) {
this._y = 540;
}
};
Symbol 1082 MovieClip Frame 1
moveX = (moveY = 0);
moveXext = (moveYext = Math.round(this._xscale / 10) / 10);
this.onEnterFrame = function () {
this._x = this._x - (moveX + (_root.mainChar.XnowSpeed * moveXext));
this._y = this._y - (moveY + (_root.mainChar.YnowSpeed * moveYext));
if (this._x <= -200) {
this._x = 790;
}
if (this._x >= 1000) {
this._x = -190;
}
if (this._y >= 750) {
this._y = -190;
}
if (this._y <= -200) {
this._y = 540;
}
};
Symbol 1087 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 1089 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 1090 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 466 MovieClip in Symbol 1090 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
dmgType = 0;
efType = 0;
}
onClipEvent (load) {
dmgType = 0;
efType = 0;
}
Symbol 1094 MovieClip Frame 1
function warning(param) {
if (param == 1) {
misCount++;
this.gotoAndPlay(5);
} else {
misCount--;
}
}
misCount = 0;
this.stop();
Symbol 1094 MovieClip Frame 8
if (misCount > 0) {
this.gotoAndPlay("warningMisRoop");
} else {
this.gotoAndStop(1);
}
Symbol 1099 MovieClip Frame 1
function WeponSymbolChange(param) {
if (param) {
this.gotoAndPlay("b");
} else {
this.gotoAndPlay("s");
}
}
if (_global.keyModeChangeWepon) {
this._visible = false;
}
this.stop();
Symbol 1099 MovieClip Frame 15
this.stop();
Symbol 1099 MovieClip Frame 25
this.stop();
Symbol 1103 MovieClip Frame 1
if (_global.effectLv < 1) {
this.gotoAndStop(2);
}
this.stop();
Symbol 1103 MovieClip Frame 2
this.stop();
Symbol 1105 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 1107 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 1109 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 1111 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 1113 Button
on (rollOver) {
_root.mes.inMes.ShowHelpMes("helpEnd");
}
on (rollOut) {
_root.mes.inMes.ShowHelpMes();
}
on (release) {
this.ChangeStage("end");
}
Symbol 1115 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 1117 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 1119 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 1121 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 1123 Button
on (rollOver) {
_root.mes.inMes.ShowHelpMes("helpEnd");
}
on (rollOut) {
_root.mes.inMes.ShowHelpMes();
}
on (release) {
this.ChangeStage("end");
}
Symbol 1124 MovieClip Frame 1
function ShowMes(tempMes) {
if (tempMes == "end") {
_root.mes.inMes.ShowHelpMes();
} else if (tempMes) {
_root.mes.inMes.ShowHelpMes(tempMes);
}
}
function ChangeStage(tempStage) {
setEnemyFlg = 0;
if (tempStage == "end") {
this.RemoveAllEnemy(0);
this.RemoveCharMusic();
_root.gotoAndStop("menu");
} else if (tempStage == "move") {
_global.tempTutorialName = textList[_root.langage][0];
this.SetMoveTutorial();
_parent.play();
} else if (tempStage == "shot") {
_global.tempTutorialName = textList[_root.langage][1];
this.SetEnemy(tempStage);
_parent.play();
} else if (tempStage == "inFight") {
_global.tempTutorialName = textList[_root.langage][2];
this.SetEnemy(tempStage);
_parent.play();
} else if (tempStage == "gard") {
_global.tempTutorialName = textList[_root.langage][3];
this.SetGardTutorial();
_parent.play();
}
}
function RemoveCharMusic() {
theSound.stop();
_root.mainChar.removeMovieClip();
}
function SetEnemy(tempTMode) {
se.start(0, 1);
setEnemyFlg = false;
if (tempTMode != 0) {
_global.SetEnemyTempMode = tempTMode;
}
_global.setEnemyNo = 8;
var _local5 = 1;
var _local4 = 750;
var _local3 = 550;
while (_local5 < 9) {
enemyName = _local5 + 1;
_root.attachMovie("tutorial_enemy1", enemyName, _local5 + 220);
_local4 = (Math.random() * 300) + 300;
if (_local4 > 400) {
_local4 = _local4 + 150;
} else {
_local4 = _local4 - 150;
}
_local3 = (Math.random() * 300) + 100;
if (_local3 > 300) {
_local3 = _local3 + 150;
} else {
_local3 = _local3 - 150;
}
_root[enemyName]._x = _local4;
_root[enemyName]._y = _local3;
if (SetEnemyTempMode == "shot") {
_root[enemyName].shotHit = 1;
_root[enemyName].braidHit = 0;
} else if (SetEnemyTempMode == "inFight") {
_root[enemyName].shotHit = 0;
_root[enemyName].braidHit = 1;
}
_local5++;
}
}
function RemoveAllEnemy(raeTemp) {
if (((((raeTemp == 1) && (_global.tempTutorialName != "\u79FB\u52D5")) && (_global.tempTutorialName != "\u9632\u5FA1")) && (_global.tempTutorialName != "MOVE")) && (_global.tempTutorialName != "GURAD")) {
i = 1;
while (i < 9) {
enemyName = i + 1;
_root[enemyName].removeMe();
i++;
}
} else {
i = 221;
while (i <= 249) {
_root.attachMovie("removeItem", "remove", i);
i++;
}
}
_root.lerder0.lerder1.RemoveAllCoItem();
}
function ResetEnemy() {
_global.setEnemyNo--;
if (_global.setEnemyNo <= 0) {
setEnemyFlg = true;
setEnemyTime = getTimer() + setEnemyWait;
}
}
function SetMoveTutorial() {
if (_root.goal != undefined) {
goalX = (Math.random() * 3000) - 1500;
goalY = (Math.random() * 3000) - 1500;
_root.goal._x = goalX;
_root.goal._y = goalY;
_root.goal.gotoAndPlay(1);
} else {
_root.attachMovie("tutorial_moveGoal", "goal", 221);
goalX = (Math.random() * 3000) - 1500;
goalY = (Math.random() * 3000) - 1500;
_root.goal._x = goalX;
_root.goal._y = goalY;
}
}
function SetGardTutorial() {
_root.attachMovie("tutorial_shotItem", "item", 221);
}
textList = new Object();
textList.jp = new Array("\u79FB\u52D5", "\u5C04\u6483", "\u8FD1\u63A5", "\u9632\u5FA1");
textList.en = new Array("MOVE", "SHOOT", "INFIGHT", "GUARD");
setEnemyFlg = false;
setEnemyTime = 0;
setEnemyWait = 200;
se = new Sound(this);
se.attachSound("pipi");
this.onEnterFrame = function () {
if (setEnemyFlg == true) {
if (getTimer() > setEnemyTime) {
this.SetEnemy(0);
}
}
};
theSound = new Sound(_root);
gotoAndStop(_root.langage);
Symbol 1133 Button
on (release) {
_root.mes.inMes.ShowHelpMes2("normal");
_parent._parent.inMenu.RemoveAllEnemy(0);
_parent._parent.play();
}
Symbol 1135 Button
on (release) {
_root.mes.inMes.ShowHelpMes2("normal");
_parent._parent.inMenu.RemoveAllEnemy(0);
_parent._parent.play();
}
Symbol 1136 MovieClip Frame 1
gotoAndStop(_root.langage);
Symbol 1137 MovieClip Frame 4
if (_root.langage == "jp") {
tutorialName = _global.tempTutorialName + "\u8A13\u7DF4";
} else if (_root.langage == "en") {
tutorialName = _global.tempTutorialName;
}
Symbol 1137 MovieClip Frame 10
this.stop();
Symbol 1138 MovieClip Frame 1
function ChangeSWindow(tempMode) {
this.play();
}
Symbol 1138 MovieClip Frame 7
this.stop();
Symbol 1138 MovieClip Frame 11
this.stop();
Instance of Symbol 1124 MovieClip "inMenu" in Symbol 1138 MovieClip Frame 11
onClipEvent (load) {
this._visible = false;
}
Symbol 1138 MovieClip Frame 16
this.gotoAndStop(7);
Symbol 1158 MovieClip Frame 1
gotoAndStop(_root.langage);
Symbol 1163 MovieClip Frame 1
gotoAndStop(_root.langage);
Symbol 1168 MovieClip Frame 1
gotoAndStop(_root.langage);
Symbol 1175 MovieClip Frame 1
gotoAndStop(_root.langage);
Symbol 1176 MovieClip Frame 1
function ShowHelpMes(tempMes) {
if (tempMes == "helpMove") {
mes = textList[_root.langage][0];
} else if (tempMes == "helpShot") {
mes = textList[_root.langage][1];
} else if (tempMes == "helpInFight") {
mes = textList[_root.langage][2];
} else if (tempMes == "helpGard") {
mes = textList[_root.langage][3];
} else if (tempMes == "helpEnd") {
mes = textList[_root.langage][4];
} else {
mes = textList[_root.langage][5];
}
}
function ShowHelpMes2(tempMes) {
this.gotoAndPlay(tempMes);
}
textList = new Object();
textList.jp = new Array("\u57FA\u672C\u7684\u306A\u79FB\u52D5\u306E\u8A13\u7DF4\u3092\u884C\u3048\u307E\u3059", "\u5C04\u6483\u306E\u8A13\u7DF4\u3092\u884C\u3048\u307E\u3059", "\u8FD1\u63A5\u653B\u6483\u306E\u8A13\u7DF4\u3092\u884C\u3048\u307E\u3059", "\u9632\u5FA1\u3068\u56DE\u907F\u306E\u8A13\u7DF4\u3092\u884C\u3048\u307E\u3059", "\u8A13\u7DF4\u3092\u7D42\u4E86\u3057\u307E\u3059", "\u8A13\u7DF4\u3057\u305F\u3044\u9805\u76EE\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044");
textList.en = new Array("Training of the movement", "Training of the shooting", "Training of the infight", "Training of guard and evasion", "Finish training and back to menu", "Choose an item of the training");
this.ShowHelpMes();
Symbol 1176 MovieClip Frame 8
this.stop();
Symbol 1176 MovieClip Frame 17
this.stop();
Symbol 1176 MovieClip Frame 27
this.stop();
Symbol 1176 MovieClip Frame 37
this.stop();
Symbol 1176 MovieClip Frame 48
this.stop();
Symbol 1177 MovieClip Frame 7
this.stop();
Symbol 1179 MovieClip Frame 1
function ChangeAntiRadar(tempPar) {
clearPar = clearPar - (tempPar / 100);
if (clearPar < 0.1) {
clearPar = 0.1;
} else if (clearPar > radarPar) {
clearPar = radarPar;
}
}
function getCo(getName, x, y, symType) {
if ((Math.abs(_root.mainChar._x - x) > 320) || (Math.abs(_root.mainChar._y - y) > 240)) {
if (Math.random() < clearPar) {
var _local5 = ((_root.mainChar._x - x) / cf) * -1;
var _local4 = ((_root.mainChar._y - y) / cf) * -1;
this.attachMovie(symList[symType], getName, getName + 30);
this[getName]._x = _local5;
this[getName]._y = _local4;
this[getName]._xscale = (this[getName]._yscale = 100);
} else {
this[getName].removeMovieClip();
}
} else {
this[getName].removeMovieClip();
}
}
function RemoveCoItem(getName) {
this[getName].removeMovieClip();
}
function RemoveAllCoItem() {
var _local2;
_local2 = 0;
while (_local2 < 100) {
this.attachMovie("removeItem", "item", _local2);
_local2++;
}
}
function ChangeLerderArea() {
}
function changeArea(cfsize) {
}
cf1 = 10;
cf2 = 20;
cf3 = 50;
cf = cf1;
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 1183 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) - 10)) {
this._x = 640 + this._width;
}
if (this._x >= ((640 + this._width) + 10)) {
this._x = -this._width;
}
if (this._y <= ((-this._height) - 10)) {
this._y = 480 + this._height;
}
if (this._y >= ((480 + this._height) + 10)) {
this._y = -this._height;
}
};
Symbol 1185 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) - 10)) {
this._x = 640 + this._width;
}
if (this._x >= ((640 + this._width) + 10)) {
this._x = -this._width;
}
if (this._y <= ((-this._height) - 10)) {
this._y = 480 + this._height;
}
if (this._y >= ((480 + this._height) + 10)) {
this._y = -this._height;
}
};
Symbol 1191 MovieClip Frame 1
function HpSet() {
nowHp = (basicHp = _global.hp);
}
function GetHp(com) {
if (com == "per") {
per = (nowHp / basicHp) * 1000;
per = Math.floor(per) / 10;
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 _local4 = Math.round((getTimer() - time0) / 1000);
var _local2 = _local4 % 60;
if (_local2 < 10) {
_local2 = "0" + _local2;
}
var _local3 = (_local4 - _local2) / 60;
if (_local3 < 10) {
_local3 = "0" + _local3;
}
var _local5 = (_local3 + ":") + _local2;
_root.gameOverDisplay.missionName = missionName;
_root.gameOverDisplay.timeAttackTotalTime = _local5;
_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) {
this[breakTargetName]++;
score = score + param;
}
mode = 1;
charNameList = ["Lapis Prototype", "Lapis", "RedBeryl", "Zero Type 32C"];
missionName = "unknow";
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 1193 MovieClip Frame 1
this.onEnterFrame = function () {
this._rotation = this._rotation + 5;
};
Symbol 1199 MovieClip Frame 1
if (_global.keyModeChangeWepon != 1) {
_visible = 0;
}
Symbol 1199 MovieClip Frame 5
this._xscale = (this._yscale = _root.mainChar.changeWeponRange);
Symbol 1199 MovieClip Frame 7
this.stop();
Symbol 1203 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) / 0.01745329);
} else {
_visible = 0;
}
};
Symbol 1205 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) / 0.01745329);
} else {
_visible = 0;
}
};
Symbol 1205 MovieClip Frame 4
this.gotoAndPlay(2);
Symbol 1211 MovieClip Frame 1
function TimeCon(tempFlag) {
if (tempFlag) {
time0 = getTimer();
} else {
time0 = 0;
}
}
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) {
disTime = (time1 / 100) + ".00";
} else {
disTime = (time1 / 100) + "0";
}
} else {
disTime = time1 / 100;
}
}
};
Symbol 1221 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 1229 Button
on (release) {
this.gotoAndStop("first");
}
Symbol 1231 Button
on (release) {
_root.SoundStop();
_root.gotoAndStop("menu");
}
Symbol 1242 Button
on (release) {
_root.SoundStop();
_root.gotoAndStop("menu");
}
Symbol 1244 Button
on (release) {
_root.so.data.name = name;
this.gotoAndStop("connect");
}
Symbol 1247 Button
on (release) {
this.gotoAndStop("connect");
}
Symbol 1251 Button
on (release) {
_global.command = "read";
this.gotoAndStop("first");
}
Symbol 1252 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 1267 MovieClip Frame 1
_visible = 0;
if (_name == 1) {
this.play();
} else {
this.stop();
}
Symbol 1267 MovieClip Frame 2
_visible = 1;
Symbol 1267 MovieClip Frame 3
nextName = Number(_name);
nextName++;
_parent[nextName].gotoAndPlay(2);
Symbol 1267 MovieClip Frame 15
this.stop();
Symbol 1268 Button
on (release) {
_root.SoundStop();
_root.gotoAndStop("menu");
}
Symbol 1276 Button
on (release) {
this.NextData(1);
}
Symbol 1277 Button
on (release) {
this.NextData(0);
}
Instance of Symbol 1225 MovieClip "cgiBox" in Symbol 1280 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 1280 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)) {
this.gotoAndStop("rankIn");
} else if (score < Number(temp)) {
this.gotoAndStop("rankIn");
} else {
this.gotoAndStop("rankOut");
}
} else if (command == "errorchk") {
this.gotoAndStop("e1");
}
} else {
this.gotoAndStop("e1");
}
};
this.onEnterFrame = function () {
if (getTimer() > timeOver) {
this.gotoAndStop("e1");
}
};
this.stop();
Symbol 1280 MovieClip Frame 10
this.stop();
Symbol 1280 MovieClip Frame 20
if (_root.so.data.name != null) {
name = _root.so.data.name;
}
this.stop();
Symbol 1280 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") {
this.gotoAndStop("e2");
}
};
this.onEnterFrame = function () {
if (getTimer() > timeOver) {
this.gotoAndStop("e2");
}
};
this.stop();
Symbol 1280 MovieClip Frame 35
this.stop();
Symbol 1280 MovieClip Frame 45
this.stop();
Symbol 1280 MovieClip Frame 55
function LoadRankingData() {
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 _local3 = 2;
this[_local3].no = 1;
this[_local3].name = "Your best time";
if (_root.so.data.yourBestTime == null) {
this[_local3].time = "noData";
this[_local3].disPacName = "noData";
} else {
this[_local3].time = _root.so.data.yourBestTime;
this[_local3].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;
}
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();
Symbol 1288 Button
on (release) {
getURL ("http://nextframe.jp/flash/seventhsky_refine/seventhsky_refine.html");
}