Frame 1
function awCLASS(class, num) {
var str = null;
var cl;
if (num > 0) {
str = new Array();
cl = 0;
while (cl < num) {
str[cl] = new class();
cl++;
}
} else {
str = new class();
}
return(str);
}
function awRand(int_MaxNum) {
var rnd = Math.floor(Math.random() * int_MaxNum);
if (rnd >= int_MaxNum) {
rnd = int_MaxNum - 1;
}
return(rnd);
}
function awCheckVersion() {
var dmy;
var ver = getVersion();
if (ver == null) {
return(4);
}
dmy = ver.split(" ");
_root.AW_OS = dmy[0];
var v = dmy[1];
dmy = v.split(",");
_root.AW_VER = Number(dmy[0]);
_root.AW_MESSAGE = (("MACHINE [" + AW_OS) + "] / FLASH VERSION ") + _root.AW_VER;
return(_root.AW_VER);
}
function awLineCrossTest(ax1, ay1, ax2, ay2, bx1, by1, bx2, by2) {
ra1 = (ay1 + (((ay2 - ay1) / (ax2 - ax1)) * (bx1 - ax1))) - by1;
ra2 = (ay1 + (((ay2 - ay1) / (ax2 - ax1)) * (bx2 - ax1))) - by2;
rb1 = (by1 + (((by2 - by1) / (bx2 - bx1)) * (ax1 - bx1))) - ay1;
rb2 = (by1 + (((by2 - by1) / (bx2 - bx1)) * (ax2 - bx1))) - ay2;
if ((0 >= (ra1 * ra2)) && (0 >= (rb1 * rb2))) {
return(true);
}
return(false);
}
function awRotateZ(vx, vy, rot) {
var rr = ((rot * Math.PI) / 180);
_root.AW_GETROTATEZ_X = (Math.cos(rr) * vx) + (Math.sin(rr) * vy);
_root.AW_GETROTATEZ_Y = ((-Math.sin(rr)) * vx) + (Math.cos(rr) * vy);
}
function awGetRotateX(VOID) {
return(_root.AW_GETROTATEZ_X);
}
function awGetRotateY(VOID) {
return(_root.AW_GETROTATEZ_Y);
}
function _AWSOUNDBUFFER() {
var bFlag;
var mSBuf;
var mName;
}
function awSndInit() {
var i;
if (_root.bSnd) {
return(false);
}
i = 0;
while (i < AWMAXSOUNDBUFFER) {
_root.mSnd[i].bFlag = false;
_root.mSnd[i].mSBuf = new Sound();
_root.mSnd[i].mName = "";
i++;
}
_root.bSnd = true;
return(true);
}
function awSndAdd(id, name) {
if (!_root.bSnd) {
return(false);
}
if ((id < 0) || (id > (_root.AWMAXSOUNDBUFFER - 1))) {
return(false);
}
if (_root.mSnd[id].bFlag) {
return(false);
}
_root.mSnd[id].mName = name;
_root.mSnd[id].mSBuf.attachSound(name);
_root.mSnd[id].bFlag = true;
return(true);
}
function awSndPlay(id, loop) {
if (!_root.bSnd) {
return(false);
}
if ((id < 0) || (id > (AWMAXSOUNDBUFFER - 1))) {
return(false);
}
if (!_root.mSnd[id].bFlag) {
return(false);
}
if (loop) {
_root.mSnd[id].mSBuf.start(0, loop);
} else {
_root.mSnd[id].mSBuf.start();
}
}
function awSndStop(id) {
if (!_root.bSnd) {
return(false);
}
if ((id < 0) || (id > (AWMAXSOUNDBUFFER - 1))) {
return(false);
}
if (!_root.mSnd[id].bFlag) {
return(false);
}
_root.mSnd[id].mSBuf.stop(_root.mSnd[id].mName);
}
function awSndStopAll(VOID) {
var i;
if (!bSnd) {
return(undefined);
}
i = 0;
while (i < _root.AWMAXSOUNDBUFFER) {
if (_root.mSnd[i].bFlag) {
_root.mSnd[i].mSBuf.stop(_root.mSnd[i].mName);
}
i++;
}
}
function awImgInit(body) {
var i;
if (_root.D_INIT) {
awImgFlash();
return(true);
}
i = 0;
while (i < D_MAXOBJECT) {
_root.D_USED[i] = false;
_root.D_DEPTH[i] = i;
i++;
}
if (body != null) {
D_BODY = body;
}
_root.D_INIT = true;
return(true);
}
function awImgFlash() {
var i;
i = 0;
while (i < _root.D_MAXOBJECT) {
if (_root.D_USED[i]) {
var obj = eval ((D_BODY + ".D") + i);
removeMovieClip(obj);
_root.D_USED[i] = false;
}
i++;
}
return(true);
}
function awImgDel(id) {
if (!_root.D_USED[i]) {
return(false);
}
var obj = eval ((D_BODY + ".D") + i);
removeMovieClip(obj);
_root.D_USED[i] = false;
return(true);
}
function awImgAdd(id, image) {
if ((id < 0) && (id > (_root.D_MAXOBJECT - 1))) {
return(false);
}
if (_root.D_USED[id]) {
return(false);
}
D_BODY.attachMovie(image, "D" + id, id);
var obj = eval ((D_BODY + ".D") + id);
if (!obj) {
return(false);
}
obj._visible = false;
_root.D_USED[id] = true;
_root.D_DEPTH[id] = id;
return(true);
}
function awImgAddURL(id, url) {
if ((id < 0) && (id > (_root.D_MAXOBJECT - 1))) {
return(false);
}
if (_root.D_USED[id]) {
return(false);
}
if (url) {
D_BODY.createEmptyMovieClip("D" + id, id);
loadMovie (url, eval ((D_BODY + ".D") + id));
}
var obj = eval ((D_BODY + ".D") + id);
obj._visible = false;
_root.D_USED[id] = true;
_root.D_DEPTH[id] = id;
return(true);
}
function awImgClear() {
var i;
i = 0;
while (i < _root.D_MAXOBJECT) {
if (_root.D_USED[i]) {
var obj = eval ((D_BODY + ".D") + i);
obj._visible = false;
}
i++;
}
return(true);
}
function awImgPut(id, x, y) {
if (!_root.D_USED[id]) {
return(false);
}
var obj = eval ((D_BODY + ".D") + id);
obj._visible = true;
obj._x = x;
obj._y = y;
}
function awImgDrawEnd() {
return(true);
}
function awImgGet(id) {
if (!_root.D_USED[id]) {
return(null);
}
return(eval ((D_BODY + ".D") + id));
}
function awImgGetPercent(id) {
if (!_root.D_USED[id]) {
return(null);
}
var m = eval ((D_BODY + ".D") + id);
if (m.getBytesTotal() < 1) {
return(0);
}
return(Math.floor((m.getBytesLoaded() / m.getBytesTotal()) * 100));
}
function awImgSwapDepthForTarget(id1, id2) {
var m1 = eval ((D_BODY + ".D") + id1);
var m2 = eval ((D_BODY + ".D") + id2);
m1.swapDepths(m2);
var n = _root.D_DEPTH[id1];
_root.D_DEPTH[id1] = _root.D_DEPTH[id2];
_root.D_DEPTH[id2] = n;
return(true);
}
function awImgGetDepth(id) {
return(_root.D_DEPTH[id]);
}
function awImgSetDepth(id, depth) {
var m = eval ((D_BODY + ".D") + id);
m.swapDepths(depth);
_root.D_DEPTH[id] = depth;
return(true);
}
function awImgAutoDepthForYAxis(start_id, end_id) {
var i;
var j;
var k;
var n = ((end_id - start_id) + 1);
i = 0;
while (i < n) {
_root.D_DEPTH[i + start_id] = i + start_id;
i++;
}
j = 0;
while (j < n) {
i = 0;
while (i < n) {
if (i == j) {
} else if (_root.awImgGet(j + start_id)._y > _root.awImgGet(i + start_id)._y) {
if (_root.D_DEPTH[j + start_id] < _root.D_DEPTH[i + start_id]) {
k = _root.D_DEPTH[j + start_id];
_root.D_DEPTH[j + start_id] = _root.D_DEPTH[i + start_id];
_root.D_DEPTH[i + start_id] = k;
}
} else if (_root.D_DEPTH[j + start_id] > _root.D_DEPTH[i + start_id]) {
k = _root.D_DEPTH[j + start_id];
_root.D_DEPTH[j + start_id] = _root.D_DEPTH[i + start_id];
_root.D_DEPTH[i + start_id] = k;
}
i++;
}
j++;
}
i = 0;
while (i < n) {
_root.awImgSetDepth(i + start_id, _root.D_DEPTH[i + start_id]);
i++;
}
return(true);
}
function awStrLen(str) {
var s = new String(str);
return(s.length);
}
function awStrMid(str, start, n) {
var s = new String(str);
return(s.slice(start - 1, (start + n) - 1));
}
function awStrLeft(str, n) {
var s = new String(str);
return(s.slice(0, n));
}
function awStrRight(str, n) {
var s = new String(str);
return(s.slice(s.length - n, s.length));
}
function awStrToNum(str) {
return(Number(str));
}
function OBJECT() {
var iState;
var iItem;
var fX;
var fY;
var fZ;
var fMX;
var fMY;
var fMZ;
var fSpeed;
var iCount;
}
function SetScreen() {
_root.M_MAIN.M_M_TIMER.gotoAndStop(Math.floor(((_root.iTimer * 100) / _root.MAXTIME) + 1));
_root.M_MAIN.M_SCORE.M_M_NUM0.gotoAndStop(Math.floor(_root.iScore % 10) + 2);
if (_root.iScore >= 10) {
_root.M_MAIN.M_SCORE.M_M_NUM1.gotoAndStop(Math.floor((_root.iScore / 10) % 10) + 2);
} else {
_root.M_MAIN.M_SCORE.M_M_NUM1.gotoAndStop(1);
}
}
function SetFace(f) {
_root.M_MAIN.M_CHARA.gotoAndStop(f);
}
function Init() {
_root.SetScreen();
_root.SetFace(2);
var i;
i = 0;
while (i < _root.MAXOBJ) {
_root.mObj[i].iState = _root.OBJ_EMPTY;
_root.mObj[i].iItem = 0;
_root.mObj[i].fX = 0;
_root.mObj[i].fY = 0;
_root.mObj[i].fZ = 0;
_root.mObj[i].fMX = 0;
_root.mObj[i].fMY = 0;
_root.mObj[i].fMZ = 0;
_root.mObj[i].iCount = 0;
var obj = eval ("_root.M_MAIN.M_OBJ" + i);
obj._visible = false;
var obj2 = eval (("_root.M_MAIN.M_OBJ" + i) + "B");
obj2._visible = false;
var obj3 = eval ("_root.M_MAIN.M_SHADOW" + i);
obj3._visible = false;
i++;
}
_root.M_MAIN.M_ASAHI._x = _root.iAsaPosX;
_root.M_MAIN.M_ASAHI._y = _root.iAsaPosY;
}
function SetSerif(serif) {
_root.M_MAIN.M_SERIF.gotoAndPlay("START");
_root.M_MAIN.M_SERIF.M_M_SERIF.gotoAndStop(serif);
}
function MoveStart(pos) {
if (_root.iAsaState != _root.ASA_NOMOVE) {
return(undefined);
}
_root.iAsaState = _root.ASA_MOVE;
_root.iAsaMoveID = pos;
_root.iAsaCount = 0;
}
function MoveAsahi() {
_root.iAsaCount = _root.iAsaCount + 15;
if (_root.iAsaCount >= 90) {
return(true);
}
var w = (_root.POS_X[_root.iAsaMoveID] - _root.iAsaPosX);
var h = (_root.POS_Y[_root.iAsaMoveID] - _root.iAsaPosY);
_root.M_MAIN.M_ASAHI._x = _root.iAsaPosX + (Math.sin((_root.iAsaCount * Math.PI) / 180) * w);
_root.M_MAIN.M_ASAHI._y = _root.iAsaPosY + (Math.sin((_root.iAsaCount * Math.PI) / 180) * h);
return(false);
}
function GetObjNum() {
var i;
var j = 0;
i = 0;
while (i < _root.MAXOBJ) {
if (_root.mObj[i].iState != _root.OBJ_EMPTY) {
j++;
}
i++;
}
return(j);
}
function AddObj() {
_root.iAddWait--;
if (_root.iAddWait > 0) {
return(undefined);
}
var n = _root.GetObjNum();
if (_root.iScore < 3) {
_root.iAddWait = 40;
} else if (_root.iScore < 6) {
_root.iAddWait = 32;
} else if (_root.iScore < 15) {
_root.iAddWait = 24;
} else if (_root.iScore < 30) {
_root.iAddWait = 16;
} else {
_root.iAddWait = 8;
}
var i;
i = 0;
while (i < _root.MAXOBJ) {
if (_root.mObj[i].iState == _root.OBJ_EMPTY) {
break;
}
i++;
}
if (i >= _root.MAXOBJ) {
return(false);
}
_root.awSndPlay(17);
var item;
if (_root.iScore < 10) {
_root.mObj[i].iItem = 0;
} else {
var r = _root.awRand(100);
if (r < 60) {
_root.mObj[i].iItem = 0;
} else if (r < 72) {
_root.mObj[i].iItem = 1;
} else if (r < 85) {
_root.mObj[i].iItem = 2;
} else {
_root.mObj[i].iItem = 3;
}
}
var ene = _root.awRand(4);
var chara = eval ("_root.M_MAIN.M_M_ENEMY" + ene);
chara.gotoAndPlay("THROW");
var recv = _root.awRand(4);
_root.mObj[i].iState = _root.OBJ_THROW;
_root.mObj[i].fX = _root.THROW_X[ene];
_root.mObj[i].fY = _root.THROW_Y[ene];
_root.mObj[i].fZ = 40;
_root.mObj[i].iCount = 0;
var w = (_root.RECV_X[recv] - _root.THROW_X[ene]);
var h = (_root.RECV_Y[recv] - _root.THROW_Y[ene]);
var len = Math.sqrt((w * w) + (h * h));
_root.mObj[i].fMX = w / len;
_root.mObj[i].fMY = h / len;
_root.mObj[i].fMZ = 8;
_root.mObj[i].fSpeed = 11;
var obj = eval ("_root.M_MAIN.M_OBJ" + i);
obj.gotoAndStop(_root.mObj[i].iItem + 1);
obj._visible = true;
obj._alpha = 100;
obj._x = _root.mObj[i].fX;
obj._y = _root.mObj[i].fY - _root.mObj[i].fZ;
obj._rotation = (Math.atan2(h, w) * 180) / Math.PI;
var obj2 = eval (("_root.M_MAIN.M_OBJ" + i) + "B");
obj2.gotoAndStop(_root.mObj[i].iItem + 1);
obj2._alpha = 100;
obj2._x = _root.mObj[i].fX;
obj2._y = _root.mObj[i].fY - _root.mObj[i].fZ;
obj2._rotation = (Math.atan2(h, w) * 180) / Math.PI;
var obj3 = eval ("_root.M_MAIN.M_SHADOW" + i);
obj3._visible = true;
obj3._alpha = 100;
obj3._x = _root.mObj[i].fX;
obj3._y = _root.mObj[i].fY;
}
play();
_root.NULL = 0;
_root.UP = 1;
_root.RIGHT = 2;
_root.DOWN = 3;
_root.LEFT = 4;
_root.A = 10;
_root.B = 11;
_root.C = 12;
_root.D = 13;
_root.E = 14;
_root.F = 15;
AW_OS = "";
AW_VER = 4;
AW_MESSAGE = "YOUR MACHINE [ UNKNOW ] / FLASH VERSION 4";
AW_GETROTATEZ_X = 0;
AW_GETROTATEZ_Y = 0;
awCheckVersion(0);
Stage.scaleMode = "exactFit";
Stage.showMenu = "false";
_root.awSndStopAll();
AWMAXSOUNDBUFFER = 64;
bSnd = false;
mSnd = awCLASS(_AWSOUNDBUFFER, AWMAXSOUNDBUFFER);
if (!_root.D_INIT) {
_root.D_MAXOBJECT = 1024;
_root.D_BODY = _root;
_root.D_USED = new Array();
_root.D_DEPTH = new Array();
_root.D_INIT = false;
}
var MAXOBJ = 16;
var MAXTIME = 1200;
var POS_X = [58, 125, 192, 259];
var POS_Y = [205, 197, 197, 205];
var THROW_X = [58, 121, 192, 259];
var THROW_Y = [468, 468, 468, 468];
var RECV_X = [50, 122, 194, 266];
var RECV_Y = [199, 190, 190, 199];
var OBJ_EMPTY = 0;
var OBJ_THROW = 1;
var OBJ_RECIEVE = 2;
var OBJ_DAMAGE = 3;
var ASA_NOMOVE = 0;
var ASA_MOVE = 1;
var ASA_ATACK = 2;
var ASA_DAMAGE = 3;
var iScore = 0;
var iTimer = MAXTIME;
var iHitCount = 0;
var iAddWait = 0;
var iAsaCount = 0;
var iAsaPosID = -1;
var iAsaMoveID = -1;
var iAsaPosX = 159;
var iAsaPosY = 242;
var iAsaState = ASA_NOMOVE;
var mObj = _root.awCLASS(OBJECT, MAXOBJ);
_root.awSndInit();
_root.awSndAdd(0, "T000");
_root.awSndAdd(1, "T001");
_root.awSndAdd(2, "T002");
_root.awSndAdd(3, "T003");
_root.awSndAdd(10, "M010");
_root.awSndAdd(11, "M011");
_root.awSndAdd(12, "M012");
_root.awSndAdd(13, "M013");
_root.awSndAdd(14, "M014");
_root.awSndAdd(15, "M015");
_root.awSndAdd(16, "M016");
_root.awSndAdd(17, "M017");
_root.awSndAdd(18, "M018");
_root.awSndAdd(20, "R020");
_root.awSndAdd(21, "R021");
_root.awSndAdd(22, "R022");
_root.awSndAdd(23, "R023");
_root.awSndAdd(24, "R024");
Instance of Symbol 28 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.PERCENT = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_root.DATASIZE = (_root.getBytesLoaded() + "\uFF0F") + _root.getBytesTotal();
_root.M_PERCENT_MATER._width = _root.PERCENT * 1.28;
}
Frame 4
if (_framesloaded < _totalframes) {
_root.gotoAndPlay(2);
} else if (_root.AW_VER < 6) {
_root.gotoAndPlay(5);
} else {
_root.gotoAndPlay("START");
}
Frame 5
getURL ("flashget.htm", "_self");
Frame 8
stop();
Frame 9
gotoAndPlay (8);
Frame 10
_root.iScore = 0;
_root.iTimer = _root.MAXTIME;
_root.iHitCount = 0;
_root.iAddWait = 0;
_root.iAsaCount = 0;
_root.iAsaPosID = -1;
_root.iAsaMoveID = -1;
_root.iAsaPosX = 159;
_root.iAsaPosY = 242;
_root.iAsaState = _root.ASA_NOMOVE;
gotoAndStop (15);
Frame 15
stop();
Frame 19
gotoAndStop (15);
Frame 24
gotoAndStop (20);
Frame 29
gotoAndStop (25);
Symbol 64 Button
on (release) {
_root.awSndPlay(2);
gotoAndPlay (52);
}
Symbol 65 MovieClip Frame 14
_root.awSndPlay(3);
Symbol 65 MovieClip Frame 41
_root.awSndPlay(1);
Symbol 65 MovieClip Frame 51
_root.awSndPlay(0);
stop();
Symbol 65 MovieClip Frame 63
_root.gotoAndStop("MAIN");
Symbol 74 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 6
play();
Symbol 135 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 6
play();
Symbol 145 MovieClip Frame 14
gotoAndStop (1);
Symbol 145 MovieClip Frame 15
play();
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 5
play();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 5
play();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 5
play();
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 5
play();
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 6
play();
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 6
play();
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 6
play();
Symbol 187 MovieClip Frame 63
_parent.gotoAndPlay("END");
stop();
Symbol 188 MovieClip Frame 1
_root.Init();
Symbol 188 MovieClip Frame 22
_root.awSndPlay(14);
_root.SetSerif(1);
Symbol 188 MovieClip Frame 48
_root.MoveStart(2);
stop();
Instance of Symbol 161 MovieClip in Symbol 188 MovieClip Frame 48
onClipEvent (enterFrame) {
if (_root.MoveAsahi()) {
_parent.gotoAndPlay("NEXT");
}
}
Symbol 188 MovieClip Frame 53
_root.awSndPlay(15);
Symbol 188 MovieClip Frame 78
_root.awSndPlay(15);
Symbol 188 MovieClip Frame 103
_root.awSndPlay(15);
Symbol 188 MovieClip Frame 128
_root.awSndPlay(13);
Symbol 188 MovieClip Frame 138
_root.awSndPlay(10, 999);
stop();
Instance of Symbol 174 MovieClip in Symbol 188 MovieClip Frame 138
onClipEvent (enterFrame) {
var i;
if (_root.iTimer > 0) {
_root.iTimer--;
if (_root.iTimer < 1) {
_root.awSndStop(10);
_root.awSndPlay(16);
_root.M_MAIN.M_END.gotoAndPlay("START");
}
switch (_root.iAsaState) {
case _root.ASA_NOMOVE :
i = 0;
while (i < _root.MAXOBJ) {
if (_root.mObj[i].iState == _root.OBJ_THROW) {
if (((((_root.POS_X[_root.iAsaPosID] - 35) <= _root.mObj[i].fX) && ((_root.POS_X[_root.iAsaPosID] + 35) >= _root.mObj[i].fX)) && ((_root.POS_Y[_root.iAsaPosID] + 0) <= _root.mObj[i].fY)) && ((_root.POS_Y[_root.iAsaPosID] + 25) >= _root.mObj[i].fY)) {
if ((_root.mObj[i].iItem == 0) || (Key.isDown(16))) {
if (_root.mObj[i].iItem == 0) {
_root.iScore++;
_root.awSndPlay(11);
} else {
_root.awSndPlay(18);
}
_root.M_MAIN.M_ASAHI.gotoAndPlay("SHOT");
_root.iAsaState = _root.ASA_ATACK;
_root.iAsaCount = 9;
_root.M_MAIN.M_HIT.gotoAndPlay("START");
_root.M_MAIN.M_HIT._x = _root.mObj[i].fX;
_root.M_MAIN.M_HIT._y = _root.mObj[i].fY - _root.mObj[i].fZ;
_root.iHitCount++;
if (_root.iHitCount >= 3) {
_root.iHitCount = 0;
_root.M_MAIN.M_SERIF.gotoAndPlay("START");
_root.M_MAIN.M_SERIF.M_M_SERIF.gotoAndStop(4 + _root.awRand(2));
_root.M_MAIN.M_CHARA.gotoAndStop(3);
} else {
_root.M_MAIN.M_CHARA.gotoAndStop(2);
}
var to = _root.awRand(4);
var w = (_root.THROW_X[to] - _root.mObj[i].fX);
var h = (_root.THROW_Y[to] - (_root.mObj[i].fY - _root.mObj[i].fZ));
var len = Math.sqrt((w * w) + (h * h));
_root.mObj[i].fMX = w / len;
_root.mObj[i].fMY = h / len;
_root.mObj[i].fMZ = 8;
_root.mObj[i].fSpeed = 6;
_root.mObj[i].iCount = 0;
_root.mObj[i].iState = _root.OBJ_RECIEVE;
var obj = eval ("_root.M_MAIN.M_OBJ" + i);
obj.gotoAndStop(_root.mObj[i].iItem + 11);
obj._rotation = (Math.atan2(h, w) * 180) / Math.PI;
} else {
_root.awSndPlay(12);
_root.iScore--;
if (_root.iScore < 0) {
_root.iScore = 0;
}
_root.M_MAIN.M_ASAHI.gotoAndPlay("DAMAGE");
_root.iAsaState = _root.ASA_DAMAGE;
_root.iAsaCount = 10;
_root.M_MAIN.M_DAMAGE.gotoAndPlay("START");
_root.M_MAIN.M_DAMAGE._x = _root.mObj[i].fX;
_root.M_MAIN.M_DAMAGE._y = _root.mObj[i].fY - _root.mObj[i].fZ;
_root.iHitCount = 0;
_root.M_MAIN.M_SERIF.gotoAndPlay("START");
_root.M_MAIN.M_SERIF.M_M_SERIF.gotoAndStop(2 + _root.awRand(2));
_root.M_MAIN.M_CHARA.gotoAndStop(1);
var r = _root.awRand(360);
_root.mObj[i].fMX = Math.cos((r * Math.PI) / 180);
_root.mObj[i].fMY = Math.sin((r * Math.PI) / 180);
_root.mObj[i].fSpeed = 4;
_root.mObj[i].fMZ = 8 + _root.awRand(8);
_root.mObj[i].iCount = 100;
_root.mObj[i].iState = _root.OBJ_DAMAGE;
}
break;
}
}
i++;
}
if (Key.isDown(37)) {
if (_root.iAsaPosID > 0) {
_root.MoveStart(_root.iAsaPosID - 1);
}
}
if (Key.isDown(39)) {
if (_root.iAsaPosID < 3) {
_root.MoveStart(_root.iAsaPosID + 1);
}
}
break;
case _root.ASA_MOVE :
if (_root.MoveAsahi()) {
_root.iAsaState = _root.ASA_NOMOVE;
_root.iAsaCount = 0;
_root.iAsaPosID = _root.iAsaMoveID;
_root.iAsaPosX = _root.POS_X[_root.iAsaPosID];
_root.iAsaPosY = _root.POS_Y[_root.iAsaPosID];
_root.M_MAIN.M_ASAHI._x = _root.iAsaPosX;
_root.M_MAIN.M_ASAHI._y = _root.iAsaPosY;
break;
}
break;
case _root.ASA_ATACK :
_root.iAsaCount--;
if (_root.iAsaCount < 1) {
_root.iAsaState = _root.ASA_NOMOVE;
}
break;
case _root.ASA_DAMAGE :
_root.iAsaCount--;
if (_root.iAsaCount >= 1) {
break;
}
_root.iAsaState = _root.ASA_NOMOVE;
}
_root.AddObj();
}
i = 0;
while (i < _root.MAXOBJ) {
var obj1 = eval ("_root.M_MAIN.M_OBJ" + i);
var obj2 = eval (("_root.M_MAIN.M_OBJ" + i) + "B");
var obj3 = eval ("_root.M_MAIN.M_SHADOW" + i);
switch (_root.mObj[i].iState) {
case _root.OBJ_THROW :
_root.mObj[i].fX = _root.mObj[i].fX + (_root.mObj[i].fMX * _root.mObj[i].fSpeed);
_root.mObj[i].fY = _root.mObj[i].fY + (_root.mObj[i].fMY * _root.mObj[i].fSpeed);
_root.mObj[i].fMZ = _root.mObj[i].fMZ - 0.38;
_root.mObj[i].fZ = _root.mObj[i].fZ + _root.mObj[i].fMZ;
if (_root.mObj[i].fZ < 0) {
_root.mObj[i].fMZ = (-_root.mObj[i].fMZ) / 2;
_root.mObj[i].fZ = _root.mObj[i].fMZ;
if (_root.mObj[i].iCount < 1) {
_root.mObj[i].iCount = 100;
}
}
_root.mObj[i].fSpeed = _root.mObj[i].fSpeed - 0.16;
if (_root.mObj[i].fSpeed < 5) {
_root.mObj[i].fSpeed = 5;
}
if (_root.mObj[i].fY < 197) {
obj1._visible = false;
obj2._visible = true;
}
if (_root.mObj[i].iCount > 0) {
_root.mObj[i].iCount = _root.mObj[i].iCount - 8;
if (_root.mObj[i].iCount < 1) {
_root.mObj[i].iState = _root.OBJ_EMPTY;
obj1._visible = false;
obj2._visible = false;
obj3._visible = false;
break;
}
obj1._alpha = _root.mObj[i].iCount;
obj2._alpha = _root.mObj[i].iCount;
obj3._alpha = _root.mObj[i].iCount;
}
break;
case _root.OBJ_RECIEVE :
_root.mObj[i].fX = _root.mObj[i].fX + (_root.mObj[i].fMX * _root.mObj[i].fSpeed);
_root.mObj[i].fY = _root.mObj[i].fY + (_root.mObj[i].fMY * _root.mObj[i].fSpeed);
_root.mObj[i].fMZ = _root.mObj[i].fMZ - 0.3;
_root.mObj[i].fZ = _root.mObj[i].fZ + _root.mObj[i].fMZ;
if (_root.mObj[i].fZ < 0) {
_root.mObj[i].fMZ = (-_root.mObj[i].fMZ) / 2;
_root.mObj[i].fZ = _root.mObj[i].fMZ;
if (_root.mObj[i].iCount < 1) {
_root.mObj[i].iCount = 100;
}
}
_root.mObj[i].fSpeed = _root.mObj[i].fSpeed - 0.1;
if (_root.mObj[i].fSpeed < 4) {
_root.mObj[i].fSpeed = 4;
}
if (_root.mObj[i].iCount > 0) {
_root.mObj[i].iCount = _root.mObj[i].iCount - 8;
if (_root.mObj[i].iCount < 1) {
_root.mObj[i].iState = _root.OBJ_EMPTY;
obj1._visible = false;
obj2._visible = false;
obj3._visible = false;
break;
}
obj1._alpha = _root.mObj[i].iCount;
obj2._alpha = _root.mObj[i].iCount;
obj3._alpha = _root.mObj[i].iCount;
}
break;
case _root.OBJ_DAMAGE :
_root.mObj[i].fX = _root.mObj[i].fX + (_root.mObj[i].fMX * _root.mObj[i].fSpeed);
_root.mObj[i].fY = _root.mObj[i].fY + (_root.mObj[i].fMY * _root.mObj[i].fSpeed);
_root.mObj[i].fMZ = _root.mObj[i].fMZ - 1;
_root.mObj[i].fZ = _root.mObj[i].fZ + _root.mObj[i].fMZ;
if (_root.mObj[i].fZ < 0) {
_root.mObj[i].fMZ = (-_root.mObj[i].fMZ) / 2;
_root.mObj[i].fZ = _root.mObj[i].fMZ;
}
_root.mObj[i].fSpeed = _root.mObj[i].fSpeed - 0.1;
if (_root.mObj[i].fSpeed < 4) {
_root.mObj[i].fSpeed = 4;
}
if (_root.mObj[i].fY < 197) {
obj1._visible = false;
obj2._visible = true;
}
if (_root.mObj[i].iCount <= 0) {
break;
}
_root.mObj[i].iCount = _root.mObj[i].iCount - 4;
if (_root.mObj[i].iCount < 1) {
_root.mObj[i].iState = _root.OBJ_EMPTY;
obj1._visible = false;
obj2._visible = false;
obj3._visible = false;
} else {
obj1._alpha = _root.mObj[i].iCount;
obj2._alpha = _root.mObj[i].iCount;
obj3._alpha = _root.mObj[i].iCount;
}
}
obj1._x = _root.mObj[i].fX;
obj1._y = _root.mObj[i].fY - _root.mObj[i].fZ;
obj2._x = _root.mObj[i].fX;
obj2._y = _root.mObj[i].fY - _root.mObj[i].fZ;
obj3._x = _root.mObj[i].fX;
obj3._y = _root.mObj[i].fY;
i++;
}
_root.SetScreen();
}
Symbol 188 MovieClip Frame 143
_root.awSndPlay(14);
_root.M_MAIN.M_SERIF.gotoAndPlay("START");
_root.M_MAIN.M_SERIF.M_M_SERIF.gotoAndStop(6);
_root.M_MAIN.M_CHARA.gotoAndStop(3);
Symbol 188 MovieClip Frame 190
_root.gotoAndStop("RESULT");
stop();
Symbol 218 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 1
stop();
Symbol 252 Button
on (release) {
_root.awSndPlay(2);
gotoAndPlay (110);
}
Symbol 253 MovieClip Frame 1
var res;
if (_root.iScore < 15) {
res = 0;
} else if (_root.iScore < 25) {
res = 1;
} else if (_root.iScore < 35) {
res = 2;
} else {
res = 3;
}
Symbol 253 MovieClip Frame 11
_root.awSndPlay(17);
Symbol 253 MovieClip Frame 21
M_SCORE.M_R_NUM0.gotoAndStop((_root.iScore % 10) + 2);
if (_root.iScore >= 10) {
M_SCORE.M_R_NUM1.gotoAndStop((Math.floor(_root.iScore / 10) % 10) + 2);
}
_root.awSndPlay(22);
Symbol 253 MovieClip Frame 32
_root.awSndPlay(23);
Symbol 253 MovieClip Frame 39
_root.awSndPlay(23);
Symbol 253 MovieClip Frame 46
_root.awSndPlay(23);
Symbol 253 MovieClip Frame 58
M_R_CHARA.gotoAndStop(2);
Symbol 253 MovieClip Frame 70
var res_cnt = -1;
var move = 40;
var pos_x = [154, 250, 348];
stop();
Instance of Symbol 235 MovieClip in Symbol 253 MovieClip Frame 70
onClipEvent (enterFrame) {
_parent.move = _parent.move - 6;
if (_parent.move < 1) {
_parent.move = 100;
_parent.res_cnt++;
if (_parent.res_cnt >= _parent.res) {
_parent.gotoAndPlay("NEXT");
return(undefined);
}
if (_parent.res_cnt >= 0) {
var obj = eval ("_parent.M_R_STAR" + _parent.res_cnt);
obj.gotoAndStop(2);
_root.awSndPlay(24);
}
}
if (_parent.res_cnt >= 0) {
var obj = eval ("_parent.M_R_STAR" + _parent.res_cnt);
_parent.M_R_FLASH._x = obj._x;
_parent.M_R_FLASH._y = obj._y;
_parent.M_R_FLASH._alpha = (1 - Math.cos((((_parent.move * 90) / 100) * Math.PI) / 180)) * 100;
_parent.M_R_FLASH._yscale = (_parent.M_R_FLASH._xscale = (1 + Math.cos((((_parent.move * 90) / 100) * Math.PI) / 180)) * 100);
}
}
Symbol 253 MovieClip Frame 85
M_R_MSG.gotoAndStop(res + 1);
switch (res) {
case 0 :
case 1 :
M_R_CHARA.gotoAndStop(1);
_root.awSndPlay(20);
break;
case 2 :
_root.awSndPlay(21);
break;
case 3 :
M_R_CHARA.gotoAndStop(3);
_root.awSndPlay(21);
}
Symbol 253 MovieClip Frame 105
stop();
Symbol 253 MovieClip Frame 118
_root.gotoAndPlay("START");
stop();