Frame 1
function goTo() {
getURL ("http://www.mofunzone.com/");
}
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
newMenu.customItems.push(new ContextMenuItem("MoFunZone.com - Play More Games", goTo));
this.menu = newMenu;
_root.today = new Date();
_root.EPOCH_TIME = _root.today.getTime();
function PubLink() {
getURL ("http://www.mofunzone.com/", "_blank");
}
_root.so = SharedObject.getLocal("se");
_global.username = "";
stop();
Frame 10
Frame 16
stop();
_root.b_start.onRelease = function () {
play();
};
_root.b_scores.onRelease = function () {
getURL ("http://www.mofunzone.com/game_scores/shrubbery/highscores.shtml", "_blank");
};
_root.b_more.onRelease = function () {
PubLink();
};
_root.b_mfz_logo.onRelease = function () {
PubLink();
};
Frame 17
var stageNum = 0;
var bossStage = false;
var bgSpeed = 3;
var score = 0;
var bossNum = 5;
var showHelp = false;
var life = 1;
var HP = 325;
var fullHP = 325;
var HPRecovery = 7;
var charSpeed = 6;
var fallSpeed = 3;
var dropDelay = 15;
var dropActive = 1;
var charAttack = 1;
var charTalent = 0;
var APPoint = 0;
var totalPercent = 0;
var skillActivate = 0;
var fullPowerSet = false;
var enemyDelay = undefined;
var S1Per = 0;
var S2Per = 0;
var S3Per = 0;
var S4Per = 0;
var S5Per = 0;
var bossAlive = new Array(true, true, true, true, true);
var enemyArray;
var skillAlertCheck = 0;
var attrAlertCheck = false;
bgm = new Sound();
bgm_index = random(3);
stageBGM = function () {
_root.bgm.attachSound("bgm" + _root.bgm_index);
_root.bgm.start(0, 1);
_root.bgm.onSoundComplete = function () {
_root.bgm_index++;
if (_root.bgm_index > 2) {
_root.bgm_index = 0;
}
_root.bgm.attachSound("bgm" + _root.bgm_index);
_root.bgm.start(0, 1);
};
};
stageBGM();
removeClip = function () {
removeMovieClip(_root.pa_help);
removeMovieClip(_root.pa_syst);
removeMovieClip(_root.fx_over);
removeMovieClip(_root.fx_lvclear);
};
pauseChecker = function () {
if ((_root.gamepause == true) or (_root.systpause == true)) {
_root.b_pause.gotoAndStop("pause");
} else {
_root.b_pause.gotoAndStop("play");
}
};
saveData = function () {
_root.so.data.level = _root.level;
};
_root.b_mute.b.onRelease = function () {
if (_root.systpause == false) {
_root.fx_mute._visible = !_root.fx_mute._visible;
}
_root.b_mute.play();
};
_root.b_pause.b.onRelease = function () {
if (((_root.systpause == false) and (_root.pa_syst._visible != true)) and (_root.pa_help._visible != true)) {
_root.gamepause = !_root.gamepause;
_root.fx_pause._visible = !_root.fx_pause._visible;
}
};
_root.gamepause = false;
_root.systpause = false;
if (_root.so.data.continued == true) {
_root.so.data.continued = false;
} else {
_root.level = 1;
_root.score = 0;
}
removeClip();
_root.onEnterFrame = function () {
pauseChecker();
};
var gameDelay = 0;
var skill1Active = false;
var skill2Active = false;
var skill5Active = false;
var flowerBombDelayActive = false;
var seedMeteorDelayActive = false;
var gameOver = false;
var stageClear = false;
var allSkillActive = false;
function setToGlobal(X, Y, targetPosition) {
point.x = X;
point.y = Y;
eval (targetPosition).localToGlobal(point);
}
function setBossBomb(X, Y, targetPosition) {
bossBombPoint.x = X;
bossBombPoint.y = Y;
eval (targetPosition).localToGlobal(bossBombPoint);
}
function setCharToGlobal(X, Y, targetPosition) {
charPoint.x = X;
charPoint.y = Y;
eval (targetPosition).localToGlobal(charPoint);
}
createEmptyMovieClip("BBulletAttach", 1);
var BBulletDepth = 1;
var point = new Object();
createEmptyMovieClip("bossBombAttach", 2);
var bossBombPoint = new Object();
var charPoint = new Object();
Frame 18
S1PerText = S1Per + "%";
S2PerText = S2Per + "%";
S3PerText = S3Per + "%";
S4PerText = S4Per + "%";
S5PerText = S5Per + "%";
totalPercent = ((((S1Per + S2Per) + S3Per) + S4Per) + S5Per) / 5;
totalPerText = totalPercent + "%";
skillActivate = Math.floor(totalPercent / 10);
if ((skillActivate >= 10) && (!fullPowerSet)) {
fullHP = fullHP + 75;
HP = HP + 75;
HPRecovery = HPRecovery + 3;
fallSpeed = fallSpeed + 0;
charAttack = charAttack + 1;
charTalent = charTalent + 1;
fullPowerSet = true;
} else if (allSkillActive) {
fullHP = 75;
HP = HP - 75;
HPRecovery = HPRecovery - 3;
fallSpeed = fallSpeed - 0;
charAttack = charAttack - 1;
charTalent = charTalent - 1;
fullPowerSet = false;
skill1Active = false;
skill2Active = false;
skill5Active = false;
}
fallSpeedText = fallSpeed.toString();
dropActiveText = dropActive.toString();
attackText = charAttack.toString();
talentText = charTalent.toString();
APPointText = APPoint.toString();
gameDelay = 0;
gameOver = false;
stageClear = false;
allSkillActive = false;
function rainDurationTimeRand() {
return(Math.ceil((300 + (charTalent * 10)) / 25));
}
function seedRainSkillTimeRand() {
return((random(3) + 1) + random(charTalent));
}
function skillDecision(skillOrder) {
switch (skillOrder) {
case 1 :
tmpOpp = 35;
return(((randomPercentage() <= tmpOpp) ? true : false));
case 3 :
tmpOpp = 20;
return(((randomPercentage() <= (tmpOpp + charTalent)) ? true : false));
case 4 :
tmpOpp = 25;
return(((randomPercentage() <= (tmpOpp + charTalent)) ? true : false));
}
}
var rainSkillDelayTime = 6;
var healSkillDelayTime = 10;
var refreshSkillDelayTime = 4;
var flowerBombSkillDelayTime = 15;
var seedMeteorSkillDelayTime = 22;
var rainFallSpeed = (fallSpeed + fallSpeed);
function enemyDirection(eDir, eX, eM, eC) {
if (eDir != 1) {
return((eM * eX) + eC);
}
}
function bulletMove(bbX, bbM, bbC) {
return((bbM * bbX) + bbC);
}
_root.Map.onEnterFrame = function () {
if (APPoint <= 0) {
i = 0;
while (i < 4) {
this["b_" + i]._alpha = 25;
i++;
}
}
};
Instance of Symbol 716 MovieClip "Map" in Frame 18
onClipEvent (load) {
with (_parent) {
var i = 0;
while (i < bossAlive.length) {
tmp = i + 1;
if (!bossAlive[i]) {
eval ("this.b_boss" + tmp)._visible = false;
}
if (eval (("S" + tmp) + "Per") == 100) {
eval ("this.b_st" + tmp)._visible = false;
eval ("this.tree" + tmp)._visible = true;
} else {
eval ("this.tree" + tmp)._visible = false;
}
i++;
}
}
}
Instance of Symbol 742 MovieClip "tutorial" in Frame 18
onClipEvent (load) {
if (!_parent.showHelp) {
this._visible = true;
_parent.showHelp = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(75)) {
if (this._visible) {
this._visible = !this._visible;
}
}
}
Frame 19
if ((skillActivate > skillAlertCheck) && (skillActivate != 7)) {
Map.skillAlert._visible = true;
skillAlertCheck = skillActivate;
}
if (attrAlertCheck) {
Map.attrAlert._visible = true;
}
function randomPercentage() {
return(Math.random() * 100);
}
function refreshHP() {
HPtext = HP.toString();
_root.HPgage.gotoAndStop(1 + Math.round((_root.HP / _root.fullHP) * 100));
}
function chkDirection(x1, y1, x2, y2) {
if ((x1 == x2) && (y1 > y2)) {
return(1);
}
if ((x1 < x2) && (y1 == y2)) {
return(2);
}
if ((x1 == x2) && (y1 < y2)) {
return(3);
}
if ((x1 > x2) && (y1 == y2)) {
return(4);
}
if ((x1 < x2) && (y1 > y2)) {
return(5);
}
if ((x1 < x2) && (y1 < y2)) {
return(6);
}
if ((x1 > x2) && (y1 < y2)) {
return(7);
}
if ((x1 > x2) && (y1 > y2)) {
return(8);
}
}
Frame 21
stop();
bgm.setVolume(45);
Frame 22
stop();
enemyArray = new Array("ene01");
enemyDelay = (random(3) * 5) + 10;
enemyArray2 = new Array("ene02");
enemyArray2rate = 100;
enemyArray2delay = 18;
scoreText = _root.score.toString();
refreshHP();
stagePerText = "0 %";
nameTar = "_parent.Stage" + stageNum;
flowerBombDelayActive = false;
seedMeteorDelayActive = false;
with (delayCounter) {
rainSkillDelay = 0;
healSkillDelay = 0;
refreshSkillDelay = 0;
flowerBombSkillDelay = 0;
seedMeteorSkillDelay = 0;
}
with (rainSkillCounter) {
counter = 0;
gotoAndPlay("Stop");
}
with (seedRainSkillCounter) {
counter = 0;
frameStep = undefined;
gotoAndPlay("Stop");
}
bgm.setVolume(100);
Instance of Symbol 977 MovieClip in Frame 22
onClipEvent (load) {
var skillUI = undefined;
}
Instance of Symbol 985 MovieClip "delayCounter" in Frame 22
onClipEvent (load) {
var rainSkillDelay = 0;
var healSkillDelay = 0;
var refreshSkillDelay = 0;
var flowerBombSkillDelay = 0;
var seedMeteorSkillDelay = 0;
}
Instance of Symbol 987 MovieClip "rainSkillCounter" in Frame 22
onClipEvent (load) {
var counter = 0;
gotoAndPlay ("Stop");
}
Instance of Symbol 989 MovieClip "seedRainSkillCounter" in Frame 22
onClipEvent (load) {
var counter = 0;
var frameStep = undefined;
gotoAndPlay ("Stop");
}
Instance of Symbol 991 MovieClip in Frame 22
/* no clip actions */
Frame 23
stop();
enemyArray = new Array("ene05");
enemyDelay = random(25) + 15;
enemyArray2 = new Array("ene06");
enemyArray2rate = 100;
enemyArray2delay = 25;
scoreText = _root.score.toString();
refreshHP();
stagePerText = "0 %";
nameTar = "_parent.Stage" + stageNum;
flowerBombDelayActive = false;
seedMeteorDelayActive = false;
with (delayCounter) {
rainSkillDelay = 0;
healSkillDelay = 0;
refreshSkillDelay = 0;
flowerBombSkillDelay = 0;
seedMeteorSkillDelay = 0;
}
with (rainSkillCounter) {
counter = 0;
gotoAndPlay("Stop");
}
with (seedRainSkillCounter) {
counter = 0;
frameStep = undefined;
gotoAndPlay("Stop");
}
bgm.setVolume(100);
Frame 24
stop();
enemyArray = new Array("ene03", "ene04");
enemyDelay = (random(3) * 5) + 10;
enemyArray2 = new Array("ene04");
enemyArray2rate = 50;
enemyArray2delay = 25;
scoreText = _root.score.toString();
refreshHP();
stagePerText = "0 %";
nameTar = "_parent.Stage" + stageNum;
flowerBombDelayActive = false;
seedMeteorDelayActive = false;
with (delayCounter) {
rainSkillDelay = 0;
healSkillDelay = 0;
refreshSkillDelay = 0;
flowerBombSkillDelay = 0;
seedMeteorSkillDelay = 0;
}
with (rainSkillCounter) {
counter = 0;
gotoAndPlay("Stop");
}
with (seedRainSkillCounter) {
counter = 0;
frameStep = undefined;
gotoAndPlay("Stop");
}
bgm.setVolume(100);
Frame 25
stop();
enemyArray = new Array("ene07", "ene08");
enemyDelay = 60;
enemyArray2 = new Array("ene09");
enemyArray2rate = 100;
enemyArray2delay = random(30) + 34;
scoreText = _root.score.toString();
refreshHP();
stagePerText = "0 %";
nameTar = "_parent.Stage" + stageNum;
flowerBombDelayActive = false;
seedMeteorDelayActive = false;
with (delayCounter) {
rainSkillDelay = 0;
healSkillDelay = 0;
refreshSkillDelay = 0;
flowerBombSkillDelay = 0;
seedMeteorSkillDelay = 0;
}
with (rainSkillCounter) {
counter = 0;
gotoAndPlay("Stop");
}
with (seedRainSkillCounter) {
counter = 0;
frameStep = undefined;
gotoAndPlay("Stop");
}
bgm.setVolume(100);
Frame 26
stop();
enemyArray = new Array("ene11");
enemyDelay = random(7) + 16;
enemyArray2 = new Array("ene10");
enemyArray2rate = 95;
enemyArray2delay = 116;
scoreText = _root.score.toString();
refreshHP();
stagePerText = "0 %";
nameTar = "_parent.Stage" + stageNum;
flowerBombDelayActive = false;
seedMeteorDelayActive = false;
with (delayCounter) {
rainSkillDelay = 0;
healSkillDelay = 0;
refreshSkillDelay = 0;
flowerBombSkillDelay = 0;
seedMeteorSkillDelay = 0;
}
with (rainSkillCounter) {
counter = 0;
gotoAndPlay("Stop");
}
with (seedRainSkillCounter) {
counter = 0;
frameStep = undefined;
gotoAndPlay("Stop");
}
bgm.setVolume(100);
Frame 27
stop();
enemyArray = new Array("ene05", "ene06", "ene07");
enemyDelay = random(8) + 16;
enemyArray2 = new Array("ene01");
enemyArray2rate = 50;
enemyArray2delay = 118;
scoreText = _root.score.toString();
refreshHP();
bossStage = true;
bossBulletAtkDelay1 = 25;
bossBulletAtk1Rate = 80;
bossBulletAtkDelay2 = 59;
bossBulletAtk2Rate = 100;
bossBulletAtkDelay3 = 5;
bossBulletAtk3Rate = 75;
stagePerText = totalPercent + " %";
nameTar = "_parent.Boss" + stageNum;
flowerBombDelayActive = false;
seedMeteorDelayActive = false;
with (delayCounter) {
rainSkillDelay = 0;
healSkillDelay = 0;
refreshSkillDelay = 0;
flowerBombSkillDelay = 0;
seedMeteorSkillDelay = 0;
}
with (rainSkillCounter) {
counter = 0;
gotoAndPlay("Stop");
}
with (seedRainSkillCounter) {
counter = 0;
frameStep = undefined;
gotoAndPlay("Stop");
}
stopAllSounds();
bgm.setVolume(100);
bgm.attachSound("bgm_boss");
bgm.start(0, 99999);
Frame 28
stop();
enemyArray = new Array("ene05", "ene06", "ene07");
enemyDelay = random(8) + 16;
enemyArray2 = new Array("ene01");
enemyArray2rate = 50;
enemyArray2delay = 118;
scoreText = _root.score.toString();
refreshHP();
bossStage = true;
bossBulletAtkDelay1 = 30;
bossBulletAtk1Rate = 80;
bossBulletAtkDelay2 = 30;
bossBulletAtk2Rate = 80;
bossBulletAtkDelay3 = 15;
bossBulletAtk3Rate = 75;
stagePerText = totalPercent + " %";
nameTar = "_parent.Boss" + stageNum;
flowerBombDelayActive = false;
seedMeteorDelayActive = false;
with (delayCounter) {
rainSkillDelay = 0;
healSkillDelay = 0;
refreshSkillDelay = 0;
flowerBombSkillDelay = 0;
seedMeteorSkillDelay = 0;
}
with (rainSkillCounter) {
counter = 0;
gotoAndPlay("Stop");
}
with (seedRainSkillCounter) {
counter = 0;
frameStep = undefined;
gotoAndPlay("Stop");
}
stopAllSounds();
bgm.setVolume(100);
bgm.attachSound("bgm_boss");
bgm.start(0, 99999);
Frame 29
stop();
enemyArray = new Array("ene05", "ene06", "ene07");
enemyDelay = random(8) + 16;
enemyArray2 = new Array("ene01");
enemyArray2rate = 50;
enemyArray2delay = 118;
scoreText = _root.score.toString();
refreshHP();
bossStage = true;
bossBulletAtkDelay1 = 26;
bossBulletAtk1Rate = 75;
bossBulletAtkDelay2 = 72;
bossBulletAtk2Rate = 75;
stagePerText = totalPercent + " %";
nameTar = "_parent.Boss" + stageNum;
flowerBombDelayActive = false;
seedMeteorDelayActive = false;
with (delayCounter) {
rainSkillDelay = 0;
healSkillDelay = 0;
refreshSkillDelay = 0;
flowerBombSkillDelay = 0;
seedMeteorSkillDelay = 0;
}
with (rainSkillCounter) {
counter = 0;
gotoAndPlay("Stop");
}
with (seedRainSkillCounter) {
counter = 0;
frameStep = undefined;
gotoAndPlay("Stop");
}
stopAllSounds();
bgm.setVolume(100);
bgm.attachSound("bgm_boss");
bgm.start(0, 99999);
Frame 30
stop();
enemyArray = new Array("ene01");
enemyDelay = 25;
enemyArray2 = new Array("ene01");
enemyArray2rate = 50;
enemyArray2delay = 50;
scoreText = _root.score.toString();
refreshHP();
bossStage = true;
bossBulletAtkDelay1 = 20;
bossBulletAtk1Rate = 100;
bossBulletAtkDelay2 = 80;
bossBulletAtk2Rate = 100;
stagePerText = totalPercent + " %";
nameTar = "_parent.Boss" + stageNum;
flowerBombDelayActive = false;
seedMeteorDelayActive = false;
with (delayCounter) {
rainSkillDelay = 0;
healSkillDelay = 0;
refreshSkillDelay = 0;
flowerBombSkillDelay = 0;
seedMeteorSkillDelay = 0;
}
with (rainSkillCounter) {
counter = 0;
gotoAndPlay("Stop");
}
with (seedRainSkillCounter) {
counter = 0;
frameStep = undefined;
gotoAndPlay("Stop");
}
stopAllSounds();
bgm.setVolume(100);
bgm.attachSound("bgm_boss");
bgm.start(0, 99999);
Frame 31
stop();
enemyArray = new Array("ene13");
enemyDelay = 50;
enemyArray2 = new Array("ene13");
enemyArray2rate = 50;
enemyArray2delay = 50;
scoreText = _root.score.toString();
refreshHP();
bossStage = true;
bossBulletAtkDelay1 = 125;
bossBulletAtk1Rate = 100;
bossBulletAtkDelay2 = 125;
bossBulletAtk2Rate = 100;
stagePerText = totalPercent + " %";
nameTar = "_parent.Boss" + stageNum;
flowerBombDelayActive = false;
seedMeteorDelayActive = false;
with (delayCounter) {
rainSkillDelay = 0;
healSkillDelay = 0;
refreshSkillDelay = 0;
flowerBombSkillDelay = 0;
seedMeteorSkillDelay = 0;
}
with (rainSkillCounter) {
counter = 0;
gotoAndPlay("Stop");
}
with (seedRainSkillCounter) {
counter = 0;
frameStep = undefined;
gotoAndPlay("Stop");
}
stopAllSounds();
bgm.setVolume(100);
bgm.attachSound("bgm_boss");
bgm.start(0, 99999);
Frame 32
BBulletAttach.removeMovieClip();
createEmptyMovieClip("BBulletAttach", 1);
Frame 36
stop();
stageTime = "00 : 00";
fx_lvclear_origin.play();
Frame 37
BBulletAttach.removeMovieClip();
createEmptyMovieClip("BBulletAttach", 1);
Frame 41
stop();
stopAllSounds();
stageTime = "00 : 00";
fx_over_origin.play();
Frame 46
stop();
stageTime = "00 : 00";
fx_credit_origin.play();
Frame 47
submit.urScoreText = _root.score.toString();
Frame 51
stop();
stageTime = "00 : 00";
submit.b_menu.onRelease = function () {
gotoAndPlay (16);
};
submit.b_submit.onRelease = function () {
getURL ("http://www.mofunzone.com/online_games/shrubbery.shtml", "_blank");
gotoAndStop (16);
};
submit.b_moregame.onRelease = function () {
_root.PubLink();
};
Symbol 3 MovieClip [bossBullet5_3] Frame 1
function chkOB() {
if ((((this._x < -50) || (this._x > 660)) || (this._y < -50)) || (this._y > 500)) {
return(true);
}
return(false);
}
function collHero() {
if (this.hitTest(eval (tmpName).char.collHero) && (eval (tmpName).char.step != "hurt")) {
return(true);
}
}
var tmpName = ("_parent._parent.Boss" + _parent._parent.stageNum);
var speed = (3 + eval (tmpName).Boss.bulletSpeed);
_parent._parent.setCharToGlobal(eval (tmpName).char._x, eval (tmpName).char._y, "Boss" + _parent._parent.stageNum);
var bbX = _parent._parent.charPoint.x;
var bbY = _parent._parent.charPoint.y;
var bbDirection = _parent._parent.chkDirection(this._x, this._y, bbX, bbY);
var swapAngle = ((Math.atan2(Math.abs(this._y - bbY), Math.abs(this._x - bbX)) >= 1) ? true : false);
Symbol 3 MovieClip [bossBullet5_3] Frame 2
stop();
if ((((bbDirection == 5) || (bbDirection == 6)) || (bbDirection == 7)) || (bbDirection == 8)) {
if (swapAngle) {
var slope = ((bbX - this._x) / (bbY - this._y));
var conts = (this._x - (slope * this._y));
} else {
var slope = ((bbY - this._y) / (bbX - this._x));
var conts = (this._y - (slope * this._x));
}
}
this.onEnterFrame = function () {
switch (bbDirection) {
case 1 :
this._y = this._y - speed;
this._x = this._x - 0.5;
break;
case 2 :
this._x = this._x + (speed - 0.5);
break;
case 3 :
this._y = this._y + speed;
this._x = this._x - 0.5;
break;
case 4 :
this._x = this._x - (speed + 0.5);
break;
case 5 :
if (swapAngle) {
this._y = this._y - speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) - 0.5;
} else {
this._x = this._x + (speed - 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 6 :
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) - 0.5;
} else {
this._x = this._x + (speed - 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 7 :
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) + 0.5;
} else {
this._x = this._x - (speed + 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 8 :
if (swapAngle) {
this._y = this._y - speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) + 0.5;
} else {
this._x = this._x - (speed + 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
}
if (chkOB()) {
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collHero()) {
eval (tmpName).char.step = "hurt";
_parent._parent.HP = _parent._parent.HP - eval (tmpName).Boss.bossAtk;
_parent._parent.refreshHP();
if (_parent._parent.HP <= 0) {
}
}
};
Symbol 4 MovieClip [bossBullet5_2] Frame 1
function chkOB() {
if ((((this._x < -50) || (this._x > 660)) || (this._y < -50)) || (this._y > 500)) {
return(true);
}
return(false);
}
function collHero() {
if (this.hitTest(eval (tmpName).char.collHero) && (eval (tmpName).char.step != "hurt")) {
return(true);
}
}
var tmpName = ("_parent._parent.Boss" + _parent._parent.stageNum);
var speed = (6 + eval (tmpName).Boss.bulletSpeed);
_parent._parent.setCharToGlobal(eval (tmpName).char._x, eval (tmpName).char._y, "Boss" + _parent._parent.stageNum);
var bbX = _parent._parent.charPoint.x;
var bbY = _parent._parent.charPoint.y;
var bbDirection = _parent._parent.chkDirection(this._x, this._y, bbX, bbY);
var swapAngle = ((Math.atan2(Math.abs(this._y - bbY), Math.abs(this._x - bbX)) >= 1) ? true : false);
Symbol 4 MovieClip [bossBullet5_2] Frame 2
stop();
if ((((bbDirection == 5) || (bbDirection == 6)) || (bbDirection == 7)) || (bbDirection == 8)) {
if (swapAngle) {
var slope = ((bbX - this._x) / (bbY - this._y));
var conts = (this._x - (slope * this._y));
} else {
var slope = ((bbY - this._y) / (bbX - this._x));
var conts = (this._y - (slope * this._x));
}
}
this.onEnterFrame = function () {
switch (bbDirection) {
case 1 :
this._y = this._y - speed;
this._x = this._x - 0.5;
break;
case 2 :
this._x = this._x + (speed - 0.5);
break;
case 3 :
this._y = this._y + speed;
this._x = this._x - 0.5;
break;
case 4 :
this._x = this._x - (speed + 0.5);
break;
case 5 :
if (swapAngle) {
this._y = this._y - speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) - 0.5;
} else {
this._x = this._x + (speed - 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 6 :
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) - 0.5;
} else {
this._x = this._x + (speed - 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 7 :
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) + 0.5;
} else {
this._x = this._x - (speed + 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 8 :
if (swapAngle) {
this._y = this._y - speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) + 0.5;
} else {
this._x = this._x - (speed + 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
}
if (chkOB()) {
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collHero()) {
eval (tmpName).char.step = "hurt";
_parent._parent.HP = _parent._parent.HP - eval (tmpName).Boss.bossAtk;
_parent._parent.refreshHP();
if (_parent._parent.HP <= 0) {
}
}
};
Symbol 5 MovieClip [bossBullet5_1] Frame 1
function chkOB() {
if ((((this._x < -50) || (this._x > 660)) || (this._y < -50)) || (this._y > 500)) {
return(true);
}
return(false);
}
function collHero() {
if (this.hitTest(eval (tmpName).char.collHero) && (eval (tmpName).char.step != "hurt")) {
return(true);
}
}
var tmpName = ("_parent._parent.Boss" + _parent._parent.stageNum);
var speed = (4 + eval (tmpName).Boss.bulletSpeed);
_parent._parent.setCharToGlobal(eval (tmpName).char._x, eval (tmpName).char._y, "Boss" + _parent._parent.stageNum);
var bbX = random(640);
var bbY = random(480);
var bbDirection = _parent._parent.chkDirection(this._x, this._y, bbX, bbY);
var swapAngle = ((Math.atan2(Math.abs(this._y - bbY), Math.abs(this._x - bbX)) >= 1) ? true : false);
Symbol 5 MovieClip [bossBullet5_1] Frame 2
stop();
if ((((bbDirection == 5) || (bbDirection == 6)) || (bbDirection == 7)) || (bbDirection == 8)) {
if (swapAngle) {
var slope = ((bbX - this._x) / (bbY - this._y));
var conts = (this._x - (slope * this._y));
} else {
var slope = ((bbY - this._y) / (bbX - this._x));
var conts = (this._y - (slope * this._x));
}
}
this.onEnterFrame = function () {
switch (bbDirection) {
case 1 :
this._y = this._y - speed;
this._x = this._x - 0.5;
break;
case 2 :
this._x = this._x + (speed - 0.5);
break;
case 3 :
this._y = this._y + speed;
this._x = this._x - 0.5;
break;
case 4 :
this._x = this._x - (speed + 0.5);
break;
case 5 :
if (swapAngle) {
this._y = this._y - speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) - 0.5;
} else {
this._x = this._x + (speed - 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 6 :
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) - 0.5;
} else {
this._x = this._x + (speed - 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 7 :
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) + 0.5;
} else {
this._x = this._x - (speed + 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 8 :
if (swapAngle) {
this._y = this._y - speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) + 0.5;
} else {
this._x = this._x - (speed + 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
}
if (chkOB()) {
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collHero()) {
eval (tmpName).char.step = "hurt";
_parent._parent.HP = _parent._parent.HP - eval (tmpName).Boss.bossAtk;
_parent._parent.refreshHP();
if (_parent._parent.HP <= 0) {
}
}
};
Symbol 8 MovieClip [bossBullet4_2] Frame 1
function chkOB() {
if ((((this._x < -50) || (this._x > 660)) || (this._y < -50)) || (this._y > 500)) {
return(true);
}
return(false);
}
function collHero() {
if (this.hitTest(eval (tmpName).char.collHero) && (eval (tmpName).char.step != "hurt")) {
return(true);
}
}
var tmpName = ("_parent._parent.Boss" + _parent._parent.stageNum);
var speed = ((random(5) + 6) + eval (tmpName).Boss.bulletSpeed);
_parent._parent.setCharToGlobal(eval (tmpName).char._x, eval (tmpName).char._y, "Boss" + _parent._parent.stageNum);
var bbX = _parent._parent.charPoint.x;
var bbY = _parent._parent.charPoint.y;
var bbDirection = _parent._parent.chkDirection(this._x, this._y, bbX, bbY);
var swapAngle = ((Math.atan2(Math.abs(this._y - bbY), Math.abs(this._x - bbX)) >= 1) ? true : false);
Symbol 8 MovieClip [bossBullet4_2] Frame 2
stop();
if ((((bbDirection == 5) || (bbDirection == 6)) || (bbDirection == 7)) || (bbDirection == 8)) {
if (swapAngle) {
var slope = ((bbX - this._x) / (bbY - this._y));
var conts = (this._x - (slope * this._y));
} else {
var slope = ((bbY - this._y) / (bbX - this._x));
var conts = (this._y - (slope * this._x));
}
}
this.onEnterFrame = function () {
switch (bbDirection) {
case 1 :
this._y = this._y - speed;
this._x = this._x - 0.5;
break;
case 2 :
this._x = this._x + (speed - 0.5);
break;
case 3 :
this._y = this._y + speed;
this._x = this._x - 0.5;
break;
case 4 :
this._x = this._x - (speed + 0.5);
break;
case 5 :
if (swapAngle) {
this._y = this._y - speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) - 0.5;
} else {
this._x = this._x + (speed - 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 6 :
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) - 0.5;
} else {
this._x = this._x + (speed - 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 7 :
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) + 0.5;
} else {
this._x = this._x - (speed + 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 8 :
if (swapAngle) {
this._y = this._y - speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) + 0.5;
} else {
this._x = this._x - (speed + 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
}
if (chkOB()) {
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collHero()) {
eval (tmpName).char.step = "hurt";
_parent._parent.HP = _parent._parent.HP - eval (tmpName).Boss.bossAtk;
_parent._parent.refreshHP();
if (_parent._parent.HP <= 0) {
}
}
};
Symbol 10 MovieClip Frame 120
gotoAndPlay (1);
Symbol 11 MovieClip [bossBullet4_1] Frame 1
function chkOB() {
if ((((this._x < -50) || (this._x > 660)) || (this._y < -50)) || (this._y > 500)) {
return(true);
}
return(false);
}
function collHero() {
if (this.hitTest(eval (tmpName).char.collHero) && (eval (tmpName).char.step != "hurt")) {
return(true);
}
}
var tmpName = ("_parent._parent.Boss" + _parent._parent.stageNum);
var speed = ((random(2) + 1) + eval (tmpName).Boss.bulletSpeed);
_parent._parent.setCharToGlobal(eval (tmpName).char._x, eval (tmpName).char._y, "Boss" + _parent._parent.stageNum);
var bbX = _parent._parent.charPoint.x;
var bbY = _parent._parent.charPoint.y;
var bbDirection = _parent._parent.chkDirection(this._x, this._y, bbX, bbY);
var swapAngle = ((Math.atan2(Math.abs(this._y - bbY), Math.abs(this._x - bbX)) >= 1) ? true : false);
Symbol 11 MovieClip [bossBullet4_1] Frame 2
stop();
if ((((bbDirection == 5) || (bbDirection == 6)) || (bbDirection == 7)) || (bbDirection == 8)) {
if (swapAngle) {
var slope = ((bbX - this._x) / (bbY - this._y));
var conts = (this._x - (slope * this._y));
} else {
var slope = ((bbY - this._y) / (bbX - this._x));
var conts = (this._y - (slope * this._x));
}
}
this.onEnterFrame = function () {
switch (bbDirection) {
case 1 :
this._y = this._y - speed;
this._x = this._x - 0.5;
break;
case 2 :
this._x = this._x + (speed - 0.5);
break;
case 3 :
this._y = this._y + speed;
this._x = this._x - 0.5;
break;
case 4 :
this._x = this._x - (speed + 0.5);
break;
case 5 :
if (swapAngle) {
this._y = this._y - speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) - 0.5;
} else {
this._x = this._x + (speed - 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 6 :
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) - 0.5;
} else {
this._x = this._x + (speed - 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 7 :
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) + 0.5;
} else {
this._x = this._x - (speed + 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 8 :
if (swapAngle) {
this._y = this._y - speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) + 0.5;
} else {
this._x = this._x - (speed + 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
}
if (chkOB()) {
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collHero()) {
eval (tmpName).char.step = "hurt";
_parent._parent.HP = _parent._parent.HP - eval (tmpName).Boss.bossAtk;
_parent._parent.refreshHP();
if (_parent._parent.HP <= 0) {
}
}
};
Symbol 12 MovieClip [bossBullet1_3] Frame 1
function chkOB() {
if ((((this._x < -50) || (this._x > 660)) || (this._y < -50)) || (this._y > 500)) {
return(true);
}
return(false);
}
function collHero() {
if (this.hitTest(eval (tmpName).char.collHero) && (eval (tmpName).char.step != "hurt")) {
return(true);
}
}
var tmpName = ("_parent._parent.Boss" + _parent._parent.stageNum);
var speed = ((5 + random(2)) + eval (tmpName).Boss.bulletSpeed);
_parent._parent.setCharToGlobal(eval (tmpName).char._x, eval (tmpName).char._y, "Boss" + _parent._parent.stageNum);
var bbX = _parent._parent.charPoint.x;
var bbY = _parent._parent.charPoint.y;
var bbDirection = _parent._parent.chkDirection(this._x, this._y, bbX, bbY);
var swapAngle = ((Math.atan2(Math.abs(this._y - bbY), Math.abs(this._x - bbX)) >= 1) ? true : false);
Symbol 12 MovieClip [bossBullet1_3] Frame 2
stop();
if ((((bbDirection == 5) || (bbDirection == 6)) || (bbDirection == 7)) || (bbDirection == 8)) {
if (swapAngle) {
var slope = ((bbX - this._x) / (bbY - this._y));
var conts = (this._x - (slope * this._y));
} else {
var slope = ((bbY - this._y) / (bbX - this._x));
var conts = (this._y - (slope * this._x));
}
}
this.onEnterFrame = function () {
switch (bbDirection) {
case 1 :
this._y = this._y - speed;
this._x = this._x - 0.5;
break;
case 2 :
this._x = this._x + (speed - 0.5);
break;
case 3 :
this._y = this._y + speed;
this._x = this._x - 0.5;
break;
case 4 :
this._x = this._x - (speed + 0.5);
break;
case 5 :
if (swapAngle) {
this._y = this._y - speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) - 0.5;
} else {
this._x = this._x + (speed - 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 6 :
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) - 0.5;
} else {
this._x = this._x + (speed - 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 7 :
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) + 0.5;
} else {
this._x = this._x - (speed + 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 8 :
if (swapAngle) {
this._y = this._y - speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) + 0.5;
} else {
this._x = this._x - (speed + 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
}
if (chkOB()) {
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collHero()) {
eval (tmpName).char.step = "hurt";
_parent._parent.HP = _parent._parent.HP - eval (tmpName).Boss.bossAtk;
_parent._parent.refreshHP();
if (_parent._parent.HP <= 0) {
}
this.removeMovieClip();
delete eval (this.onEnterFrame());
}
};
Symbol 13 MovieClip [bossBullet2_3] Frame 1
function chkOB() {
if ((((this._x < -50) || (this._x > 660)) || (this._y < -50)) || (this._y > 500)) {
return(true);
}
return(false);
}
function collHero() {
if (this.hitTest(eval (tmpName).char.collHero) && (eval (tmpName).char.step != "hurt")) {
return(true);
}
}
var tmpName = ("_parent._parent.Boss" + _parent._parent.stageNum);
var speed = ((5 + random(3)) + eval (tmpName).Boss.bulletSpeed);
_parent._parent.setCharToGlobal(eval (tmpName).char._x, eval (tmpName).char._y, "Boss" + _parent._parent.stageNum);
var bbX = _parent._parent.charPoint.x;
var bbY = _parent._parent.charPoint.y;
var bbDirection = _parent._parent.chkDirection(this._x, this._y, bbX, bbY);
var swapAngle = ((Math.atan2(Math.abs(this._y - bbY), Math.abs(this._x - bbX)) >= 1) ? true : false);
Symbol 13 MovieClip [bossBullet2_3] Frame 2
stop();
if ((((bbDirection == 5) || (bbDirection == 6)) || (bbDirection == 7)) || (bbDirection == 8)) {
if (swapAngle) {
var slope = ((bbX - this._x) / (bbY - this._y));
var conts = (this._x - (slope * this._y));
} else {
var slope = ((bbY - this._y) / (bbX - this._x));
var conts = (this._y - (slope * this._x));
}
}
this.onEnterFrame = function () {
switch (bbDirection) {
case 1 :
this._y = this._y - speed;
this._x = this._x - 0.5;
break;
case 2 :
this._x = this._x + (speed - 0.5);
break;
case 3 :
this._y = this._y + speed;
this._x = this._x - 0.5;
break;
case 4 :
this._x = this._x - (speed + 0.5);
break;
case 5 :
if (swapAngle) {
this._y = this._y - speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) - 0.5;
} else {
this._x = this._x + (speed - 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 6 :
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) - 0.5;
} else {
this._x = this._x + (speed - 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 7 :
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) + 0.5;
} else {
this._x = this._x - (speed + 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 8 :
if (swapAngle) {
this._y = this._y - speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) + 0.5;
} else {
this._x = this._x - (speed + 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
}
if (chkOB()) {
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collHero()) {
eval (tmpName).char.step = "hurt";
_parent._parent.HP = _parent._parent.HP - eval (tmpName).Boss.bossAtk;
_parent._parent.refreshHP();
if (_parent._parent.HP <= 0) {
}
this.removeMovieClip();
delete eval (this.onEnterFrame());
}
};
Symbol 15 MovieClip Frame 1
gotoAndPlay("p" + random(2));
Symbol 15 MovieClip Frame 90
gotoAndPlay ("p0");
Symbol 15 MovieClip Frame 190
gotoAndPlay ("p1");
Symbol 16 MovieClip [bossBullet3_2] Frame 1
function chkOB() {
if ((((this._x < -50) || (this._x > 660)) || (this._y < -50)) || (this._y > 500)) {
return(true);
}
return(false);
}
function collHero() {
if (this.hitTest(eval (tmpName).char.collHero) && (eval (tmpName).char.step != "hurt")) {
return(true);
}
}
var tmpName = ("_parent._parent.Boss" + _parent._parent.stageNum);
var speed = ((random(2) + 1) + eval (tmpName).Boss.bulletSpeed);
_parent._parent.setCharToGlobal(eval (tmpName).char._x, eval (tmpName).char._y, "Boss" + _parent._parent.stageNum);
var bbX = _parent._parent.charPoint.x;
var bbY = _parent._parent.charPoint.y;
var bbDirection = _parent._parent.chkDirection(this._x, this._y, bbX, bbY);
var swapAngle = ((Math.atan2(Math.abs(this._y - bbY), Math.abs(this._x - bbX)) >= 1) ? true : false);
Symbol 16 MovieClip [bossBullet3_2] Frame 2
stop();
if ((((bbDirection == 5) || (bbDirection == 6)) || (bbDirection == 7)) || (bbDirection == 8)) {
if (swapAngle) {
var slope = ((bbX - this._x) / (bbY - this._y));
var conts = (this._x - (slope * this._y));
} else {
var slope = ((bbY - this._y) / (bbX - this._x));
var conts = (this._y - (slope * this._x));
}
}
this.onEnterFrame = function () {
switch (bbDirection) {
case 1 :
this._y = this._y - speed;
this._x = this._x - 0.5;
break;
case 2 :
this._x = this._x + (speed - 0.5);
break;
case 3 :
this._y = this._y + speed;
this._x = this._x - 0.5;
break;
case 4 :
this._x = this._x - (speed + 0.5);
break;
case 5 :
if (swapAngle) {
this._y = this._y - speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) - 0.5;
} else {
this._x = this._x + (speed - 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 6 :
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) - 0.5;
} else {
this._x = this._x + (speed - 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 7 :
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) + 0.5;
} else {
this._x = this._x - (speed + 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 8 :
if (swapAngle) {
this._y = this._y - speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) + 0.5;
} else {
this._x = this._x - (speed + 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
}
if (chkOB()) {
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collHero()) {
eval (tmpName).char.step = "hurt";
_parent._parent.HP = _parent._parent.HP - eval (tmpName).Boss.bossAtk;
_parent._parent.refreshHP();
if (_parent._parent.HP <= 0) {
}
}
};
Symbol 17 MovieClip [bossBullet3_1] Frame 1
function chkOB() {
if ((((this._x < -50) || (this._x > 660)) || (this._y < -50)) || (this._y > 500)) {
return(true);
}
return(false);
}
function collHero() {
if (this.hitTest(eval (tmpName).char.collHero) && (eval (tmpName).char.step != "hurt")) {
return(true);
}
}
var tmpName = ("_parent._parent.Boss" + _parent._parent.stageNum);
var speed = ((random(4) + 3) + eval (tmpName).Boss.bulletSpeed);
_parent._parent.setCharToGlobal(eval (tmpName).char._x, eval (tmpName).char._y, "Boss" + _parent._parent.stageNum);
var bbX = _parent._parent.charPoint.x;
var bbY = _parent._parent.charPoint.y;
var bbDirection = _parent._parent.chkDirection(this._x, this._y, bbX, bbY);
var swapAngle = ((Math.atan2(Math.abs(this._y - bbY), Math.abs(this._x - bbX)) >= 1) ? true : false);
Symbol 17 MovieClip [bossBullet3_1] Frame 2
stop();
if ((((bbDirection == 5) || (bbDirection == 6)) || (bbDirection == 7)) || (bbDirection == 8)) {
if (swapAngle) {
var slope = ((bbX - this._x) / (bbY - this._y));
var conts = (this._x - (slope * this._y));
} else {
var slope = ((bbY - this._y) / (bbX - this._x));
var conts = (this._y - (slope * this._x));
}
}
this.onEnterFrame = function () {
switch (bbDirection) {
case 1 :
this._y = this._y - speed;
this._x = this._x - 0.5;
break;
case 2 :
this._x = this._x + (speed - 0.5);
break;
case 3 :
this._y = this._y + speed;
this._x = this._x - 0.5;
break;
case 4 :
this._x = this._x - (speed + 0.5);
break;
case 5 :
if (swapAngle) {
this._y = this._y - speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) - 0.5;
} else {
this._x = this._x + (speed - 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 6 :
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) - 0.5;
} else {
this._x = this._x + (speed - 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 7 :
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) + 0.5;
} else {
this._x = this._x - (speed + 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
break;
case 8 :
if (swapAngle) {
this._y = this._y - speed;
this._x = _parent._parent.bulletMove(this._y, slope, conts) + 0.5;
} else {
this._x = this._x - (speed + 0.5);
this._y = _parent._parent.bulletMove(this._x, slope, conts);
}
}
if (chkOB()) {
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collHero()) {
eval (tmpName).char.step = "hurt";
_parent._parent.HP = _parent._parent.HP - eval (tmpName).Boss.bossAtk;
_parent._parent.refreshHP();
if (_parent._parent.HP <= 0) {
}
}
};
Symbol 20 MovieClip [bossBullet1_2] Frame 1
function collHero() {
if (this.hitTest(eval (tmpName).char.collHero) && (eval (tmpName).char.step != "hurt")) {
return(true);
}
}
tmpName = "_parent._parent.Boss" + _parent._parent.stageNum;
var speed = (1 + eval (tmpName).Boss.bulletSpeed);
this._x = _parent._parent.point.x;
this._y = _parent._parent.point.y;
Symbol 20 MovieClip [bossBullet1_2] Frame 2
stop();
this.onEnterFrame = function () {
this._y = this._y - speed;
if (this._y < -50) {
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collHero()) {
eval (tmpName).char.step = "hurt";
_parent._parent.HP = _parent._parent.HP - eval (tmpName).Boss.bossAtk;
_parent._parent.refreshHP();
if (_parent._parent.HP <= 0) {
}
delete eval (this.onEnterFrame());
}
};
Symbol 21 MovieClip [bossBullet1_1] Frame 1
function collHero() {
if (this.hitTest(eval (tmpName).char.collHero) && (eval (tmpName).char.step != "hurt")) {
return(true);
}
}
tmpName = "_parent._parent.Boss" + _parent._parent.stageNum;
var speed = (2 + eval (tmpName).Boss.bulletSpeed);
this._x = _parent._parent.point.x;
this._y = _parent._parent.point.y;
Symbol 21 MovieClip [bossBullet1_1] Frame 2
stop();
this.onEnterFrame = function () {
this._y = this._y - speed;
this._x = this._x - 1;
if (this._y < -50) {
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collHero()) {
eval (tmpName).char.step = "hurt";
_parent._parent.HP = _parent._parent.HP - eval (tmpName).Boss.bossAtk;
_parent._parent.refreshHP();
if (_parent._parent.HP <= 0) {
}
delete eval (this.onEnterFrame());
}
};
Symbol 22 MovieClip [bossBullet2_2] Frame 1
function collHero() {
if (this.hitTest(eval (tmpName).char.collHero) && (eval (tmpName).char.step != "hurt")) {
return(true);
}
}
tmpName = "_parent._parent.Boss" + _parent._parent.stageNum;
var speed = ((1 + random(4)) + eval (tmpName).Boss.bulletSpeed);
Symbol 22 MovieClip [bossBullet2_2] Frame 2
stop();
this.onEnterFrame = function () {
this._y = this._y - speed;
if (this._y < -50) {
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collHero()) {
eval (tmpName).char.step = "hurt";
_parent._parent.HP = _parent._parent.HP - eval (tmpName).Boss.bossAtk;
_parent._parent.refreshHP();
if (_parent._parent.HP <= 0) {
}
}
};
Symbol 23 MovieClip [bossBullet2_1] Frame 1
function collHero() {
if (this.hitTest(eval (tmpName).char.collHero) && (eval (tmpName).char.step != "hurt")) {
return(true);
}
}
tmpName = "_parent._parent.Boss" + _parent._parent.stageNum;
var speed = ((1 + random(4)) + eval (tmpName).Boss.bulletSpeed);
Symbol 23 MovieClip [bossBullet2_1] Frame 2
stop();
this.onEnterFrame = function () {
this._y = this._y + speed;
if (this._y > 500) {
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collHero()) {
eval (tmpName).char.step = "hurt";
_parent._parent.HP = _parent._parent.HP - eval (tmpName).Boss.bossAtk;
_parent._parent.refreshHP();
if (_parent._parent.HP <= 0) {
}
}
};
Symbol 25 Button
on (release) {
buMoreGame();
}
Symbol 51 MovieClip Frame 11
_parent.gotoAndStop(2);
Symbol 61 MovieClip Frame 1
this.onEnterFrame = function () {
bytesloaded = Math.round(_root.getBytesLoaded());
bytestotal = Math.round(_root.getBytesTotal());
percent = bytesloaded / bytestotal;
barmask._xscale = percent * 100;
};
Symbol 92 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 92 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 103 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 103 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 111 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 111 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 119 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 119 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 127 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 127 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 135 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 135 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 143 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 143 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 151 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 151 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.gotoAndStop(2);
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 158 MovieClip Frame 133
_root.play();
Symbol 159 MovieClip Frame 1
stop();
_root.stop();
shiftamt = 17;
isloaded = false;
this.onEnterFrame = function () {
bytesloaded = Math.round(_root.getBytesLoaded());
bytestotal = Math.round(_root.getBytesTotal());
percent = bytesloaded / bytestotal;
if (bytesloaded == bytestotal) {
isloaded = true;
}
};
this.onRelease = function () {
getURL ("http://www.mofunzone.com/", "_blank");
};
Symbol 163 MovieClip Frame 10
stop();
Symbol 167 MovieClip Frame 10
stop();
Symbol 171 MovieClip Frame 10
stop();
Symbol 175 MovieClip Frame 10
stop();
Symbol 179 MovieClip Frame 10
stop();
Symbol 182 MovieClip Frame 10
stop();
Symbol 186 MovieClip Frame 10
stop();
Symbol 190 MovieClip Frame 10
stop();
Symbol 191 MovieClip [tree] Frame 1
function chkOB() {
return(((this._x > (_parent._parent.bgBound._x - this._width)) ? false : true));
}
stop();
var rand = (random(8) + 1);
gotoAndStop(rand);
this.onEnterFrame = function () {
if (!_root.gamepause) {
_x = (_x - _parent._parent._parent.bgSpeed);
if (chkOB()) {
this.removeMovieClip();
delete eval (this.onEnterFrame());
}
}
};
Symbol 222 MovieClip [Explode1] Frame 1
Symbol 222 MovieClip [Explode1] Frame 17
removeMovieClip(this);
Symbol 226 MovieClip [seedMeteorAtt] Frame 1
function chkDestination() {
if ((this._x >= desX) && (this._y >= desY)) {
return(true);
}
}
var speed = (_parent._parent._parent.fallSpeed * 5);
var enemyTarget = undefined;
var desX = _parent._parent.char._x;
var desY = _parent._parent.char._y;
with (_parent._parent) {
this._x = char._x - 1000;
this._y = char._y - 2500;
}
var swapAngle = ((Math.atan2(Math.abs(this._y - desY), Math.abs(this._x - desX)) >= 1) ? true : false);
Symbol 226 MovieClip [seedMeteorAtt] Frame 2
stop();
if (swapAngle) {
var slope = ((desX - this._x) / (desY - this._y));
var conts = (this._x - (slope * this._y));
} else {
var slope = ((desY - this._y) / (desX - this._x));
var conts = (this._y - (slope * this._x));
}
this.onEnterFrame = function () {
if (swapAngle) {
this._y = this._y + speed;
this._x = _parent._parent._parent.bulletMove(this._y, slope, conts);
} else {
this._x = this._x + speed;
this._y = _parent._parent._parent.bulletMove(this._x, slope, conts);
}
with (_parent._parent) {
if (this.chkDestination()) {
seedMeteorEffAttach.attachMovie("seedMeteorEff", "SME" + bombDepth, bombDepth++, {_x:this._x, _y:this._y});
this.removeMovieClip();
delete eval (this.onEnterFrame());
}
}
};
Symbol 278 MovieClip Frame 1
Symbol 278 MovieClip Frame 27
stop();
Symbol 330 MovieClip [bossExplode] Frame 1
Symbol 330 MovieClip [bossExplode] Frame 90
eval ("_parent." + _parent._parent.nameTar).planeInOut = true;
removeMovieClip(this);
Symbol 333 MovieClip Frame 1
_visible = false;
Symbol 377 MovieClip [seed03] Frame 1
function collEnemy() {
with (_parent._parent) {
i = 0;
while (i < eneList.length) {
if (this.seedHit.hitTest(eneList[i])) {
enemyTarget = eneList[i];
return(true);
}
i++;
}
}
}
function collBoss() {
with (_parent._parent) {
i = 0;
while (i < bossList.length) {
if (this.seedHit.hitTest(bossList[i])) {
return(true);
}
i++;
}
}
}
var speed = _root.fallSpeed;
var magicalShell = false;
var enemyTarget = undefined;
with (_parent._parent) {
this._x = random(540) + 100;
this._y = spanEnemy._y;
}
Symbol 377 MovieClip [seed03] Frame 2
stop();
this.onEnterFrame = function () {
this._y = this._y + speed;
this._x = this._x - 1;
with (_parent._parent) {
if (_parent.bossStage) {
if (this._y > 50) {
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collBoss()) {
Boss.bossHP = Boss.bossHP - _parent.charAttack;
if (Boss.bossHP <= 0) {
_root.score = _root.score + 1010;
_root.scoreText = _root.score.toString();
} else {
_root.score = _root.score + 10;
_root.scoreText = _root.score.toString();
}
bombEffAttach.attachMovie("bombEff", "Bomb" + bombDepth, bombDepth++, {_x:this._x, _y:this._y});
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collEnemy() && (magicalShell == false)) {
eval (enemyTarget).myHP = eval (enemyTarget).myHP - _parent.charAttack;
if (eval (enemyTarget).myHP <= 0) {
_root.score = _root.score + 10;
_root.scoreText = _root.score.toString();
subEnemyList(eval (enemyTarget));
enemyBombAttach.attachMovie("Explode1", "Ex" + bombDepth, bombDepth++, {_x:eval (enemyTarget)._x, _y:eval (enemyTarget)._y});
eval (enemyTarget).removeMovieClip();
delete eval (eval (enemyTarget).onEnterFrame());
}
bombEffAttach.attachMovie("bombEff", "Bomb" + bombDepth, bombDepth++, {_x:this._x, _y:this._y});
this.removeMovieClip();
delete eval (this.onEnterFrame());
}
} else if (this._y >= spanTree._y) {
treeGrowAttach.attachMovie("treeGrow", "tg" + treeGrowDepth, treeGrowDepth++, {_x:this._x, _y:spanTree._y});
_root.score = _root.score + 5;
_root.scoreText = _root.score.toString();
treeCount++;
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collEnemy() && (magicalShell == false)) {
eval (enemyTarget).myHP = eval (enemyTarget).myHP - _parent.charAttack;
if (eval (enemyTarget).myHP <= 0) {
_root.score = _root.score + 10;
_root.scoreText = _root.score.toString();
subEnemyList(eval (enemyTarget));
enemyBombAttach.attachMovie("Explode1", "Ex" + bombDepth, bombDepth++, {_x:eval (enemyTarget)._x, _y:eval (enemyTarget)._y});
eval (enemyTarget).removeMovieClip();
delete eval (eval (enemyTarget).onEnterFrame());
}
bombEffAttach.attachMovie("bombEff", "Bomb" + bombDepth, bombDepth++, {_x:this._x, _y:this._y});
this.removeMovieClip();
delete eval (this.onEnterFrame());
}
}
};
Instance of Symbol 376 MovieClip in Symbol 377 MovieClip [seed03] Frame 2
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.collEnemy() && (_parent.magicalShell == true)) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 454 MovieClip [seedMeteorEff] Frame 1
function collEnemy() {
with (_parent._parent) {
i = 0;
while (i < eneList.length) {
if (this.hitTest(eneList[i])) {
enemyTarget = eneList[i];
return(true);
}
i++;
}
}
}
function collBoss() {
with (_parent._parent) {
i = 0;
while (i < bossList.length) {
if (this.hitTest(bossList[i])) {
return(true);
}
i++;
}
}
}
var enemyTarget = undefined;
var collissionBoss = false;
var attackPower = 5;
this.onEnterFrame = function () {
with (_parent._parent) {
if (collBoss() && (!collissionBoss)) {
collissionBoss = true;
Boss.bossHP = Boss.bossHP - ((_parent.charAttack + attackPower) + random(attackPower));
if (Boss.bossHP <= 0) {
Boss.bossMove.gotoAndPlay("Dead");
bossBombAttach.attachMovie("bossExplode", "bossEx" + bossBombDepth, bossBombDepth++, {_x:Boss._x + (Boss._width / 2), _y:Boss._y + (Boss._height / 2)});
bossList = new Array();
_root.score = _root.score + 1100;
_root.scoreText = _root.score.toString();
} else {
_root.score = _root.score + 100;
_root.scoreText = _root.score.toString();
}
} else if (collEnemy()) {
eval (enemyTarget).myHP = eval (enemyTarget).myHP - ((_parent.charAttack + attackPower) + random(attackPower));
if (eval (enemyTarget).myHP <= 0) {
_root.score = _root.score + 100;
_root.scoreText = _root.score.toString();
subEnemyList(eval (enemyTarget));
enemyBombAttach.attachMovie("Explode1", "Ex" + bombDepth, bombDepth++, {_x:eval (enemyTarget)._x, _y:eval (enemyTarget)._y});
eval (enemyTarget).removeMovieClip();
delete eval (eval (enemyTarget).onEnterFrame());
}
}
}
};
Symbol 454 MovieClip [seedMeteorEff] Frame 40
removeMovieClip(this);
Symbol 456 MovieClip [flowerBombAtt] Frame 1
function collEnemy() {
with (_parent._parent) {
i = 0;
while (i < eneList.length) {
if (this.hitTest(eneList[i])) {
enemyTarget = eneList[i];
return(true);
}
i++;
}
}
}
function collBoss() {
with (_parent._parent) {
i = 0;
while (i < bossList.length) {
if (this.hitTest(bossList[i])) {
return(true);
}
i++;
}
}
}
var speed = (_parent._parent._parent.fallSpeed / 2);
var enemyTarget = undefined;
with (_parent._parent) {
this._x = char._x + char.seedPoint._x;
this._y = char._y + char.seedPoint._y;
}
Symbol 456 MovieClip [flowerBombAtt] Frame 2
stop();
this.onEnterFrame = function () {
this._y = this._y + speed;
this._x = this._x - 1;
with (_parent._parent) {
if (this._y >= spanTree._y) {
flowerBombEffAttach.attachMovie("flowerBombEff", "FBE" + bombDepth, bombDepth++, {_x:this._x, _y:this._y});
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collBoss()) {
flowerBombEffAttach.attachMovie("flowerBombEff", "FBE" + bombDepth, bombDepth++, {_x:this._x, _y:this._y});
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collEnemy()) {
flowerBombEffAttach.attachMovie("flowerBombEff", "FBE" + bombDepth, bombDepth++, {_x:this._x, _y:this._y});
this.removeMovieClip();
delete eval (this.onEnterFrame());
}
}
};
Symbol 517 MovieClip [flowerBombEff] Frame 1
function collEnemy() {
with (_parent._parent) {
i = 0;
while (i < eneList.length) {
if (this.hitTest(eneList[i])) {
enemyTarget = eneList[i];
return(true);
}
i++;
}
}
}
function collBoss() {
with (_parent._parent) {
i = 0;
while (i < bossList.length) {
if (this.hitTest(bossList[i])) {
return(true);
}
i++;
}
}
}
var enemyTarget = undefined;
var collissionBoss = false;
var attackPower = 2;
this.onEnterFrame = function () {
with (_parent._parent) {
if (collBoss() && (!collissionBoss)) {
collissionBoss = true;
Boss.bossHP = Boss.bossHP - ((_parent.charAttack + attackPower) + random(attackPower));
if (Boss.bossHP <= 0) {
Boss.bossMove.gotoAndPlay("Dead");
bossBombAttach.attachMovie("bossExplode", "bossEx" + bossBombDepth, bossBombDepth++, {_x:Boss._x + (Boss._width / 2), _y:Boss._y + (Boss._height / 2)});
bossList = new Array();
_root.score = _root.score + 1050;
_root.scoreText = _root.score.toString();
} else {
_root.score = _root.score + 50;
_root.scoreText = _root.score.toString();
}
} else if (collEnemy()) {
eval (enemyTarget).myHP = eval (enemyTarget).myHP - ((_parent.charAttack + attackPower) + random(attackPower));
if (eval (enemyTarget).myHP <= 0) {
_root.score = _root.score + 50;
_root.scoreText = _root.score.toString();
subEnemyList(eval (enemyTarget));
enemyBombAttach.attachMovie("Explode1", "Ex" + bombDepth, bombDepth++, {_x:eval (enemyTarget)._x, _y:eval (enemyTarget)._y});
eval (enemyTarget).removeMovieClip();
delete eval (eval (enemyTarget).onEnterFrame());
}
}
}
};
this._xscale = 150;
this._yscale = 150;
Symbol 517 MovieClip [flowerBombEff] Frame 32
removeMovieClip(this);
Symbol 519 MovieClip [seed01] Frame 1
function collEnemy() {
with (_parent._parent) {
i = 0;
while (i < eneList.length) {
if (this.seedHit.hitTest(eneList[i])) {
enemyTarget = eneList[i];
return(true);
}
i++;
}
}
}
function seedCollBoss() {
with (_parent._parent) {
i = 0;
while (i < bossList.length) {
if (this.seedHit.hitTest(bossList[i])) {
return(true);
}
i++;
}
}
}
var speed = (_root.skill1Active ? (_root.rainFallSpeed) : (_root.fallSpeed));
var magicSeed = (((_root.skillActivate >= 3) && (_root.skillDecision(3))) ? true : false);
var magicalShell = (((_root.skillActivate >= 4) && (_root.skillDecision(4))) ? true : false);
var enemyTarget = undefined;
with (_parent._parent) {
this._x = char._x + char.seedPoint._x;
this._y = char._y + char.seedPoint._y;
}
if (magicSeed) {
this._xscale = 150;
this._yscale = 150;
}
Symbol 519 MovieClip [seed01] Frame 2
stop();
this.onEnterFrame = function () {
this._y = this._y + speed;
this._x = this._x - 1;
with (_parent._parent) {
if (_parent.bossStage) {
if (this._y > 50) {
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (seedCollBoss()) {
Boss.bossHP = Boss.bossHP - _parent.charAttack;
if (Boss.bossHP <= 0) {
_root.score = _root.score + 1010;
_root.scoreText = _root.score.toString();
} else {
_root.score = _root.score + 10;
_root.scoreText = _root.score.toString();
}
bombEffAttach.attachMovie("bombEff", "Bomb" + bombDepth, bombDepth++, {_x:this._x, _y:this._y});
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collEnemy() && (magicalShell == false)) {
eval (enemyTarget).myHP = eval (enemyTarget).myHP - _parent.charAttack;
if (eval (enemyTarget).myHP <= 0) {
_root.score = _root.score + 10;
_root.scoreText = _root.score.toString();
subEnemyList(eval (enemyTarget));
enemyBombAttach.attachMovie("Explode1", "Ex" + bombDepth, bombDepth++, {_x:eval (enemyTarget)._x, _y:eval (enemyTarget)._y});
eval (enemyTarget).removeMovieClip();
delete eval (eval (enemyTarget).onEnterFrame());
}
bombEffAttach.attachMovie("bombEff", "Bomb" + bombDepth, bombDepth++, {_x:this._x, _y:this._y});
this.removeMovieClip();
delete eval (this.onEnterFrame());
}
} else if (this._y >= spanTree._y) {
if (magicSeed) {
treeGrowAttach.attachMovie("treeGrow", "tg" + treeGrowDepth, treeGrowDepth++, {_x:this._x, _y:spanTree._y});
_root.score = _root.score + 5;
_root.scoreText = _root.score.toString();
treeCount++;
}
treeGrowAttach.attachMovie("treeGrow", "tg" + treeGrowDepth, treeGrowDepth++, {_x:this._x, _y:spanTree._y});
_root.score = _root.score + 5;
_root.scoreText = _root.score.toString();
treeCount++;
this.removeMovieClip();
delete eval (this.onEnterFrame());
} else if (collEnemy() && (magicalShell == false)) {
eval (enemyTarget).myHP = eval (enemyTarget).myHP - _parent.charAttack;
if (eval (enemyTarget).myHP <= 0) {
_root.score = _root.score + 10;
_root.scoreText = _root.score.toString();
subEnemyList(eval (enemyTarget));
enemyBombAttach.attachMovie("Explode1", "Ex" + bombDepth, bombDepth++, {_x:eval (enemyTarget)._x, _y:eval (enemyTarget)._y});
eval (enemyTarget).removeMovieClip();
delete eval (eval (enemyTarget).onEnterFrame());
}
bombEffAttach.attachMovie("bombEff", "Bomb" + bombDepth, bombDepth++, {_x:this._x, _y:this._y});
this.removeMovieClip();
delete eval (this.onEnterFrame());
}
}
};
Instance of Symbol 376 MovieClip in Symbol 519 MovieClip [seed01] Frame 2
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.collEnemy() && (_parent.magicalShell == true)) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 540 MovieClip [bombEff] Frame 1
Symbol 540 MovieClip [bombEff] Frame 26
removeMovieClip(this);
Symbol 544 MovieClip Frame 100
if (random(3) == 0) {
play();
} else {
gotoAndPlay (1);
}
Symbol 545 MovieClip [ene01] Frame 1
function chkOB() {
return(((this._x > (_parent._parent.bgBound._x - this._width)) ? false : true));
}
_parent._parent.eneList.push(this);
var myHP = 999;
var myAttack = 20;
var mySpeed = 4;
var mySource = this._y;
var myDirection = 1;
Symbol 545 MovieClip [ene01] Frame 2
stop();
this.onEnterFrame = function () {
if (!_root.gamepause) {
if (myDirection == 1) {
this._x = this._x - mySpeed;
}
if (chkOB()) {
_parent._parent.subEnemyList(this);
this.removeMovieClip();
delete this.onEnterFrame;
}
if (this.hitTest(_parent._parent.char.collHero) && (_parent._parent.char.step != "hurt")) {
_parent._parent.char.step = "hurt";
_parent._parent._parent.HP = _parent._parent._parent.HP - myAttack;
_parent._parent._parent.refreshHP();
}
}
};
Symbol 552 MovieClip [treeGrow] Frame 1
this.onEnterFrame = function () {
if (!_root.gamepause) {
_x = (_x - _parent._parent._parent.bgSpeed);
}
};
Symbol 552 MovieClip [treeGrow] Frame 18
with (_parent._parent) {
treeAttach.attachMovie("tree", "tree" + treeDepth, treeDepth++, {_x:this._x, _y:this._y});
}
Symbol 552 MovieClip [treeGrow] Frame 45
removeMovieClip(this);
Symbol 555 MovieClip [ene02] Frame 1
function chkOB() {
return(((this._x > (_parent._parent.bgBound._x - this._width)) ? false : true));
}
_parent._parent.eneList.push(this);
var myHP = 999;
var myAttack = 20;
var mySpeed = 8;
var mySource = this._y;
var myDirection = 1;
Symbol 555 MovieClip [ene02] Frame 2
stop();
this.onEnterFrame = function () {
if (!_root.gamepause) {
if (myDirection == 1) {
this._x = this._x - mySpeed;
}
if (chkOB()) {
_parent._parent.subEnemyList(this);
this.removeMovieClip();
delete this.onEnterFrame;
}
if (this.hitTest(_parent._parent.char.collHero) && (_parent._parent.char.step != "hurt")) {
_parent._parent.char.step = "hurt";
_parent._parent._parent.HP = _parent._parent._parent.HP - myAttack;
_parent._parent._parent.refreshHP();
}
}
};
Symbol 558 MovieClip [ene05] Frame 1
function chkOB() {
return(((this._x > (_parent._parent.bgBound._x - this._width)) ? false : true));
}
_parent._parent.eneList.push(this);
var myHP = 999;
var myAttack = 20;
var mySpeed = 4;
var mySource = this._y;
var myDestination = undefined;
var myDirection = 2;
tmpPoint = random(6) + 1;
if (tmpPoint != myPos) {
myDestination = _parent._parent["esp" + tmpPoint]._y;
}
Symbol 558 MovieClip [ene05] Frame 2
stop();
var myM = ((myDestination - this._y) / (_parent._parent.spanEnemy._x - this._x));
var myC = (this._y - (myM * this._x));
this.onEnterFrame = function () {
if (!_root.gamepause) {
if (myDirection == 1) {
this._x = this._x - mySpeed;
} else {
this._x = this._x - mySpeed;
this._y = _parent._parent._parent.enemyDirection(myDirection, this._x, myM, myC);
if (this._x <= _parent._parent.spanEnemy._x) {
myDirection = 1;
}
}
if (chkOB()) {
_parent._parent.subEnemyList(this);
this.removeMovieClip();
delete this.onEnterFrame;
}
if (this.hitTest(_parent._parent.char.collHero) && (_parent._parent.char.step != "hurt")) {
_parent._parent.char.step = "hurt";
_parent._parent._parent.HP = _parent._parent._parent.HP - myAttack;
_parent._parent._parent.refreshHP();
}
}
};
Symbol 561 MovieClip [ene06] Frame 1
function chkOB() {
return(((this._x > (_parent._parent.bgBound._x - this._width)) ? false : true));
}
_parent._parent.eneList.push(this);
var myHP = 999;
var myAttack = 20;
var mySpeed = 8;
var mySource = this._y;
var myDestination = _parent._parent.char._y;
var myDirection = 3;
Symbol 561 MovieClip [ene06] Frame 2
stop();
var myM = ((myDestination - this._y) / (_parent._parent.spanEnemy._x - this._x));
var myC = (this._y - (myM * this._x));
this.onEnterFrame = function () {
if (!_root.gamepause) {
if (myDirection == 1) {
this._x = this._x - mySpeed;
} else {
this._x = this._x - mySpeed;
this._y = _parent._parent._parent.enemyDirection(myDirection, this._x, myM, myC);
if (this._x <= _parent._parent.spanEnemy._x) {
myDirection = 1;
}
}
if (chkOB()) {
_parent._parent.subEnemyList(this);
this.removeMovieClip();
delete this.onEnterFrame;
}
if (this.hitTest(_parent._parent.char.collHero) && (_parent._parent.char.step != "hurt")) {
_parent._parent.char.step = "hurt";
_parent._parent._parent.HP = _parent._parent._parent.HP - myAttack;
_parent._parent._parent.refreshHP();
}
}
};
Symbol 564 MovieClip [ene03] Frame 1
function chkOB() {
chkLeft = this._x < (_parent._parent.bgBound._x - this._width);
chkTop = this._y < (_parent._parent.spanEnemy._y - this._height);
chkBottom = this._y > (_parent._parent.bgBound._y + this._height);
return((((chkLeft || (chkTop)) || (chkBottom)) ? true : false));
}
_parent._parent.eneList.push(this);
var myHP = 999;
var myAttack = 20;
var mySpeed = 4;
var mySource = this._y;
var myDirection = 1;
Symbol 564 MovieClip [ene03] Frame 2
stop();
var myM = undefined;
var myC = undefined;
this.onEnterFrame = function () {
if (!_root.gamepause) {
if ((myDirection == 1) && ((this._x - _parent._parent.char._x) > 200)) {
this._x = this._x - mySpeed;
} else if (myDirection != 3) {
myDirection = 3;
myM = (_parent._parent.char._y - this._y) / (_parent._parent.char._x - this._x);
myC = this._y - (myM * this._x);
}
if (myDirection == 3) {
this._x = this._x - mySpeed;
this._y = _parent._parent._parent.enemyDirection(myDirection, this._x, myM, myC);
}
if (chkOB()) {
_parent._parent.subEnemyList(this);
this.removeMovieClip();
delete this.onEnterFrame;
}
if (this.hitTest(_parent._parent.char.collHero) && (_parent._parent.char.step != "hurt")) {
_parent._parent.char.step = "hurt";
_parent._parent._parent.HP = _parent._parent._parent.HP - myAttack;
_parent._parent._parent.refreshHP();
}
}
};
Symbol 567 MovieClip [ene04] Frame 1
function chkOB() {
return(((this._x > (_parent._parent.bgBound._x - this._width)) ? false : true));
}
_parent._parent.eneList.push(this);
var myHP = 999;
var myAttack = 20;
var mySpeed = 8;
var mySource = this._y;
var myDirection = 1;
Symbol 567 MovieClip [ene04] Frame 2
stop();
this.onEnterFrame = function () {
if (!_root.gamepause) {
if (myDirection == 1) {
this._x = this._x - mySpeed;
}
if (chkOB()) {
_parent._parent.subEnemyList(this);
this.removeMovieClip();
delete this.onEnterFrame;
}
if (this.hitTest(_parent._parent.char.collHero) && (_parent._parent.char.step != "hurt")) {
_parent._parent.char.step = "hurt";
_parent._parent._parent.HP = _parent._parent._parent.HP - myAttack;
_parent._parent._parent.refreshHP();
}
}
};
Symbol 571 MovieClip Frame 1
gotoAndPlay("p" + random(3));
Symbol 571 MovieClip Frame 60
gotoAndPlay("p" + random(3));
Symbol 571 MovieClip Frame 130
gotoAndPlay("p" + random(3));
Symbol 572 MovieClip [ene07] Frame 1
function chkOB() {
return(((this._x > (_parent._parent.bgBound._x - this._width)) ? false : true));
}
_parent._parent.eneList.push(this);
var myHP = 500;
var myAttack = 20;
var mySpeed = 3;
var mySource = this._y;
var myDirection = 1;
Symbol 572 MovieClip [ene07] Frame 2
stop();
this.onEnterFrame = function () {
if (!_root.gamepause) {
if (myDirection == 1) {
this._x = this._x - mySpeed;
}
if (chkOB()) {
_parent._parent.subEnemyList(this);
this.removeMovieClip();
delete this.onEnterFrame;
}
if (this.hitTest(_parent._parent.char.collHero) && (_parent._parent.char.step != "hurt")) {
_parent._parent.char.step = "hurt";
_parent._parent._parent.HP = _parent._parent._parent.HP - myAttack;
_parent._parent._parent.refreshHP();
}
}
};
Symbol 576 MovieClip Frame 1
gotoAndPlay("p" + random(3));
Symbol 576 MovieClip Frame 60
gotoAndPlay("p" + random(3));
Symbol 576 MovieClip Frame 130
gotoAndPlay("p" + random(3));
Symbol 577 MovieClip [ene08] Frame 1
function chkOB() {
return(((this._x > (_parent._parent.bgBound._x - this._width)) ? false : true));
}
_parent._parent.eneList.push(this);
var myHP = 500;
var myAttack = 20;
var mySpeed = 3;
var mySource = this._y;
var myDirection = 1;
Symbol 577 MovieClip [ene08] Frame 2
stop();
this.onEnterFrame = function () {
if (!_root.gamepause) {
if (myDirection == 1) {
this._x = this._x - mySpeed;
}
if (chkOB()) {
_parent._parent.subEnemyList(this);
this.removeMovieClip();
delete this.onEnterFrame;
}
if (this.hitTest(_parent._parent.char.collHero) && (_parent._parent.char.step != "hurt")) {
_parent._parent.char.step = "hurt";
_parent._parent._parent.HP = _parent._parent._parent.HP - myAttack;
_parent._parent._parent.refreshHP();
}
}
};
Symbol 580 MovieClip [ene09] Frame 1
function chkOB() {
return(((this._x > (_parent._parent.bgBound._x - this._width)) ? false : true));
}
_parent._parent.eneList.push(this);
var myHP = 500;
var myAttack = 20;
var mySpeed = 9;
var mySource = this._y;
var myDirection = 1;
Symbol 580 MovieClip [ene09] Frame 2
stop();
this.onEnterFrame = function () {
if (!_root.gamepause) {
if (myDirection == 1) {
this._x = this._x - mySpeed;
}
if (chkOB()) {
_parent._parent.subEnemyList(this);
this.removeMovieClip();
delete this.onEnterFrame;
}
if (this.hitTest(_parent._parent.char.collHero) && (_parent._parent.char.step != "hurt")) {
_parent._parent.char.step = "hurt";
_parent._parent._parent.HP = _parent._parent._parent.HP - myAttack;
_parent._parent._parent.refreshHP();
}
}
};
Symbol 583 MovieClip [ene10] Frame 1
function chkOB() {
return(((this._x > (_parent._parent.bgBound._x - this._width)) ? false : true));
}
_parent._parent.eneList.push(this);
var myHP = 999;
var myAttack = 20;
var mySpeed = 3;
var mySource = this._y;
var myDestination = _parent._parent.char._y;
var myDirection = 3;
Symbol 583 MovieClip [ene10] Frame 2
stop();
var myM = ((myDestination - this._y) / (_parent._parent.spanEnemy._x - this._x));
var myC = (this._y - (myM * this._x));
this.onEnterFrame = function () {
if (!_root.gamepause) {
if (myDirection == 1) {
this._x = this._x - mySpeed;
} else {
this._x = this._x - mySpeed;
this._y = _parent._parent._parent.enemyDirection(myDirection, this._x, myM, myC);
if (this._x <= _parent._parent.spanEnemy._x) {
myDirection = 1;
}
}
if (chkOB()) {
_parent._parent.subEnemyList(this);
this.removeMovieClip();
delete this.onEnterFrame;
}
if (this.hitTest(_parent._parent.char.collHero) && (_parent._parent.char.step != "hurt")) {
_parent._parent.char.step = "hurt";
_parent._parent._parent.HP = _parent._parent._parent.HP - myAttack;
_parent._parent._parent.refreshHP();
}
}
};
Symbol 586 MovieClip [ene11] Frame 1
function chkOB() {
return(((this._x > (_parent._parent.bgBound._x - this._width)) ? false : true));
}
_parent._parent.eneList.push(this);
var myHP = 999;
var myAttack = 20;
var mySpeed = 13;
var mySource = this._y;
var myDirection = 1;
Symbol 586 MovieClip [ene11] Frame 2
stop();
this.onEnterFrame = function () {
if (!_root.gamepause) {
if (myDirection == 1) {
this._x = this._x - mySpeed;
}
if (chkOB()) {
_parent._parent.subEnemyList(this);
this.removeMovieClip();
delete this.onEnterFrame;
}
if (this.hitTest(_parent._parent.char.collHero) && (_parent._parent.char.step != "hurt")) {
_parent._parent.char.step = "hurt";
_parent._parent._parent.HP = _parent._parent._parent.HP - myAttack;
_parent._parent._parent.refreshHP();
}
}
};
Symbol 587 MovieClip [ene12] Frame 1
function chkOB() {
return(((this._x > (_parent._parent.bgBound._x - this._width)) ? false : true));
}
_parent._parent.eneList.push(this);
var myHP = 999;
var myAttack = 20;
var mySpeed = 13;
var mySource = this._y;
var myDirection = 1;
Symbol 587 MovieClip [ene12] Frame 2
stop();
this.onEnterFrame = function () {
if (!_root.gamepause) {
if (myDirection == 1) {
this._x = this._x - mySpeed;
}
if (chkOB()) {
_parent._parent.subEnemyList(this);
this.removeMovieClip();
delete this.onEnterFrame;
}
if (this.hitTest(_parent._parent.char.collHero) && (_parent._parent.char.step != "hurt")) {
_parent._parent.char.step = "hurt";
_parent._parent._parent.HP = _parent._parent._parent.HP - myAttack;
_parent._parent._parent.refreshHP();
}
}
};
Symbol 588 MovieClip [ene13] Frame 1
function chkOB() {
return(((this._x > (_parent._parent.bgBound._x - this._width)) ? false : true));
}
_parent._parent.eneList.push(this);
var myHP = 999;
var myAttack = 10;
var mySpeed = 4;
var mySource = this._y;
var myDirection = 1;
Symbol 588 MovieClip [ene13] Frame 2
stop();
this.onEnterFrame = function () {
if (!_root.gamepause) {
if (myDirection == 1) {
this._x = this._x - mySpeed;
}
if (chkOB()) {
_parent._parent.subEnemyList(this);
this.removeMovieClip();
delete this.onEnterFrame;
}
if (this.hitTest(_parent._parent.char.collHero) && (_parent._parent.char.step != "hurt")) {
_parent._parent.char.step = "hurt";
_parent._parent._parent.HP = _parent._parent._parent.HP - myAttack;
_parent._parent._parent.refreshHP();
}
}
};
Symbol 589 MovieClip Frame 1
stop();
Symbol 615 MovieClip Frame 1
stop();
Symbol 618 MovieClip Frame 1
stop();
Symbol 621 MovieClip Frame 1
stop();
Symbol 629 Button
on (release) {
if (_parent.APPoint > 0) {
_parent.APPoint--;
_parent.APPointText = _parent.APPoint.toString();
_parent.charAttack = _parent.charAttack + 0.6;
_parent.attackText = _parent.charAttack.toString();
}
}
on (rollOver) {
description.text = "Attack";
}
on (rollOut) {
description.text = "";
}
Symbol 630 Button
on (release) {
if (_parent.APPoint > 0) {
_parent.APPoint--;
_parent.charSpeed = _parent.charSpeed + 0.5;
_parent.APPointText = _parent.APPoint.toString();
_parent.fallSpeed = _parent.fallSpeed + 0.5;
_parent.fallSpeedText = _parent.fallSpeed.toString();
}
}
on (rollOver) {
description.text = "Increase the speed of both seed falling down and your movement.";
bg2._visible = true;
}
on (rollOut) {
description.text = "";
bg2._visible = false;
}
Symbol 631 Button
on (release) {
if (_parent.APPoint > 0) {
_parent.APPoint--;
_parent.APPointText = _parent.APPoint.toString();
_parent.dropActive = _parent.dropActive + 0.05;
_parent.dropActiveText = _parent.dropActive.toString();
}
}
on (rollOver) {
description.text = "Makes you drop more seeds.";
bg2._visible = true;
}
on (rollOut) {
description.text = "";
bg2._visible = false;
}
Symbol 632 Button
on (release) {
if (_parent.APPoint > 0) {
_parent.APPoint--;
_parent.APPointText = _parent.APPoint.toString();
_parent.charTalent = _parent.charTalent + 0.5;
_parent.talentText = _parent.charTalent.toString();
}
}
on (rollOver) {
description.text = "Improve efficiency of most skills you have enabled.";
bg2._visible = true;
}
on (rollOut) {
description.text = "";
bg2._visible = false;
}
Symbol 645 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(skillUI);
};
b1.onRollOver = function () {
description.text = "Randomly increases speed of seeds falling down for a certain period of time.";
_parent.bg1._visible = true;
};
b1.onRollOut = function () {
description.text = "";
_parent.bg1._visible = false;
};
b2.onRollOver = function () {
description.text = "Automatically recovers your health.";
_parent.bg1._visible = true;
};
b2.onRollOut = function () {
description.text = "";
_parent.bg1._visible = false;
};
b3.onRollOver = function () {
description.text = "Randomly makes one seed grow multiple trees.";
_parent.bg1._visible = true;
};
b3.onRollOut = function () {
description.text = "";
_parent.bg1._visible = false;
};
b4.onRollOver = function () {
description.text = "Randomly lets seeds fall through enemy.";
_parent.bg1._visible = true;
};
b4.onRollOut = function () {
description.text = "";
_parent.bg1._visible = false;
};
b5.onRollOver = function () {
description.text = "Randomly makes you drop more seeds.";
_parent.bg1._visible = true;
};
b5.onRollOut = function () {
description.text = "";
_parent.bg1._visible = false;
};
b6.onRollOver = function () {
description.text = "Randomly drops seeds from the sky.";
_parent.bg1._visible = true;
};
b6.onRollOut = function () {
description.text = "";
_parent.bg1._visible = false;
};
b7.onRollOver = function () {
description.text = "Allows you to drop powerful seed bombs after every certain time.";
_parent.bg1._visible = true;
};
b7.onRollOut = function () {
description.text = "";
_parent.bg1._visible = false;
};
b8.onRollOver = function () {
description.text = "Allows you to summon a magical seed after every certain time.";
_parent.bg1._visible = true;
};
b8.onRollOut = function () {
description.text = "";
_parent.bg1._visible = false;
};
b9.onRollOver = function () {
description.text = "Permanently increases your health, health recovery, and attack power.";
_parent.bg1._visible = true;
};
b9.onRollOut = function () {
description.text = "";
_parent.bg1._visible = false;
};
Symbol 669 Button
on (release) {
_parent.stageNum = 1;
_parent.gotoAndStop("S1");
}
Symbol 671 Button
on (release) {
_parent.stageNum = 3;
_parent.gotoAndStop("S3");
}
Symbol 673 Button
on (release) {
_parent.stageNum = 2;
_parent.gotoAndStop("S2");
}
Symbol 675 Button
on (release) {
_parent.stageNum = 4;
_parent.gotoAndStop("S4");
}
Symbol 677 Button
on (release) {
_parent.stageNum = 5;
_parent.gotoAndStop("S5");
}
Symbol 683 Button
on (release) {
if (_parent.bossAlive[1]) {
_parent.stageNum = 2;
bossHPText = "" + (85 + Math.round(450 / _parent.bossNum));
bossAtkText = "" + (10 + Math.round(10 / _parent.bossNum));
bossWarning._visible = true;
}
}
Symbol 684 Button
on (release) {
if (_parent.bossAlive[0]) {
_parent.stageNum = 1;
bossHPText = "" + (100 + Math.round(450 / _parent.bossNum));
bossAtkText = "" + (10 + Math.round(10 / _parent.bossNum));
bossWarning._visible = true;
}
}
Symbol 685 Button
on (release) {
if (_parent.bossAlive[2]) {
_parent.stageNum = 3;
bossHPText = "" + (135 + Math.round(450 / _parent.bossNum));
bossAtkText = "" + (10 + Math.round(5 / _parent.bossNum));
bossWarning._visible = true;
}
}
Symbol 686 Button
on (release) {
if (_parent.bossAlive[4]) {
_parent.stageNum = 5;
bossHPText = "" + (180 + Math.round(600 / _parent.bossNum));
bossAtkText = "" + (10 + Math.round(10 / _parent.bossNum));
bossWarning._visible = true;
}
}
Symbol 687 Button
on (release) {
if (_parent.bossAlive[3]) {
_parent.stageNum = 4;
bossHPText = "" + (150 + Math.round(600 / _parent.bossNum));
bossAtkText = "" + (10 + Math.round(10 / _parent.bossNum));
bossWarning._visible = true;
}
}
Symbol 691 MovieClip Frame 1
useHandCursor = false;
onRelease = function () {
};
Symbol 696 Button
on (release) {
_parent.attrAlert._visible = false;
_parent._parent.attrAlertCheck = false;
}
Symbol 701 Button
on (release) {
_parent.skillAlert._visible = false;
}
Symbol 712 Button
on (release) {
_parent.bossWarning._visible = false;
}
Symbol 714 Button
on (release) {
_parent._parent.bossStage = true;
_parent._parent.gotoAndStop("B" + _parent._parent.stageNum);
}
Symbol 716 MovieClip Frame 1
stop();
treeBG.gotoAndStop(_parent.bossNum + 1);
groundBG.gotoAndStop(_parent.bossNum + 1);
colorBG.gotoAndStop(_parent.bossNum + 1);
bg1._visible = false;
bg2._visible = false;
skillAlert._visible = false;
attrAlert._visible = false;
bossWarning._visible = false;
Instance of Symbol 645 MovieClip "skillProgress" in Symbol 716 MovieClip Frame 1
onClipEvent (load) {
var skillUI = (_parent._parent.skillActivate + 1);
}
Symbol 742 MovieClip Frame 1
stop();
b_Next.onRelease = function () {
play();
};
Symbol 742 MovieClip Frame 10
stop();
b_Next.onRelease = function () {
play();
};
Symbol 742 MovieClip Frame 20
stop();
b_Next.onRelease = function () {
play();
};
Symbol 742 MovieClip Frame 30
stop();
b_Next.onRelease = function () {
play();
};
Symbol 742 MovieClip Frame 40
stop();
b_Next.onRelease = function () {
play();
};
Symbol 742 MovieClip Frame 50
stop();
b_Next.onRelease = function () {
play();
};
Symbol 742 MovieClip Frame 60
_parent.tutorial._visible = false;
Symbol 756 MovieClip Frame 1
stop();
(_parent.bossStage ? (gotoAndStop ("BossBG")) : (gotoAndStop(_parent.stageNum)));
Symbol 764 MovieClip Frame 1
_visible = false;
Symbol 766 MovieClip Frame 1
_parent.boundList.push(this);
_visible = false;
Symbol 771 MovieClip Frame 25
if (((parseInt(_parent.second2Time) == 0) && (parseInt(_parent.second1Time) == 0)) && (parseInt(_parent.minuteTime) == 0)) {
_parent.timesUP = true;
gotoAndStop ("Stop");
} else {
_parent.second2Time = _parent.second2Time - 1;
if (_parent.second2Time < 0) {
_parent.second1Time = _parent.second1Time - 1;
_parent.second2Time = 9;
}
if (_parent.second1Time < 0) {
_parent.minuteTime = _parent.minuteTime - 1;
_parent.second1Time = 5;
_parent.second2Time = 9;
}
if (((_parent.minuteTime < 1) && (_parent.second1Time <= 1)) && (_parent.second2Time <= 0)) {
_parent.enemyShow = false;
}
gotoAndPlay ("restart");
}
Symbol 771 MovieClip Frame 31
stop();
Symbol 777 MovieClip Frame 30
with (_parent._parent) {
_root.gamepause = false;
planeInit = false;
planeInOut = false;
Boss.bossIn.play();
}
_parent.step = "still";
_parent.play();
Symbol 778 MovieClip Frame 1
_visible = false;
Symbol 779 MovieClip Frame 1
_visible = false;
Symbol 828 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_parent._parent._parent.skill1Active) {
play();
}
};
Symbol 828 MovieClip Frame 26
if (_parent._parent._parent.skill1Active) {
gotoAndPlay ("Show");
} else {
gotoAndStop ("Hide");
}
Symbol 879 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_parent._parent._parent.skill2Active) {
play();
}
};
Symbol 879 MovieClip Frame 27
_parent._parent._parent.delayCounter.healSkillDelay = 0;
_parent._parent._parent.skill2Active = false;
Symbol 894 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_parent._parent._parent.skill5Active) {
play();
}
};
Symbol 894 MovieClip Frame 9
_parent._parent._parent.delayCounter.refreshSkillDelay = 0;
_parent._parent._parent.skill5Active = false;
Symbol 945 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_parent._parent._parent.fullPowerSet) {
play();
}
};
Symbol 945 MovieClip Frame 26
if (_parent._parent._parent.fullPowerSet) {
gotoAndPlay ("Show");
} else {
gotoAndStop ("Hide");
}
Symbol 946 MovieClip Frame 5
stop();
Symbol 946 MovieClip Frame 10
gotoAndPlay(step);
Symbol 946 MovieClip Frame 15
gotoAndPlay(step);
Symbol 946 MovieClip Frame 20
gotoAndPlay(step);
Symbol 946 MovieClip Frame 45
if (_root.HP > 0) {
this.step = "still";
} else {
this.step = "die";
}
this.gotoAndPlay(step);
Symbol 946 MovieClip Frame 46
_root.gamepause = true;
_parent.planeInOut = true;
Symbol 946 MovieClip Frame 75
_root.life--;
if (_root.life > 0) {
_root.HP = 10;
_parent.lifeHero = _root.life;
_x = _parent.planeX;
_y = _parent.planeY;
_root.refreshHP();
gotoAndPlay ("start");
} else {
_parent.lifeHero = _root.life;
_parent.enemyShow = false;
_root.gotoAndPlay("Gameover");
}
Symbol 947 MovieClip Frame 1
var stagePercent = 0;
var planeInOut = true;
var enemyShow = true;
var seedDepth = 1;
var seedRainDepth = 1;
var treeDepth = 1;
var monDepth = 1;
var bombDepth = 1;
var treeGrowDepth = 1;
var treeCount = 0;
var treeGoal = 100;
createEmptyMovieClip("seedAttach", 1);
createEmptyMovieClip("seedRainAttach", 2);
createEmptyMovieClip("treeAttach", 3);
createEmptyMovieClip("monAttach", 4);
createEmptyMovieClip("treeGrowAttach", 5);
createEmptyMovieClip("enemyBombAttach", 6);
createEmptyMovieClip("flowerBombAttach", 7);
createEmptyMovieClip("flowerBombEffAttach", 8);
createEmptyMovieClip("seedMeteorAttach", 9);
createEmptyMovieClip("seedMeteorEffAttach", 10);
createEmptyMovieClip("bombEffAttach", 11);
var minuteTime = 1;
var second1Time = 0;
var second2Time = 0;
var timesUP = false;
Instance of Symbol 763 MovieClip "bgCtrl" in Symbol 947 MovieClip Frame 1
onClipEvent (load) {
function bgCtrl() {
with (_parent) {
bg1._x = bg1._x - _parent.bgSpeed;
bg2._x = bg2._x - _parent.bgSpeed;
}
if (chkOB()) {
lastIndex = _parent.bgList[_parent.bgList.length - 1];
firstIndex = _parent.bgList.shift();
obj = eval ("_parent.bg" + firstIndex);
tar = eval ("_parent.bg" + lastIndex);
obj._x = tar._x + tar._width;
_parent.bgList.push(firstIndex);
}
}
function chkOB() {
if (_parent.bgBound.hitTest(eval ("_parent.bg" + _parent.bgList[0]))) {
return(false);
}
return(true);
}
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
bgCtrl();
}
}
Symbol 947 MovieClip Frame 2
var bgList = new Array(1, 2);
var boundList = new Array();
var eneList = new Array();
var planeX = undefined;
var planeY = undefined;
Symbol 947 MovieClip Frame 3
function subEnemyList(enemyName) {
var _local2 = 0;
while (_local2 < eneList.length) {
if (enemyName == eneList[_local2]) {
_parent.eneList.splice(_local2, 1);
}
_local2++;
}
}
Instance of Symbol 773 MovieClip in Symbol 947 MovieClip Frame 5
onClipEvent (load) {
function enemyCtrl() {
with (_parent) {
if ((++this.enemyBoneAction) >= _parent.enemyDelay) {
this.enemyRandom = random(_parent.enemyArray.length);
this.ESPRandom = random(8) + 1;
monAttach.attachMovie(_parent.enemyArray[this.enemyRandom], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction = 0;
}
if (((++this.enemyBoneAction2) >= _parent.enemyArray2delay) && (random(100) <= _parent.enemyArray2rate)) {
this.enemyRandom2 = random(_parent.enemyArray2.length);
this.ESPRandom = random(8) + 1;
monAttach.attachMovie(_parent.enemyArray2[this.enemyRandom2], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction2 = 0;
}
}
}
var enemyBoneAction = 0;
var enemyBoneAction2 = 0;
var enemyRandom = undefined;
var ESPRandom = undefined;
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (_parent.enemyShow)) {
enemyCtrl();
}
}
Instance of Symbol 946 MovieClip "char" in Symbol 947 MovieClip Frame 5
onClipEvent (load) {
function charCtrl() {
if (((!Key.isDown(40)) && (!Key.isDown(38))) && (step != "hurt")) {
step = "still";
}
if (Key.isDown(65)) {
_x = (_x - speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(68)) {
_x = (_x + speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(87)) {
_y = (_y - speedAcc);
if (step != "hurt") {
step = "up";
}
}
if (Key.isDown(83)) {
_y = (_y + speedAcc);
if (step != "hurt") {
step = "down";
}
}
if (_parent._parent.skill5Active) {
_parent._parent.skill5Active = false;
shot = true;
} else {
((reload <= _parent._parent.dropDelay) ? ((reload = reload + _parent._parent.dropActive)) : ((shot = true)));
}
if (shot && (step != "hurt")) {
_parent.seedAttach.attachMovie("seed01", "seed" + _parent.seedDepth, _parent.seedDepth++);
reload = 0;
shot = false;
}
if (collLeft()) {
_x = (_x + speedAcc);
}
if (collRight()) {
_x = (_x - speedAcc);
}
if (collCeil()) {
_y = (_y + speedAcc);
}
if (collFloor()) {
_y = (_y - speedAcc);
}
}
_parent.planeX = _x;
_parent.planeY = _y;
speedAcc = _parent._parent.charSpeed;
var reload = 0;
var shot = false;
collCeil = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collTop.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collFloor = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBottom.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collLeft = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBack.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collRight = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collFront.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (!_parent.timesUP)) {
charCtrl();
} else if (_parent.timesUP) {
step = "still";
this._x = this._x + speedAcc;
if (this._x >= 700) {
_parent._parent.S1Per = ((_parent.stagePercent >= 100) ? 100 : (_parent.stagePercent));
_parent._parent.seedRainSkillCounter.gotoAndPlay("Stop");
_parent._parent.gotoAndPlay("Levelclear");
}
}
}
Symbol 947 MovieClip Frame 9
stop();
onEnterFrame = function () {
stagePercent = (treeCount / treeGoal) * 100;
_parent.stagePerText = ((stagePercent >= 100) ? "100%" : (stagePercent + " %"));
_parent.stageTime = ((("0" + minuteTime) + " : ") + second1Time) + second2Time;
};
Symbol 950 Button
on (release) {
_root.PubLink();
}
Symbol 957 MovieClip Frame 1
stop();
Symbol 977 MovieClip Frame 1
stop();
onEnterFrame = function () {
skillUI = _parent.skillActivate + 1;
gotoAndStop(skillUI);
};
Symbol 985 MovieClip Frame 25
if (!eval (_parent.nameTar).planeInOut) {
with (_parent) {
if (((skillActivate >= 1) && (skill1Active == false)) && ((++this.rainSkillDelay) == rainSkillDelayTime)) {
if (skillDecision(1)) {
skill1Active = true;
rainSkillCounter.gotoAndPlay("restart");
}
this.rainSkillDelay = 0;
}
if (((skillActivate >= 2) && (skill2Active == false)) && ((++this.healSkillDelay) == healSkillDelayTime)) {
skill2Active = true;
HP = HP + (HPRecovery + charTalent);
if (HP > fullHP) {
HP = fullHP;
}
refreshHP();
}
if (((skillActivate >= 5) && (skill5Active == false)) && ((++this.refreshSkillDelay) == refreshSkillDelayTime)) {
skill5Active = true;
}
if ((skillActivate >= 8) && ((++this.flowerBombSkillDelay) == flowerBombSkillDelayTime)) {
eval (nameTar).flowerBombAttach.attachMovie("flowerBombAtt", "FBA" + eval (nameTar).seedDepth, eval (_parent.nameTar).seedDepth++);
this.flowerBombSkillDelay = 0;
}
if ((skillActivate >= 9) && ((++this.seedMeteorSkillDelay) == seedMeteorSkillDelayTime)) {
eval (nameTar).seedMeteorAttach.attachMovie("seedMeteorAtt", "SMA" + eval (nameTar).seedDepth, eval (_parent.nameTar).seedDepth++);
this.seedMeteorSkillDelay = 0;
}
}
}
gotoAndPlay ("restart");
Symbol 985 MovieClip Frame 31
stop();
Symbol 987 MovieClip Frame 25
if ((++counter) >= _parent.rainDurationTimeRand()) {
counter = 0;
_parent.delayCounter.rainSkillDelay = 0;
_parent.skill1Active = false;
gotoAndPlay ("Stop");
} else {
gotoAndPlay ("restart");
}
Symbol 987 MovieClip Frame 31
stop();
Symbol 989 MovieClip Frame 34
eval (_parent.nameTar).seedRainAttach.attachMovie("seed03", "seed" + eval (_parent.nameTar).seedRainDepth, eval (_parent.nameTar).seedRainDepth++);
frameStep = _parent.seedRainSkillTimeRand();
gotoAndPlay(frameStep);
Symbol 989 MovieClip Frame 40
stop();
onEnterFrame = function () {
if (_parent.bossStage) {
if ((_parent.skillActivate >= 6) && (eval (_parent.nameTar).bossShow)) {
frameStep = _parent.seedRainSkillTimeRand();
gotoAndPlay(frameStep);
delete this.onEnterFrame;
}
} else if ((_parent.skillActivate >= 6) && (!eval (_parent.nameTar).planeInOut)) {
frameStep = _parent.seedRainSkillTimeRand();
gotoAndPlay(frameStep);
delete this.onEnterFrame;
}
};
Symbol 995 MovieClip Frame 1
var stagePercent = 0;
var planeInOut = true;
var enemyShow = true;
var seedDepth = 1;
var seedRainDepth = 1;
var treeDepth = 1;
var monDepth = 1;
var bombDepth = 1;
var treeGrowDepth = 1;
var treeCount = 0;
var treeGoal = 125;
createEmptyMovieClip("seedAttach", 1);
createEmptyMovieClip("seedRainAttach", 2);
createEmptyMovieClip("treeAttach", 3);
createEmptyMovieClip("monAttach", 4);
createEmptyMovieClip("treeGrowAttach", 5);
createEmptyMovieClip("enemyBombAttach", 6);
createEmptyMovieClip("flowerBombAttach", 7);
createEmptyMovieClip("flowerBombEffAttach", 8);
createEmptyMovieClip("seedMeteorAttach", 9);
createEmptyMovieClip("seedMeteorEffAttach", 10);
createEmptyMovieClip("bombEffAttach", 11);
var minuteTime = 1;
var second1Time = 1;
var second2Time = 0;
var timesUP = false;
Instance of Symbol 763 MovieClip "bgCtrl" in Symbol 995 MovieClip Frame 1
onClipEvent (load) {
function bgCtrl() {
with (_parent) {
bg1._x = bg1._x - _parent.bgSpeed;
bg2._x = bg2._x - _parent.bgSpeed;
}
if (chkOB()) {
lastIndex = _parent.bgList[_parent.bgList.length - 1];
firstIndex = _parent.bgList.shift();
obj = eval ("_parent.bg" + firstIndex);
tar = eval ("_parent.bg" + lastIndex);
obj._x = tar._x + tar._width;
_parent.bgList.push(firstIndex);
}
}
function chkOB() {
if (_parent.bgBound.hitTest(eval ("_parent.bg" + _parent.bgList[0]))) {
return(false);
}
return(true);
}
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
bgCtrl();
}
}
Symbol 995 MovieClip Frame 2
var bgList = new Array(1, 2);
var boundList = new Array();
var eneList = new Array();
var planeX = undefined;
var planeY = undefined;
Symbol 995 MovieClip Frame 3
function subEnemyList(enemyName) {
var _local2 = 0;
while (_local2 < eneList.length) {
if (enemyName == eneList[_local2]) {
_parent.eneList.splice(_local2, 1);
}
_local2++;
}
}
Instance of Symbol 773 MovieClip in Symbol 995 MovieClip Frame 5
onClipEvent (load) {
function enemyCtrl() {
with (_parent) {
if ((++this.enemyBoneAction) >= _parent.enemyDelay) {
this.enemyRandom = random(_parent.enemyArray.length);
this.ESPRandom = 8;
monAttach.attachMovie(_parent.enemyArray[this.enemyRandom], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction = 0;
}
if (((++this.enemyBoneAction2) >= _parent.enemyArray2delay) && (random(100) <= _parent.enemyArray2rate)) {
this.enemyRandom2 = random(_parent.enemyArray2.length);
this.ESPRandom = random(8) + 1;
monAttach.attachMovie(_parent.enemyArray2[this.enemyRandom2], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction2 = 0;
}
}
}
var enemyBoneAction = 0;
var enemyBoneAction2 = 0;
var enemyRandom = undefined;
var ESPRandom = undefined;
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (_parent.enemyShow)) {
enemyCtrl();
}
}
Instance of Symbol 946 MovieClip "char" in Symbol 995 MovieClip Frame 5
onClipEvent (load) {
function charCtrl() {
if (((!Key.isDown(40)) && (!Key.isDown(38))) && (step != "hurt")) {
step = "still";
}
if (Key.isDown(65)) {
_x = (_x - speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(68)) {
_x = (_x + speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(87)) {
_y = (_y - speedAcc);
if (step != "hurt") {
step = "up";
}
}
if (Key.isDown(83)) {
_y = (_y + speedAcc);
if (step != "hurt") {
step = "down";
}
}
if (_parent._parent.skill5Active) {
_parent._parent.skill5Active = false;
shot = true;
} else {
((reload <= _parent._parent.dropDelay) ? ((reload = reload + _parent._parent.dropActive)) : ((shot = true)));
}
if (shot && (step != "hurt")) {
_parent.seedAttach.attachMovie("seed01", "seed" + _parent.seedDepth, _parent.seedDepth++);
reload = 0;
shot = false;
}
if (collLeft()) {
_x = (_x + speedAcc);
}
if (collRight()) {
_x = (_x - speedAcc);
}
if (collCeil()) {
_y = (_y + speedAcc);
}
if (collFloor()) {
_y = (_y - speedAcc);
}
}
_parent.planeX = _x;
_parent.planeY = _y;
speedAcc = _parent._parent.charSpeed;
var reload = 0;
var shot = false;
collCeil = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collTop.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collFloor = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBottom.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collLeft = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBack.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collRight = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collFront.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (!_parent.timesUP)) {
charCtrl();
} else if (_parent.timesUP) {
step = "still";
this._x = this._x + speedAcc;
if (this._x >= 700) {
_parent._parent.S2Per = ((_parent.stagePercent >= 100) ? 100 : (_parent.stagePercent));
_parent._parent.seedRainSkillCounter.gotoAndPlay("Stop");
_parent._parent.gotoAndPlay("Levelclear");
}
}
}
Symbol 995 MovieClip Frame 9
stop();
onEnterFrame = function () {
stagePercent = Math.round((treeCount / treeGoal) * 100);
_parent.stagePerText = ((stagePercent >= 100) ? "100%" : (stagePercent + " %"));
_parent.stageTime = ((("0" + minuteTime) + " : ") + second1Time) + second2Time;
};
Symbol 1000 MovieClip Frame 1
var stagePercent = 0;
var planeInOut = true;
var enemyShow = true;
var seedDepth = 1;
var seedRainDepth = 1;
var treeDepth = 1;
var monDepth = 1;
var bombDepth = 1;
var treeGrowDepth = 1;
var treeCount = 0;
var treeGoal = 150;
createEmptyMovieClip("seedAttach", 1);
createEmptyMovieClip("seedRainAttach", 2);
createEmptyMovieClip("treeAttach", 3);
createEmptyMovieClip("monAttach", 4);
createEmptyMovieClip("treeGrowAttach", 5);
createEmptyMovieClip("enemyBombAttach", 6);
createEmptyMovieClip("flowerBombAttach", 7);
createEmptyMovieClip("flowerBombEffAttach", 8);
createEmptyMovieClip("seedMeteorAttach", 9);
createEmptyMovieClip("seedMeteorEffAttach", 10);
createEmptyMovieClip("bombEffAttach", 11);
var minuteTime = 1;
var second1Time = 2;
var second2Time = 0;
var timesUP = false;
Instance of Symbol 763 MovieClip "bgCtrl" in Symbol 1000 MovieClip Frame 1
onClipEvent (load) {
function bgCtrl() {
with (_parent) {
bg1._x = bg1._x - _parent.bgSpeed;
bg2._x = bg2._x - _parent.bgSpeed;
}
if (chkOB()) {
lastIndex = _parent.bgList[_parent.bgList.length - 1];
firstIndex = _parent.bgList.shift();
obj = eval ("_parent.bg" + firstIndex);
tar = eval ("_parent.bg" + lastIndex);
obj._x = tar._x + tar._width;
_parent.bgList.push(firstIndex);
}
}
function chkOB() {
if (_parent.bgBound.hitTest(eval ("_parent.bg" + _parent.bgList[0]))) {
return(false);
}
return(true);
}
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
bgCtrl();
}
}
Symbol 1000 MovieClip Frame 2
var bgList = new Array(1, 2);
var boundList = new Array();
var eneList = new Array();
var planeX = undefined;
var planeY = undefined;
Symbol 1000 MovieClip Frame 3
function subEnemyList(enemyName) {
var _local2 = 0;
while (_local2 < eneList.length) {
if (enemyName == eneList[_local2]) {
_parent.eneList.splice(_local2, 1);
}
_local2++;
}
}
Instance of Symbol 773 MovieClip in Symbol 1000 MovieClip Frame 5
onClipEvent (load) {
function enemyCtrl() {
with (_parent) {
if ((++this.enemyBoneAction) >= _parent.enemyDelay) {
this.enemyRandom = random(_parent.enemyArray.length);
this.ESPRandom = random(7) + 1;
monAttach.attachMovie(_parent.enemyArray[this.enemyRandom], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction = 0;
}
if (((++this.enemyBoneAction2) >= _parent.enemyArray2delay) && (random(100) <= _parent.enemyArray2rate)) {
this.enemyRandom2 = random(_parent.enemyArray2.length);
this.ESPRandom = random(7) + 1;
monAttach.attachMovie(_parent.enemyArray2[this.enemyRandom2], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction2 = 0;
}
}
}
var enemyBoneAction = 0;
var enemyBoneAction2 = 0;
var enemyRandom = undefined;
var ESPRandom = undefined;
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (_parent.enemyShow)) {
enemyCtrl();
}
}
Instance of Symbol 946 MovieClip "char" in Symbol 1000 MovieClip Frame 5
onClipEvent (load) {
function charCtrl() {
if (((!Key.isDown(40)) && (!Key.isDown(38))) && (step != "hurt")) {
step = "still";
}
if (Key.isDown(65)) {
_x = (_x - speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(68)) {
_x = (_x + speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(87)) {
_y = (_y - speedAcc);
if (step != "hurt") {
step = "up";
}
}
if (Key.isDown(83)) {
_y = (_y + speedAcc);
if (step != "hurt") {
step = "down";
}
}
if (_parent._parent.skill5Active) {
_parent._parent.skill5Active = false;
shot = true;
} else {
((reload <= _parent._parent.dropDelay) ? ((reload = reload + _parent._parent.dropActive)) : ((shot = true)));
}
if (shot && (step != "hurt")) {
_parent.seedAttach.attachMovie("seed01", "seed" + _parent.seedDepth, _parent.seedDepth++);
reload = 0;
shot = false;
}
if (collLeft()) {
_x = (_x + speedAcc);
}
if (collRight()) {
_x = (_x - speedAcc);
}
if (collCeil()) {
_y = (_y + speedAcc);
}
if (collFloor()) {
_y = (_y - speedAcc);
}
}
_parent.planeX = _x;
_parent.planeY = _y;
speedAcc = _parent._parent.charSpeed;
var reload = 0;
var shot = false;
collCeil = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collTop.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collFloor = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBottom.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collLeft = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBack.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collRight = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collFront.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (!_parent.timesUP)) {
charCtrl();
} else if (_parent.timesUP) {
step = "still";
this._x = this._x + speedAcc;
if (this._x >= 700) {
_parent._parent.S3Per = ((_parent.stagePercent >= 100) ? 100 : (_parent.stagePercent));
_parent._parent.seedRainSkillCounter.gotoAndPlay("Stop");
_parent._parent.gotoAndPlay("Levelclear");
}
}
}
Symbol 1000 MovieClip Frame 9
stop();
onEnterFrame = function () {
stagePercent = Math.round((treeCount / treeGoal) * 100);
_parent.stagePerText = ((stagePercent >= 100) ? "100%" : (stagePercent + " %"));
_parent.stageTime = ((("0" + minuteTime) + " : ") + second1Time) + second2Time;
};
Symbol 1004 MovieClip Frame 1
var stagePercent = 0;
var planeInOut = true;
var enemyShow = true;
var seedDepth = 1;
var seedRainDepth = 1;
var treeDepth = 1;
var monDepth = 1;
var bombDepth = 1;
var treeGrowDepth = 1;
var treeCount = 0;
var treeGoal = 200;
createEmptyMovieClip("seedAttach", 1);
createEmptyMovieClip("seedRainAttach", 2);
createEmptyMovieClip("treeAttach", 3);
createEmptyMovieClip("monAttach", 4);
createEmptyMovieClip("treeGrowAttach", 5);
createEmptyMovieClip("enemyBombAttach", 6);
createEmptyMovieClip("flowerBombAttach", 7);
createEmptyMovieClip("flowerBombEffAttach", 8);
createEmptyMovieClip("seedMeteorAttach", 9);
createEmptyMovieClip("seedMeteorEffAttach", 10);
createEmptyMovieClip("bombEffAttach", 11);
var minuteTime = 1;
var second1Time = 3;
var second2Time = 0;
var timesUP = false;
Instance of Symbol 763 MovieClip "bgCtrl" in Symbol 1004 MovieClip Frame 1
onClipEvent (load) {
function bgCtrl() {
with (_parent) {
bg1._x = bg1._x - _parent.bgSpeed;
bg2._x = bg2._x - _parent.bgSpeed;
}
if (chkOB()) {
lastIndex = _parent.bgList[_parent.bgList.length - 1];
firstIndex = _parent.bgList.shift();
obj = eval ("_parent.bg" + firstIndex);
tar = eval ("_parent.bg" + lastIndex);
obj._x = tar._x + tar._width;
_parent.bgList.push(firstIndex);
}
}
function chkOB() {
if (_parent.bgBound.hitTest(eval ("_parent.bg" + _parent.bgList[0]))) {
return(false);
}
return(true);
}
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
bgCtrl();
}
}
Symbol 1004 MovieClip Frame 2
var bgList = new Array(1, 2);
var boundList = new Array();
var eneList = new Array();
var planeX = undefined;
var planeY = undefined;
Symbol 1004 MovieClip Frame 3
function subEnemyList(enemyName) {
var _local2 = 0;
while (_local2 < eneList.length) {
if (enemyName == eneList[_local2]) {
_parent.eneList.splice(_local2, 1);
}
_local2++;
}
}
Instance of Symbol 773 MovieClip in Symbol 1004 MovieClip Frame 5
onClipEvent (load) {
function enemyCtrl() {
with (_parent) {
if ((++this.enemyBoneAction) >= _parent.enemyDelay) {
this.enemyRandom = random(_parent.enemyArray.length);
this.ESPRandom = random(6) + 2;
monAttach.attachMovie(_parent.enemyArray[this.enemyRandom], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction = 0;
}
if (((++this.enemyBoneAction2) >= _parent.enemyArray2delay) && (random(100) <= _parent.enemyArray2rate)) {
this.enemyRandom2 = random(_parent.enemyArray2.length);
this.ESPRandom = random(8) + 1;
monAttach.attachMovie(_parent.enemyArray2[this.enemyRandom2], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction2 = 0;
}
}
}
var enemyBoneAction = 0;
var enemyBoneAction2 = 0;
var enemyRandom = undefined;
var ESPRandom = undefined;
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (_parent.enemyShow)) {
enemyCtrl();
}
}
Instance of Symbol 946 MovieClip "char" in Symbol 1004 MovieClip Frame 5
onClipEvent (load) {
function charCtrl() {
if (((!Key.isDown(40)) && (!Key.isDown(38))) && (step != "hurt")) {
step = "still";
}
if (Key.isDown(65)) {
_x = (_x - speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(68)) {
_x = (_x + speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(87)) {
_y = (_y - speedAcc);
if (step != "hurt") {
step = "up";
}
}
if (Key.isDown(83)) {
_y = (_y + speedAcc);
if (step != "hurt") {
step = "down";
}
}
if (_parent._parent.skill5Active) {
_parent._parent.skill5Active = false;
shot = true;
} else {
((reload <= _parent._parent.dropDelay) ? ((reload = reload + _parent._parent.dropActive)) : ((shot = true)));
}
if (shot && (step != "hurt")) {
_parent.seedAttach.attachMovie("seed01", "seed" + _parent.seedDepth, _parent.seedDepth++);
reload = 0;
shot = false;
}
if (collLeft()) {
_x = (_x + speedAcc);
}
if (collRight()) {
_x = (_x - speedAcc);
}
if (collCeil()) {
_y = (_y + speedAcc);
}
if (collFloor()) {
_y = (_y - speedAcc);
}
}
_parent.planeX = _x;
_parent.planeY = _y;
speedAcc = _parent._parent.charSpeed;
var reload = 0;
var shot = false;
collCeil = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collTop.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collFloor = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBottom.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collLeft = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBack.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collRight = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collFront.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (!_parent.timesUP)) {
charCtrl();
} else if (_parent.timesUP) {
step = "still";
this._x = this._x + speedAcc;
if (this._x >= 700) {
_parent._parent.S4Per = ((_parent.stagePercent >= 100) ? 100 : (_parent.stagePercent));
_parent._parent.seedRainSkillCounter.gotoAndPlay("Stop");
_parent._parent.gotoAndPlay("Levelclear");
}
}
}
Symbol 1004 MovieClip Frame 9
stop();
onEnterFrame = function () {
stagePercent = Math.round((treeCount / treeGoal) * 100);
_parent.stagePerText = ((stagePercent >= 100) ? "100%" : (stagePercent + " %"));
_parent.stageTime = ((("0" + minuteTime) + " : ") + second1Time) + second2Time;
};
Symbol 1009 MovieClip Frame 1
var stagePercent = 0;
var planeInOut = true;
var enemyShow = true;
var seedDepth = 1;
var seedRainDepth = 1;
var treeDepth = 1;
var monDepth = 1;
var bombDepth = 1;
var treeGrowDepth = 1;
var treeCount = 0;
var treeGoal = 105;
createEmptyMovieClip("seedAttach", 1);
createEmptyMovieClip("seedRainAttach", 2);
createEmptyMovieClip("treeAttach", 3);
createEmptyMovieClip("monAttach", 4);
createEmptyMovieClip("treeGrowAttach", 5);
createEmptyMovieClip("enemyBombAttach", 6);
createEmptyMovieClip("flowerBombAttach", 7);
createEmptyMovieClip("flowerBombEffAttach", 8);
createEmptyMovieClip("seedMeteorAttach", 9);
createEmptyMovieClip("seedMeteorEffAttach", 10);
createEmptyMovieClip("bombEffAttach", 11);
var minuteTime = 1;
var second1Time = 4;
var second2Time = 0;
var timesUP = false;
Instance of Symbol 763 MovieClip "bgCtrl" in Symbol 1009 MovieClip Frame 1
onClipEvent (load) {
function bgCtrl() {
with (_parent) {
bg1._x = bg1._x - _parent.bgSpeed;
bg2._x = bg2._x - _parent.bgSpeed;
}
if (chkOB()) {
lastIndex = _parent.bgList[_parent.bgList.length - 1];
firstIndex = _parent.bgList.shift();
obj = eval ("_parent.bg" + firstIndex);
tar = eval ("_parent.bg" + lastIndex);
obj._x = tar._x + tar._width;
_parent.bgList.push(firstIndex);
}
}
function chkOB() {
if (_parent.bgBound.hitTest(eval ("_parent.bg" + _parent.bgList[0]))) {
return(false);
}
return(true);
}
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
bgCtrl();
}
}
Symbol 1009 MovieClip Frame 2
var bgList = new Array(1, 2);
var boundList = new Array();
var eneList = new Array();
var planeX = undefined;
var planeY = undefined;
Symbol 1009 MovieClip Frame 3
function subEnemyList(enemyName) {
var _local2 = 0;
while (_local2 < eneList.length) {
if (enemyName == eneList[_local2]) {
_parent.eneList.splice(_local2, 1);
}
_local2++;
}
}
Instance of Symbol 773 MovieClip in Symbol 1009 MovieClip Frame 5
onClipEvent (load) {
function enemyCtrl() {
with (_parent) {
if ((++this.enemyBoneAction) >= _parent.enemyDelay) {
this.enemyRandom = random(_parent.enemyArray.length);
this.ESPRandom = random(7) + 1;
monAttach.attachMovie(_parent.enemyArray[this.enemyRandom], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction = 0;
}
if (((++this.enemyBoneAction2) >= _parent.enemyArray2delay) && (random(100) <= _parent.enemyArray2rate)) {
this.enemyRandom2 = random(_parent.enemyArray2.length);
if (random(2) == 0) {
this.ESPRandom = 1;
} else {
this.ESPRandom = 7;
}
monAttach.attachMovie(_parent.enemyArray2[this.enemyRandom2], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction2 = 0;
}
}
}
var enemyBoneAction = 0;
var enemyBoneAction2 = 0;
var enemyRandom = undefined;
var ESPRandom = undefined;
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (_parent.enemyShow)) {
enemyCtrl();
}
}
Instance of Symbol 946 MovieClip "char" in Symbol 1009 MovieClip Frame 5
onClipEvent (load) {
function charCtrl() {
if (((!Key.isDown(40)) && (!Key.isDown(38))) && (step != "hurt")) {
step = "still";
}
if (Key.isDown(65)) {
_x = (_x - speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(68)) {
_x = (_x + speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(87)) {
_y = (_y - speedAcc);
if (step != "hurt") {
step = "up";
}
}
if (Key.isDown(83)) {
_y = (_y + speedAcc);
if (step != "hurt") {
step = "down";
}
}
if (_parent._parent.skill5Active) {
_parent._parent.skill5Active = false;
shot = true;
} else {
((reload <= _parent._parent.dropDelay) ? ((reload = reload + _parent._parent.dropActive)) : ((shot = true)));
}
if (shot && (step != "hurt")) {
_parent.seedAttach.attachMovie("seed01", "seed" + _parent.seedDepth, _parent.seedDepth++);
reload = 0;
shot = false;
}
if (collLeft()) {
_x = (_x + speedAcc);
}
if (collRight()) {
_x = (_x - speedAcc);
}
if (collCeil()) {
_y = (_y + speedAcc);
}
if (collFloor()) {
_y = (_y - speedAcc);
}
}
_parent.planeX = _x;
_parent.planeY = _y;
speedAcc = _parent._parent.charSpeed;
var reload = 0;
var shot = false;
collCeil = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collTop.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collFloor = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBottom.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collLeft = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBack.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collRight = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collFront.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (!_parent.timesUP)) {
charCtrl();
} else if (_parent.timesUP) {
step = "still";
this._x = this._x + speedAcc;
if (this._x >= 700) {
_parent._parent.S5Per = ((_parent.stagePercent >= 100) ? 100 : (_parent.stagePercent));
_parent._parent.seedRainSkillCounter.gotoAndPlay("Stop");
_parent._parent.gotoAndPlay("Levelclear");
}
}
}
Symbol 1009 MovieClip Frame 9
stop();
onEnterFrame = function () {
stagePercent = Math.round((treeCount / treeGoal) * 100);
_parent.stagePerText = ((stagePercent >= 100) ? "100%" : (stagePercent + " %"));
_parent.stageTime = ((("0" + minuteTime) + " : ") + second1Time) + second2Time;
};
Symbol 1022 MovieClip Frame 1
stop();
Symbol 1031 MovieClip Frame 1
stop();
Symbol 1031 MovieClip Frame 50
_parent._parent.bossShow = true;
_parent._parent.enemyShow = true;
_parent.play();
Symbol 1033 MovieClip Frame 1
_parent._parent._parent._parent.bossList.push(this);
_visible = false;
Symbol 1034 MovieClip Frame 5
if (random(3) == 0) {
gotoAndPlay ("p0_1");
} else {
play();
}
Symbol 1034 MovieClip Frame 74
if (random(3) == 0) {
gotoAndPlay ("p1_1");
} else {
gotoAndPlay ("p1_0");
}
Symbol 1034 MovieClip Frame 125
jumping = true;
Symbol 1034 MovieClip Frame 185
jumping = false;
Symbol 1034 MovieClip Frame 209
if (random(3) == 0) {
gotoAndPlay ("p1_1");
} else {
gotoAndPlay ("p1_0");
}
Symbol 1034 MovieClip Frame 279
if (random(3) == 0) {
gotoAndPlay ("p0_1");
} else {
gotoAndPlay ("p0_0");
}
Symbol 1034 MovieClip Frame 330
jumping = true;
Symbol 1034 MovieClip Frame 390
jumping = false;
Symbol 1034 MovieClip Frame 410
if (random(3) == 0) {
gotoAndPlay ("p0_1");
} else {
gotoAndPlay ("p0_0");
}
Symbol 1035 MovieClip Frame 1
stop();
Instance of Symbol 1034 MovieClip "bossUpDown" in Symbol 1035 MovieClip Frame 1
onClipEvent (enterFrame) {
with (_parent._parent) {
if (bossHP > 0) {
if (((_parent.weaponcount1++) >= _parent._parent.bossBulletAtkDelay1) && (random(100) < _parent._parent.bossBulletAtk1Rate)) {
_parent.setBulletPosition();
this.tmpBullRand = 1;
_parent._parent.BBulletAttach.attachMovie("bossBullet1_" + this.tmpBullRand, "BB" + _parent._parent.BBulletDepth, _parent._parent.BBulletDepth++, {_x:_parent._parent.point.x, _y:_parent._parent.point.y});
_parent.weaponcount1 = 0;
}
if (((_parent.weaponcount2++) >= _parent._parent.bossBulletAtkDelay2) && (random(100) < _parent._parent.bossBulletAtk2Rate)) {
_parent.setBulletPosition();
this.tmpBullRand = 2;
_parent._parent.BBulletAttach.attachMovie("bossBullet1_" + this.tmpBullRand, "BB" + _parent._parent.BBulletDepth, _parent._parent.BBulletDepth++, {_x:_parent._parent.point.x, _y:_parent._parent.point.y});
_parent.weaponcount2 = 0;
}
if (this.jumping == true) {
if (((_parent.weaponcount3++) >= _parent._parent.bossBulletAtkDelay3) && (random(100) < _parent._parent.bossBulletAtk3Rate)) {
_parent.setBulletPosition();
this.tmpBullRand = 3;
_parent._parent.BBulletAttach.attachMovie("bossBullet1_" + this.tmpBullRand, "BB" + _parent._parent.BBulletDepth, _parent._parent.BBulletDepth++, {_x:_parent._parent.point.x, _y:_parent._parent.point.y});
_parent.weaponcount3 = 0;
}
}
}
}
}
Symbol 1035 MovieClip Frame 2
bossUpDown.stop();
with (_parent._parent) {
setBombPosition();
_parent.bossBombAttach.attachMovie("bossExplode", "bossEx" + bossBombDepth, bossBombDepth++, {_x:_parent.bossBombPoint.x, _y:_parent.bossBombPoint.y});
bossList = new Array();
}
Symbol 1035 MovieClip Frame 80
stop();
stopAllSounds();
_root.stageBGM();
Symbol 1036 MovieClip Frame 5
stop();
Symbol 1036 MovieClip Frame 6
this.onEnterFrame = function () {
if ((_parent.charCollBoss() && (_parent.char.step != "hurt")) && (bossHP > 0)) {
_parent.char.step = "hurt";
_parent._parent.HP = _parent._parent.HP - bossAtk;
_parent._parent.refreshHP();
if (_parent._parent.HP <= 0) {
}
}
if (bossHP <= 10) {
_parent.enemyShow = false;
}
if (bossHP <= 0) {
removeMovieClip(_parent.monAttach);
removeMovieClip(_parent._parent.BBulletAttach);
_parent._parent.BBulletDepth = 1;
_parent._parent.createEmptyMovieClip("BBulletAttach", 1);
_parent.bossTimer.gotoAndPlay("Stop");
_parent.char.step = "still";
_parent.bossShow = false;
bossMove.gotoAndPlay("Dead");
delete this.onEnterFrame;
}
};
Symbol 1036 MovieClip Frame 11
stop();
Symbol 1038 MovieClip Frame 2
if ((++bossBulletAtkCounter) == _parent._parent.bossBulletAtkDelay) {
_parent.Boss.bossAtkTime = true;
bossBulletAtkCounter = 0;
} else {
gotoAndPlay ("restart");
}
Symbol 1038 MovieClip Frame 8
stop();
Symbol 1039 MovieClip Frame 1
var planeInit = true;
var planeInOut = true;
var bossShow = false;
var enemyShow = false;
var seedDepth = 1;
var seedRainDepth = 1;
var monDepth = 1;
var bombDepth = 1;
var bossBombDepth = 1;
createEmptyMovieClip("seedAttach", 1);
createEmptyMovieClip("seedRainAttach", 2);
createEmptyMovieClip("enemyBombAttach", 5);
createEmptyMovieClip("flowerBombAttach", 7);
createEmptyMovieClip("flowerBombEffAttach", 8);
createEmptyMovieClip("seedMeteorAttach", 9);
createEmptyMovieClip("seedMeteorEffAttach", 10);
createEmptyMovieClip("bombEffAttach", 11);
var weaponcount1 = 0;
var weaponcount2 = 0;
Symbol 1039 MovieClip Frame 2
var bgList = new Array(1, 2);
var boundList = new Array();
var bossList = new Array();
var eneList = new Array();
var planeX = undefined;
var planeY = undefined;
Symbol 1039 MovieClip Frame 3
function subEnemyList(enemyName) {
var _local2 = 0;
while (_local2 < eneList.length) {
if (enemyName == eneList[_local2]) {
_parent.eneList.splice(_local2, 1);
}
_local2++;
}
}
Symbol 1039 MovieClip Frame 4
function setBulletPosition() {
tmpNum = random(3) + 1;
targetBullet = "Boss.bossMove.bossUpDown.BBPoint" + tmpNum;
targetPosition = ("Boss" + _parent.stageNum) + ".Boss.bossMove.bossUpDown";
_parent.setToGlobal(eval (targetBullet)._x, eval (targetBullet)._y, targetPosition);
}
function setBombPosition() {
tarBomb = "Boss.bossMove.bossUpDown.body";
tarPosition = ("Boss" + _parent.stageNum) + ".Boss.bossMove.bossUpDown";
_parent.setBossBomb(eval (tarBomb)._x, eval (tarBomb)._y, tarPosition);
}
function charCollBoss() {
i = 0;
while (i < bossList.length) {
if (char.collHero.hitTest(bossList[i])) {
return(true);
}
i++;
}
}
Instance of Symbol 1036 MovieClip "Boss" in Symbol 1039 MovieClip Frame 5
onClipEvent (load) {
var bossHPMax = (100 + Math.round(100 / _parent._parent.bossNum));
var bossHP = bossHPMax;
var bossAtk = (10 + Math.round(15 / _parent._parent.bossNum));
var bossSpeed = 3;
var bulletSpeed = 0;
var bossAtkTime = false;
var Dir = "Left";
_parent.bossHPText = bossHP.toString();
}
Instance of Symbol 1038 MovieClip "bossTimer" in Symbol 1039 MovieClip Frame 5
onClipEvent (load) {
var bossBulletAtkCounter = 0;
}
Instance of Symbol 773 MovieClip in Symbol 1039 MovieClip Frame 5
onClipEvent (load) {
function enemyCtrl() {
with (_parent) {
if ((++this.enemyBoneAction) >= _parent.enemyDelay) {
this.enemyRandom = random(_parent.enemyArray.length);
this.ESPRandom = random(7) + 1;
monAttach.attachMovie(_parent.enemyArray[this.enemyRandom], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction = 0;
}
if (((++this.enemyBoneAction2) >= _parent.enemyArray2delay) && (random(100) <= _parent.enemyArray2rate)) {
this.enemyRandom2 = random(_parent.enemyArray2.length);
this.ESPRandom = random(7) + 1;
monAttach.attachMovie(_parent.enemyArray2[this.enemyRandom2], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction2 = 0;
}
}
}
var enemyBoneAction = 0;
var enemyBoneAction2 = 0;
var enemyRandom = undefined;
var ESPRandom = undefined;
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (_parent.enemyShow)) {
enemyCtrl();
}
}
Instance of Symbol 946 MovieClip "char" in Symbol 1039 MovieClip Frame 5
onClipEvent (load) {
function charCtrl() {
if (((!Key.isDown(40)) && (!Key.isDown(38))) && (step != "hurt")) {
step = "still";
}
if (Key.isDown(65)) {
_x = (_x - speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(68)) {
_x = (_x + speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(87)) {
_y = (_y - speedAcc);
if (step != "hurt") {
step = "up";
}
}
if (Key.isDown(83)) {
_y = (_y + speedAcc);
if (step != "hurt") {
step = "down";
}
}
if (_parent._parent.skill5Active) {
_parent._parent.skill5Active = false;
shot = true;
} else {
((reload <= _parent._parent.dropDelay) ? ((reload = reload + _parent._parent.dropActive)) : ((shot = true)));
}
if (shot && (step != "hurt")) {
_parent.seedAttach.attachMovie("seed01", "seed" + _parent.seedDepth, _parent.seedDepth++);
reload = 0;
shot = false;
}
if (collLeft()) {
_x = (_x + speedAcc);
}
if (collRight()) {
_x = (_x - speedAcc);
}
if (collCeil()) {
_y = (_y + speedAcc);
}
if (collFloor()) {
_y = (_y - speedAcc);
}
}
_parent.planeX = _x;
_parent.planeY = _y;
speedAcc = _parent._parent.charSpeed;
var reload = 0;
var shot = false;
collCeil = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collTop.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collFloor = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBottom.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collLeft = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBack.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collRight = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collFront.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (_parent.bossShow)) {
charCtrl();
} else if (((!_parent.planeInit) && (_parent.planeInOut)) && (!_parent.bossShow)) {
this._x = this._x + speedAcc;
if (this._x >= 700) {
_parent._parent.bossNum--;
_parent._parent.bossAlive[_parent._parent.stageNum - 1] = false;
_parent._parent.APPoint = _parent._parent.APPoint + 2;
_parent._parent.attrAlertCheck = true;
_parent._parent.bossStage = false;
_parent._parent.seedRainSkillCounter.gotoAndPlay("Stop");
_parent._parent.gotoAndPlay("Levelclear");
}
}
}
Symbol 1039 MovieClip Frame 9
stop();
_parent.stageTime = "00 : 00";
onEnterFrame = function () {
bossHPgage.gotoAndStop(Math.round((Boss.bossHP / Boss.bossHPMax) * 100));
bossHPText = Boss.bossHP.toString();
};
Symbol 1044 MovieClip Frame 1
stop();
Symbol 1044 MovieClip Frame 50
_parent._parent.enemyShow = true;
_parent._parent.bossShow = true;
_parent.play();
Symbol 1046 MovieClip Frame 1
_parent._parent._parent._parent.bossList.push(this);
_visible = false;
Symbol 1047 MovieClip Frame 105
if (random(10) >= 5) {
play();
} else {
gotoAndPlay ("p0_1");
}
Symbol 1047 MovieClip Frame 140
gotoAndPlay ("p0_0");
Symbol 1047 MovieClip Frame 250
if (!bossDead) {
gotoAndPlay ("UPDown");
}
Symbol 1048 MovieClip Frame 1
stop();
Instance of Symbol 1047 MovieClip "bossUpDown" in Symbol 1048 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
with (_parent._parent) {
if (bossHP > 0) {
if (((_parent.weaponcount1++) >= _parent._parent.bossBulletAtkDelay1) && (random(100) < _parent._parent.bossBulletAtk1Rate)) {
_parent.setBulletPosition();
this.tmpBullRand = 1;
_parent._parent.BBulletAttach.attachMovie("bossBullet2_" + this.tmpBullRand, "BB" + _parent._parent.BBulletDepth, _parent._parent.BBulletDepth++, {_x:_parent._parent.point.x, _y:_parent._parent.point.y});
_parent.weaponcount1 = 0;
}
if (((_parent.weaponcount2++) >= _parent._parent.bossBulletAtkDelay2) && (random(100) < _parent._parent.bossBulletAtk2Rate)) {
_parent.setBulletPosition();
this.tmpBullRand = 2;
_parent._parent.BBulletAttach.attachMovie("bossBullet2_" + this.tmpBullRand, "BB" + _parent._parent.BBulletDepth, _parent._parent.BBulletDepth++, {_x:_parent._parent.point.x, _y:_parent._parent.point.y});
_parent.weaponcount2 = 0;
}
if (((_parent.weaponcount3++) >= _parent._parent.bossBulletAtkDelay3) && (random(100) < _parent._parent.bossBulletAtk3Rate)) {
_parent.setBulletPosition();
this.tmpBullRand = 3;
_parent._parent.BBulletAttach.attachMovie("bossBullet2_" + this.tmpBullRand, "BB" + _parent._parent.BBulletDepth, _parent._parent.BBulletDepth++, {_x:_parent._parent.point.x, _y:_parent._parent.point.y});
_parent.weaponcount3 = 0;
}
}
}
}
Symbol 1048 MovieClip Frame 2
bossUpDown.stop();
with (_parent._parent) {
setBombPosition();
_parent.bossBombAttach.attachMovie("bossExplode", "bossEx" + bossBombDepth, bossBombDepth++, {_x:_parent.bossBombPoint.x + (this.bossUpDown._width / 2), _y:_parent.bossBombPoint.y + (this.bossUpDown._height / 2)});
bossList = new Array();
}
Instance of Symbol 1047 MovieClip "bossUpDown" in Symbol 1048 MovieClip Frame 79
onClipEvent (load) {
}
onClipEvent (enterFrame) {
with (_parent._parent) {
if (bossAtkTime && (bossHP > 0)) {
_parent.setBulletPosition();
_parent._parent.BBulletAttach.attachMovie("bossBullet2", "BB" + _parent._parent.BBulletDepth, _parent._parent.BBulletDepth++, {_x:_parent._parent.point.x, _y:_parent._parent.point.y});
bossAtkTime = false;
_parent.bossTimer.gotoAndPlay("restart");
}
}
}
Symbol 1048 MovieClip Frame 80
stop();
stopAllSounds();
_root.stageBGM();
Symbol 1049 MovieClip Frame 5
stop();
Symbol 1049 MovieClip Frame 6
this.onEnterFrame = function () {
if ((_parent.charCollBoss() && (_parent.char.step != "hurt")) && (bossHP > 0)) {
_parent.char.step = "hurt";
_parent._parent.HP = _parent._parent.HP - bossAtk;
_parent._parent.refreshHP();
if (_parent._parent.HP <= 0) {
}
}
if (bossHP <= 10) {
_parent.enemyShow = false;
}
if (bossHP > 0) {
if (Dir == "Left") {
this._x = this._x - bossSpeed;
if (this._x <= 0) {
Dir = "Right";
}
} else {
this._x = this._x + bossSpeed;
if ((this._x + this._width) >= 640) {
Dir = "Left";
}
}
} else {
removeMovieClip(_parent.monAttach);
removeMovieClip(_parent._parent.BBulletAttach);
_parent._parent.BBulletDepth = 1;
_parent._parent.createEmptyMovieClip("BBulletAttach", 1);
_parent.bossTimer.gotoAndPlay("Stop");
_parent.char.step = "still";
_parent.bossShow = false;
bossMove.gotoAndPlay("Dead");
delete this.onEnterFrame;
}
};
Symbol 1049 MovieClip Frame 11
stop();
Symbol 1050 MovieClip Frame 1
var planeInit = true;
var planeInOut = true;
var bossShow = false;
var enemyShow = false;
var seedDepth = 1;
var seedRainDepth = 1;
var monDepth = 1;
var bombDepth = 1;
var bossBombDepth = 1;
createEmptyMovieClip("seedAttach", 1);
createEmptyMovieClip("seedRainAttach", 2);
createEmptyMovieClip("enemyBombAttach", 4);
createEmptyMovieClip("flowerBombAttach", 7);
createEmptyMovieClip("flowerBombEffAttach", 8);
createEmptyMovieClip("seedMeteorAttach", 9);
createEmptyMovieClip("seedMeteorEffAttach", 10);
createEmptyMovieClip("bombEffAttach", 11);
var weaponcount1 = 0;
var weaponcount2 = 0;
Symbol 1050 MovieClip Frame 2
var bgList = new Array(1, 2);
var boundList = new Array();
var bossList = new Array();
var planeX = undefined;
var planeY = undefined;
Symbol 1050 MovieClip Frame 3
function subEnemyList(enemyName) {
var _local2 = 0;
while (_local2 < eneList.length) {
if (enemyName == eneList[_local2]) {
_parent.eneList.splice(_local2, 1);
}
_local2++;
}
}
Symbol 1050 MovieClip Frame 4
function setBulletPosition() {
targetBullet = "Boss.bossMove.bossUpDown.BBPoint";
targetPosition = ("Boss" + _parent.stageNum) + ".Boss.bossMove.bossUpDown";
_parent.setToGlobal(eval (targetBullet)._x, eval (targetBullet)._y, targetPosition);
}
function setBombPosition() {
tarBomb = "Boss.bossMove.bossUpDown.body";
tarPosition = ("Boss" + _parent.stageNum) + ".Boss.bossMove.bossUpDown";
_parent.setBossBomb(eval (tarBomb)._x, eval (tarBomb)._y, tarPosition);
}
function charCollBoss() {
i = 0;
while (i < bossList.length) {
if (char.collHero.hitTest(bossList[i])) {
return(true);
}
i++;
}
}
Instance of Symbol 1049 MovieClip "Boss" in Symbol 1050 MovieClip Frame 5
onClipEvent (load) {
var bossHPMax = (85 + Math.round(150 / _parent._parent.bossNum));
var bossHP = bossHPMax;
var bossAtk = (10 + Math.round(15 / _parent._parent.bossNum));
var bossSpeed = 5;
var bulletSpeed = 0;
var bossAtkTime = false;
var Dir = "Left";
_parent.bossHPText = bossHP.toString();
}
Instance of Symbol 1038 MovieClip "bossTimer" in Symbol 1050 MovieClip Frame 5
onClipEvent (load) {
var bossBulletAtkCounter = 0;
}
Instance of Symbol 773 MovieClip in Symbol 1050 MovieClip Frame 5
onClipEvent (load) {
function enemyCtrl() {
with (_parent) {
if ((++this.enemyBoneAction) >= _parent.enemyDelay) {
this.enemyRandom = random(_parent.enemyArray.length);
this.ESPRandom = random(7) + 1;
monAttach.attachMovie(_parent.enemyArray[this.enemyRandom], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction = 0;
}
if (((++this.enemyBoneAction2) >= _parent.enemyArray2delay) && (random(100) <= _parent.enemyArray2rate)) {
this.enemyRandom2 = random(_parent.enemyArray2.length);
this.ESPRandom = random(7) + 1;
monAttach.attachMovie(_parent.enemyArray2[this.enemyRandom2], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction2 = 0;
}
}
}
var enemyBoneAction = 0;
var enemyBoneAction2 = 0;
var enemyRandom = undefined;
var ESPRandom = undefined;
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (_parent.enemyShow)) {
enemyCtrl();
}
}
Instance of Symbol 946 MovieClip "char" in Symbol 1050 MovieClip Frame 5
onClipEvent (load) {
function charCtrl() {
if (((!Key.isDown(40)) && (!Key.isDown(38))) && (step != "hurt")) {
step = "still";
}
if (Key.isDown(65)) {
_x = (_x - speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(68)) {
_x = (_x + speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(87)) {
_y = (_y - speedAcc);
if (step != "hurt") {
step = "up";
}
}
if (Key.isDown(83)) {
_y = (_y + speedAcc);
if (step != "hurt") {
step = "down";
}
}
if (_parent._parent.skill5Active) {
_parent._parent.skill5Active = false;
shot = true;
} else {
((reload <= _parent._parent.dropDelay) ? ((reload = reload + _parent._parent.dropActive)) : ((shot = true)));
}
if (shot && (step != "hurt")) {
_parent.seedAttach.attachMovie("seed01", "seed" + _parent.seedDepth, _parent.seedDepth++);
reload = 0;
shot = false;
}
if (collLeft()) {
_x = (_x + speedAcc);
}
if (collRight()) {
_x = (_x - speedAcc);
}
if (collCeil()) {
_y = (_y + speedAcc);
}
if (collFloor()) {
_y = (_y - speedAcc);
}
}
_parent.planeX = _x;
_parent.planeY = _y;
speedAcc = _parent._parent.charSpeed;
var reload = 0;
var shot = false;
collCeil = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collTop.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collFloor = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBottom.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collLeft = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBack.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collRight = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collFront.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (_parent.bossShow)) {
charCtrl();
} else if (((!_parent.planeInit) && (_parent.planeInOut)) && (!_parent.bossShow)) {
this._x = this._x + speedAcc;
if (this._x >= 700) {
_parent._parent.bossNum--;
_parent._parent.bossAlive[_parent._parent.stageNum - 1] = false;
_parent._parent.APPoint = _parent._parent.APPoint + 2;
_parent._parent.attrAlertCheck = true;
_parent._parent.bossStage = false;
_parent._parent.seedRainSkillCounter.gotoAndPlay("Stop");
_parent._parent.gotoAndPlay("Levelclear");
}
}
}
Symbol 1050 MovieClip Frame 9
stop();
_parent.stageTime = "00 : 00";
onEnterFrame = function () {
bossHPgage.gotoAndStop(Math.round((Boss.bossHP / Boss.bossHPMax) * 100));
bossHPText = Boss.bossHP.toString();
};
Symbol 1055 MovieClip Frame 1
stop();
Symbol 1055 MovieClip Frame 100
_parent._parent.bossShow = true;
_parent._parent.enemyShow = true;
_parent.play();
Symbol 1056 MovieClip Frame 1
_parent._parent._parent._parent.bossList.push(this);
_visible = false;
Instance of Symbol 1054 MovieClip "body" in Symbol 1057 MovieClip Frame 1
/* no clip actions */
Symbol 1058 MovieClip Frame 1
stop();
Instance of Symbol 1057 MovieClip "bossUpDown" in Symbol 1058 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
with (_parent._parent) {
if (bossHP > 0) {
if (((_parent.weaponcount1++) >= _parent._parent.bossBulletAtkDelay1) && (random(100) < _parent._parent.bossBulletAtk1Rate)) {
_parent.setBulletPosition();
this.tmpBullRand = 1;
_parent._parent.BBulletAttach.attachMovie("bossBullet3_" + this.tmpBullRand, "BB" + _parent._parent.BBulletDepth, _parent._parent.BBulletDepth++, {_x:_parent._parent.point.x, _y:_parent._parent.point.y});
_parent.weaponcount1 = 0;
}
if (((_parent.weaponcount2++) >= _parent._parent.bossBulletAtkDelay2) && (random(100) < _parent._parent.bossBulletAtk2Rate)) {
_parent.setBulletPosition();
this.tmpBullRand = 2;
_parent._parent.BBulletAttach.attachMovie("bossBullet3_" + this.tmpBullRand, "BB" + _parent._parent.BBulletDepth, _parent._parent.BBulletDepth++, {_x:_parent._parent.point.x, _y:_parent._parent.point.y});
_parent.weaponcount2 = 0;
}
}
}
}
Symbol 1058 MovieClip Frame 2
bossUpDown.stop();
with (_parent._parent) {
setBombPosition();
_parent.bossBombAttach.attachMovie("bossExplode", "bossEx" + bossBombDepth, bossBombDepth++, {_x:_parent.bossBombPoint.x + (this.bossUpDown._width / 2), _y:_parent.bossBombPoint.y + (this.bossUpDown._height / 2)});
bossList = new Array();
}
Instance of Symbol 1057 MovieClip "bossLeftRight" in Symbol 1058 MovieClip Frame 79
onClipEvent (load) {
}
onClipEvent (enterFrame) {
with (_parent._parent) {
if (bossAtkTime && (bossHP > 0)) {
_parent.setBulletPosition();
_parent._parent.BBulletAttach.attachMovie("bossBullet3", "BB" + _parent._parent.BBulletDepth, _parent._parent.BBulletDepth++, {_x:_parent._parent.point.x, _y:_parent._parent.point.y});
bossAtkTime = false;
_parent.bossTimer.gotoAndPlay("restart");
}
}
}
Symbol 1058 MovieClip Frame 80
stop();
stopAllSounds();
_root.stageBGM();
Symbol 1059 MovieClip Frame 5
stop();
Symbol 1059 MovieClip Frame 6
this.onEnterFrame = function () {
if ((_parent.charCollBoss() && (_parent.char.step != "hurt")) && (bossHP > 0)) {
_parent.char.step = "hurt";
_parent._parent.HP = _parent._parent.HP - bossAtk;
_parent._parent.refreshHP();
if (_parent._parent.HP <= 0) {
}
}
if (bossHP <= 10) {
_parent.enemyShow = false;
}
if (bossHP <= 0) {
removeMovieClip(_parent.monAttach);
removeMovieClip(_parent._parent.BBulletAttach);
_parent._parent.BBulletDepth = 1;
_parent._parent.createEmptyMovieClip("BBulletAttach", 1);
_parent.bossTimer.gotoAndPlay("Stop");
_parent.char.step = "still";
_parent.bossShow = false;
bossMove.gotoAndPlay("Dead");
delete this.onEnterFrame;
}
};
Symbol 1059 MovieClip Frame 11
stop();
Symbol 1060 MovieClip Frame 1
var planeInit = true;
var planeInOut = true;
var bossShow = false;
var enemyShow = false;
var seedDepth = 1;
var seedRainDepth = 1;
var monDepth = 1;
var bombDepth = 1;
var bossBombDepth = 1;
createEmptyMovieClip("seedAttach", 1);
createEmptyMovieClip("seedRainAttach", 2);
createEmptyMovieClip("enemyBombAttach", 4);
createEmptyMovieClip("flowerBombAttach", 7);
createEmptyMovieClip("flowerBombEffAttach", 8);
createEmptyMovieClip("seedMeteorAttach", 9);
createEmptyMovieClip("seedMeteorEffAttach", 10);
createEmptyMovieClip("bombEffAttach", 11);
var weaponcount1 = 0;
var weaponcount2 = 0;
Symbol 1060 MovieClip Frame 2
var bgList = new Array(1, 2);
var boundList = new Array();
var bossList = new Array();
var planeX = undefined;
var planeY = undefined;
Symbol 1060 MovieClip Frame 3
function subEnemyList(enemyName) {
var _local2 = 0;
while (_local2 < eneList.length) {
if (enemyName == eneList[_local2]) {
_parent.eneList.splice(_local2, 1);
}
_local2++;
}
}
Symbol 1060 MovieClip Frame 4
function setBulletPosition() {
targetBullet = "Boss.bossMove.bossUpDown.body.BBPoint";
targetPosition = ("Boss" + _parent.stageNum) + ".Boss.bossMove.bossUpDown.body";
_parent.setToGlobal(eval (targetBullet)._x, eval (targetBullet)._y, targetPosition);
}
function setBombPosition() {
tarBomb = "Boss.bossMove.bossUpDown.body";
tarPosition = ("Boss" + _parent.stageNum) + ".Boss.bossMove.bossUpDown";
_parent.setBossBomb(eval (tarBomb)._x, eval (tarBomb)._y, tarPosition);
}
function charCollBoss() {
i = 0;
while (i < bossList.length) {
if (char.collHero.hitTest(bossList[i])) {
return(true);
}
i++;
}
}
Instance of Symbol 1059 MovieClip "Boss" in Symbol 1060 MovieClip Frame 5
onClipEvent (load) {
var bossHPMax = (100 + Math.round(200 / _parent._parent.bossNum));
var bossHP = bossHPMax;
var bossAtk = (10 + Math.round(15 / _parent._parent.bossNum));
var bossSpeed = 2;
var bulletSpeed = 0;
var bossAtkTime = false;
var Dir = "Left";
_parent.bossHPText = bossHP.toString();
}
Instance of Symbol 1038 MovieClip "bossTimer" in Symbol 1060 MovieClip Frame 5
onClipEvent (load) {
var bossBulletAtkCounter = 0;
}
Instance of Symbol 773 MovieClip in Symbol 1060 MovieClip Frame 5
onClipEvent (load) {
function enemyCtrl() {
with (_parent) {
if ((++this.enemyBoneAction) >= _parent.enemyDelay) {
this.enemyRandom = random(_parent.enemyArray.length);
this.ESPRandom = random(7) + 1;
monAttach.attachMovie(_parent.enemyArray[this.enemyRandom], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction = 0;
}
if (((++this.enemyBoneAction2) >= _parent.enemyArray2delay) && (random(100) <= _parent.enemyArray2rate)) {
this.enemyRandom2 = random(_parent.enemyArray2.length);
this.ESPRandom = random(7) + 1;
monAttach.attachMovie(_parent.enemyArray2[this.enemyRandom2], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction2 = 0;
}
}
}
var enemyBoneAction = 0;
var enemyBoneAction2 = 0;
var enemyRandom = undefined;
var ESPRandom = undefined;
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (_parent.enemyShow)) {
enemyCtrl();
}
}
Instance of Symbol 946 MovieClip "char" in Symbol 1060 MovieClip Frame 5
onClipEvent (load) {
function charCtrl() {
if (((!Key.isDown(40)) && (!Key.isDown(38))) && (step != "hurt")) {
step = "still";
}
if (Key.isDown(65)) {
_x = (_x - speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(68)) {
_x = (_x + speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(87)) {
_y = (_y - speedAcc);
if (step != "hurt") {
step = "up";
}
}
if (Key.isDown(83)) {
_y = (_y + speedAcc);
if (step != "hurt") {
step = "down";
}
}
if (_parent._parent.skill5Active) {
_parent._parent.skill5Active = false;
shot = true;
} else {
((reload <= _parent._parent.dropDelay) ? ((reload = reload + _parent._parent.dropActive)) : ((shot = true)));
}
if (shot && (step != "hurt")) {
_parent.seedAttach.attachMovie("seed01", "seed" + _parent.seedDepth, _parent.seedDepth++);
reload = 0;
shot = false;
}
if (collLeft()) {
_x = (_x + speedAcc);
}
if (collRight()) {
_x = (_x - speedAcc);
}
if (collCeil()) {
_y = (_y + speedAcc);
}
if (collFloor()) {
_y = (_y - speedAcc);
}
}
_parent.planeX = _x;
_parent.planeY = _y;
speedAcc = _parent._parent.charSpeed;
var reload = 0;
var shot = false;
collCeil = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collTop.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collFloor = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBottom.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collLeft = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBack.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collRight = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collFront.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (_parent.bossShow)) {
charCtrl();
} else if (((!_parent.planeInit) && (_parent.planeInOut)) && (!_parent.bossShow)) {
this._x = this._x + speedAcc;
if (this._x >= 700) {
_parent._parent.bossNum--;
_parent._parent.bossAlive[_parent._parent.stageNum - 1] = false;
_parent._parent.APPoint = _parent._parent.APPoint + 2;
_parent._parent.attrAlertCheck = true;
_parent._parent.bossStage = false;
_parent._parent.seedRainSkillCounter.gotoAndPlay("Stop");
_parent._parent.gotoAndPlay("Levelclear");
}
}
}
Symbol 1060 MovieClip Frame 9
stop();
_parent.stageTime = "00 : 00";
onEnterFrame = function () {
bossHPgage.gotoAndStop(Math.round((Boss.bossHP / Boss.bossHPMax) * 100));
bossHPText = Boss.bossHP.toString();
};
Symbol 1065 MovieClip Frame 1
stop();
Symbol 1065 MovieClip Frame 125
_parent._parent.bossShow = true;
_parent._parent.enemyShow = true;
_parent.play();
Symbol 1066 MovieClip Frame 1
_parent._parent._parent._parent.bossList.push(this);
_visible = false;
Symbol 1071 MovieClip Frame 4
if ((++atkCount) >= randAtkTime) {
randAct = random(5) + 1;
atkCount = 0;
randAtkTime = random(10) + 5;
if (randAct == 1) {
gotoAndPlay ("Up");
} else if (randAct == 2) {
gotoAndPlay ("Left");
} else if (randAct == 3) {
gotoAndPlay ("Right");
} else if (randAct == 4) {
gotoAndPlay ("LeftDown");
} else if (randAct == 5) {
gotoAndPlay ("RightDown");
}
} else {
gotoAndPlay ("Still");
}
Symbol 1071 MovieClip Frame 100
gotoAndPlay ("Still");
Symbol 1071 MovieClip Frame 200
gotoAndPlay ("Still");
Symbol 1071 MovieClip Frame 300
Symbol 1071 MovieClip Frame 400
gotoAndPlay ("Still");
Symbol 1071 MovieClip Frame 500
gotoAndPlay ("Still");
Symbol 1072 MovieClip Frame 1
stop();
Instance of Symbol 1071 MovieClip "bossUpDown" in Symbol 1072 MovieClip Frame 1
onClipEvent (load) {
var atkCount = 0;
var randAtkTime = (random(10) + 5);
var randAct = undefined;
}
onClipEvent (enterFrame) {
with (_parent._parent) {
if (bossHP > 0) {
if (((_parent.weaponcount1++) >= _parent._parent.bossBulletAtkDelay1) && (random(100) < _parent._parent.bossBulletAtk1Rate)) {
_parent.setBulletPosition();
this.tmpBullRand = 1;
_parent._parent.BBulletAttach.attachMovie("bossBullet4_" + this.tmpBullRand, "BB" + _parent._parent.BBulletDepth, _parent._parent.BBulletDepth++, {_x:_parent._parent.point.x, _y:_parent._parent.point.y});
_parent.weaponcount1 = 0;
}
if (((_parent.weaponcount2++) >= _parent._parent.bossBulletAtkDelay2) && (random(100) < _parent._parent.bossBulletAtk2Rate)) {
_parent.setBulletPosition();
this.tmpBullRand = 2;
_parent._parent.BBulletAttach.attachMovie("bossBullet4_" + this.tmpBullRand, "BB" + _parent._parent.BBulletDepth, _parent._parent.BBulletDepth++, {_x:_parent._parent.point.x, _y:_parent._parent.point.y});
_parent.weaponcount2 = 0;
}
}
}
}
Symbol 1072 MovieClip Frame 2
bossUpDown.stop();
with (_parent._parent) {
setBombPosition();
_parent.bossBombAttach.attachMovie("bossExplode", "bossEx" + bossBombDepth, bossBombDepth++, {_x:_parent.bossBombPoint.x, _y:_parent.bossBombPoint.y});
bossList = new Array();
}
Instance of Symbol 1071 MovieClip "bossUpDown" in Symbol 1072 MovieClip Frame 79
onClipEvent (load) {
var atkCount = 0;
var randAtkTime = (random(20) + 20);
var randAct = undefined;
}
onClipEvent (enterFrame) {
with (_parent._parent) {
if (bossAtkTime && (bossHP > 0)) {
_parent.setBulletPosition();
_parent._parent.BBulletAttach.attachMovie("bossBullet4", "BB" + _parent._parent.BBulletDepth, _parent._parent.BBulletDepth++, {_x:_parent._parent.point.x, _y:_parent._parent.point.y});
bossAtkTime = false;
_parent.bossTimer.gotoAndPlay("restart");
}
}
}
Symbol 1072 MovieClip Frame 80
stop();
stopAllSounds();
_root.stageBGM();
Symbol 1073 MovieClip Frame 5
stop();
Symbol 1073 MovieClip Frame 6
this.onEnterFrame = function () {
if ((_parent.charCollBoss() && (_parent.char.step != "hurt")) && (bossHP > 0)) {
_parent.char.step = "hurt";
_parent._parent.HP = _parent._parent.HP - bossAtk;
_parent._parent.refreshHP();
if (_parent._parent.HP <= 0) {
}
}
if (bossHP <= 10) {
_parent.enemyShow = false;
}
if (bossHP <= 0) {
removeMovieClip(_parent.monAttach);
removeMovieClip(_parent._parent.BBulletAttach);
_parent._parent.BBulletDepth = 1;
_parent._parent.createEmptyMovieClip("BBulletAttach", 1);
_parent.bossTimer.gotoAndPlay("Stop");
_parent.char.step = "still";
_parent.bossShow = false;
bossMove.gotoAndPlay("Dead");
delete this.onEnterFrame;
}
};
Symbol 1073 MovieClip Frame 11
stop();
Symbol 1074 MovieClip Frame 1
var planeInit = true;
var planeInOut = true;
var bossShow = false;
var enemyShow = false;
var seedDepth = 1;
var seedRainDepth = 1;
var monDepth = 1;
var bombDepth = 1;
var bossBombDepth = 1;
createEmptyMovieClip("seedAttach", 1);
createEmptyMovieClip("seedRainAttach", 2);
createEmptyMovieClip("enemyBombAttach", 5);
createEmptyMovieClip("flowerBombAttach", 7);
createEmptyMovieClip("flowerBombEffAttach", 8);
createEmptyMovieClip("seedMeteorAttach", 9);
createEmptyMovieClip("seedMeteorEffAttach", 10);
createEmptyMovieClip("bombEffAttach", 11);
var weaponcount1 = 0;
var weaponcount2 = 0;
Symbol 1074 MovieClip Frame 2
var bgList = new Array(1, 2);
var boundList = new Array();
var bossList = new Array();
var eneList = new Array();
var planeX = undefined;
var planeY = undefined;
Symbol 1074 MovieClip Frame 3
function subEnemyList(enemyName) {
var _local2 = 0;
while (_local2 < eneList.length) {
if (enemyName == eneList[_local2]) {
_parent.eneList.splice(_local2, 1);
}
_local2++;
}
}
Symbol 1074 MovieClip Frame 4
function setBulletPosition() {
tmpNum = random(2) + 1;
targetBullet = "Boss.bossMove.bossUpDown.BBPoint" + tmpNum;
targetPosition = ("Boss" + _parent.stageNum) + ".Boss.bossMove.bossUpDown";
_parent.setToGlobal(eval (targetBullet)._x, eval (targetBullet)._y, targetPosition);
}
function setBombPosition() {
tarBomb = "Boss.bossMove.bossUpDown.body";
tarPosition = ("Boss" + _parent.stageNum) + ".Boss.bossMove.bossUpDown";
_parent.setBossBomb(eval (tarBomb)._x, eval (tarBomb)._y, tarPosition);
}
function charCollBoss() {
i = 0;
while (i < bossList.length) {
if (char.collHero.hitTest(bossList[i])) {
return(true);
}
i++;
}
}
Instance of Symbol 1073 MovieClip "Boss" in Symbol 1074 MovieClip Frame 5
onClipEvent (load) {
var bossHPMax = (200 + Math.round(400 / _parent._parent.bossNum));
var bossHP = bossHPMax;
var bossAtk = (10 + Math.round(10 / _parent._parent.bossNum));
var bossSpeed = 0;
var bulletSpeed = 0;
var bossAtkTime = false;
_parent.bossHPText = bossHP.toString();
}
Instance of Symbol 1038 MovieClip "bossTimer" in Symbol 1074 MovieClip Frame 5
onClipEvent (load) {
var bossBulletAtkCounter = 0;
}
Instance of Symbol 773 MovieClip in Symbol 1074 MovieClip Frame 5
onClipEvent (load) {
function enemyCtrl() {
with (_parent) {
if ((++this.enemyBoneAction) >= _parent.enemyDelay) {
this.enemyRandom = random(_parent.enemyArray.length);
this.ESPRandom = random(7) + 1;
monAttach.attachMovie(_parent.enemyArray[this.enemyRandom], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction = 0;
}
if (((++this.enemyBoneAction2) >= _parent.enemyArray2delay) && (random(100) <= _parent.enemyArray2rate)) {
this.enemyRandom2 = random(_parent.enemyArray2.length);
this.ESPRandom = random(7) + 1;
monAttach.attachMovie(_parent.enemyArray2[this.enemyRandom2], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction2 = 0;
}
}
}
var enemyBoneAction = 0;
var enemyBoneAction2 = 0;
var enemyRandom = undefined;
var ESPRandom = undefined;
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (_parent.enemyShow)) {
enemyCtrl();
}
}
Instance of Symbol 946 MovieClip "char" in Symbol 1074 MovieClip Frame 5
onClipEvent (load) {
function charCtrl() {
if (((!Key.isDown(40)) && (!Key.isDown(38))) && (step != "hurt")) {
step = "still";
}
if (Key.isDown(65)) {
_x = (_x - speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(68)) {
_x = (_x + speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(87)) {
_y = (_y - speedAcc);
if (step != "hurt") {
step = "up";
}
}
if (Key.isDown(83)) {
_y = (_y + speedAcc);
if (step != "hurt") {
step = "down";
}
}
if (_parent._parent.skill5Active) {
_parent._parent.skill5Active = false;
shot = true;
} else {
((reload <= _parent._parent.dropDelay) ? ((reload = reload + _parent._parent.dropActive)) : ((shot = true)));
}
if (shot && (step != "hurt")) {
_parent.seedAttach.attachMovie("seed01", "seed" + _parent.seedDepth, _parent.seedDepth++);
reload = 0;
shot = false;
}
if (collLeft()) {
_x = (_x + speedAcc);
}
if (collRight()) {
_x = (_x - speedAcc);
}
if (collCeil()) {
_y = (_y + speedAcc);
}
if (collFloor()) {
_y = (_y - speedAcc);
}
}
_parent.planeX = _x;
_parent.planeY = _y;
speedAcc = _parent._parent.charSpeed;
var reload = 0;
var shot = false;
collCeil = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collTop.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collFloor = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBottom.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collLeft = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBack.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collRight = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collFront.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (_parent.bossShow)) {
charCtrl();
} else if (((!_parent.planeInit) && (_parent.planeInOut)) && (!_parent.bossShow)) {
this._x = this._x + speedAcc;
if (this._x >= 700) {
_parent._parent.bossNum--;
_parent._parent.bossAlive[_parent._parent.stageNum - 1] = false;
_parent._parent.APPoint = _parent._parent.APPoint + 2;
_parent._parent.attrAlertCheck = true;
_parent._parent.bossStage = false;
_parent._parent.seedRainSkillCounter.gotoAndPlay("Stop");
_parent._parent.gotoAndPlay("Levelclear");
}
}
}
Symbol 1074 MovieClip Frame 9
stop();
_parent.stageTime = "00 : 00";
onEnterFrame = function () {
bossHPgage.gotoAndStop(Math.round((Boss.bossHP / Boss.bossHPMax) * 100));
bossHPText = Boss.bossHP.toString();
};
Symbol 1079 MovieClip Frame 1
stop();
Symbol 1079 MovieClip Frame 200
_parent._parent.bossShow = true;
_parent._parent.enemyShow = true;
_parent.play();
Symbol 1080 MovieClip Frame 1
_parent._parent._parent._parent.bossList.push(this);
_visible = false;
Symbol 1081 MovieClip Frame 5
var ranpattern = random(4);
gotoAndPlay("p" + ranpattern);
Symbol 1081 MovieClip Frame 70
if (random(3) == 0) {
play();
} else {
gotoAndPlay ("p0_1");
}
Symbol 1081 MovieClip Frame 129
var ranpattern = random(4);
gotoAndPlay("p" + ranpattern);
Symbol 1081 MovieClip Frame 190
if (random(3) == 0) {
play();
} else {
gotoAndPlay ("p1_1");
}
Symbol 1081 MovieClip Frame 249
var ranpattern = random(4);
gotoAndPlay("p" + ranpattern);
Symbol 1081 MovieClip Frame 310
if (random(3) == 0) {
play();
} else {
gotoAndPlay ("p2_1");
}
Symbol 1081 MovieClip Frame 369
var ranpattern = random(4);
gotoAndPlay("p" + ranpattern);
Symbol 1081 MovieClip Frame 430
if (random(3) == 0) {
play();
} else {
gotoAndPlay ("p3_1");
}
Symbol 1081 MovieClip Frame 490
var ranpattern = random(4);
gotoAndPlay("p" + ranpattern);
Symbol 1082 MovieClip Frame 1
stop();
Instance of Symbol 1081 MovieClip "bossUpDown" in Symbol 1082 MovieClip Frame 1
onClipEvent (load) {
this.magazine1 = 10;
this.magazine2 = 10;
}
onClipEvent (enterFrame) {
with (_parent._parent) {
if (bossHP > 0) {
if (((_parent.weaponcount1++) >= _parent._parent.bossBulletAtkDelay1) && (random(100) < _parent._parent.bossBulletAtk1Rate)) {
if (this.magazine1 > 0) {
this.magazine1--;
_parent.setBulletPosition();
this.tmpBullRand = 3;
_parent._parent.BBulletAttach.attachMovie("bossBullet5_" + this.tmpBullRand, "BB" + _parent._parent.BBulletDepth, _parent._parent.BBulletDepth++, {_x:_parent._parent.point.x, _y:_parent._parent.point.y});
}
if (this.magazine1 <= 0) {
_parent.weaponcount1 = 0;
this.magazine1 = 10;
} else {
_parent.weaponcount1 = 115;
}
}
if (((_parent.weaponcount2++) >= _parent._parent.bossBulletAtkDelay2) && (random(100) < _parent._parent.bossBulletAtk2Rate)) {
if (this.magazine2 > 0) {
this.magazine2--;
_parent.setBulletPosition();
this.tmpBullRand = 2;
_parent._parent.BBulletAttach.attachMovie("bossBullet5_" + this.tmpBullRand, "BB" + _parent._parent.BBulletDepth, _parent._parent.BBulletDepth++, {_x:_parent._parent.point.x, _y:_parent._parent.point.y});
}
if (this.magazine2 <= 0) {
_parent.weaponcount2 = 0;
this.magazine2 = 10;
} else {
_parent.weaponcount2 = 115;
}
}
}
}
}
Symbol 1082 MovieClip Frame 2
bossUpDown.stop();
with (_parent._parent) {
setBombPosition();
_parent.bossBombAttach.attachMovie("bossExplode", "bossEx" + bossBombDepth, bossBombDepth++, {_x:_parent.bossBombPoint.x, _y:_parent.bossBombPoint.y});
bossList = new Array();
}
Instance of Symbol 1081 MovieClip "bossUpDown" in Symbol 1082 MovieClip Frame 79
onClipEvent (load) {
}
onClipEvent (enterFrame) {
with (_parent._parent) {
if (bossAtkTime && (bossHP > 0)) {
_parent.setBulletPosition();
_parent._parent.BBulletAttach.attachMovie("bossBullet5", "BB" + _parent._parent.BBulletDepth, _parent._parent.BBulletDepth++, {_x:_parent._parent.point.x, _y:_parent._parent.point.y});
bossAtkTime = false;
_parent.bossTimer.gotoAndPlay("restart");
}
}
}
Symbol 1082 MovieClip Frame 80
stop();
stopAllSounds();
_root.stageBGM();
Symbol 1083 MovieClip Frame 5
stop();
Symbol 1083 MovieClip Frame 6
this.onEnterFrame = function () {
if ((_parent.charCollBoss() && (_parent.char.step != "hurt")) && (bossHP > 0)) {
_parent.char.step = "hurt";
_parent._parent.HP = _parent._parent.HP - bossAtk;
_parent._parent.refreshHP();
if (_parent._parent.HP <= 0) {
}
}
if (bossHP <= 10) {
_parent.enemyShow = false;
}
if (bossHP > 0) {
if (Dir == "Left") {
this._x = this._x - bossSpeed;
if (this._x <= 0) {
Dir = "Right";
}
} else {
this._x = this._x + bossSpeed;
if ((this._x + this._width) >= 640) {
Dir = "Left";
}
}
} else {
removeMovieClip(_parent.monAttach);
removeMovieClip(_parent._parent.BBulletAttach);
_parent._parent.BBulletDepth = 1;
_parent._parent.createEmptyMovieClip("BBulletAttach", 1);
_parent.bossTimer.gotoAndPlay("Stop");
_parent.char.step = "still";
_parent.bossShow = false;
bossMove.gotoAndPlay("Dead");
delete this.onEnterFrame;
}
};
Symbol 1083 MovieClip Frame 11
stop();
Symbol 1084 MovieClip Frame 1
var planeInit = true;
var planeInOut = true;
var bossShow = false;
var enemyShow = false;
var seedDepth = 1;
var seedRainDepth = 1;
var monDepth = 1;
var bombDepth = 1;
var bossBombDepth = 1;
createEmptyMovieClip("seedAttach", 1);
createEmptyMovieClip("seedRainAttach", 2);
createEmptyMovieClip("monAttach", 4);
createEmptyMovieClip("enemyBombAttach", 5);
createEmptyMovieClip("flowerBombAttach", 7);
createEmptyMovieClip("flowerBombEffAttach", 8);
createEmptyMovieClip("seedMeteorAttach", 9);
createEmptyMovieClip("seedMeteorEffAttach", 10);
createEmptyMovieClip("bombEffAttach", 11);
var weaponcount1 = 0;
var weaponcount2 = 0;
Symbol 1084 MovieClip Frame 2
var bgList = new Array(1, 2);
var boundList = new Array();
var bossList = new Array();
var eneList = new Array();
var planeX = undefined;
var planeY = undefined;
Symbol 1084 MovieClip Frame 3
function subEnemyList(enemyName) {
var _local2 = 0;
while (_local2 < eneList.length) {
if (enemyName == eneList[_local2]) {
_parent.eneList.splice(_local2, 1);
}
_local2++;
}
}
Symbol 1084 MovieClip Frame 4
function setBulletPosition() {
tmpNum = random(3) + 1;
targetBullet = "Boss.bossMove.bossUpDown.BBPoint" + tmpNum;
targetPosition = ("Boss" + _parent.stageNum) + ".Boss.bossMove.bossUpDown";
_parent.setToGlobal(eval (targetBullet)._x, eval (targetBullet)._y, targetPosition);
}
function setBombPosition() {
tarBomb = "Boss.bossMove.bossUpDown.body";
tarPosition = ("Boss" + _parent.stageNum) + ".Boss.bossMove.bossUpDown";
_parent.setBossBomb(eval (tarBomb)._x, eval (tarBomb)._y, tarPosition);
}
function charCollBoss() {
i = 0;
while (i < bossList.length) {
if (char.collHero.hitTest(bossList[i])) {
return(true);
}
i++;
}
}
Instance of Symbol 1083 MovieClip "Boss" in Symbol 1084 MovieClip Frame 5
onClipEvent (load) {
var bossHPMax = (200 + Math.round(400 / _parent._parent.bossNum));
var bossHP = bossHPMax;
var bossAtk = (10 + Math.round(15 / _parent._parent.bossNum));
var bossSpeed = 1;
var bulletSpeed = 0;
var bossAtkTime = false;
_parent.bossHPText = bossHP.toString();
}
Instance of Symbol 1038 MovieClip "bossTimer" in Symbol 1084 MovieClip Frame 5
onClipEvent (load) {
var bossBulletAtkCounter = 0;
}
Instance of Symbol 773 MovieClip in Symbol 1084 MovieClip Frame 5
onClipEvent (load) {
function enemyCtrl() {
with (_parent) {
if ((++this.enemyBoneAction) >= _parent.enemyDelay) {
this.enemyRandom = random(_parent.enemyArray.length);
this.ESPRandom = random(7) + 1;
monAttach.attachMovie(_parent.enemyArray[this.enemyRandom], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction = 0;
}
if (((++this.enemyBoneAction2) >= _parent.enemyArray2delay) && (random(100) <= _parent.enemyArray2rate)) {
this.enemyRandom2 = random(_parent.enemyArray2.length);
this.ESPRandom = random(7) + 1;
monAttach.attachMovie(_parent.enemyArray2[this.enemyRandom2], "ene" + monDepth, monDepth++);
eval ("monAttach.ene" + monDepth).myPos = this.ESPRandom;
eval ("monAttach.ene" + monDepth)._x = eval ("esp" + ESPRandom)._x;
eval ("monAttach.ene" + monDepth)._y = eval ("esp" + ESPRandom)._y;
this.enemyBoneAction2 = 0;
}
}
}
var enemyBoneAction = 0;
var enemyBoneAction2 = 0;
var enemyRandom = undefined;
var ESPRandom = undefined;
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (_parent.enemyShow)) {
enemyCtrl();
}
}
Instance of Symbol 946 MovieClip "char" in Symbol 1084 MovieClip Frame 5
onClipEvent (load) {
function charCtrl() {
if (((!Key.isDown(40)) && (!Key.isDown(38))) && (step != "hurt")) {
step = "still";
}
if (Key.isDown(65)) {
_x = (_x - speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(68)) {
_x = (_x + speedAcc);
if (step != "hurt") {
step = "still";
}
}
if (Key.isDown(87)) {
_y = (_y - speedAcc);
if (step != "hurt") {
step = "up";
}
}
if (Key.isDown(83)) {
_y = (_y + speedAcc);
if (step != "hurt") {
step = "down";
}
}
if (_parent._parent.skill5Active) {
_parent._parent.skill5Active = false;
shot = true;
} else {
((reload <= _parent._parent.dropDelay) ? ((reload = reload + _parent._parent.dropActive)) : ((shot = true)));
}
if (shot && (step != "hurt")) {
_parent.seedAttach.attachMovie("seed01", "seed" + _parent.seedDepth, _parent.seedDepth++);
reload = 0;
shot = false;
}
if (collLeft()) {
_x = (_x + speedAcc);
}
if (collRight()) {
_x = (_x - speedAcc);
}
if (collCeil()) {
_y = (_y + speedAcc);
}
if (collFloor()) {
_y = (_y - speedAcc);
}
}
_parent.planeX = _x;
_parent.planeY = _y;
speedAcc = _parent._parent.charSpeed;
var reload = 0;
var shot = false;
collCeil = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collTop.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collFloor = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBottom.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collLeft = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collBack.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
collRight = function () {
i = 0;
while (i < _parent.boundList.length) {
if (this.collFront.hitTest(_parent.boundList[i])) {
return(true);
}
i++;
}
};
}
onClipEvent (enterFrame) {
if (((!_root.gamepause) && (!_parent.planeInOut)) && (_parent.bossShow)) {
charCtrl();
} else if (((!_parent.planeInit) && (_parent.planeInOut)) && (!_parent.bossShow)) {
this._x = this._x + speedAcc;
if (this._x >= 700) {
_parent._parent.bossNum--;
_parent._parent.bossAlive[_parent._parent.stageNum - 1] = false;
_parent._parent.APPoint = _parent._parent.APPoint + 2;
_parent._parent.attrAlertCheck = true;
_parent._parent.bossStage = false;
_parent._parent.seedRainSkillCounter.gotoAndPlay("Stop");
_parent._parent.gotoAndPlay("Levelclear");
}
}
}
Symbol 1084 MovieClip Frame 9
stop();
_parent.stageTime = "00 : 00";
onEnterFrame = function () {
bossHPgage.gotoAndStop(Math.round((Boss.bossHP / Boss.bossHPMax) * 100));
bossHPText = Boss.bossHP.toString();
};
Symbol 1088 MovieClip Frame 1
stop();
Symbol 1088 MovieClip Frame 60
_root.gamepause = false;
tmp = false;
var i = 0;
while (i < _root.bossAlive.length) {
if (_root.bossAlive[i]) {
tmp = true;
break;
}
i++;
}
if (tmp) {
_root.gotoAndPlay("Map");
} else {
_root.gotoAndPlay("Ending");
}
Symbol 1092 MovieClip Frame 1
stop();
Symbol 1092 MovieClip Frame 85
_root.gotoAndPlay("Submit");
stop();
Symbol 1098 MovieClip Frame 1
stop();
Symbol 1098 MovieClip Frame 191
stop();
_root.gotoAndPlay("Submit");
_parent.clickNext = true;
Symbol 1116 MovieClip Frame 1