Frame 1
Loaded = Math.round(getBytesLoaded());
total = Math.round(getBytesTotal());
percent = Loaded / total;
bar._width = percent * 150;
text = Math.round(percent * 100) + "%";
if (Loaded == total) {
gotoAndPlay (3);
}
Frame 2
gotoAndPlay (1);
Frame 4
stop();
Frame 5
waksound = new Sound();
waksound.attachSound("waksound");
soundbg = new Sound();
soundbg.attachSound("soundbg");
healing = new Sound();
healing.attachSound("healing");
icefall = new Sound();
icefall.attachSound("icefall");
impact1 = new Sound();
impact1.attachSound("impact1");
impact2 = new Sound();
impact2.attachSound("impact2");
impact3 = new Sound();
impact3.attachSound("impact3");
thunder1 = new Sound();
thunder1.attachSound("thunder1");
thunder2 = new Sound();
thunder2.attachSound("thunder2");
thunder3 = new Sound();
thunder3.attachSound("thunder3");
violetshoot = new Sound();
violetshoot.attachSound("violetshoot");
earthspike = new Sound();
earthspike.attachSound("earthspike");
elecexplode = new Sound();
elecexplode.attachSound("elecexplode");
seedexplode = new Sound();
seedexplode.attachSound("seedexplode");
_global.attackarea = 659;
_global.treelife = 1000;
_global.maxtreelife = 1000;
_global.crittersummonkilled = 0;
_global.stagekill = 0;
_global.critters = 4;
_global.gamepaused = 0;
_global.gamelevel = 1;
_global.gempoints = 0;
_global.score = 0;
_global.cleanup = 0;
_global.loadedgame = 0;
_global.fairypower = 0;
_global.hammer = "wood";
_global.hammer1 = 1;
_global.hammer2 = 0;
_global.hammer3 = 0;
_global.hammer4 = 0;
_global.hammer5 = 0;
_global.hammer6 = 0;
_global.hammer7 = 0;
_global.hammer8 = 0;
_global.hammerpower1 = 50;
_global.hammerpower2 = 80;
_global.hammerpower3 = 100;
_global.hammerpower4 = 200;
_global.hammerpower5 = 200;
_global.hammerpower6 = 200;
_global.hammerpower7 = 200;
_global.hammerpower8 = 500;
_global.cultivatestem = 0;
_global.cultivatesoil = 0;
_global.venuseat1 = 0;
_global.venuseat2 = 0;
_global.venuseat3 = 0;
_global.venuseat4 = 0;
_global.venuslvl = 0;
_global.mosslvl = 0;
_global.orchidlvl = 0;
_global.orchidstr = 50;
_global.violetlvl = 0;
_global.violetstr = 20;
_global.bomblvl = 0;
_global.bombstr = 50;
_global.healingvine = 0;
_global.healamount = 50;
_global.laserlvl = 0;
_global.laserfreq = 100;
_global.laserstr = 20;
_global.deadlyshed = 0;
_global.deadlyshedfreq = 200;
_global.newtarget = "";
_global.seedbulletnum = 1;
_global.seedbulletnum2 = 1;
_global.seedbulletnum3 = 1;
stopAllSounds();
stop();
Mouse.show();
Stage.showMenu = false;
Frame 6
stopAllSounds();
stop();
Frame 7
ctr = 0;
ctr2 = 0;
delayer = 0;
_global.callboss = 0;
Mouse.hide();
onEnterFrame = function () {
_root._quality = "MEDIUM";
if (_global.gamepaused == 0) {
if (ctr != _global.critters) {
if (ctr2 != 15) {
if ((_global.gamelevel > 3) && (_global.gamelevel < 5)) {
xx = random(5);
if (xx < 2) {
spawnenemy = "enemy1";
} else {
spawnenemy = "enemy2";
}
} else if ((_global.gamelevel >= 5) && (_global.gamelevel < 7)) {
xx = random(8);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
}
} else if ((_global.gamelevel >= 7) && (_global.gamelevel < 9)) {
xx = random(18);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy4";
} else {
spawnenemy = "enemy2";
}
} else if ((_global.gamelevel >= 9) && (_global.gamelevel < 12)) {
xx = random(18);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy4";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy5";
} else {
spawnenemy = "enemy3";
}
} else if ((_global.gamelevel >= 12) && (_global.gamelevel < 15)) {
xx = random(18);
if (xx < 3) {
spawnenemy = "enemy3";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy4";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy5";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy6";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy7";
} else {
spawnenemy = "enemy5";
}
} else if ((_global.gamelevel >= 15) && (_global.gamelevel < 17)) {
xx = random(18);
if (xx < 3) {
spawnenemy = "enemy4";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy5";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy6";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy7";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy8";
} else {
spawnenemy = "enemy5";
}
} else if ((_global.gamelevel >= 17) && (_global.gamelevel < 19)) {
xx = random(18);
if (xx < 3) {
spawnenemy = "enemy5";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy6";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy7";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy8";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy9";
} else {
spawnenemy = "enemy6";
}
} else if ((_global.gamelevel >= 19) && (_global.gamelevel < 21)) {
xx = random(18);
if (xx < 3) {
spawnenemy = "enemy5";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy6";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy7";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy8";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy9";
} else {
spawnenemy = "enemy10";
}
} else if ((_global.gamelevel >= 21) && (_global.gamelevel < 23)) {
xx = random(18);
if (xx < 3) {
spawnenemy = "enemy6";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy7";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy8";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy9";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy10";
} else {
spawnenemy = "enemy11";
}
} else if ((_global.gamelevel >= 23) && (_global.gamelevel < 25)) {
xx = random(18);
if (xx < 3) {
spawnenemy = "enemy7";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy8";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy9";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy10";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy11";
} else {
spawnenemy = "enemy12";
}
} else if ((_global.gamelevel >= 25) && (_global.gamelevel < 27)) {
xx = random(18);
if (xx < 3) {
spawnenemy = "enemy8";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy9";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy10";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy11";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy12";
} else {
spawnenemy = "enemy13";
}
} else if ((_global.gamelevel >= 27) && (_global.gamelevel < 30)) {
xx = random(18);
if (xx < 3) {
spawnenemy = "enemy10";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy11";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy12";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy13";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy14";
} else {
spawnenemy = "enemy15";
}
} else if (_global.gamelevel == 30) {
_global.critters = 1;
spawnenemy = "enemy16";
} else {
spawnenemy = "enemy1";
}
if (delayer == 0) {
if (ctr == 0) {
spawnx = -770;
} else if (ctr == 1) {
spawnx = -820;
} else if (ctr == 2) {
spawnx = -850;
} else if (ctr == 3) {
spawnx = -880;
} else if (ctr == 4) {
spawnx = -910;
} else if (ctr == 5) {
spawnx = -960;
} else {
spawnx = Math.floor(Math.random() * -729) + -1500;
}
if (((((((spawnenemy == "enemy3") || (spawnenemy == "enemy5")) || (spawnenemy == "enemy7")) || (spawnenemy == "enemy9")) || (spawnenemy == "enemy12")) || (spawnenemy == "enemy13")) || (spawnenemy == "enemy15")) {
spawny = Math.floor(Math.random() * 18) + -13;
} else {
spawny = 215;
}
_root.forest.attachMovie(spawnenemy, "enemy_" + _root.forest.getNextHighestDepth(), _root.forest.getNextHighestDepth(), {_x:spawnx, _y:spawny});
}
ctr++;
ctr2++;
}
if ((ctr2 == 15) && (delayer == 0)) {
delayer = 1;
}
if (_global.crittersummonkilled == 15) {
_global.crittersummonkilled = 0;
delayer = 0;
ctr2 = 0;
}
}
trace((_global.stagekill + " ") + _global.critters);
if ((_global.stagekill == _global.critters) && (checking != 1)) {
ctr = 0;
ctr2 = 0;
delayer = 0;
_global.crittersummonkilled = 0;
_global.critters = _global.critters + 4;
_global.gamepaused = 1;
_global.newtarget = "";
_root.upgrades.gotoAndPlay(2);
_root.forest._x = -143.6;
}
}
};
stopAllSounds();
if (_global.loadedgame == 1) {
_root.upgrades.gotoAndPlay(2);
}
_root.soundbg.start(0, 999);
stop();
Instance of Symbol 1169 MovieClip "forest" in Frame 7
onClipEvent (enterFrame) {
if (Key.isDown(65) && (_root.forest._x < 770)) {
_root.forest._x = _root.forest._x + 20;
}
if (Key.isDown(68) && (_root.forest._x > -140.8)) {
_root.forest._x = _root.forest._x - 20;
}
}
Instance of Symbol 1174 MovieClip "fairy_main" in Frame 7
onClipEvent (load) {
_x = 0;
_y = 0;
speed = 4;
}
onClipEvent (enterFrame) {
if (_global.hammer == "wood") {
_global.fairypower = _global.hammerpower1;
} else if (_global.hammer == "stone") {
_global.fairypower = _global.hammerpower2;
} else if (_global.hammer == "metal") {
_global.fairypower = _global.hammerpower3;
} else if (_global.hammer == "earth") {
_global.fairypower = _global.hammerpower4;
} else if (_global.hammer == "fire") {
_global.fairypower = _global.hammerpower5;
} else if (_global.hammer == "elec") {
_global.fairypower = _global.hammerpower6;
} else if (_global.hammer == "ice") {
_global.fairypower = _global.hammerpower7;
} else if (_global.hammer == "mjolnir") {
_global.fairypower = _global.hammerpower8;
}
endX = _root._xmouse;
endY = _root._ymouse;
_x = (_x + ((endX - _x) / speed));
_y = (_y + ((endY - _y) / speed));
if (_global.gamepaused == 0) {
Mouse.hide();
} else {
Mouse.show();
}
}
Instance of Symbol 1354 MovieClip "edgeleft" in Frame 7
onClipEvent (enterFrame) {
if (_root.edgeleft.hitTest(_root.fairy_main)) {
if (_root.forest._x < 770) {
_root.forest._x = _root.forest._x + 20;
}
}
}
Instance of Symbol 1354 MovieClip "edgeright" in Frame 7
onClipEvent (enterFrame) {
if (_root.edgeright.hitTest(_root.fairy_main)) {
if (_root.forest._x > -140.8) {
_root.forest._x = _root.forest._x - 20;
}
}
}
Instance of Symbol 1366 MovieClip in Frame 7
onClipEvent (enterFrame) {
this.txthp = (_global.treelife + "/") + _global.maxtreelife;
this.txtgempoints = _global.gempoints;
this.txtscore = _global.score;
this.txtlevel = _global.gamelevel;
if ((_global.treelife < 1) && (checking != 1)) {
checking = 1;
_global.treelife = 0;
_global.cleanup = 1;
_global.gameover = 1;
_root.gameover.gotoAndPlay(2);
}
}
Instance of Symbol 1369 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
this._alpha = 100;
if ((Key.isDown(49) && (_global.hammer1 == 1)) && (_global.hammer != "wood")) {
_global.hammer = "wood";
_root.fairy_main.fairy.gotoAndStop("attack");
} else if ((Key.isDown(50) && (_global.hammer2 == 1)) && (_global.hammer != "stone")) {
_global.hammer = "stone";
_root.fairy_main.fairy.gotoAndStop("attack");
} else if ((Key.isDown(51) && (_global.hammer3 == 1)) && (_global.hammer != "metal")) {
_global.hammer = "metal";
_root.fairy_main.fairy.gotoAndStop("attack");
} else if ((Key.isDown(52) && (_global.hammer4 == 1)) && (_global.hammer != "earth")) {
_global.hammer = "earth";
_root.fairy_main.fairy.gotoAndStop("attack");
} else if ((Key.isDown(53) && (_global.hammer5 == 1)) && (_global.hammer != "fire")) {
_global.hammer = "fire";
_root.fairy_main.fairy.gotoAndStop("attack");
} else if ((Key.isDown(54) && (_global.hammer6 == 1)) && (_global.hammer != "elec")) {
_global.hammer = "elec";
_root.fairy_main.fairy.gotoAndStop("attack");
} else if ((Key.isDown(55) && (_global.hammer7 == 1)) && (_global.hammer != "ice")) {
_global.hammer = "ice";
_root.fairy_main.fairy.gotoAndStop("attack");
} else if ((Key.isDown(56) && (_global.hammer8 == 1)) && (_global.hammer != "mjolnir")) {
_global.hammer = "mjolnir";
_root.fairy_main.fairy.gotoAndStop("attack");
}
} else {
this._alpha = 0;
}
}
Frame 8
stopAllSounds();
stop();
Instance of Symbol 923 MovieClip in Frame 8
on (release) {
getURL ("http://www.ahjee.com", "_blank");
}
Frame 9
stopAllSounds();
stop();
Mouse.show();
if (_global.gamelevel != 30) {
_root.gotoAndStop("title");
}
Instance of Symbol 923 MovieClip in Frame 9
on (release) {
getURL ("http://www.ahjee.com", "_blank");
}
Instance of Symbol 25 MovieClip in Symbol 26 MovieClip Frame 1
onClipEvent (enterFrame) {
currlife = (_parent._parent.life / _parent._parent.maxlife) * 100;
this._xscale = currlife;
}
Symbol 41 MovieClip Frame 18
_global.treelife = _global.treelife - _parent.atkpower;
Symbol 44 MovieClip Frame 1
if (random(3) == 1) {
_root.impact1.start();
} else if (random(3) == 2) {
_root.impact2.start();
} else {
_root.impact3.start();
}
Symbol 44 MovieClip Frame 30
stop();
_global.gamepaused = 1;
_root.fader.gotoAndPlay(2);
Symbol 44 MovieClip Frame 45
_global.stagekill = _global.stagekill + 1;
_global.critterskilled = _global.critterskilled + 1;
_global.crittersummonkilled = _global.crittersummonkilled + 1;
spawnx = _parent._parent._x;
spawny = _parent._parent._y;
gempoints = 350;
_global.score = _global.score + gempoints;
_root.forest.attachMovie("gempoints", "gempoints_" + _root.forest.getNextHighestDepth(), _root.forest.getNextHighestDepth(), {_x:spawnx, _y:spawny, gempts:gempoints});
_parent._parent.removeMovieClip();
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 2
stop();
Symbol 45 MovieClip Frame 3
stop();
Instance of Symbol 45 MovieClip in Symbol 46 MovieClip [enemy16] Frame 1
onClipEvent (load) {
life = 170000 /* 0x029810 */;
maxlife = 170000 /* 0x029810 */;
speed = Math.floor(Math.random() * 3) + 4;
checker = 0;
checkdead = 0;
atkpower = 500;
checkmoss = 0;
myname = "";
frozen = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i <= 10) {
if (this.hitTest(_root["superpower_" + i])) {
life = life - (_global.fairypower / 2);
}
i++;
}
if (((_global.newtarget == "") && (life > 0)) && (_parent._x > -900)) {
myname = _parent._name;
_global.newtarget = _root.forest[myname];
}
if (_global.orchidlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet_" + i])) {
life = life - _global.orchidstr;
_root.forest["seedbullet_" + i].removeMovieClip();
}
i++;
}
}
if (_global.violetlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet2_" + i])) {
life = life - _global.violetstr;
_root.forest["seedbullet2_" + i].removeMovieClip();
}
i++;
}
}
if (_global.bomblvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet3_" + i])) {
if (_global.bomblvl < 3) {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode1");
} else {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode2");
}
}
i++;
}
}
if (this.hitTest(_root.forest.laserflower.charge.laser)) {
life = life - _global.laserstr;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root.forest["moss" + i])) {
changespeed = 1;
}
i++;
}
if ((life > 0) && (_parent._x < _global.attackarea)) {
if ((changespeed == 1) || (frozen == 1)) {
_parent._x = _parent._x + (speed / 2);
} else {
_parent._x = _parent._x + speed;
}
changespeed = 0;
}
if (((life > 0) && (_parent._x >= _global.attackarea)) && (checker == 0)) {
checker = 1;
this.gotoAndStop("attack");
}
if ((life > 0) && (this.hitTest(_root.fairy_main.fairy.attacking.atkpart))) {
_root.forest.fMakeStarburst(_parent._x, _parent._y);
life = life - _global.fairypower;
_root.waksound.start();
}
if ((life <= 0) && (checkdead == 0)) {
checkdead = 1;
if (myname != "") {
_global.newtarget = "";
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 80 MovieClip Frame 22
_global.treelife = _global.treelife - _parent.atkpower;
Symbol 83 MovieClip Frame 1
if (random(3) == 1) {
_root.impact1.start();
} else if (random(3) == 2) {
_root.impact2.start();
} else {
_root.impact3.start();
}
Symbol 83 MovieClip Frame 25
_global.stagekill = _global.stagekill + 1;
_global.critterskilled = _global.critterskilled + 1;
_global.crittersummonkilled = _global.crittersummonkilled + 1;
spawnx = _parent._parent._x;
spawny = _parent._parent._y;
gempoints = 200;
_global.score = _global.score + gempoints;
_root.forest.attachMovie("gempoints", "gempoints_" + _root.forest.getNextHighestDepth(), _root.forest.getNextHighestDepth(), {_x:spawnx, _y:spawny, gempts:gempoints});
_parent._parent.removeMovieClip();
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 2
stop();
Symbol 84 MovieClip Frame 3
stop();
Instance of Symbol 84 MovieClip in Symbol 85 MovieClip [enemy15] Frame 1
onClipEvent (load) {
life = 8000;
maxlife = 8000;
speed = Math.floor(Math.random() * 4) + 5;
checker = 0;
checkdead = 0;
atkpower = 350;
mvup = 0;
aa = 0;
oldy = _parent._y;
mvgoal = Math.floor(Math.random() * 11) + 40;
checkmoss = 0;
myname = "";
frozen = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i <= 10) {
if (this.hitTest(_root["superpower_" + i])) {
if ((_global.hammer == "elec") || (_global.hammer == "mjolnir")) {
life = life - (_global.fairypower / 10);
} else if (_global.hammer == "earth") {
life = life - (_global.fairypower * 10);
} else {
life = life - (_global.fairypower / 4);
}
}
i++;
}
if (((_global.newtarget == "") && (life > 0)) && (_parent._x > -900)) {
myname = _parent._name;
_global.newtarget = _root.forest[myname];
}
if (_global.orchidlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet_" + i])) {
life = life - _global.orchidstr;
_root.forest["seedbullet_" + i].removeMovieClip();
}
i++;
}
}
if (_global.violetlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet2_" + i])) {
life = life - _global.violetstr;
_root.forest["seedbullet2_" + i].removeMovieClip();
}
i++;
}
}
if (_global.bomblvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet3_" + i])) {
if (_global.bomblvl < 3) {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode1");
} else {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode2");
}
}
i++;
}
}
if (this.hitTest(_root.forest.laserflower.charge.laser)) {
life = life - _global.laserstr;
}
if ((life > 0) && (_parent._x < 300)) {
if (frozen == 1) {
_parent._x = _parent._x + (speed / 2);
} else {
_parent._x = _parent._x + speed;
}
if ((mvup < mvgoal) && (aa == 0)) {
mvup = mvup + 1;
_parent._y = _parent._y + 2;
}
if ((mvup >= mvgoal) && (aa == 0)) {
aa = 1;
}
if ((mvup > 0) && (aa == 1)) {
mvup = mvup - 1;
_parent._y = _parent._y - 2;
}
if ((mvup <= 0) && (aa == 1)) {
aa = 0;
_parent._y = oldy;
}
}
if (((life > 0) && (_parent._x >= 300)) && (checker == 0)) {
checker = 1;
this.gotoAndStop("attack");
}
if ((life > 0) && (this.hitTest(_root.fairy_main.fairy.attacking.atkpart))) {
_root.forest.fMakeStarburst(_parent._x, _parent._y);
if (_global.hammer == "elec") {
life = life - (_global.fairypower / 10);
} else if (_global.hammer == "earth") {
life = life - (_global.fairypower * 10);
} else {
life = life - (_global.fairypower / 4);
}
_root.waksound.start();
}
if ((life <= 0) && (checkdead == 0)) {
checkdead = 1;
if (myname != "") {
_global.newtarget = "";
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 148 MovieClip Frame 17
_global.treelife = _global.treelife - _parent.atkpower;
Symbol 153 MovieClip Frame 1
if (random(3) == 1) {
_root.impact1.start();
} else if (random(3) == 2) {
_root.impact2.start();
} else {
_root.impact3.start();
}
Symbol 153 MovieClip Frame 25
_global.stagekill = _global.stagekill + 1;
_global.critterskilled = _global.critterskilled + 1;
_global.crittersummonkilled = _global.crittersummonkilled + 1;
spawnx = _parent._parent._x;
spawny = _parent._parent._y;
gempoints = 350;
_global.score = _global.score + gempoints;
_root.forest.attachMovie("gempoints", "gempoints_" + _root.forest.getNextHighestDepth(), _root.forest.getNextHighestDepth(), {_x:spawnx, _y:spawny, gempts:gempoints});
_parent._parent.removeMovieClip();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
stop();
Symbol 154 MovieClip Frame 3
Instance of Symbol 154 MovieClip in Symbol 155 MovieClip [enemy14] Frame 1
onClipEvent (load) {
life = 10000;
maxlife = 10000;
speed = Math.floor(Math.random() * 3) + 3;
checker = 0;
checkdead = 0;
atkpower = 300;
checkmoss = 0;
myname = "";
frozen = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i <= 10) {
if (this.hitTest(_root["superpower_" + i])) {
if ((_global.hammer == "ice") && (random(5) == 1)) {
frozen = 1;
this.ice.gotoAndPlay(2);
}
life = life - (_global.fairypower / 2);
}
i++;
}
if (((_global.newtarget == "") && (life > 0)) && (_parent._x > -900)) {
myname = _parent._name;
_global.newtarget = _root.forest[myname];
}
if (_global.orchidlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet_" + i])) {
life = life - _global.orchidstr;
_root.forest["seedbullet_" + i].removeMovieClip();
}
i++;
}
}
if (_global.violetlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet2_" + i])) {
life = life - _global.violetstr;
_root.forest["seedbullet2_" + i].removeMovieClip();
}
i++;
}
}
if (_global.bomblvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet3_" + i])) {
if (_global.bomblvl < 3) {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode1");
} else {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode2");
}
}
i++;
}
}
if (this.hitTest(_root.forest.laserflower.charge.laser)) {
life = life - _global.laserstr;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root.forest["moss" + i])) {
changespeed = 1;
}
i++;
}
if ((life > 0) && (_parent._x < 340)) {
if ((changespeed == 1) || (frozen == 1)) {
_parent._x = _parent._x + (speed / 2);
} else {
_parent._x = _parent._x + speed;
}
changespeed = 0;
}
if (((life > 0) && (_parent._x >= 340)) && (checker == 0)) {
checker = 1;
this.gotoAndStop("attack");
}
if ((life > 0) && (this.hitTest(_root.fairy_main.fairy.attacking.atkpart))) {
_root.forest.fMakeStarburst(_parent._x, _parent._y);
life = life - _global.fairypower;
_root.waksound.start();
}
if ((life <= 0) && (checkdead == 0)) {
checkdead = 1;
if (myname != "") {
_global.newtarget = "";
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 191 MovieClip Frame 64
_global.treelife = _global.treelife - _parent.atkpower;
Symbol 194 MovieClip Frame 1
if (random(3) == 1) {
_root.impact1.start();
} else if (random(3) == 2) {
_root.impact2.start();
} else {
_root.impact3.start();
}
Symbol 194 MovieClip Frame 25
_global.stagekill = _global.stagekill + 1;
_global.critterskilled = _global.critterskilled + 1;
_global.crittersummonkilled = _global.crittersummonkilled + 1;
spawnx = _parent._parent._x;
spawny = _parent._parent._y;
gempoints = 200;
_global.score = _global.score + gempoints;
_root.forest.attachMovie("gempoints", "gempoints_" + _root.forest.getNextHighestDepth(), _root.forest.getNextHighestDepth(), {_x:spawnx, _y:spawny, gempts:gempoints});
_parent._parent.removeMovieClip();
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 2
stop();
Symbol 195 MovieClip Frame 3
stop();
Instance of Symbol 195 MovieClip in Symbol 196 MovieClip [enemy13] Frame 1
onClipEvent (load) {
life = 5000;
maxlife = 5000;
speed = Math.floor(Math.random() * 4) + 5;
checker = 0;
checkdead = 0;
atkpower = 350;
mvup = 0;
aa = 0;
oldy = _parent._y;
mvgoal = Math.floor(Math.random() * 11) + 40;
checkmoss = 0;
myname = "";
frozen = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i <= 10) {
if (this.hitTest(_root["superpower_" + i])) {
if (_global.hammer == "fire") {
life = life - (_global.fairypower / 10);
} else if (_global.hammer == "ice") {
life = life - (_global.fairypower * 10);
} else {
life = life - (_global.fairypower / 4);
}
}
i++;
}
if (((_global.newtarget == "") && (life > 0)) && (_parent._x > -900)) {
myname = _parent._name;
_global.newtarget = _root.forest[myname];
}
if (_global.orchidlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet_" + i])) {
life = life - _global.orchidstr;
_root.forest["seedbullet_" + i].removeMovieClip();
}
i++;
}
}
if (_global.violetlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet2_" + i])) {
life = life - _global.violetstr;
_root.forest["seedbullet2_" + i].removeMovieClip();
}
i++;
}
}
if (_global.bomblvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet3_" + i])) {
if (_global.bomblvl < 3) {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode1");
} else {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode2");
}
}
i++;
}
}
if (this.hitTest(_root.forest.laserflower.charge.laser)) {
life = life - _global.laserstr;
}
if ((life > 0) && (_parent._x < 300)) {
if (frozen == 1) {
_parent._x = _parent._x + (speed / 2);
} else {
_parent._x = _parent._x + speed;
}
if ((mvup < mvgoal) && (aa == 0)) {
mvup = mvup + 1;
_parent._y = _parent._y + 2;
}
if ((mvup >= mvgoal) && (aa == 0)) {
aa = 1;
}
if ((mvup > 0) && (aa == 1)) {
mvup = mvup - 1;
_parent._y = _parent._y - 2;
}
if ((mvup <= 0) && (aa == 1)) {
aa = 0;
_parent._y = oldy;
}
}
if (((life > 0) && (_parent._x >= 300)) && (checker == 0)) {
checker = 1;
this.gotoAndStop("attack");
}
if ((life > 0) && (this.hitTest(_root.fairy_main.fairy.attacking.atkpart))) {
_root.forest.fMakeStarburst(_parent._x, _parent._y);
if (_global.hammer == "fire") {
life = life - (_global.fairypower / 10);
} else if (_global.hammer == "ice") {
life = life - (_global.fairypower * 10);
} else {
life = life - (_global.fairypower / 4);
}
_root.waksound.start();
}
if ((life <= 0) && (checkdead == 0)) {
checkdead = 1;
if (myname != "") {
_global.newtarget = "";
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 224 MovieClip Frame 48
_global.treelife = _global.treelife - _parent.atkpower;
Symbol 227 MovieClip Frame 1
if (random(3) == 1) {
_root.impact1.start();
} else if (random(3) == 2) {
_root.impact2.start();
} else {
_root.impact3.start();
}
Symbol 227 MovieClip Frame 20
_global.stagekill = _global.stagekill + 1;
_global.critterskilled = _global.critterskilled + 1;
_global.crittersummonkilled = _global.crittersummonkilled + 1;
spawnx = _parent._parent._x;
spawny = _parent._parent._y;
gempoints = 200;
_global.score = _global.score + gempoints;
_root.forest.attachMovie("gempoints", "gempoints_" + _root.forest.getNextHighestDepth(), _root.forest.getNextHighestDepth(), {_x:spawnx, _y:spawny, gempts:gempoints});
_parent._parent.removeMovieClip();
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 2
stop();
Symbol 228 MovieClip Frame 3
stop();
Instance of Symbol 228 MovieClip in Symbol 229 MovieClip [enemy12] Frame 1
onClipEvent (load) {
life = 1500;
maxlife = 1500;
speed = Math.floor(Math.random() * 4) + 5;
checker = 0;
checkdead = 0;
atkpower = 350;
mvup = 0;
aa = 0;
oldy = _parent._y;
mvgoal = Math.floor(Math.random() * 11) + 40;
checkmoss = 0;
myname = "";
frozen = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i <= 10) {
if (this.hitTest(_root["superpower_" + i])) {
if (_global.hammer == "ice") {
life = life - (_global.fairypower / 4);
} else if (_global.hammer == "fire") {
life = life - (_global.fairypower * 2);
} else {
life = life - (_global.fairypower / 2);
}
}
i++;
}
if (((_global.newtarget == "") && (life > 0)) && (_parent._x > -900)) {
myname = _parent._name;
_global.newtarget = _root.forest[myname];
}
if (_global.orchidlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet_" + i])) {
life = life - _global.orchidstr;
_root.forest["seedbullet_" + i].removeMovieClip();
}
i++;
}
}
if (_global.violetlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet2_" + i])) {
life = life - _global.violetstr;
_root.forest["seedbullet2_" + i].removeMovieClip();
}
i++;
}
}
if (_global.bomblvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet3_" + i])) {
if (_global.bomblvl < 3) {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode1");
} else {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode2");
}
}
i++;
}
}
if (this.hitTest(_root.forest.laserflower.charge.laser)) {
life = life - _global.laserstr;
}
if ((life > 0) && (_parent._x < 300)) {
if (frozen == 1) {
_parent._x = _parent._x + (speed / 2);
} else {
_parent._x = _parent._x + speed;
}
if ((mvup < mvgoal) && (aa == 0)) {
mvup = mvup + 1;
_parent._y = _parent._y + 2;
}
if ((mvup >= mvgoal) && (aa == 0)) {
aa = 1;
}
if ((mvup > 0) && (aa == 1)) {
mvup = mvup - 1;
_parent._y = _parent._y - 2;
}
if ((mvup <= 0) && (aa == 1)) {
aa = 0;
_parent._y = oldy;
}
}
if (((life > 0) && (_parent._x >= 300)) && (checker == 0)) {
checker = 1;
this.gotoAndStop("attack");
}
if ((life > 0) && (this.hitTest(_root.fairy_main.fairy.attacking.atkpart))) {
_root.forest.fMakeStarburst(_parent._x, _parent._y);
if (_global.hammer == "ice") {
life = life - (_global.fairypower / 4);
} else if (_global.hammer == "fire") {
life = life - (_global.fairypower * 4);
} else {
life = life - (_global.fairypower / 2);
}
_root.waksound.start();
}
if ((life <= 0) && (checkdead == 0)) {
checkdead = 1;
if (myname != "") {
_global.newtarget = "";
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 149
_parent.frozen = 0;
Symbol 271 MovieClip Frame 15
_global.treelife = _global.treelife - _parent.atkpower;
Symbol 276 MovieClip Frame 1
if (random(3) == 1) {
_root.impact1.start();
} else if (random(3) == 2) {
_root.impact2.start();
} else {
_root.impact3.start();
}
Symbol 276 MovieClip Frame 25
_global.stagekill = _global.stagekill + 1;
_global.critterskilled = _global.critterskilled + 1;
_global.crittersummonkilled = _global.crittersummonkilled + 1;
spawnx = _parent._parent._x;
spawny = _parent._parent._y;
gempoints = 350;
_global.score = _global.score + gempoints;
_root.forest.attachMovie("gempoints", "gempoints_" + _root.forest.getNextHighestDepth(), _root.forest.getNextHighestDepth(), {_x:spawnx, _y:spawny, gempts:gempoints});
_parent._parent.removeMovieClip();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
stop();
Symbol 277 MovieClip Frame 3
stop();
Instance of Symbol 277 MovieClip in Symbol 278 MovieClip [enemy11] Frame 1
onClipEvent (load) {
life = 1500;
maxlife = 1500;
speed = Math.floor(Math.random() * 3) + 5;
checker = 0;
checkdead = 0;
atkpower = 300;
checkmoss = 0;
myname = "";
frozen = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i <= 10) {
if (this.hitTest(_root["superpower_" + i])) {
if ((_global.hammer == "ice") && (random(5) == 1)) {
frozen = 1;
this.ice.gotoAndPlay(2);
}
life = life - (_global.fairypower / 2);
}
i++;
}
if (((_global.newtarget == "") && (life > 0)) && (_parent._x > -900)) {
myname = _parent._name;
_global.newtarget = _root.forest[myname];
}
if (_global.orchidlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet_" + i])) {
life = life - _global.orchidstr;
_root.forest["seedbullet_" + i].removeMovieClip();
}
i++;
}
}
if (_global.violetlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet2_" + i])) {
life = life - _global.violetstr;
_root.forest["seedbullet2_" + i].removeMovieClip();
}
i++;
}
}
if (_global.bomblvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet3_" + i])) {
if (_global.bomblvl < 3) {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode1");
} else {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode2");
}
}
i++;
}
}
if (this.hitTest(_root.forest.laserflower.charge.laser)) {
life = life - _global.laserstr;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root.forest["moss" + i])) {
changespeed = 1;
}
i++;
}
if ((life > 0) && (_parent._x < _global.attackarea)) {
if ((changespeed == 1) || (frozen == 1)) {
_parent._x = _parent._x + (speed / 2);
} else {
_parent._x = _parent._x + speed;
}
changespeed = 0;
}
if (((life > 0) && (_parent._x >= _global.attackarea)) && (checker == 0)) {
checker = 1;
this.gotoAndStop("attack");
}
if ((life > 0) && (this.hitTest(_root.fairy_main.fairy.attacking.atkpart))) {
_root.forest.fMakeStarburst(_parent._x, _parent._y);
life = life - _global.fairypower;
_root.waksound.start();
}
if ((life <= 0) && (checkdead == 0)) {
checkdead = 1;
if (myname != "") {
_global.newtarget = "";
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 301 MovieClip Frame 7
_global.treelife = _global.treelife - _parent.atkpower;
Symbol 307 MovieClip Frame 1
if (random(3) == 1) {
_root.impact1.start();
} else if (random(3) == 2) {
_root.impact2.start();
} else {
_root.impact3.start();
}
Symbol 307 MovieClip Frame 22
_global.stagekill = _global.stagekill + 1;
_global.critterskilled = _global.critterskilled + 1;
_global.crittersummonkilled = _global.crittersummonkilled + 1;
spawnx = _parent._parent._x;
spawny = _parent._parent._y;
gempoints = 250;
_global.score = _global.score + gempoints;
_root.forest.attachMovie("gempoints", "gempoints_" + _root.forest.getNextHighestDepth(), _root.forest.getNextHighestDepth(), {_x:spawnx, _y:spawny, gempts:gempoints});
_parent._parent.removeMovieClip();
Symbol 308 MovieClip Frame 1
stop();
Symbol 308 MovieClip Frame 2
Symbol 308 MovieClip Frame 3
Instance of Symbol 308 MovieClip in Symbol 309 MovieClip [enemy10] Frame 1
onClipEvent (load) {
life = 1000;
maxlife = 1000;
speed = Math.floor(Math.random() * 4) + 6;
checker = 0;
checkdead = 0;
atkpower = 200;
checkmoss = 0;
myname = "";
frozen = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i <= 10) {
if (this.hitTest(_root["superpower_" + i])) {
if ((_global.hammer == "ice") && (random(5) == 1)) {
frozen = 1;
this.ice.gotoAndPlay(2);
}
life = life - (_global.fairypower / 2);
}
i++;
}
if (((_global.newtarget == "") && (life > 0)) && (_parent._x > -900)) {
myname = _parent._name;
_global.newtarget = _root.forest[myname];
}
if (_global.orchidlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet_" + i])) {
life = life - _global.orchidstr;
_root.forest["seedbullet_" + i].removeMovieClip();
}
i++;
}
}
if (_global.violetlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet2_" + i])) {
life = life - _global.violetstr;
_root.forest["seedbullet2_" + i].removeMovieClip();
}
i++;
}
}
if (_global.bomblvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet3_" + i])) {
if (_global.bomblvl < 3) {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode1");
} else {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode2");
}
}
i++;
}
}
if (this.hitTest(_root.forest.laserflower.charge.laser)) {
life = life - _global.laserstr;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root.forest["moss" + i])) {
changespeed = 1;
}
i++;
}
if ((life > 0) && (_parent._x < _global.attackarea)) {
if ((changespeed == 1) || (frozen == 1)) {
_parent._x = _parent._x + (speed / 2);
} else {
_parent._x = _parent._x + speed;
}
changespeed = 0;
}
if (((life > 0) && (_parent._x >= _global.attackarea)) && (checker == 0)) {
checker = 1;
this.gotoAndStop("attack");
}
if ((life > 0) && (this.hitTest(_root.fairy_main.fairy.attacking.atkpart))) {
_root.forest.fMakeStarburst(_parent._x, _parent._y);
life = life - _global.fairypower;
_root.waksound.start();
}
if ((life <= 0) && (checkdead == 0)) {
checkdead = 1;
if (myname != "") {
_global.newtarget = "";
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 318 MovieClip Frame 15
_global.treelife = _global.treelife - _parent.atkpower;
Symbol 319 MovieClip Frame 1
if (random(3) == 1) {
_root.impact1.start();
} else if (random(3) == 2) {
_root.impact2.start();
} else {
_root.impact3.start();
}
Symbol 319 MovieClip Frame 30
_global.stagekill = _global.stagekill + 1;
_global.critterskilled = _global.critterskilled + 1;
_global.crittersummonkilled = _global.crittersummonkilled + 1;
spawnx = _parent._parent._x;
spawny = _parent._parent._y;
gempoints = 150;
_global.score = _global.score + gempoints;
_root.forest.attachMovie("gempoints", "gempoints_" + _root.forest.getNextHighestDepth(), _root.forest.getNextHighestDepth(), {_x:spawnx, _y:spawny, gempts:gempoints});
_parent._parent.removeMovieClip();
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 2
stop();
Symbol 320 MovieClip Frame 3
stop();
Instance of Symbol 320 MovieClip in Symbol 321 MovieClip [enemy8] Frame 1
onClipEvent (load) {
life = 600;
maxlife = 600;
speed = Math.floor(Math.random() * 5) + 5;
checker = 0;
checkdead = 0;
atkpower = 100;
checkmoss = 0;
myname = "";
frozen = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i <= 10) {
if (this.hitTest(_root["superpower_" + i])) {
if ((_global.hammer == "ice") && (random(5) == 1)) {
frozen = 1;
this.ice.gotoAndPlay(2);
}
life = life - (_global.fairypower / 2);
}
i++;
}
if (((_global.newtarget == "") && (life > 0)) && (_parent._x > -900)) {
myname = _parent._name;
_global.newtarget = _root.forest[myname];
}
if (_global.orchidlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet_" + i])) {
life = life - _global.orchidstr;
_root.forest["seedbullet_" + i].removeMovieClip();
}
i++;
}
}
if (_global.violetlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet2_" + i])) {
life = life - _global.violetstr;
_root.forest["seedbullet2_" + i].removeMovieClip();
}
i++;
}
}
if (_global.bomblvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet3_" + i])) {
if (_global.bomblvl < 3) {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode1");
} else {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode2");
}
}
i++;
}
}
if (this.hitTest(_root.forest.laserflower.charge.laser)) {
life = life - _global.laserstr;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root.forest["venus" + i].venusfront) && (_global["venuseat" + i] == 0)) {
life = 0;
_global["venuseat" + i] = 1;
_root.forest["venus" + i].venusbody.gotoAndStop("attack");
_parent._alpha = 0;
}
i++;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root.forest["moss" + i])) {
changespeed = 1;
}
i++;
}
if ((life > 0) && (_parent._x < _global.attackarea)) {
if ((changespeed == 1) || (frozen == 1)) {
_parent._x = _parent._x + (speed / 2);
} else {
_parent._x = _parent._x + speed;
}
changespeed = 0;
}
if (((life > 0) && (_parent._x >= _global.attackarea)) && (checker == 0)) {
checker = 1;
this.gotoAndStop("attack");
}
if ((life > 0) && (this.hitTest(_root.fairy_main.fairy.attacking.atkpart))) {
_root.forest.fMakeStarburst(_parent._x, _parent._y);
life = life - _global.fairypower;
_root.waksound.start();
}
if ((life <= 0) && (checkdead == 0)) {
checkdead = 1;
if (myname != "") {
_global.newtarget = "";
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 339 MovieClip Frame 23
_global.treelife = _global.treelife - _parent.atkpower;
Symbol 340 MovieClip Frame 1
if (random(3) == 1) {
_root.impact1.start();
} else if (random(3) == 2) {
_root.impact2.start();
} else {
_root.impact3.start();
}
Symbol 340 MovieClip Frame 7
_global.stagekill = _global.stagekill + 1;
_global.critterskilled = _global.critterskilled + 1;
_global.crittersummonkilled = _global.crittersummonkilled + 1;
spawnx = _parent._parent._x;
spawny = _parent._parent._y;
gempoints = 150;
_global.score = _global.score + gempoints;
_root.forest.attachMovie("gempoints", "gempoints_" + _root.forest.getNextHighestDepth(), _root.forest.getNextHighestDepth(), {_x:spawnx, _y:spawny, gempts:gempoints});
Symbol 340 MovieClip Frame 25
_parent._parent.removeMovieClip();
Symbol 341 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 2
stop();
Symbol 341 MovieClip Frame 3
stop();
Instance of Symbol 341 MovieClip in Symbol 342 MovieClip [enemy7] Frame 1
onClipEvent (load) {
life = 600;
maxlife = 600;
speed = Math.floor(Math.random() * 3) + 4;
checker = 0;
checkdead = 0;
atkpower = 100;
mvup = 0;
aa = 0;
oldy = _parent._y;
mvgoal = Math.floor(Math.random() * 11) + 40;
checkmoss = 0;
myname = "";
frozen = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i <= 10) {
if (this.hitTest(_root["superpower_" + i])) {
if ((_global.hammer == "ice") && (random(5) == 1)) {
frozen = 1;
this.ice.gotoAndPlay(2);
}
life = life - (_global.fairypower / 2);
}
i++;
}
if (((_global.newtarget == "") && (life > 0)) && (_parent._x > -900)) {
myname = _parent._name;
_global.newtarget = _root.forest[myname];
}
if (_global.orchidlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet_" + i])) {
life = life - _global.orchidstr;
_root.forest["seedbullet_" + i].removeMovieClip();
}
i++;
}
}
if (_global.violetlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet2_" + i])) {
life = life - _global.violetstr;
_root.forest["seedbullet2_" + i].removeMovieClip();
}
i++;
}
}
if (_global.bomblvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet3_" + i])) {
if (_global.bomblvl < 3) {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode1");
} else {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode2");
}
}
i++;
}
}
if (this.hitTest(_root.forest.laserflower.charge.laser)) {
life = life - _global.laserstr;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root.forest["venus" + i].venusfront) && (_global["venuseat" + i] == 0)) {
life = 0;
_global["venuseat" + i] = 1;
_root.forest["venus" + i].venusbody.gotoAndStop("attack");
_parent._alpha = 0;
}
i++;
}
if ((life > 0) && (_parent._x < _global.attackarea)) {
if (frozen == 1) {
_parent._x = _parent._x + (speed / 2);
} else {
_parent._x = _parent._x + speed;
}
if ((mvup < mvgoal) && (aa == 0)) {
mvup = mvup + 1;
_parent._y = _parent._y + 2;
}
if ((mvup >= mvgoal) && (aa == 0)) {
aa = 1;
}
if ((mvup > 0) && (aa == 1)) {
mvup = mvup - 1;
_parent._y = _parent._y - 2;
}
if ((mvup <= 0) && (aa == 1)) {
aa = 0;
_parent._y = oldy;
}
}
if (((life > 0) && (_parent._x >= _global.attackarea)) && (checker == 0)) {
checker = 1;
this.gotoAndStop("attack");
}
if ((life > 0) && (this.hitTest(_root.fairy_main.fairy.attacking.atkpart))) {
_root.forest.fMakeStarburst(_parent._x, _parent._y);
life = life - _global.fairypower;
_root.waksound.start();
}
if ((life <= 0) && (checkdead == 0)) {
checkdead = 1;
if (myname != "") {
_global.newtarget = "";
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 367 MovieClip Frame 14
_global.treelife = _global.treelife - _parent.atkpower;
Symbol 368 MovieClip Frame 1
if (random(3) == 1) {
_root.impact1.start();
} else if (random(3) == 2) {
_root.impact2.start();
} else {
_root.impact3.start();
}
Symbol 368 MovieClip Frame 30
_global.stagekill = _global.stagekill + 1;
_global.critterskilled = _global.critterskilled + 1;
_global.crittersummonkilled = _global.crittersummonkilled + 1;
spawnx = _parent._parent._x;
spawny = _parent._parent._y;
gempoints = 150;
_global.score = _global.score + gempoints;
_root.forest.attachMovie("gempoints", "gempoints_" + _root.forest.getNextHighestDepth(), _root.forest.getNextHighestDepth(), {_x:spawnx, _y:spawny, gempts:gempoints});
_parent._parent.removeMovieClip();
Symbol 369 MovieClip Frame 1
stop();
Symbol 369 MovieClip Frame 2
stop();
Symbol 369 MovieClip Frame 3
stop();
Instance of Symbol 369 MovieClip in Symbol 370 MovieClip [enemy6] Frame 1
onClipEvent (load) {
life = 800;
maxlife = 800;
speed = Math.floor(Math.random() * 3) + 3;
checker = 0;
checkdead = 0;
atkpower = 120;
checkmoss = 0;
myname = "";
frozen = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i <= 10) {
if (this.hitTest(_root["superpower_" + i])) {
if ((_global.hammer == "ice") && (random(5) == 1)) {
frozen = 1;
this.ice.gotoAndPlay(2);
}
life = life - (_global.fairypower / 2);
}
i++;
}
if (((_global.newtarget == "") && (life > 0)) && (_parent._x > -900)) {
myname = _parent._name;
_global.newtarget = _root.forest[myname];
}
if (_global.orchidlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet_" + i])) {
life = life - _global.orchidstr;
_root.forest["seedbullet_" + i].removeMovieClip();
}
i++;
}
}
if (_global.violetlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet2_" + i])) {
life = life - _global.violetstr;
_root.forest["seedbullet2_" + i].removeMovieClip();
}
i++;
}
}
if (_global.bomblvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet3_" + i])) {
if (_global.bomblvl < 3) {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode1");
} else {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode2");
}
}
i++;
}
}
if (this.hitTest(_root.forest.laserflower.charge.laser)) {
life = life - _global.laserstr;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root.forest["venus" + i].venusfront) && (_global["venuseat" + i] == 0)) {
life = 0;
_global["venuseat" + i] = 1;
_root.forest["venus" + i].venusbody.gotoAndStop("attack");
_parent._alpha = 0;
}
i++;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root.forest["moss" + i])) {
changespeed = 1;
}
i++;
}
if ((life > 0) && (_parent._x < _global.attackarea)) {
if ((changespeed == 1) || (frozen == 1)) {
_parent._x = _parent._x + (speed / 2);
} else {
_parent._x = _parent._x + speed;
}
changespeed = 0;
}
if (((life > 0) && (_parent._x >= _global.attackarea)) && (checker == 0)) {
checker = 1;
this.gotoAndStop("attack");
}
if ((life > 0) && (this.hitTest(_root.fairy_main.fairy.attacking.atkpart))) {
_root.forest.fMakeStarburst(_parent._x, _parent._y);
life = life - _global.fairypower;
_root.waksound.start();
}
if ((life <= 0) && (checkdead == 0)) {
checkdead = 1;
if (myname != "") {
_global.newtarget = "";
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 382 MovieClip Frame 4
_global.treelife = _global.treelife - _parent.atkpower;
Symbol 383 MovieClip Frame 1
if (random(3) == 1) {
_root.impact1.start();
} else if (random(3) == 2) {
_root.impact2.start();
} else {
_root.impact3.start();
}
Symbol 383 MovieClip Frame 5
_global.stagekill = _global.stagekill + 1;
_global.critterskilled = _global.critterskilled + 1;
_global.crittersummonkilled = _global.crittersummonkilled + 1;
spawnx = _parent._parent._x;
spawny = _parent._parent._y;
gempoints = 90;
_global.score = _global.score + gempoints;
_root.forest.attachMovie("gempoints", "gempoints_" + _root.forest.getNextHighestDepth(), _root.forest.getNextHighestDepth(), {_x:spawnx, _y:spawny, gempts:gempoints});
Symbol 383 MovieClip Frame 30
_parent._parent.removeMovieClip();
Symbol 384 MovieClip Frame 1
stop();
Symbol 384 MovieClip Frame 2
stop();
Symbol 384 MovieClip Frame 3
stop();
Instance of Symbol 384 MovieClip in Symbol 385 MovieClip [enemy5] Frame 1
onClipEvent (load) {
life = 300;
maxlife = 300;
speed = Math.floor(Math.random() * 3) + 4;
checker = 0;
checkdead = 0;
atkpower = 50;
mvup = 0;
aa = 0;
oldy = _parent._y;
mvgoal = Math.floor(Math.random() * 11) + 40;
checkmoss = 0;
myname = "";
frozen = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i <= 10) {
if (this.hitTest(_root["superpower_" + i])) {
if ((_global.hammer == "ice") && (random(5) == 1)) {
frozen = 1;
this.ice.gotoAndPlay(2);
}
life = life - (_global.fairypower / 2);
}
i++;
}
if (((_global.newtarget == "") && (life > 0)) && (_parent._x > -900)) {
myname = _parent._name;
_global.newtarget = _root.forest[myname];
}
if (_global.orchidlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet_" + i])) {
life = life - _global.orchidstr;
_root.forest["seedbullet_" + i].removeMovieClip();
}
i++;
}
}
if (_global.violetlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet2_" + i])) {
life = life - _global.violetstr;
_root.forest["seedbullet2_" + i].removeMovieClip();
}
i++;
}
}
if (_global.bomblvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet3_" + i])) {
if (_global.bomblvl < 3) {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode1");
} else {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode2");
}
}
i++;
}
}
if (this.hitTest(_root.forest.laserflower.charge.laser)) {
life = life - _global.laserstr;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root.forest["venus" + i].venusfront) && (_global["venuseat" + i] == 0)) {
life = 0;
_global["venuseat" + i] = 1;
_root.forest["venus" + i].venusbody.gotoAndStop("attack");
_parent._alpha = 0;
}
i++;
}
if ((life > 0) && (_parent._x < _global.attackarea)) {
if (frozen == 1) {
_parent._x = _parent._x + (speed / 2);
} else {
_parent._x = _parent._x + speed;
}
if ((mvup < mvgoal) && (aa == 0)) {
mvup = mvup + 1;
_parent._y = _parent._y + 2;
}
if ((mvup >= mvgoal) && (aa == 0)) {
aa = 1;
}
if ((mvup > 0) && (aa == 1)) {
mvup = mvup - 1;
_parent._y = _parent._y - 2;
}
if ((mvup <= 0) && (aa == 1)) {
aa = 0;
_parent._y = oldy;
}
}
if (((life > 0) && (_parent._x >= _global.attackarea)) && (checker == 0)) {
checker = 1;
this.gotoAndStop("attack");
}
if ((life > 0) && (this.hitTest(_root.fairy_main.fairy.attacking.atkpart))) {
_root.forest.fMakeStarburst(_parent._x, _parent._y);
life = life - _global.fairypower;
_root.waksound.start();
}
if ((life <= 0) && (checkdead == 0)) {
checkdead = 1;
if (myname != "") {
_global.newtarget = "";
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 388 MovieClip Frame 11
this._parent.removeMovieClip();
Symbol 389 MovieClip [explosion2] Frame 42
_parent.removeMovieClip();
Instance of Symbol 389 MovieClip [explosion2] in Symbol 390 MovieClip [icepower] Frame 1
onClipEvent (enterFrame) {
if (_root.edgeleft.hitTest(_root.fairy_main)) {
if (_root.forest._x < 770) {
_parent._x = _parent._x + 20;
}
}
if (_root.edgeright.hitTest(_root.fairy_main)) {
if (_root.forest._x > -140.8) {
_parent._x = _parent._x - 20;
}
}
if (Key.isDown(65) && (_root.forest._x < 770)) {
_parent._x = _parent._x + 20;
}
if (Key.isDown(68) && (_root.forest._x > -140.8)) {
_parent._x = _parent._x - 20;
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Instance of Symbol 389 MovieClip [explosion2] in Symbol 390 MovieClip [icepower] Frame 1
onClipEvent (enterFrame) {
if (_root.edgeleft.hitTest(_root.fairy_main)) {
if (_root.forest._x < 770) {
_parent._x = _parent._x + 20;
}
}
if (_root.edgeright.hitTest(_root.fairy_main)) {
if (_root.forest._x > -140.8) {
_parent._x = _parent._x - 20;
}
}
if (Key.isDown(65) && (_root.forest._x < 770)) {
_parent._x = _parent._x + 20;
}
if (Key.isDown(68) && (_root.forest._x > -140.8)) {
_parent._x = _parent._x - 20;
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Instance of Symbol 389 MovieClip [explosion2] in Symbol 390 MovieClip [icepower] Frame 1
onClipEvent (enterFrame) {
if (_root.edgeleft.hitTest(_root.fairy_main)) {
if (_root.forest._x < 770) {
_parent._x = _parent._x + 20;
}
}
if (_root.edgeright.hitTest(_root.fairy_main)) {
if (_root.forest._x > -140.8) {
_parent._x = _parent._x - 20;
}
}
if (Key.isDown(65) && (_root.forest._x < 770)) {
_parent._x = _parent._x + 20;
}
if (Key.isDown(68) && (_root.forest._x > -140.8)) {
_parent._x = _parent._x - 20;
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Instance of Symbol 389 MovieClip [explosion2] in Symbol 390 MovieClip [icepower] Frame 1
onClipEvent (enterFrame) {
if (_root.edgeleft.hitTest(_root.fairy_main)) {
if (_root.forest._x < 770) {
_parent._x = _parent._x + 20;
}
}
if (_root.edgeright.hitTest(_root.fairy_main)) {
if (_root.forest._x > -140.8) {
_parent._x = _parent._x - 20;
}
}
if (Key.isDown(65) && (_root.forest._x < 770)) {
_parent._x = _parent._x + 20;
}
if (Key.isDown(68) && (_root.forest._x > -140.8)) {
_parent._x = _parent._x - 20;
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Instance of Symbol 389 MovieClip [explosion2] in Symbol 390 MovieClip [icepower] Frame 1
onClipEvent (enterFrame) {
if (_root.edgeleft.hitTest(_root.fairy_main)) {
if (_root.forest._x < 770) {
_parent._x = _parent._x + 20;
}
}
if (_root.edgeright.hitTest(_root.fairy_main)) {
if (_root.forest._x > -140.8) {
_parent._x = _parent._x - 20;
}
}
if (Key.isDown(65) && (_root.forest._x < 770)) {
_parent._x = _parent._x + 20;
}
if (Key.isDown(68) && (_root.forest._x > -140.8)) {
_parent._x = _parent._x - 20;
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 432 MovieClip Frame 5
_root.forest.gamebg.shake = 4;
_root.elecexplode.start();
Symbol 432 MovieClip Frame 13
_root.forest.gamebg.shake = 4;
_root.elecexplode.start();
Symbol 432 MovieClip Frame 21
_root.forest.gamebg.shake = 4;
_root.elecexplode.start();
Symbol 432 MovieClip Frame 28
_root.forest.gamebg.shake = 4;
_root.elecexplode.start();
Symbol 432 MovieClip Frame 38
_root.forest.gamebg.shake = 4;
_root.elecexplode.start();
Symbol 432 MovieClip Frame 50
_parent.removeMovieClip();
Instance of Symbol 432 MovieClip in Symbol 433 MovieClip [firepower] Frame 1
onClipEvent (enterFrame) {
if (_root.edgeleft.hitTest(_root.fairy_main)) {
if (_root.forest._x < 770) {
_parent._x = _parent._x + 20;
}
}
if (_root.edgeright.hitTest(_root.fairy_main)) {
if (_root.forest._x > -140.8) {
_parent._x = _parent._x - 20;
}
}
if (Key.isDown(65) && (_root.forest._x < 770)) {
_parent._x = _parent._x + 20;
}
if (Key.isDown(68) && (_root.forest._x > -140.8)) {
_parent._x = _parent._x - 20;
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Instance of Symbol 432 MovieClip in Symbol 433 MovieClip [firepower] Frame 1
onClipEvent (enterFrame) {
if (_root.edgeleft.hitTest(_root.fairy_main)) {
if (_root.forest._x < 770) {
_parent._x = _parent._x + 20;
}
}
if (_root.edgeright.hitTest(_root.fairy_main)) {
if (_root.forest._x > -140.8) {
_parent._x = _parent._x - 20;
}
}
if (Key.isDown(65) && (_root.forest._x < 770)) {
_parent._x = _parent._x + 20;
}
if (Key.isDown(68) && (_root.forest._x > -140.8)) {
_parent._x = _parent._x - 20;
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 457 MovieClip Frame 8
_global.treelife = _global.treelife - _parent.atkpower;
Symbol 458 MovieClip Frame 1
if (random(3) == 1) {
_root.impact1.start();
} else if (random(3) == 2) {
_root.impact2.start();
} else {
_root.impact3.start();
}
Symbol 458 MovieClip Frame 25
_global.stagekill = _global.stagekill + 1;
_global.critterskilled = _global.critterskilled + 1;
_global.crittersummonkilled = _global.crittersummonkilled + 1;
spawnx = _parent._parent._x;
spawny = _parent._parent._y;
gempoints = 80;
_global.score = _global.score + gempoints;
_root.forest.attachMovie("gempoints", "gempoints_" + _root.forest.getNextHighestDepth(), _root.forest.getNextHighestDepth(), {_x:spawnx, _y:spawny, gempts:gempoints});
_parent._parent.removeMovieClip();
Symbol 459 MovieClip Frame 1
stop();
Symbol 459 MovieClip Frame 2
stop();
Symbol 459 MovieClip Frame 3
stop();
Instance of Symbol 459 MovieClip in Symbol 460 MovieClip [enemy4] Frame 1
onClipEvent (load) {
life = 350;
maxlife = 350;
speed = Math.floor(Math.random() * 3) + 3;
checker = 0;
checkdead = 0;
atkpower = 70;
checkmoss = 0;
myname = "";
frozen = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i <= 10) {
if (this.hitTest(_root["superpower_" + i])) {
if ((_global.hammer == "ice") && (random(5) == 1)) {
frozen = 1;
this.ice.gotoAndPlay(2);
}
life = life - (_global.fairypower / 2);
}
i++;
}
if (((_global.newtarget == "") && (life > 0)) && (_parent._x > -900)) {
myname = _parent._name;
_global.newtarget = _root.forest[myname];
}
if (_global.orchidlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet_" + i])) {
life = life - _global.orchidstr;
_root.forest["seedbullet_" + i].removeMovieClip();
}
i++;
}
}
if (_global.violetlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet2_" + i])) {
life = life - _global.violetstr;
_root.forest["seedbullet2_" + i].removeMovieClip();
}
i++;
}
}
if (_global.bomblvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet3_" + i])) {
if (_global.bomblvl < 3) {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode1");
} else {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode2");
}
}
i++;
}
}
if (this.hitTest(_root.forest.laserflower.charge.laser)) {
life = life - _global.laserstr;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root.forest["venus" + i].venusfront) && (_global["venuseat" + i] == 0)) {
life = 0;
_global["venuseat" + i] = 1;
_root.forest["venus" + i].venusbody.gotoAndStop("attack");
_parent._alpha = 0;
}
i++;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root.forest["moss" + i])) {
changespeed = 1;
}
i++;
}
if ((life > 0) && (_parent._x < _global.attackarea)) {
if ((changespeed == 1) || (frozen == 1)) {
_parent._x = _parent._x + (speed / 2);
} else {
_parent._x = _parent._x + speed;
}
changespeed = 0;
}
if (((life > 0) && (_parent._x >= _global.attackarea)) && (checker == 0)) {
checker = 1;
this.gotoAndStop("attack");
}
if ((life > 0) && (this.hitTest(_root.fairy_main.fairy.attacking.atkpart))) {
_root.forest.fMakeStarburst(_parent._x, _parent._y);
life = life - _global.fairypower;
_root.waksound.start();
}
if ((life <= 0) && (checkdead == 0)) {
checkdead = 1;
if (myname != "") {
_global.newtarget = "";
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 475 MovieClip Frame 20
_global.treelife = _global.treelife - _parent.atkpower;
Symbol 476 MovieClip Frame 1
if (random(3) == 1) {
_root.impact1.start();
} else if (random(3) == 2) {
_root.impact2.start();
} else {
_root.impact3.start();
}
Symbol 476 MovieClip Frame 20
_global.stagekill = _global.stagekill + 1;
_global.critterskilled = _global.critterskilled + 1;
_global.crittersummonkilled = _global.crittersummonkilled + 1;
spawnx = _parent._parent._x;
spawny = _parent._parent._y;
gempoints = 100;
_global.score = _global.score + gempoints;
_root.forest.attachMovie("gempoints", "gempoints_" + _root.forest.getNextHighestDepth(), _root.forest.getNextHighestDepth(), {_x:spawnx, _y:spawny, gempts:gempoints});
_parent._parent.removeMovieClip();
Symbol 477 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 2
stop();
Symbol 477 MovieClip Frame 3
stop();
Instance of Symbol 477 MovieClip in Symbol 478 MovieClip [enemy3] Frame 1
onClipEvent (load) {
life = 300;
maxlife = 300;
speed = Math.floor(Math.random() * 3) + 3;
checker = 0;
checkdead = 0;
atkpower = 60;
mvup = 0;
aa = 0;
oldy = _parent._y;
mvgoal = Math.floor(Math.random() * 21) + 50;
checkmoss = 0;
myname = "";
frozen = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i <= 10) {
if (this.hitTest(_root["superpower_" + i])) {
if ((_global.hammer == "ice") && (random(5) == 1)) {
frozen = 1;
this.ice.gotoAndPlay(2);
}
life = life - (_global.fairypower / 2);
}
i++;
}
if (((_global.newtarget == "") && (life > 0)) && (_parent._x > -900)) {
myname = _parent._name;
_global.newtarget = _root.forest[myname];
}
if (_global.orchidlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet_" + i])) {
life = life - _global.orchidstr;
_root.forest["seedbullet_" + i].removeMovieClip();
}
i++;
}
}
if (_global.violetlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet2_" + i])) {
life = life - _global.violetstr;
_root.forest["seedbullet2_" + i].removeMovieClip();
}
i++;
}
}
if (_global.bomblvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet3_" + i])) {
if (_global.bomblvl < 3) {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode1");
} else {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode2");
}
}
i++;
}
}
if (this.hitTest(_root.forest.laserflower.charge.laser)) {
life = life - _global.laserstr;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root.forest["venus" + i].venusfront) && (_global["venuseat" + i] == 0)) {
life = 0;
_global["venuseat" + i] = 1;
_root.forest["venus" + i].venusbody.gotoAndStop("attack");
_parent._alpha = 0;
}
i++;
}
if ((life > 0) && (_parent._x < _global.attackarea)) {
if (frozen == 1) {
_parent._x = _parent._x + (speed / 2);
} else {
_parent._x = _parent._x + speed;
}
if ((mvup < mvgoal) && (aa == 0)) {
mvup = mvup + 1;
_parent._y = _parent._y + 2;
}
if ((mvup >= mvgoal) && (aa == 0)) {
aa = 1;
}
if ((mvup > 0) && (aa == 1)) {
mvup = mvup - 1;
_parent._y = _parent._y - 2;
}
if ((mvup <= 0) && (aa == 1)) {
aa = 0;
_parent._y = oldy;
}
}
if (((life > 0) && (_parent._x >= _global.attackarea)) && (checker == 0)) {
checker = 1;
this.gotoAndStop("attack");
}
if ((life > 0) && (this.hitTest(_root.fairy_main.fairy.attacking.atkpart))) {
_root.forest.fMakeStarburst(_parent._x, _parent._y);
life = life - _global.fairypower;
_root.waksound.start();
}
if ((life <= 0) && (checkdead == 0)) {
checkdead = 1;
if (myname != "") {
_global.newtarget = "";
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 492 MovieClip Frame 15
stop();
_global.treelife = _global.treelife - _parent.atkpower;
_global.stagekill = _global.stagekill + 1;
_global.critterskilled = _global.critterskilled + 1;
_global.crittersummonkilled = _global.crittersummonkilled + 1;
_parent._parent.removeMovieClip();
Symbol 493 MovieClip Frame 1
if (random(3) == 1) {
_root.impact1.start();
} else if (random(3) == 2) {
_root.impact2.start();
} else {
_root.impact3.start();
}
Symbol 493 MovieClip Frame 30
_global.stagekill = _global.stagekill + 1;
_global.critterskilled = _global.critterskilled + 1;
_global.crittersummonkilled = _global.crittersummonkilled + 1;
spawnx = _parent._parent._x;
spawny = _parent._parent._y;
gempoints = 80;
_global.score = _global.score + gempoints;
_root.forest.attachMovie("gempoints", "gempoints_" + _root.forest.getNextHighestDepth(), _root.forest.getNextHighestDepth(), {_x:spawnx, _y:spawny, gempts:gempoints});
_parent._parent.removeMovieClip();
Symbol 494 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 2
stop();
Symbol 494 MovieClip Frame 3
stop();
Instance of Symbol 494 MovieClip in Symbol 495 MovieClip [enemy2] Frame 1
onClipEvent (load) {
life = 250;
maxlife = 250;
speed = Math.floor(Math.random() * 2) + 2;
checker = 0;
checkdead = 0;
atkpower = 60;
checkmoss = 0;
myname = "";
frozen = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i <= 10) {
if (this.hitTest(_root["superpower_" + i])) {
if ((_global.hammer == "ice") && (random(5) == 1)) {
frozen = 1;
this.ice.gotoAndPlay(2);
}
life = life - (_global.fairypower / 2);
}
i++;
}
if (((_global.newtarget == "") && (life > 0)) && (_parent._x > -900)) {
myname = _parent._name;
_global.newtarget = _root.forest[myname];
}
if (_global.orchidlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet_" + i])) {
life = life - _global.orchidstr;
_root.forest["seedbullet_" + i].removeMovieClip();
}
i++;
}
}
if (_global.violetlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet2_" + i])) {
life = life - _global.violetstr;
_root.forest["seedbullet2_" + i].removeMovieClip();
}
i++;
}
}
if (_global.bomblvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet3_" + i])) {
if (_global.bomblvl < 3) {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode1");
} else {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode2");
}
}
i++;
}
}
if (this.hitTest(_root.forest.laserflower.charge.laser)) {
life = life - _global.laserstr;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root.forest["venus" + i].venusfront) && (_global["venuseat" + i] == 0)) {
life = 0;
_global["venuseat" + i] = 1;
_root.forest["venus" + i].venusbody.gotoAndStop("attack");
_parent._alpha = 0;
}
i++;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root.forest["moss" + i])) {
changespeed = 1;
}
i++;
}
if ((life > 0) && (_parent._x < _global.attackarea)) {
if ((changespeed == 1) || (frozen == 1)) {
_parent._x = _parent._x + (speed / 2);
} else {
_parent._x = _parent._x + speed;
}
changespeed = 0;
}
if (((life > 0) && (_parent._x >= _global.attackarea)) && (checker == 0)) {
checker = 1;
this.gotoAndStop("attack");
}
if ((life > 0) && (this.hitTest(_root.fairy_main.fairy.attacking.atkpart))) {
_root.forest.fMakeStarburst(_parent._x, _parent._y);
life = life - _global.fairypower;
_root.waksound.start();
}
if ((life <= 0) && (checkdead == 0)) {
checkdead = 1;
if (myname != "") {
_global.newtarget = "";
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 511 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 2
stop();
Symbol 511 MovieClip Frame 3
stop();
Symbol 511 MovieClip Frame 4
stop();
Symbol 511 MovieClip Frame 5
stop();
Symbol 511 MovieClip Frame 6
stop();
Symbol 511 MovieClip Frame 7
stop();
Symbol 511 MovieClip Frame 8
stop();
Instance of Symbol 511 MovieClip in Symbol 512 MovieClip [explosionStar1] Frame 1
onClipEvent (load) {
if (_global.hammer == "wood") {
this.gotoAndStop(1);
} else if (_global.hammer == "stone") {
this.gotoAndStop(2);
} else if (_global.hammer == "metal") {
this.gotoAndStop(3);
} else if (_global.hammer == "earth") {
this.gotoAndStop(4);
} else if (_global.hammer == "fire") {
this.gotoAndStop(5);
} else if (_global.hammer == "elec") {
this.gotoAndStop(6);
} else if (_global.hammer == "ice") {
this.gotoAndStop(7);
} else if (_global.hammer == "mjolnir") {
this.gotoAndStop(8);
}
}
Instance of Symbol 511 MovieClip in Symbol 513 MovieClip [explosionStar2] Frame 1
onClipEvent (load) {
if (_global.hammer == "wood") {
this.gotoAndStop(1);
} else if (_global.hammer == "stone") {
this.gotoAndStop(2);
} else if (_global.hammer == "metal") {
this.gotoAndStop(3);
} else if (_global.hammer == "earth") {
this.gotoAndStop(4);
} else if (_global.hammer == "fire") {
this.gotoAndStop(5);
} else if (_global.hammer == "elec") {
this.gotoAndStop(6);
} else if (_global.hammer == "ice") {
this.gotoAndStop(7);
} else if (_global.hammer == "mjolnir") {
this.gotoAndStop(8);
}
}
Instance of Symbol 511 MovieClip in Symbol 514 MovieClip [explosionStar3] Frame 1
onClipEvent (load) {
if (_global.hammer == "wood") {
this.gotoAndStop(1);
} else if (_global.hammer == "stone") {
this.gotoAndStop(2);
} else if (_global.hammer == "metal") {
this.gotoAndStop(3);
} else if (_global.hammer == "earth") {
this.gotoAndStop(4);
} else if (_global.hammer == "fire") {
this.gotoAndStop(5);
} else if (_global.hammer == "elec") {
this.gotoAndStop(6);
} else if (_global.hammer == "ice") {
this.gotoAndStop(7);
} else if (_global.hammer == "mjolnir") {
this.gotoAndStop(8);
}
}
Instance of Symbol 511 MovieClip in Symbol 515 MovieClip [explosionStar4] Frame 1
onClipEvent (load) {
if (_global.hammer == "wood") {
this.gotoAndStop(1);
} else if (_global.hammer == "stone") {
this.gotoAndStop(2);
} else if (_global.hammer == "metal") {
this.gotoAndStop(3);
} else if (_global.hammer == "earth") {
this.gotoAndStop(4);
} else if (_global.hammer == "fire") {
this.gotoAndStop(5);
} else if (_global.hammer == "elec") {
this.gotoAndStop(6);
} else if (_global.hammer == "ice") {
this.gotoAndStop(7);
} else if (_global.hammer == "mjolnir") {
this.gotoAndStop(8);
}
}
Symbol 530 MovieClip Frame 15
stop();
_global.treelife = _global.treelife - _parent.atkpower;
_global.stagekill = _global.stagekill + 1;
_global.critterskilled = _global.critterskilled + 1;
_global.crittersummonkilled = _global.crittersummonkilled + 1;
_parent._parent.removeMovieClip();
Symbol 531 MovieClip Frame 1
if (random(3) == 1) {
_root.impact1.start();
} else if (random(3) == 2) {
_root.impact2.start();
} else {
_root.impact3.start();
}
Symbol 531 MovieClip Frame 30
_global.stagekill = _global.stagekill + 1;
_global.critterskilled = _global.critterskilled + 1;
_global.crittersummonkilled = _global.crittersummonkilled + 1;
spawnx = _parent._parent._x;
spawny = _parent._parent._y;
gempoints = 50;
_global.score = _global.score + gempoints;
_root.forest.attachMovie("gempoints", "gempoints_" + _root.forest.getNextHighestDepth(), _root.forest.getNextHighestDepth(), {_x:spawnx, _y:spawny, gempts:gempoints});
_parent._parent.removeMovieClip();
Symbol 532 MovieClip Frame 1
stop();
Symbol 532 MovieClip Frame 2
stop();
Symbol 532 MovieClip Frame 3
stop();
Instance of Symbol 532 MovieClip in Symbol 533 MovieClip [enemy1] Frame 1
onClipEvent (load) {
life = 150;
maxlife = 150;
speed = Math.floor(Math.random() * 2) + 2;
checker = 0;
checkdead = 0;
atkpower = 50;
checkmoss = 0;
myname = "";
frozen = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i <= 10) {
if (this.hitTest(_root["superpower_" + i])) {
if ((_global.hammer == "ice") && (random(5) == 1)) {
frozen = 1;
this.ice.gotoAndPlay(2);
}
life = life - (_global.fairypower / 2);
}
i++;
}
if (((_global.newtarget == "") && (life > 0)) && (_parent._x > -900)) {
myname = _parent._name;
_global.newtarget = _root.forest[myname];
}
if (_global.orchidlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet_" + i])) {
life = life - _global.orchidstr;
_root.forest["seedbullet_" + i].removeMovieClip();
}
i++;
}
}
if (_global.violetlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet2_" + i])) {
life = life - _global.violetstr;
_root.forest["seedbullet2_" + i].removeMovieClip();
}
i++;
}
}
if (_global.bomblvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet3_" + i])) {
if (_global.bomblvl < 3) {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode1");
} else {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode2");
}
}
i++;
}
}
if (this.hitTest(_root.forest.laserflower.charge.laser)) {
life = life - _global.laserstr;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root.forest["venus" + i].venusfront) && (_global["venuseat" + i] == 0)) {
life = 0;
_global["venuseat" + i] = 1;
_root.forest["venus" + i].venusbody.gotoAndStop("attack");
_parent._alpha = 0;
}
i++;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root.forest["moss" + i])) {
changespeed = 1;
}
i++;
}
if ((life > 0) && (_parent._x < _global.attackarea)) {
if ((changespeed == 1) || (frozen == 1)) {
_parent._x = _parent._x + (speed / 2);
} else {
_parent._x = _parent._x + speed;
}
changespeed = 0;
}
if (((life > 0) && (_parent._x >= _global.attackarea)) && (checker == 0)) {
checker = 1;
this.gotoAndStop("attack");
}
if ((life > 0) && (this.hitTest(_root.fairy_main.fairy.attacking.atkpart))) {
_root.forest.fMakeStarburst(_parent._x, _parent._y);
life = life - _global.fairypower;
_root.waksound.start();
}
if ((life <= 0) && (checkdead == 0)) {
checkdead = 1;
if (myname != "") {
_global.newtarget = "";
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 542 MovieClip Frame 18
_parent._parent.removeMovieClip();
Symbol 543 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 2
stop();
Instance of Symbol 543 MovieClip in Symbol 544 MovieClip [gempoints] Frame 1
onClipEvent (load) {
var speed = 15;
var turnRate = 0.1;
var moveX = 0;
var moveY = 0;
follower = this._parent;
target = _root.forest.gem;
checker = 0;
gempoints = _parent.gempts;
}
onClipEvent (enterFrame) {
if (this._parent.hitTest(target) && (checker == 0)) {
checker = 1;
_global.gempoints = _global.gempoints + gempoints;
this.gotoAndStop("explode");
}
if (checker == 0) {
var distanceX = (target._x - follower._x);
var distanceY = (target._y - follower._y);
distanceTotal = Math.sqrt((distanceX * distanceX) + (distanceY * distanceY));
var moveDistanceX = ((turnRate * distanceX) / distanceTotal);
var moveDistanceY = ((turnRate * distanceY) / distanceTotal);
moveX = moveX + moveDistanceX;
moveY = moveY + moveDistanceY;
var totalmove = Math.sqrt((moveX * moveX) + (moveY * moveY));
moveX = (speed * moveX) / totalmove;
moveY = (speed * moveY) / totalmove;
follower._x = follower._x + moveX;
follower._y = follower._y + moveY;
follower._rotation = (180 * Math.atan2(moveY, moveX)) / Math.PI;
}
}
Symbol 548 MovieClip Frame 1
stop();
Instance of Symbol 548 MovieClip in Symbol 549 MovieClip [seedbullet] Frame 1
onClipEvent (load) {
var speed = 15;
var turnRate = 1;
var moveX = 0;
var moveY = 0;
follower = this._parent;
target = _global.newtarget;
checker = 0;
}
onClipEvent (enterFrame) {
if (_global.newtarget == "") {
target = _root.forest.esamp;
}
if (follower._y > 240) {
_parent.removeMovieClip();
}
if (follower._y < -250) {
_parent.removeMovieClip();
}
if (follower._x < -960) {
_parent.removeMovieClip();
}
myy = _parent._y;
if (checker == 0) {
var distanceX = (target._x - follower._x);
var distanceY = (target._y - follower._y);
distanceTotal = Math.sqrt((distanceX * distanceX) + (distanceY * distanceY));
var moveDistanceX = ((turnRate * distanceX) / distanceTotal);
var moveDistanceY = ((turnRate * distanceY) / distanceTotal);
moveX = moveX + moveDistanceX;
moveY = moveY + moveDistanceY;
var totalmove = Math.sqrt((moveX * moveX) + (moveY * moveY));
moveX = (speed * moveX) / totalmove;
moveY = (speed * moveY) / totalmove;
follower._x = follower._x + moveX;
follower._y = follower._y + moveY;
follower._rotation = (180 * Math.atan2(moveY, moveX)) / Math.PI;
}
myy2 = _parent._y;
if (myy == myy2) {
this._parent.removeMovieClip();
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Instance of Symbol 553 MovieClip in Symbol 554 MovieClip [seedbullet2] Frame 1
onClipEvent (load) {
var speed = 20;
var turnRate = 1;
var moveX = 0;
var moveY = 0;
agroRange = 1000;
follower = this._parent;
target = _global.newtarget;
checker = 0;
}
onClipEvent (enterFrame) {
if (_global.newtarget == "") {
target = _root.forest.esamp;
}
if (follower._y > 240) {
_parent.removeMovieClip();
}
if (follower._y < -250) {
_parent.removeMovieClip();
}
if (follower._x < -960) {
_parent.removeMovieClip();
}
myy = _parent._y;
if (checker == 0) {
var distanceX = (target._x - follower._x);
var distanceY = (target._y - follower._y);
distanceTotal = Math.sqrt((distanceX * distanceX) + (distanceY * distanceY));
var moveDistanceX = ((turnRate * distanceX) / distanceTotal);
var moveDistanceY = ((turnRate * distanceY) / distanceTotal);
moveX = moveX + moveDistanceX;
moveY = moveY + moveDistanceY;
var totalmove = Math.sqrt((moveX * moveX) + (moveY * moveY));
moveX = (speed * moveX) / totalmove;
moveY = (speed * moveY) / totalmove;
follower._x = follower._x + moveX;
follower._y = follower._y + moveY;
follower._rotation = (180 * Math.atan2(moveY, moveX)) / Math.PI;
}
myy2 = _parent._y;
if (myy == myy2) {
this._parent.removeMovieClip();
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 579 MovieClip Frame 1
_root.seedexplode.start();
Symbol 579 MovieClip Frame 58
stop();
Symbol 580 MovieClip Frame 60
_parent._parent.removeMovieClip();
Symbol 625 MovieClip Frame 1
_root.seedexplode.start();
Symbol 625 MovieClip Frame 45
stop();
Symbol 626 MovieClip Frame 56
_parent._parent.removeMovieClip();
Symbol 627 MovieClip Frame 1
stop();
Symbol 627 MovieClip Frame 2
stop();
Symbol 627 MovieClip Frame 3
stop();
Instance of Symbol 627 MovieClip "seed" in Symbol 628 MovieClip [seedbullet3] Frame 1
onClipEvent (load) {
var speed = 10;
var turnRate = 0.5;
var moveX = 0;
var moveY = 0;
follower = this._parent;
target = _global.newtarget;
checker = 0;
}
onClipEvent (enterFrame) {
if (_global.newtarget == "") {
target = _root.forest.esamp;
}
if (follower._y > 240) {
_parent.removeMovieClip();
}
if (follower._y < -250) {
_parent.removeMovieClip();
}
if (follower._x < -960) {
_parent.removeMovieClip();
}
myy = _parent._y;
if (checker == 0) {
var distanceX = (target._x - follower._x);
var distanceY = (target._y - follower._y);
distanceTotal = Math.sqrt((distanceX * distanceX) + (distanceY * distanceY));
var moveDistanceX = ((turnRate * distanceX) / distanceTotal);
var moveDistanceY = ((turnRate * distanceY) / distanceTotal);
moveX = moveX + moveDistanceX;
moveY = moveY + moveDistanceY;
var totalmove = Math.sqrt((moveX * moveX) + (moveY * moveY));
moveX = (speed * moveX) / totalmove;
moveY = (speed * moveY) / totalmove;
follower._x = follower._x + moveX;
follower._y = follower._y + moveY;
follower._rotation = (180 * Math.atan2(moveY, moveX)) / Math.PI;
}
myy2 = _parent._y;
if (myy == myy2) {
this._parent.removeMovieClip();
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 632 MovieClip Frame 1
_root.earthspike.start();
Symbol 632 MovieClip Frame 7
_root.forest.gamebg.shake = 4;
Symbol 632 MovieClip Frame 11
_root.forest.gamebg.shake = 4;
Symbol 632 MovieClip Frame 16
_root.forest.gamebg.shake = 4;
Symbol 632 MovieClip Frame 20
_root.forest.gamebg.shake = 4;
Symbol 632 MovieClip Frame 27
_parent.removeMovieClip();
Instance of Symbol 632 MovieClip in Symbol 633 MovieClip [earthpower] Frame 1
onClipEvent (enterFrame) {
if (_root.edgeleft.hitTest(_root.fairy_main)) {
if (_root.forest._x < 770) {
_parent._x = _parent._x + 20;
}
}
if (_root.edgeright.hitTest(_root.fairy_main)) {
if (_root.forest._x > -140.8) {
_parent._x = _parent._x - 20;
}
}
if (Key.isDown(65) && (_root.forest._x < 770)) {
_parent._x = _parent._x + 20;
}
if (Key.isDown(68) && (_root.forest._x > -140.8)) {
_parent._x = _parent._x - 20;
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 696 MovieClip Frame 1
_root.elecexplode.start();
Symbol 696 MovieClip Frame 5
_root.forest.gamebg.shake = 4;
Symbol 696 MovieClip Frame 22
_parent.removeMovieClip();
Instance of Symbol 696 MovieClip in Symbol 697 MovieClip [elecpower] Frame 1
onClipEvent (enterFrame) {
if (_root.edgeleft.hitTest(_root.fairy_main)) {
if (_root.forest._x < 770) {
_parent._x = _parent._x + 20;
}
}
if (_root.edgeright.hitTest(_root.fairy_main)) {
if (_root.forest._x > -140.8) {
_parent._x = _parent._x - 20;
}
}
if (Key.isDown(65) && (_root.forest._x < 770)) {
_parent._x = _parent._x + 20;
}
if (Key.isDown(68) && (_root.forest._x > -140.8)) {
_parent._x = _parent._x - 20;
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 701 MovieClip Frame 12
xx = random(2);
if (xx == 0) {
_root.thunder1.start();
} else if (xx == 1) {
_root.thunder2.start();
} else if (xx == 2) {
_root.thunder3.start();
}
Symbol 701 MovieClip Frame 28
_root.forest.gamebg.shake = 4;
Symbol 701 MovieClip Frame 31
xx = random(2);
if (xx == 0) {
_root.thunder1.start();
} else if (xx == 1) {
_root.thunder2.start();
} else if (xx == 2) {
_root.thunder3.start();
}
Symbol 701 MovieClip Frame 51
_root.forest.gamebg.shake = 4;
Symbol 701 MovieClip Frame 72
xx = random(2);
if (xx == 0) {
_root.thunder1.start();
} else if (xx == 1) {
_root.thunder2.start();
} else if (xx == 2) {
_root.thunder3.start();
}
_root.forest.gamebg.shake = 4;
Symbol 701 MovieClip Frame 90
_root.forest.gamebg.shake = 4;
Symbol 701 MovieClip Frame 137
_parent.removeMovieClip();
Symbol 701 MovieClip Frame 138
_global.altaractivate = 0;
Instance of Symbol 701 MovieClip "storm" in Symbol 702 MovieClip [mjolnirpower] Frame 1
onClipEvent (enterFrame) {
if (_root.edgeleft.hitTest(_root.fairy_main)) {
if (_root.forest._x < 770) {
_parent._x = _parent._x + 20;
}
}
if (_root.edgeright.hitTest(_root.fairy_main)) {
if (_root.forest._x > -140.8) {
_parent._x = _parent._x - 20;
}
}
if (Key.isDown(65) && (_root.forest._x < 770)) {
_parent._x = _parent._x + 20;
}
if (Key.isDown(68) && (_root.forest._x > -140.8)) {
_parent._x = _parent._x - 20;
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 717 MovieClip Frame 21
_global.treelife = _global.treelife - _parent.atkpower;
Symbol 718 MovieClip Frame 1
if (random(3) == 1) {
_root.impact1.start();
} else if (random(3) == 2) {
_root.impact2.start();
} else {
_root.impact3.start();
}
Symbol 718 MovieClip Frame 15
_global.stagekill = _global.stagekill + 1;
_global.critterskilled = _global.critterskilled + 1;
_global.crittersummonkilled = _global.crittersummonkilled + 1;
spawnx = _parent._parent._x;
spawny = _parent._parent._y;
gempoints = 200;
_global.score = _global.score + gempoints;
_root.forest.attachMovie("gempoints", "gempoints_" + _root.forest.getNextHighestDepth(), _root.forest.getNextHighestDepth(), {_x:spawnx, _y:spawny, gempts:gempoints});
_parent._parent.removeMovieClip();
Symbol 719 MovieClip Frame 1
stop();
Symbol 719 MovieClip Frame 2
stop();
Symbol 719 MovieClip Frame 3
stop();
Instance of Symbol 719 MovieClip in Symbol 720 MovieClip [enemy9] Frame 1
onClipEvent (load) {
life = 800;
maxlife = 800;
speed = Math.floor(Math.random() * 3) + 4;
checker = 0;
checkdead = 0;
atkpower = 200;
mvup = 0;
aa = 0;
oldy = _parent._y;
mvgoal = Math.floor(Math.random() * 11) + 40;
checkmoss = 0;
myname = "";
frozen = 0;
}
onClipEvent (enterFrame) {
i = 1;
while (i <= 10) {
if (this.hitTest(_root["superpower_" + i])) {
if ((_global.hammer == "ice") && (random(5) == 1)) {
frozen = 1;
this.ice.gotoAndPlay(2);
}
life = life - (_global.fairypower / 2);
}
i++;
}
if (((_global.newtarget == "") && (life > 0)) && (_parent._x > -900)) {
myname = _parent._name;
_global.newtarget = _root.forest[myname];
}
if (_global.orchidlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet_" + i])) {
life = life - _global.orchidstr;
_root.forest["seedbullet_" + i].removeMovieClip();
}
i++;
}
}
if (_global.violetlvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet2_" + i])) {
life = life - _global.violetstr;
_root.forest["seedbullet2_" + i].removeMovieClip();
}
i++;
}
}
if (_global.bomblvl != 0) {
i = 1;
while (i <= 20) {
if (this.hitTest(_root.forest["seedbullet3_" + i])) {
if (_global.bomblvl < 3) {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode1");
} else {
life = life - _global.bombstr;
_root.forest["seedbullet3_" + i].seed.gotoAndStop("explode2");
}
}
i++;
}
}
if (this.hitTest(_root.forest.laserflower.charge.laser)) {
life = life - _global.laserstr;
}
i = 1;
while (i <= 4) {
if (this.hitTest(_root.forest["venus" + i].venusfront) && (_global["venuseat" + i] == 0)) {
life = 0;
_global["venuseat" + i] = 1;
_root.forest["venus" + i].venusbody.gotoAndStop("attack");
_parent._alpha = 0;
}
i++;
}
if ((life > 0) && (_parent._x < _global.attackarea)) {
if (frozen == 1) {
_parent._x = _parent._x + (speed / 2);
} else {
_parent._x = _parent._x + speed;
}
if ((mvup < mvgoal) && (aa == 0)) {
mvup = mvup + 1;
_parent._y = _parent._y + 2;
}
if ((mvup >= mvgoal) && (aa == 0)) {
aa = 1;
}
if ((mvup > 0) && (aa == 1)) {
mvup = mvup - 1;
_parent._y = _parent._y - 2;
}
if ((mvup <= 0) && (aa == 1)) {
aa = 0;
_parent._y = oldy;
}
}
if (((life > 0) && (_parent._x >= _global.attackarea)) && (checker == 0)) {
checker = 1;
this.gotoAndStop("attack");
}
if ((life > 0) && (this.hitTest(_root.fairy_main.fairy.attacking.atkpart))) {
_root.forest.fMakeStarburst(_parent._x, _parent._y);
life = life - _global.fairypower;
_root.waksound.start();
}
if ((life <= 0) && (checkdead == 0)) {
checkdead = 1;
if (myname != "") {
_global.newtarget = "";
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 729 MovieClip [myDust] Frame 1
INIT_SCALE = Number(this._parent._parent._parent.MAX_SCALE) + Number(random(100));
this.dustAnim._xscale = INIT_SCALE;
this.dustAnim._yscale = INIT_SCALE;
DIR = random(2);
if (Number(dir) == 1) {
XVELOCITY = random(this._parent._parent._parent.MAX_X + 1) + (X_VEL / 2);
} else {
XVELOCITY = random(this._parent._parent._parent.MAX_X + 1) - (X_VEL / 2);
}
YVELOCITY = (random(this._parent._parent._parent.MAX_Y) + 3) - (Y_VEL / 2);
LIFE = random(this._parent._parent._parent.MAX_LIFE) + 30;
DECREASE = Number(int(120 / LIFE)) + 1;
TIME = 1;
Symbol 729 MovieClip [myDust] Frame 2
if (Number(LIFE) > 0) {
Y_VELOCITY = YVELOCITY + (this._parent._parent._parent.GRAVITY * (((TIME / 30) * (TIME / 30)) / 2));
YVELOCITY = Y_VELOCITY;
if (Number(DIR) == 1) {
this.dustAnim._x = this.dustAnim._x - XVELOCITY;
} else {
this.dustAnim._x = this.dustAnim._x + XVELOCITY;
}
this.dustAnim._y = this.dustAnim._y - Y_VELOCITY;
this.dustAnim._xscale = this.dustAnim._xscale - DECREASE;
this.dustAnim._yscale = this.dustAnim._yscale - DECREASE;
this.dustAnim._alpha = this.dustAnim._alpha - DECREASE;
} else {
removeMovieClip(this._parent["dust" + this.myTotal]);
}
Symbol 729 MovieClip [myDust] Frame 3
LIFE--;
TIME++;
gotoAndPlay (2);
Symbol 752 Button
on (press) {
getURL ("http://www.addictinggames.com", blank);
}
Symbol 762 Button
on (press) {
_root.getURL("http://www.addictinggames.com");
}
Symbol 914 MovieClip Frame 98
stop();
Symbol 915 MovieClip Frame 1
_root.stop();
Symbol 915 MovieClip Frame 205
_root.play();
Instance of Symbol 923 MovieClip in Symbol 924 MovieClip Frame 1
on (release) {
getURL ("http://www.ahjee.com", "_blank");
}
Symbol 925 MovieClip Frame 106
_root.play();
Symbol 966 MovieClip Frame 1
stop();
Symbol 966 MovieClip Frame 2
stop();
Symbol 966 MovieClip Frame 3
stop();
Symbol 966 MovieClip Frame 4
stop();
Symbol 966 MovieClip Frame 5
stop();
Symbol 966 MovieClip Frame 6
stop();
Symbol 966 MovieClip Frame 7
stop();
Symbol 966 MovieClip Frame 8
stop();
Symbol 967 MovieClip Frame 1
stop();
Instance of Symbol 966 MovieClip in Symbol 967 MovieClip Frame 1
onClipEvent (load) {
if (_global.hammer == "wood") {
this.gotoAndStop(1);
} else if (_global.hammer == "stone") {
this.gotoAndStop(2);
} else if (_global.hammer == "metal") {
this.gotoAndStop(3);
} else if (_global.hammer == "earth") {
this.gotoAndStop(4);
} else if (_global.hammer == "fire") {
this.gotoAndStop(5);
} else if (_global.hammer == "elec") {
this.gotoAndStop(6);
} else if (_global.hammer == "ice") {
this.gotoAndStop(7);
} else if (_global.hammer == "mjolnir") {
this.gotoAndStop(8);
}
}
Symbol 974 Button
on (release) {
getURL ("http://www.addictinggames.com", "_blank");
}
Symbol 979 Button
on (release) {
_root.gotoAndStop("mygame");
}
Symbol 984 Button
on (release) {
myLSO = SharedObject.getLocal("greattreesavegame");
if (myLSO.data.myObj == undefined) {
trace("No Saved Game");
} else {
trace("Loaded Game");
_global.treelife = myLSO.data.myObj.objArray[0];
_global.maxtreelife = myLSO.data.myObj.objArray[1];
_global.crittersummonkilled = myLSO.data.myObj.objArray[2];
_global.stagekill = myLSO.data.myObj.objArray[3];
_global.critters = myLSO.data.myObj.objArray[4];
_global.gamepaused = myLSO.data.myObj.objArray[5];
_global.gamelevel = myLSO.data.myObj.objArray[6];
_global.gempoints = myLSO.data.myObj.objArray[7];
_global.score = myLSO.data.myObj.objArray[8];
_global.hammer1 = myLSO.data.myObj.objArray[9];
_global.hammer2 = myLSO.data.myObj.objArray[10];
_global.hammer3 = myLSO.data.myObj.objArray[11];
_global.hammer4 = myLSO.data.myObj.objArray[12];
_global.hammer5 = myLSO.data.myObj.objArray[13];
_global.hammer6 = myLSO.data.myObj.objArray[14];
_global.hammer7 = myLSO.data.myObj.objArray[15];
_global.hammer8 = myLSO.data.myObj.objArray[16];
_global.cultivatestem = myLSO.data.myObj.objArray[17];
_global.cultivatesoil = myLSO.data.myObj.objArray[18];
_global.venuslvl = myLSO.data.myObj.objArray[19];
_global.mosslvl = myLSO.data.myObj.objArray[20];
_global.orchidlvl = myLSO.data.myObj.objArray[21];
_global.orchidstr = myLSO.data.myObj.objArray[22];
_global.violetlvl = myLSO.data.myObj.objArray[23];
_global.violetstr = myLSO.data.myObj.objArray[24];
_global.bomblvl = myLSO.data.myObj.objArray[25];
_global.bombstr = myLSO.data.myObj.objArray[26];
_global.healingvine = myLSO.data.myObj.objArray[27];
_global.healamount = myLSO.data.myObj.objArray[28];
_global.laserlvl = myLSO.data.myObj.objArray[29];
_global.laserfreq = myLSO.data.myObj.objArray[30];
_global.laserstr = myLSO.data.myObj.objArray[31];
_global.loadedgame = 1;
_root.gotoAndStop("mygame");
_root.upgrades.gotoAndPlay(2);
}
}
Symbol 989 Button
on (release) {
_root.gotoAndStop("credits");
}
Symbol 993 MovieClip Frame 50
stop();
Instance of Symbol 923 MovieClip in Symbol 994 MovieClip Frame 1
on (release) {
getURL ("http://www.ahjee.com", "_blank");
}
Symbol 1010 MovieClip Frame 1
stop();
Symbol 1017 MovieClip Frame 1
stop();
Symbol 1017 MovieClip Frame 89
_global.cleanup = 1;
_root.gotoAndStop("ender");
Symbol 1017 MovieClip Frame 121
stop();
Symbol 1039 MovieClip Frame 100
if (_parent._parent._name == "venus1") {
_global.venuseat1 = 0;
} else if (_parent._parent._name == "venus2") {
_global.venuseat2 = 0;
} else if (_parent._parent._name == "venus3") {
_global.venuseat3 = 0;
} else if (_parent._parent._name == "venus4") {
_global.venuseat4 = 0;
}
_parent.gotoAndStop("move");
Symbol 1040 MovieClip Frame 1
stop();
Symbol 1040 MovieClip Frame 2
stop();
Symbol 1089 MovieClip Frame 107
_root.forest.gamebg.shake = 4;
Symbol 1089 MovieClip Frame 150
_parent.checker = 0;
_parent.gotoAndStop("move");
Symbol 1109 MovieClip Frame 107
_root.forest.gamebg.shake = 4;
Symbol 1109 MovieClip Frame 153
_parent.checker = 0;
_parent.gotoAndStop("move2");
Symbol 1110 MovieClip Frame 1
stop();
Symbol 1110 MovieClip Frame 2
stop();
Symbol 1110 MovieClip Frame 3
stop();
Symbol 1110 MovieClip Frame 4
stop();
Symbol 1122 MovieClip Frame 17
if (_global.seedbulletnum >= 20) {
_global.seedbulletnum = 1;
}
_global.seedbulletnum = _global.seedbulletnum + 1;
_root.forest.attachMovie("seedbullet", "seedbullet_" + _global.seedbulletnum, _root.forest.getNextHighestDepth(), {_x:_parent._parent._x, _y:_parent._parent._y});
Symbol 1131 MovieClip Frame 3
if (_global.gamepaused == 0) {
if (_global.seedbulletnum2 >= 20) {
_global.seedbulletnum2 = 1;
}
_root.violetshoot.start();
_global.seedbulletnum2 = _global.seedbulletnum2 + 1;
_root.forest.attachMovie("seedbullet2", "seedbullet2_" + _global.seedbulletnum2, _root.forest.getNextHighestDepth(), {_x:_parent._parent._x, _y:_parent._parent._y});
}
Symbol 1131 MovieClip Frame 10
if (_global.gamepaused == 0) {
if (_global.seedbulletnum2 >= 20) {
_global.seedbulletnum2 = 1;
}
_root.violetshoot.start();
_global.seedbulletnum2 = _global.seedbulletnum2 + 1;
_root.forest.attachMovie("seedbullet2", "seedbullet2_" + _global.seedbulletnum2, _root.forest.getNextHighestDepth(), {_x:_parent._parent._x, _y:_parent._parent._y});
}
Symbol 1131 MovieClip Frame 16
if (_global.gamepaused == 0) {
if (_global.seedbulletnum2 >= 20) {
_global.seedbulletnum2 = 1;
}
_root.violetshoot.start();
_global.seedbulletnum2 = _global.seedbulletnum2 + 1;
_root.forest.attachMovie("seedbullet2", "seedbullet2_" + _global.seedbulletnum2, _root.forest.getNextHighestDepth(), {_x:_parent._parent._x, _y:_parent._parent._y});
}
Symbol 1131 MovieClip Frame 50
_global.newtarget = "";
Symbol 1152 MovieClip Frame 10
if (_global.seedbulletnum3 >= 20) {
_global.seedbulletnum3 = 1;
}
_global.seedbulletnum3 = _global.seedbulletnum3 + 1;
_root.forest.attachMovie("seedbullet3", "seedbullet3_" + _global.seedbulletnum3, _root.forest.getNextHighestDepth(), {_x:_parent._parent._x, _y:_parent._parent._y});
Symbol 1154 MovieClip Frame 1
stop();
Symbol 1154 MovieClip Frame 2
stop();
Symbol 1154 MovieClip Frame 3
stop();
Symbol 1154 MovieClip Frame 4
stop();
Symbol 1167 MovieClip Frame 15
_root.healing.start();
_global.treelife = _global.treelife + _global.healamount;
if (_global.treelife > _global.maxtreelife) {
_global.treelife = _global.maxtreelife;
}
Symbol 1168 MovieClip Frame 1
stop();
Symbol 1168 MovieClip Frame 2
stop();
Symbol 1168 MovieClip Frame 3
stop();
Symbol 1169 MovieClip Frame 1
function fMakeStarburst(xPos, yPos) {
s = Root.createEmptyMovieClip("burstClip", Root.getNextHighestDepth());
s.cnt = 0;
s.onEnterFrame = function () {
if ((this.cnt++) == 40) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
s.filters = Root.myFilters;
s._x = xPos;
s._y = yPos;
x = 0;
while (x < amountOfStars) {
ran = random(4) + 1;
v = s.attachMovie("explosionStar" + ran, "str" + x, s.getNextHighestDepth());
v.speed = random(10) + 10;
v.movSpdX = random(10) - 5;
v.movSpdY = (-1 * random(15)) + 1;
v._xscale = (v._yscale = random(20) + 10);
v._alpha = 150;
v.onEnterFrame = function () {
this._rotation = this._rotation + this.speed;
this._alpha = this._alpha - (this.speed / 3);
this._x = this._x + this.movSpdX;
this._y = this._y + this.movSpdY;
this.movSpdY++;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
x++;
}
}
_global.Root = this;
var depth = 1;
var amountOfStars = 20;
Instance of Symbol 1019 MovieClip "gamebg" in Symbol 1169 MovieClip Frame 1
onClipEvent (load) {
this.shake = 0;
this.shakeFric = 0.9;
this.shakeDir = 1;
}
onClipEvent (enterFrame) {
if (this.shake < 0.6) {
this.shake = 0;
this._x = 0;
this._y = 0;
} else {
this._x = this._x - (this.shake * this.shakeDir);
this._y = this._y - (this.shake * this.shakeDir);
this.shakeDir = this.shakeDir * -1;
this.shake = this.shake * this.shakeFric;
}
}
Instance of Symbol 1042 MovieClip "venus1" in Symbol 1169 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (_global.venuslvl > 0) {
this._y = 230;
} else {
this._y = 390;
}
}
}
Instance of Symbol 1042 MovieClip "venus2" in Symbol 1169 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (_global.venuslvl > 1) {
this._y = 230;
} else {
this._y = 390;
}
}
}
Instance of Symbol 1042 MovieClip "venus3" in Symbol 1169 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (_global.venuslvl > 2) {
this._y = 230;
} else {
this._y = 390;
}
}
}
Instance of Symbol 1048 MovieClip "moss1" in Symbol 1169 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (_global.mosslvl > 0) {
this._y = 214;
} else {
this._y = 390;
}
}
}
Instance of Symbol 1048 MovieClip "moss2" in Symbol 1169 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (_global.mosslvl > 1) {
this._y = 214;
} else {
this._y = 390;
}
}
}
Instance of Symbol 1048 MovieClip "moss3" in Symbol 1169 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (_global.mosslvl > 2) {
this._y = 214;
} else {
this._y = 390;
}
}
}
Instance of Symbol 1110 MovieClip "laserflower" in Symbol 1169 MovieClip Frame 1
onClipEvent (load) {
checker = 0;
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (_global.laserlvl != 0) {
this._y = 230;
if ((random(_global.laserfreq) == 5) && (checker == 0)) {
checker = 1;
if (_global.laserlvl == 3) {
this.gotoAndStop("attack2");
} else {
this.gotoAndStop("attack");
}
} else if (checker == 0) {
if (_global.laserlvl == 3) {
this.gotoAndStop("move2");
} else {
this.gotoAndStop("move");
}
}
} else {
this._y = 390;
}
}
}
Instance of Symbol 1154 MovieClip in Symbol 1169 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.orchidlvl > 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1154 MovieClip in Symbol 1169 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.violetlvl > 0) {
this.gotoAndStop(3);
}
}
Instance of Symbol 1154 MovieClip in Symbol 1169 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.bomblvl > 0) {
this.gotoAndStop(4);
}
}
Instance of Symbol 1168 MovieClip in Symbol 1169 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.healingvine > 0) {
if (_global.treelife < _global.maxtreelife) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
}
Symbol 1172 MovieClip Frame 19
if (random(5) == 1) {
if (_global.hammer == "earth") {
if (_global.superpower >= 10) {
_global.superpower = 1;
}
_global.superpower = _global.superpower + 1;
powerx = _root.fairy_main._x;
powery = 478;
_root.attachMovie("earthpower", "superpower_" + _global.superpower, _root.getNextHighestDepth(), {_x:powerx, _y:powery});
} else if (_global.hammer == "fire") {
if (_global.superpower >= 10) {
_global.superpower = 1;
}
_global.superpower = _global.superpower + 1;
powerx = _root.fairy_main._x;
powery = 478;
_root.attachMovie("firepower", "superpower_" + _global.superpower, _root.getNextHighestDepth(), {_x:powerx, _y:powery});
} else if (_global.hammer == "elec") {
if (_global.superpower >= 10) {
_global.superpower = 1;
}
_global.superpower = _global.superpower + 1;
powerx = _root.fairy_main._x;
powery = _root.fairy_main._y;
_root.attachMovie("elecpower", "superpower_" + _global.superpower, _root.getNextHighestDepth(), {_x:powerx, _y:powery});
} else if (_global.hammer == "ice") {
if (_global.superpower >= 10) {
_global.superpower = 1;
}
_global.superpower = _global.superpower + 1;
powerx = _root.fairy_main._x;
powery = _root.fairy_main._y;
_root.attachMovie("icepower", "superpower_" + _global.superpower, _root.getNextHighestDepth(), {_x:powerx, _y:powery});
} else if (_global.hammer == "mjolnir") {
if (_global.superpower >= 10) {
_global.superpower = 1;
}
_global.superpower = _global.superpower + 1;
powerx = _root.fairy_main._x;
powery = 194;
_root.attachMovie("mjolnirpower", "superpower_" + _global.superpower, _root.getNextHighestDepth(), {_x:powerx, _y:powery});
}
}
Symbol 1172 MovieClip Frame 26
_parent.gotoAndStop("move");
Symbol 1173 MovieClip Frame 1
stop();
Symbol 1173 MovieClip Frame 2
stop();
Instance of Symbol 1173 MovieClip "fairy" in Symbol 1174 MovieClip Frame 1
onClipEvent (mouseDown) {
if (_global.gamepaused == 0) {
this.gotoAndStop("attack");
}
}
Symbol 1176 MovieClip Frame 1
function dupDust() {
myDust.duplicateMovieClip("dust" + total, total, {_x:this._parent.dustGuide._x, _y:this._parent.dustGuide._y});
this["dust" + total].myTotal = total;
this["dust" + total].X_VEL = 5 - Number(random(10));
this["dust" + total].Y_VEL = Number(random(30));
total++;
}
var total = 1;
Symbol 1176 MovieClip Frame 2
i = 1;
while (i <= this._parent._parent.DUSTCLIPS) {
dupDust();
i++;
}
Symbol 1176 MovieClip Frame 3
i = 1;
while (i <= this._parent._parent.DUSTCLIPS) {
dupDust();
i++;
}
gotoAndPlay (2);
Symbol 1177 MovieClip Frame 1
var mouseListener = new Object();
var xMouseOld;
var yMouseOld;
this.createEmptyMovieClip("mouseEngine", 0);
mouseEngine.onEnterFrame = function () {
dustGuide._x = _xmouse;
dustGuide._y = _ymouse;
if ((xMouseOld == _xmouse) && (yMouseOld == _ymouse)) {
if (this._parent._parent.CONSTANT == 0) {
this._parent.dustMovie.gotoAndPlay(1);
}
}
xMouseOld = _xmouse;
yMouseOld = _ymouse;
};
Symbol 1178 MovieClip Frame 1
MAX_SCALE = 200;
MAX_LIFE = 5;
MAX_X = 4;
MAX_Y = 5;
DUSTCLIPS = 1;
COLOR = "0xFFFF99";
GRAVITY = -2.5;
CONSTANT = 0;
myColor = new Color(dust);
myColor.setRGB(COLOR);
Symbol 1190 Button
on (release) {
gotoAndStop ("upgrades");
}
Symbol 1195 Button
on (release) {
_root.boinksound.start();
myLSO = SharedObject.getLocal("greattreesavegame");
if (myLSO.data.myObj == undefined) {
trace("Saved Game");
} else {
trace("Overwrote Saved Game");
}
myObj = {};
myObj.objArray = new Array();
myObj.objArray[0] = _global.treelife;
myObj.objArray[1] = _global.maxtreelife;
myObj.objArray[2] = _global.crittersummonkilled;
myObj.objArray[3] = _global.stagekill;
myObj.objArray[4] = _global.critters;
myObj.objArray[5] = _global.gamepaused;
myObj.objArray[6] = _global.gamelevel;
myObj.objArray[7] = _global.gempoints;
myObj.objArray[8] = _global.score;
myObj.objArray[9] = _global.hammer1;
myObj.objArray[10] = _global.hammer2;
myObj.objArray[11] = _global.hammer3;
myObj.objArray[12] = _global.hammer4;
myObj.objArray[13] = _global.hammer5;
myObj.objArray[14] = _global.hammer6;
myObj.objArray[15] = _global.hammer7;
myObj.objArray[16] = _global.hammer8;
myObj.objArray[17] = _global.cultivatestem;
myObj.objArray[18] = _global.cultivatesoil;
myObj.objArray[19] = _global.venuslvl;
myObj.objArray[20] = _global.mosslvl;
myObj.objArray[21] = _global.orchidlvl;
myObj.objArray[22] = _global.orchidstr;
myObj.objArray[23] = _global.violetlvl;
myObj.objArray[24] = _global.violetstr;
myObj.objArray[25] = _global.bomblvl;
myObj.objArray[26] = _global.bombstr;
myObj.objArray[27] = _global.healingvine;
myObj.objArray[28] = _global.healamount;
myObj.objArray[29] = _global.laserlvl;
myObj.objArray[30] = _global.laserfreq;
myObj.objArray[31] = _global.laserstr;
myLSO.data.myObj = myObj;
gameprogress.gotoAndPlay(2);
}
Symbol 1200 Button
on (release) {
gotoAndPlay ("closer");
}
Symbol 1205 Button
on (release) {
gotoAndStop ("hammers");
}
Symbol 1221 MovieClip Frame 1
stop();
Symbol 1221 MovieClip Frame 2
stop();
Symbol 1221 MovieClip Frame 3
stop();
Symbol 1221 MovieClip Frame 4
stop();
Symbol 1226 Button
on (release) {
if ((_global.hammer5 == 0) && (_global.gempoints >= 4000)) {
_global.hammer5 = 1;
_global.gempoints = _global.gempoints - 4000;
}
}
Symbol 1230 Button
on (release) {
if ((_global.hammer2 == 0) && (_global.gempoints >= 300)) {
_global.hammer2 = 1;
_global.gempoints = _global.gempoints - 300;
}
}
Symbol 1234 Button
on (release) {
if ((_global.hammer3 == 0) && (_global.gempoints >= 800)) {
_global.hammer3 = 1;
_global.gempoints = _global.gempoints - 800;
}
}
Symbol 1237 Button
on (release) {
if ((_global.hammer4 == 0) && (_global.gempoints >= 4000)) {
_global.hammer4 = 1;
_global.gempoints = _global.gempoints - 4000;
}
}
Symbol 1240 Button
on (release) {
if ((_global.hammer6 == 0) && (_global.gempoints >= 4000)) {
_global.hammer6 = 1;
_global.gempoints = _global.gempoints - 4000;
}
}
Symbol 1243 Button
on (release) {
if ((_global.hammer7 == 0) && (_global.gempoints >= 4000)) {
_global.hammer7 = 1;
_global.gempoints = _global.gempoints - 4000;
}
}
Symbol 1247 Button
on (release) {
if (((((((_global.hammer1 == 1) && (_global.hammer2 == 1)) && (_global.hammer3 == 1)) && (_global.hammer4 == 1)) && (_global.hammer5 == 1)) && (_global.hammer6 == 1)) && (_global.hammer7 == 1)) {
if ((_global.hammer8 == 0) && (_global.gempoints >= 30000)) {
_global.hammer8 = 1;
_global.gempoints = _global.gempoints - 30000;
}
}
}
Symbol 1250 MovieClip Frame 11
stop();
Symbol 1251 MovieClip Frame 1
stop();
Symbol 1251 MovieClip Frame 2
stop();
Symbol 1252 MovieClip Frame 1
stop();
Symbol 1252 MovieClip Frame 2
stop();
Symbol 1253 MovieClip Frame 1
stop();
Symbol 1253 MovieClip Frame 2
stop();
Symbol 1254 MovieClip Frame 1
stop();
Symbol 1254 MovieClip Frame 2
stop();
Symbol 1255 MovieClip Frame 1
stop();
Symbol 1255 MovieClip Frame 2
stop();
Symbol 1256 MovieClip Frame 1
stop();
Symbol 1256 MovieClip Frame 2
stop();
Symbol 1257 MovieClip Frame 1
stop();
Symbol 1257 MovieClip Frame 2
stop();
Instance of Symbol 1221 MovieClip "buttonlabel" in Symbol 1258 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer1 == 1) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1221 MovieClip "buttonlabel" in Symbol 1258 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer5 == 1) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1221 MovieClip "buttonlabel" in Symbol 1258 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer2 == 1) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1221 MovieClip "buttonlabel" in Symbol 1258 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer3 == 1) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1221 MovieClip "buttonlabel" in Symbol 1258 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer4 == 1) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1221 MovieClip "buttonlabel" in Symbol 1258 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer6 == 1) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1221 MovieClip "buttonlabel" in Symbol 1258 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer7 == 1) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1221 MovieClip "buttonlabel" in Symbol 1258 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((((((_global.hammer1 == 1) && (_global.hammer2 == 1)) && (_global.hammer3 == 1)) && (_global.hammer4 == 1)) && (_global.hammer5 == 1)) && (_global.hammer6 == 1)) && (_global.hammer7 == 1)) {
if (_global.hammer8 == 1) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(1);
}
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 1251 MovieClip in Symbol 1258 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer2 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1252 MovieClip in Symbol 1258 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer3 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1253 MovieClip in Symbol 1258 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer4 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1254 MovieClip in Symbol 1258 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer5 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1255 MovieClip in Symbol 1258 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer6 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1256 MovieClip in Symbol 1258 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer7 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1257 MovieClip in Symbol 1258 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer8 == 1) {
this.gotoAndStop(2);
}
}
Symbol 1262 MovieClip Frame 1
stop();
Symbol 1267 Button
on (release) {
if ((_global.maxtreelife == 1000) && (_global.gempoints >= 1000)) {
_global.maxtreelife = 2000;
_global.gempoints = _global.gempoints - 1000;
} else if ((_global.maxtreelife == 2000) && (_global.gempoints >= 3000)) {
_global.maxtreelife = 3000;
_global.gempoints = _global.gempoints - 3000;
} else if ((_global.maxtreelife == 3000) && (_global.gempoints >= 5000)) {
_global.maxtreelife = 4000;
_global.gempoints = _global.gempoints - 5000;
} else if ((_global.maxtreelife == 4000) && (_global.gempoints >= 8000)) {
_global.maxtreelife = 5000;
_global.gempoints = _global.gempoints - 8000;
}
}
Instance of Symbol 1221 MovieClip "buttonlabel" in Symbol 1268 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.maxtreelife == 5000) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 1272 Button
on (release) {
if ((_global.treelife < _global.maxtreelife) && (_global.gempoints >= 250)) {
_global.treelife = _global.treelife + 500;
if (_global.treelife > _global.maxtreelife) {
_global.treelife = _global.maxtreelife;
}
_global.gempoints = _global.gempoints - 250;
}
}
Symbol 1277 Button
on (release) {
if ((_global.healingvine == 0) && (_global.gempoints >= 1200)) {
_global.healingvine = 1;
_global.healamount = 100;
_global.gempoints = _global.gempoints - 1200;
} else if ((_global.healingvine == 1) && (_global.gempoints >= 2400)) {
_global.healingvine = 2;
_global.healamount = 150;
_global.gempoints = _global.gempoints - 2400;
} else if ((_global.healingvine == 2) && (_global.gempoints >= 3800)) {
_global.healingvine = 3;
_global.healamount = 200;
_global.gempoints = _global.gempoints - 3800;
} else if ((_global.healingvine == 3) && (_global.gempoints >= 5200)) {
_global.healingvine = 4;
_global.healamount = 250;
_global.gempoints = _global.gempoints - 5200;
} else if ((_global.healingvine == 4) && (_global.gempoints >= 7000)) {
_global.healingvine = 5;
_global.healamount = 300;
_global.gempoints = _global.gempoints - 7000;
}
}
Instance of Symbol 1221 MovieClip "buttonlabel" in Symbol 1278 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.healingvine == 5) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 1282 Button
on (release) {
if ((_global.cultivatestem == 0) && (_global.gempoints >= 2000)) {
_global.cultivatestem = 1;
_global.gempoints = _global.gempoints - 2000;
}
}
Symbol 1286 Button
on (release) {
if ((_global.cultivatesoil == 0) && (_global.gempoints >= 3000)) {
_global.cultivatesoil = 1;
_global.gempoints = _global.gempoints - 3000;
}
}
Instance of Symbol 1221 MovieClip "buttonlabel" in Symbol 1287 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.cultivatestem == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 1221 MovieClip "buttonlabel" in Symbol 1287 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.cultivatesoil == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Symbol 1292 Button
on (release) {
if (((_global.cultivatestem == 1) && (_global.orchidlvl == 0)) && (_global.gempoints >= 800)) {
_global.orchidlvl = 1;
_global.orchidstr = 40;
_global.gempoints = _global.gempoints - 800;
} else if (((_global.cultivatestem == 1) && (_global.orchidlvl == 1)) && (_global.gempoints >= 1600)) {
_global.orchidlvl = 2;
_global.orchidstr = 80;
_global.gempoints = _global.gempoints - 1600;
} else if (((_global.cultivatestem == 1) && (_global.orchidlvl == 2)) && (_global.gempoints >= 2400)) {
_global.orchidlvl = 3;
_global.orchidstr = 120;
_global.gempoints = _global.gempoints - 2400;
} else if (((_global.cultivatestem == 1) && (_global.orchidlvl == 3)) && (_global.gempoints >= 3200)) {
_global.orchidlvl = 4;
_global.orchidstr = 160;
_global.gempoints = _global.gempoints - 3200;
} else if (((_global.cultivatestem == 1) && (_global.orchidlvl == 4)) && (_global.gempoints >= 4000)) {
_global.orchidlvl = 5;
_global.orchidstr = 200;
_global.gempoints = _global.gempoints - 4000;
}
}
Instance of Symbol 1221 MovieClip "buttonlabel" in Symbol 1293 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.cultivatestem == 0) {
this.gotoAndStop(3);
} else if (_global.orchidlvl == 5) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 1297 Button
on (release) {
if (((_global.cultivatestem == 1) && (_global.violetlvl == 0)) && (_global.gempoints >= 1000)) {
_global.violetlvl = 1;
_global.violetstr = 20;
_global.gempoints = _global.gempoints - 1000;
} else if (((_global.cultivatestem == 1) && (_global.violetlvl == 1)) && (_global.gempoints >= 2000)) {
_global.violetlvl = 2;
_global.violetstr = 40;
_global.gempoints = _global.gempoints - 2000;
} else if (((_global.cultivatestem == 1) && (_global.violetlvl == 2)) && (_global.gempoints >= 3000)) {
_global.violetlvl = 3;
_global.violetstr = 60;
_global.gempoints = _global.gempoints - 3000;
} else if (((_global.cultivatestem == 1) && (_global.violetlvl == 3)) && (_global.gempoints >= 4000)) {
_global.violetlvl = 4;
_global.violetstr = 80;
_global.gempoints = _global.gempoints - 4000;
} else if (((_global.cultivatestem == 1) && (_global.violetlvl == 4)) && (_global.gempoints >= 5000)) {
_global.violetlvl = 5;
_global.violetstr = 100;
_global.gempoints = _global.gempoints - 5000;
}
}
Instance of Symbol 1221 MovieClip "buttonlabel" in Symbol 1298 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.cultivatestem == 0) {
this.gotoAndStop(3);
} else if (_global.violetlvl == 5) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 1302 Button
on (release) {
if (((_global.cultivatestem == 1) && (_global.bomblvl == 0)) && (_global.gempoints >= 1500)) {
_global.bomblvl = 1;
_global.bombstr = 20;
_global.gempoints = _global.gempoints - 1500;
} else if (((_global.cultivatestem == 1) && (_global.bomblvl == 1)) && (_global.gempoints >= 3000)) {
_global.bomblvl = 2;
_global.bombstr = 40;
_global.gempoints = _global.gempoints - 3000;
} else if (((_global.cultivatestem == 1) && (_global.bomblvl == 2)) && (_global.gempoints >= 4500)) {
_global.bomblvl = 3;
_global.bombstr = 60;
_global.gempoints = _global.gempoints - 4500;
} else if (((_global.cultivatestem == 1) && (_global.bomblvl == 3)) && (_global.gempoints >= 6000)) {
_global.bomblvl = 4;
_global.bombstr = 80;
_global.gempoints = _global.gempoints - 6000;
} else if (((_global.cultivatestem == 1) && (_global.bomblvl == 4)) && (_global.gempoints >= 7500)) {
_global.bomblvl = 5;
_global.bombstr = 100;
_global.gempoints = _global.gempoints - 7500;
}
}
Instance of Symbol 1221 MovieClip "buttonlabel" in Symbol 1303 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.cultivatestem == 0) {
this.gotoAndStop(3);
} else if (_global.bomblvl == 5) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 1307 Button
on (release) {
if (((_global.cultivatesoil == 1) && (_global.laserlvl == 0)) && (_global.gempoints >= 3000)) {
_global.laserlvl = 1;
_global.laserfreq = 300;
_global.laserstr = 40;
_global.gempoints = _global.gempoints - 3000;
} else if (((_global.cultivatesoil == 1) && (_global.laserlvl == 1)) && (_global.gempoints >= 5000)) {
_global.laserlvl = 2;
_global.laserfreq = 250;
_global.laserstr = 80;
_global.gempoints = _global.gempoints - 5000;
} else if (((_global.cultivatesoil == 1) && (_global.laserlvl == 2)) && (_global.gempoints >= 12000)) {
_global.laserlvl = 3;
_global.laserfreq = 150;
_global.laserstr = 200;
_global.gempoints = _global.gempoints - 12000;
}
}
Instance of Symbol 1221 MovieClip "buttonlabel" in Symbol 1308 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.cultivatesoil == 0) {
this.gotoAndStop(3);
} else if (_global.laserlvl == 3) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 1312 Button
on (release) {
if (((_global.cultivatesoil == 1) && (_global.venuslvl == 0)) && (_global.gempoints >= 3000)) {
_global.venuslvl = 1;
_global.gempoints = _global.gempoints - 3000;
} else if (((_global.cultivatesoil == 1) && (_global.venuslvl == 1)) && (_global.gempoints >= 5000)) {
_global.venuslvl = 2;
_global.gempoints = _global.gempoints - 5000;
} else if (((_global.cultivatesoil == 1) && (_global.venuslvl == 2)) && (_global.gempoints >= 8000)) {
_global.venuslvl = 3;
_global.gempoints = _global.gempoints - 8000;
}
}
Instance of Symbol 1221 MovieClip "buttonlabel" in Symbol 1313 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.cultivatesoil == 0) {
this.gotoAndStop(3);
} else if (_global.venuslvl == 3) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 1317 Button
on (release) {
if (((_global.cultivatesoil == 1) && (_global.mosslvl == 0)) && (_global.gempoints >= 3000)) {
_global.mosslvl = 1;
_global.gempoints = _global.gempoints - 3000;
} else if (((_global.cultivatesoil == 1) && (_global.mosslvl == 1)) && (_global.gempoints >= 5000)) {
_global.mosslvl = 2;
_global.gempoints = _global.gempoints - 5000;
} else if (((_global.cultivatesoil == 1) && (_global.mosslvl == 2)) && (_global.gempoints >= 8000)) {
_global.mosslvl = 3;
_global.gempoints = _global.gempoints - 8000;
}
}
Instance of Symbol 1221 MovieClip "buttonlabel" in Symbol 1318 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.cultivatesoil == 0) {
this.gotoAndStop(3);
} else if (_global.mosslvl == 3) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 1268 MovieClip in Symbol 1321 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.maxtreelife == 1000) {
this.txttitle = "Thicken Bark Lvl 2";
this.txtcost = "1000 pts";
} else if (_global.maxtreelife == 2000) {
this.txttitle = "Thicken Bark Lvl 3";
this.txtcost = "3000 pts";
} else if (_global.maxtreelife == 3000) {
this.txttitle = "Thicken Bark Lvl 4";
this.txtcost = "5000 pts";
} else if (_global.maxtreelife == 4000) {
this.txttitle = "Thicken Bark Lvl 5";
this.txtcost = "8000 pts";
} else if (_global.maxtreelife == 5000) {
this.txttitle = "Thicken Bark Lvl 5";
this.txtcost = "MAX";
}
}
Instance of Symbol 1278 MovieClip in Symbol 1321 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.healingvine == 0) {
this.txttitle = "Healing Vine Lvl 1";
this.txtcost = "1200 pts";
} else if (_global.healingvine == 1) {
this.txttitle = "Healing Vine Lvl 2";
this.txtcost = "2400 pts";
} else if (_global.healingvine == 2) {
this.txttitle = "Healing Vine Lvl 3";
this.txtcost = "3800 pts";
} else if (_global.healingvine == 3) {
this.txttitle = "Healing Vine Lvl 4";
this.txtcost = "5200 pts";
} else if (_global.healingvine == 4) {
this.txttitle = "Healing Vine Lvl 5";
this.txtcost = "7000";
} else if (_global.healingvine == 5) {
this.txttitle = "Healing Vine Lvl 5";
this.txtcost = "MAX";
}
}
Instance of Symbol 1287 MovieClip in Symbol 1321 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.cultivatestem == 1) {
this.txtcost = "MAX";
}
if (_global.cultivatesoil == 1) {
this.txtcost2 = "MAX";
}
}
Instance of Symbol 1293 MovieClip in Symbol 1321 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.orchidlvl == 0) {
this.txttitle = "Orchids Lvl 1";
this.txtcost = "800 pts";
} else if (_global.orchidlvl == 1) {
this.txttitle = "Orchids Lvl 2";
this.txtcost = "1600 pts";
} else if (_global.orchidlvl == 2) {
this.txttitle = "Orchids Lvl 3";
this.txtcost = "2400 pts";
} else if (_global.orchidlvl == 3) {
this.txttitle = "Orchids Lvl 4";
this.txtcost = "3200 pts";
} else if (_global.orchidlvl == 4) {
this.txttitle = "Orchids Lvl 5";
this.txtcost = "4000";
} else if (_global.orchidlvl == 5) {
this.txttitle = "Orchids Lvl 5";
this.txtcost = "MAX";
}
}
Instance of Symbol 1298 MovieClip in Symbol 1321 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.violetlvl == 0) {
this.txttitle = "Violets Lvl 1";
this.txtcost = "1000 pts";
} else if (_global.violetlvl == 1) {
this.txttitle = "Violets Lvl 2";
this.txtcost = "2000 pts";
} else if (_global.violetlvl == 2) {
this.txttitle = "Violets Lvl 3";
this.txtcost = "3000 pts";
} else if (_global.violetlvl == 3) {
this.txttitle = "Violets Lvl 4";
this.txtcost = "4000 pts";
} else if (_global.violetlvl == 4) {
this.txttitle = "Violets Lvl 5";
this.txtcost = "5000";
} else if (_global.violetlvl == 5) {
this.txttitle = "Violets Lvl 5";
this.txtcost = "MAX";
}
}
Instance of Symbol 1303 MovieClip in Symbol 1321 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.bomblvl == 0) {
this.txttitle = "Trumpet Lvl 1";
this.txtcost = "1500 pts";
} else if (_global.bomblvl == 1) {
this.txttitle = "Trumpet Lvl 2";
this.txtcost = "3000 pts";
} else if (_global.bomblvl == 2) {
this.txttitle = "Trumpet Lvl 3";
this.txtcost = "4500 pts";
} else if (_global.bomblvl == 3) {
this.txttitle = "Trumpet Lvl 4";
this.txtcost = "6000 pts";
} else if (_global.bomblvl == 4) {
this.txttitle = "Trumpet Lvl 5";
this.txtcost = "7500";
} else if (_global.bomblvl == 5) {
this.txttitle = "Trumpet Lvl 5";
this.txtcost = "MAX";
}
}
Instance of Symbol 1308 MovieClip in Symbol 1321 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.laserlvl == 0) {
this.txttitle = "Kame Hame Plant Lvl 1";
this.txtcost = "3000 pts";
} else if (_global.laserlvl == 1) {
this.txttitle = "Kame Hame Plant Lvl 2";
this.txtcost = "5000 pts";
} else if (_global.laserlvl == 2) {
this.txttitle = "Kame Hame Plant Lvl 3";
this.txtcost = "12000 pts";
} else if (_global.laserlvl == 3) {
this.txttitle = "Kame Hame Plant Lvl 3";
this.txtcost = "MAX";
}
}
Instance of Symbol 1313 MovieClip in Symbol 1321 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.venuslvl == 0) {
this.txttitle = "Fly Trap Lvl 1";
this.txtcost = "3000 pts";
} else if (_global.venuslvl == 1) {
this.txttitle = "Fly Trap Lvl 2";
this.txtcost = "5000 pts";
} else if (_global.venuslvl == 2) {
this.txttitle = "Fly Trap Lvl 3";
this.txtcost = "8000 pts";
} else if (_global.venuslvl == 3) {
this.txttitle = "Fly Trap Lvl 3";
this.txtcost = "MAX";
}
}
Instance of Symbol 1318 MovieClip in Symbol 1321 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.mosslvl == 0) {
this.txttitle = "Sticky Moss Lvl 1";
this.txtcost = "3000 pts";
} else if (_global.mosslvl == 1) {
this.txttitle = "Sticky Moss Lvl 2";
this.txtcost = "5000 pts";
} else if (_global.mosslvl == 2) {
this.txttitle = "Sticky Moss Lvl 3";
this.txtcost = "8000 pts";
} else if (_global.mosslvl == 3) {
this.txttitle = "Sticky Moss Lvl 3";
this.txtcost = "MAX";
}
}
Symbol 1323 MovieClip Frame 1
stop();
Symbol 1323 MovieClip Frame 2
_global.gamepaused = 1;
_global.cleanup = 1;
gotoAndPlay (3);
Symbol 1323 MovieClip Frame 31
if (_global.loadedgame == 0) {
_global.gamelevel = _global.gamelevel + 1;
}
Symbol 1323 MovieClip Frame 34
stop();
stop();
Mouse.show();
Symbol 1323 MovieClip Frame 35
stop();
Symbol 1323 MovieClip Frame 52
_global.cleanup = 0;
_global.gamepaused = 0;
_global.loadedgame = 0;
_global.lastgem = _global.gem;
_global.lastscore = _global.score;
_global.stagekill = 0;
_global.critterskilled = 0;
Symbol 1333 Button
on (release) {
gotoAndPlay ("closer");
}
Symbol 1352 MovieClip Frame 1
stop();
Symbol 1352 MovieClip Frame 2
_global.gamepaused = 1;
_global.cleanup = 1;
gotoAndPlay (3);
Symbol 1352 MovieClip Frame 28
stop();
Mouse.show();
Symbol 1352 MovieClip Frame 47
_root.gotoAndStop("title");
Instance of Symbol 1251 MovieClip in Symbol 1369 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer2 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1252 MovieClip in Symbol 1369 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer3 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1253 MovieClip in Symbol 1369 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer4 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1254 MovieClip in Symbol 1369 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer5 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1255 MovieClip in Symbol 1369 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer6 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1256 MovieClip in Symbol 1369 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer7 == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1257 MovieClip in Symbol 1369 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.hammer8 == 1) {
this.gotoAndStop(2);
}
}
Symbol 1370 Button
on (release) {
if (_root.soundbg.getVolume() == 100) {
_root.soundbg.setVolume(0);
} else {
_root.soundbg.setVolume(100);
}
}
Symbol 1376 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 1402 MovieClip Frame 1
stop();
Symbol 1402 MovieClip Frame 2
stop();
Symbol 1402 MovieClip Frame 3
stop();
Symbol 1402 MovieClip Frame 4
stop();
Symbol 1402 MovieClip Frame 5
stop();
Symbol 1402 MovieClip Frame 6
stop();
Symbol 1402 MovieClip Frame 7
stop();
Symbol 1402 MovieClip Frame 8
stop();
Symbol 1403 MovieClip Frame 1
stop();
Instance of Symbol 1402 MovieClip in Symbol 1403 MovieClip Frame 1
onClipEvent (load) {
if (_global.hammer == "wood") {
this.gotoAndStop(1);
} else if (_global.hammer == "stone") {
this.gotoAndStop(2);
} else if (_global.hammer == "metal") {
this.gotoAndStop(3);
} else if (_global.hammer == "earth") {
this.gotoAndStop(4);
} else if (_global.hammer == "fire") {
this.gotoAndStop(5);
} else if (_global.hammer == "elec") {
this.gotoAndStop(6);
} else if (_global.hammer == "ice") {
this.gotoAndStop(7);
} else if (_global.hammer == "mjolnir") {
this.gotoAndStop(8);
}
}
Symbol 1405 MovieClip Frame 1
stop();
Symbol 1413 MovieClip Frame 741
stop();
Symbol 1413 MovieClip Frame 906
stop();