Frame 1
stop();
function randomizer(min, max) {
ans = (Math.random() * (max - min)) + min;
return(ans);
}
function intrandomizer(min, max) {
ans = Math.floor((Math.random() * (max - min)) + min);
return(ans);
}
function attaching(ID, attachx, attachy) {
_global.attachcount++;
attachObject = "object" + _global.attachcount;
_root.attachMovie(ID, attachObject, _global.attachcount);
_root[attachObject]._x = attachx;
_root[attachObject]._y = attachy;
}
Instance of Symbol 29 MovieClip in Frame 1
on (press) {
_root.block.flag = 1;
}
Frame 2
_global.finishflag = 0;
stop();
Instance of Symbol 18 MovieClip in Frame 2
onClipEvent (load) {
_global.levelcount = 1;
encount = 0;
_root.level = "level" + levelcount;
timer = 0;
temp = 0;
finish = 0;
_root.score = 0;
}
onClipEvent (enterFrame) {
timer++;
encount++;
finish = 0;
if ((timer > 300) && (_global.finishflag == 0)) {
_global.levelcount++;
_root.level = "level" + levelcount;
timer = 0;
}
if (((30 - _global.levelcount) <= encount) && (_global.finishflag == 0)) {
temp = _root.intrandomizer(0, 36);
for(;;){
if (_root[temp]._currentframe == 1) {
i = 0;
// unexpected jump
}
if (temp == 36) {
temp = 1;
} else {
temp++;
}
if (i >= 36) {
finish = 1;
break;
}
i++;
};
if (finish == 0) {
_root[temp].gotoAndPlay(currentframe + 1);
encount = 0;
}
}
if (_global.finishflag == 1) {
i = 1;
while (i <= 36) {
if (_root[i]._currentframe != 1) {
_root[i].gotoAndPlay(31);
}
_global.finishflag = 2;
i++;
}
} else if (_global.finishflag == 2) {
counter++;
if (counter == 30) {
_global.finishflag = 0;
_root.gotoAndPlay(3);
}
}
}
Instance of Symbol 18 MovieClip in Frame 2
onClipEvent (load) {
sounder = new Sound(this);
sounder.attachSound("bgm1");
sounder.setVolume(30);
sounder.start(0, 999);
}
Instance of Symbol 18 MovieClip in Frame 2
onClipEvent (load) {
timing = _root.intrandomizer(100, 50);
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (timing == count) {
_root.attaching("light2", 173, 16.3);
timing = _root.intrandomizer(100, 50);
count = 0;
}
}
Instance of Symbol 18 MovieClip in Frame 2
onClipEvent (load) {
timing = _root.intrandomizer(100, 50);
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (timing == count) {
_root.attaching("light2", 116, 16.3);
timing = _root.intrandomizer(100, 50);
count = 0;
}
}
Frame 3
stopAllSounds();
stop();
Instance of Symbol 18 MovieClip in Frame 3
onClipEvent (load) {
music = new Sound(this);
music.attachSound("roop");
music.setVolume(60);
music.start(0, 999);
_root.lastscore = _root.score;
if (_root.score >= 800000) {
_root.rank = "BRAIN";
} else if (_root.score >= 700000) {
_root.rank = "DEVIL";
} else if (_root.score >= 600000) {
_root.rank = "GOD";
} else if (_root.score >= 550000) {
_root.rank = "SSS";
} else if (_root.score >= 500000) {
_root.rank = "SS";
} else if (_root.score >= 450000) {
_root.rank = "S";
} else if (_root.score >= 400000) {
_root.rank = "AAA";
} else if (_root.score >= 350000) {
_root.rank = "AA";
} else if (_root.score >= 300000) {
_root.rank = "A";
} else if (_root.score >= 250000) {
_root.rank = "B";
} else if (_root.score >= 200000) {
_root.rank = "C";
} else if (_root.score >= 150000) {
_root.rank = "D";
} else if (_root.score >= 100000) {
_root.rank = "E";
} else if (_root.score >= 50000) {
_root.rank = "F";
} else {
_root.rank = "G";
}
_root.iq = (70 + (_root.score / 10000)) + _global.levelcount;
}
Instance of Symbol 18 MovieClip in Frame 3
onClipEvent (load) {
timing = _root.intrandomizer(100, 50);
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (timing == count) {
_root.attaching("light2", 173, 16.3);
timing = _root.intrandomizer(100, 50);
count = 0;
}
}
Instance of Symbol 63 MovieClip in Frame 3
on (press) {
stopAllSounds();
_root.gotoAndPlay(1);
}
Instance of Symbol 18 MovieClip in Frame 3
onClipEvent (load) {
timing = _root.intrandomizer(100, 50);
count = 0;
}
onClipEvent (enterFrame) {
count++;
if (timing == count) {
_root.attaching("light2", 116, 16.3);
timing = _root.intrandomizer(100, 50);
count = 0;
}
}
Symbol 9 MovieClip Frame 1
function sidemove(degreeinc, movewidth) {
if (sidemoveflag != 0) {
sidemoveflag = 0;
firstX = _parent._x;
moveinc = degreeinc;
sideDegree = sideDegree - moveinc;
}
sideDegree = sideDegree + moveinc;
sideRadian = (Math.PI * sideDegree) / 180;
_parent._x = _parent._x + (Math.sin(sideRadian) * movewidth);
}
function verticalmove(degreeinc, movelength) {
verticalDegree = verticalDegree + degreeinc;
verticalRadian = (Math.PI * verticalDegree) / 180;
_parent._y = _parent._y + (Math.sin(verticalRadian) * movelength);
}
function verticalmove2(degreeInc2, moveLength2, verticalspeed, cycleflag) {
if (firstflag != 0) {
firstflag = 0;
nowLength = moveLength2;
cycleflag2 = 0;
maxLength = moveLength2;
minLength = moveLength2 / 10;
}
verticalDegree2 = verticalDegree2 + degreeInc2;
verticalRadian2 = (Math.PI * verticalDegree2) / 180;
_parent._y = _parent._y + (Math.sin(verticalRadian2) * nowLength);
if ((nowLength > minLength) && (cycleflag2 == 0)) {
nowLength = nowLength * ((100 - verticalspeed) / 100);
if ((nowLength <= minLength) && (cycleflag)) {
cycleflag2 = 1;
}
} else if ((nowLength < maxLength) && (cycleflag2 == 1)) {
nowLength = nowLength * ((100 + verticalspeed) / 100);
if (nowLength >= maxLength) {
cycleflag2 = 0;
}
}
}
function lighting(maxlight, minlight, lightspeed) {
if ((lightflag != 0) && (lightflag != 1)) {
_parent._alpha = maxlight;
lightflag = 0;
} else if ((_parent._alpha > minlight) && (lightflag == 0)) {
_parent._alpha = _parent._alpha - lightspeed;
if (_parent._alpha <= minlight) {
lightflag = 1;
}
} else {
_parent._alpha = _parent._alpha + lightspeed;
if (_parent._alpha >= maxlight) {
lightflag = 0;
}
}
}
function attaching(ID, attachx, attachy) {
_global.attachcount++;
attachObject = "object" + _global.attachcount;
_parent.attachMovie(ID, attachObject, _global.attachcount);
_parent[attachObject]._x = attachx;
_parent[attachObject]._y = attachy;
}
function remove(removeAlpha) {
if (_parent._alpha <= removeAlpha) {
_parent.removeMovieClip();
}
}
function scaling(scaleSpeedx, scaleSpeedy, scaleFlag) {
if (scaleFlag) {
_parent._xscale = _parent._xscale + scaleSpeedx;
_parent._yscale = _parent._yscale + scaleSpeedy;
} else {
_parent._xscale = _parent._xscale - scaleSpeedx;
_parent._yscale = _parent._yscale - scaleSpeedy;
}
}
function moveing(moveX, moveY) {
_parent._x = _parent._x + moveX;
_parent._y = _parent._y + moveY;
}
function swapformat() {
_parent.swapDepths(Math.floor(_parent._y));
}
function music(ID) {
music = new Sound(this);
music.attachSound(ID);
music.start(0, 1);
}
Instance of Symbol 9 MovieClip in Symbol 10 MovieClip [light2] Frame 1
onClipEvent (load) {
_parent.swapDepths(20000);
_parent._rotation = _root.intrandomizer(360, 0);
_parent._xscale = _root.intrandomizer(150, 50);
rotate2 = _root.intrandomizer(10, 5);
xsmall = _root.intrandomizer(10, 5);
}
onClipEvent (enterFrame) {
_parent._rotation = _parent._rotation + rotate2;
_parent._xscale = _parent._xscale - xsmall;
if (_parent._xscale <= 0) {
_parent.removeMovieClip();
}
}
Instance of Symbol 9 MovieClip in Symbol 11 MovieClip [light] Frame 1
onClipEvent (load) {
_parent._rotation = _root.intrandomizer(360, 0);
_parent._xscale = _root.intrandomizer(150, 50);
rotate2 = _root.intrandomizer(10, 5);
xsmall = _root.intrandomizer(20, 10);
}
onClipEvent (enterFrame) {
_parent._rotation = _parent._rotation + rotate2;
_parent._xscale = _parent._xscale - xsmall;
if (_parent._xscale <= 0) {
_parent.removeMovieClip();
}
}
Instance of Symbol 9 MovieClip in Symbol 14 MovieClip [text2] Frame 1
onClipEvent (enterFrame) {
_parent._alpha = _parent._alpha - 4;
remove(0);
}
Instance of Symbol 9 MovieClip in Symbol 16 MovieClip [text1] Frame 1
onClipEvent (enterFrame) {
_parent._alpha = _parent._alpha - 4;
remove(0);
}
Instance of Symbol 18 MovieClip in Symbol 19 MovieClip [flash] Frame 1
onClipEvent (enterFrame) {
_parent._alpha = _parent._alpha - 5;
if (_parent._alpha <= 0) {
_parent.removeMovieClip();
}
}
Symbol 23 MovieClip [bomb] Frame 17
this.removeMovieClip();
Instance of Symbol 9 MovieClip in Symbol 27 MovieClip Frame 1
onClipEvent (enterFrame) {
lighting(100, 30, 2);
}
Instance of Symbol 9 MovieClip in Symbol 29 MovieClip Frame 1
onClipEvent (enterFrame) {
lighting(100, 30, 2);
}
Symbol 33 MovieClip Frame 1
flag = 0;
Instance of Symbol 9 MovieClip in Symbol 33 MovieClip Frame 1
onClipEvent (load) {
_parent._xscale = 0;
_parent._yscale = 0;
}
onClipEvent (enterFrame) {
if ((_parent._xscale < 100) && (_parent.flag == 1)) {
scaling(4, 4, true);
} else if ((_parent._xscale == 100) && (_parent.flag == 1)) {
_root.attaching("flash", 145, 145);
music = new Sound(this);
music.attachSound("exp");
music.start(0, 1);
_root.gotoAndPlay(2);
}
}
Instance of Symbol 9 MovieClip "scripter" in Symbol 44 MovieClip Frame 1
onClipEvent (load) {
count = 5;
rotation = 0;
radian = (Math.PI * rotate) / 180;
}
onClipEvent (enterFrame) {
count++;
if ((count == 10) && (_parent._parent._currentframe == 30)) {
attaching("lamp2", Math.cos(radian) * 12, Math.sin(radian) * 12);
rotation = rotation + 30;
radian = (Math.PI * rotation) / 180;
count = 0;
}
if (rotation == 360) {
_root.attaching("bomb", _parent._parent._x, _parent._parent._y);
i = 0;
while (i <= 3) {
_root.attaching("light", _parent._parent._x, _parent._parent._y);
i++;
}
music = new Sound(this);
music.attachSound("bom9");
music.start(0, 1);
_global.finishflag = 1;
_parent._parent.gotoAndPlay(_currentframe + 1);
}
}
Symbol 44 MovieClip Frame 111
stop();
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 30
stop();
Instance of Symbol 44 MovieClip "block" in Symbol 50 MovieClip Frame 30
on (press) {
if (_parent._currentframe == 30) {
music = new Sound(this);
music.attachSound("wav1");
music.setVolume(100);
music.start(0, 1);
_root.score = _root.score + 100;
if (scripter.rotation == 0) {
_root.attaching("text1", _parent._x, _parent._y + 10);
_root.score = _root.score + 500;
} else if (scripter.rotation >= 300) {
_root.attaching("text2", _parent._x, _parent._y + 10);
_root.score = _root.score + 2000;
}
_parent.gotoAndPlay(31);
}
}
Symbol 50 MovieClip Frame 60
gotoAndStop (1);