Combined Code
movieClip 11 spark2 {
frame 16 {
this.removeMovieClip();
}
}
movieClip 12 spark {
frame 16 {
this.removeMovieClip();
}
}
frame 1 {
stop();
}
movieClip 14 {
}
movieClip 16 {
}
movieClip 18 {
}
movieClip 20 {
}
movieClip 22 {
frame 1 {
stop();
}
}
movieClip 25 {
}
movieClip 28 {
}
movieClip 29 {
}
movieClip 31 {
frame 1 {
stop();
}
}
movieClip 34 {
}
movieClip 38 {
}
movieClip 39 {
}
movieClip 41 {
}
movieClip 44 {
}
movieClip 46 {
}
movieClip 48 {
}
movieClip 50 {
}
movieClip 53 {
}
movieClip 55 {
}
movieClip 57 {
}
movieClip 65 {
}
movieClip 66 {
}
movieClip 72 {
}
movieClip 75 {
}
movieClip 76 {
}
// unknown tag 88 length 66
movieClip 79 {
}
movieClip 81 {
}
movieClip 84 {
}
movieClip 89 {
frame 1 {
function timerHandler() {
if (!loadingComplete) {
var v4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * v4;
if (v4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop('loaded');
}
return undefined;
}
}
dt = getTimer() - time;
time += dt;
frameAccum += dt;
var v3 = 0;
for (;;) {
if (!(frameAccum >= FRAME_TIME && v3 < MAX_FRAME_SKIP)) break;
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
frameAccum -= FRAME_TIME;
v3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return undefined;
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof clip[childName] == 'movieclip') {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.33333333333334;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, 'timerHandler', FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
}
frame 37 {
startMovie();
}
}
movieClip 92 {
}
button 93 {
on (press) {
getURL('http://www.playhub.com/category/strategy-games/1/top-rated.html?utm_medium=brandedgames_external&utm_campaign=lumber-zap&utm_source=ingame&utm_content=ingame', _blank);
}
}
movieClip 96 {
}
movieClip 97 {
}
button 98 {
on (press) {
getURL('http://www.playhub.com/category/strategy-games/1/top-rated.html?utm_medium=brandedgames_external&utm_campaign=lumber-zap&utm_source=ingame&utm_content=ingame', _blank);
}
}
frame 2 {
stop();
}
button 100 {
on (press) {
getURL('http://www.playhub.com/category/strategy-games/1/top-rated.html?utm_medium=brandedgames_external&utm_campaign=lumber-zap&utm_source=ingame&utm_content=ingame', _blank);
}
}
movieClip 103 {
}
movieClip 113 {
frame 1 {
stop();
}
}
movieClip 115 {
}
movieClip 116 {
instance ctu of movieClip 115 {
onClipEvent (press) {
_root.nextFrame();
}
}
frame 84 {
stop();
}
frame 172 {
_root.nextFrame();
}
}
frame 3 {
_root.maintune = new Sound(this);
_root.maintune.attachSound('maintune');
if (!_root.mute == true) {
_root.maintune.start(0, 999);
}
_root.placeTree = true;
_root.energyNum = 0;
_root.cup = 1;
_root.levelnum = 1;
removeMovieClip(_root.mouse);
Mouse.show(true);
Playtomic.Log.View(5885, 'dc46831e4ffc4e7d', _root._url);
}
frame 3 {
stop();
i = 0;
while (i <= 500) {
removeMovieClip(_root['enemy' + _root.i]);
++i;
}
g = 999;
while (g <= 1400) {
removeMovieClip(_root['enemy' + _root.g]);
++g;
}
r = 9999;
while (r <= 10400) {
removeMovieClip(_root['enemy' + _root.r]);
++r;
}
}
movieClip 118 {
}
button 119 {
on (press) {
getURL('http://www.playhub.com/category/strategy-games/1/top-rated.html?utm_medium=brandedgames_external&utm_campaign=lumber-zap&utm_source=ingame&utm_content=ingame', _blank);
}
}
movieClip 121 {
}
movieClip 122 {
instance of movieClip 121 {
onClipEvent (release) {
_root.black.play();
}
}
}
movieClip 124 {
}
movieClip 125 {
frame 1 {
stop();
}
frame 15 {
_root.nextFrame();
}
}
movieClip 127 {
}
instance of movieClip 127 {
onClipEvent (enterFrame) {
Mouse.show(true);
}
}
movieClip 129 {
}
movieClip 131 {
}
movieClip 133 {
}
movieClip 135 {
}
movieClip 137 {
}
movieClip 139 {
}
movieClip 143 {
frame 1 {
stop();
}
}
movieClip 145 {
}
movieClip 148 {
frame 1 {
stop();
}
}
movieClip 151 {
}
button 152 {
on (release) {
nextFrame();
}
}
movieClip 154 {
}
button 155 {
on (release) {
prevFrame();
}
}
movieClip 158 {
}
button 159 {
on (release) {
_root.gotoAndStop(5);
}
}
movieClip 163 {
frame 1 {
stop();
}
}
movieClip 164 {
}
movieClip 167 {
}
movieClip 169 {
}
movieClip 171 {
}
movieClip 173 {
}
movieClip 175 {
}
button 181 {
on (release) {
_root.nextFrame();
}
}
movieClip 182 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 183 {
frame 16 {
stop();
}
}
frame 5 {
onEnterFrame = function () {
startDrag(mouse, true);
};
_root.scrollSpeed = 0;
_root.scrollSpeed2 = 0;
_root.upgrade.swapDepths(9999999999999998.0);
_root.mouse.swapDepths(1.0e+016);
_root.collect = new Sound(this);
_root.collect.attachSound('collect');
_root.l1 = new Sound(this);
_root.l1.attachSound('l1');
_root.l2 = new Sound(this);
_root.l2.attachSound('l2');
_root.bite = new Sound(this);
_root.bite.attachSound('bite');
_root.grow = new Sound(this);
_root.grow.attachSound('grow');
_root.wc1 = new Sound(this);
_root.wc1.attachSound('wc1');
_root.b1 = new Sound(this);
_root.b1.attachSound('b1');
_root.tw = new Sound(this);
_root.tw.attachSound('tw');
_root.meteors = new Sound(this);
_root.meteors.attachSound('meteors');
}
frame 5 {
function wave1() {
i = 701;
while (i <= 708) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 415;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 353;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 293;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.enemy.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
}
function wave2() {
i = 716;
while (i <= 724) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 415;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 353;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 293;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.enemy.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
}
function wave3() {
i = 725;
while (i <= 730) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 409;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 353;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 293;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.enemyy.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
}
function wave4() {
i = 731;
while (i <= 741) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 397;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 353;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 293;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.enemy.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
i = 742;
while (i <= 750) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 409;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 353;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 293;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.enemyy.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
}
function wave5() {
i = 751;
while (i <= 757) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 397;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 353;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 293;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.enemy.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
i = 758;
while (i <= 765) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 409;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 353;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 293;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.enemyy.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
}
function wave6() {
i = 767;
while (i <= 767) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 340;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 286;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 235;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.enemyyy.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
i = 768;
while (i <= 776) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 397;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 353;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 293;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.enemy.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
i = 777;
while (i <= 777) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 224;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 173;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 118;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.truck.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(500) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
}
function wave7() {
i = 778;
while (i <= 782) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 340;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 286;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 235;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.enemyyy.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
i = 783;
while (i <= 793) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 409;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 353;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 293;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.enemyy.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
}
function wave8() {
i = 794;
while (i <= 805) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 340;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 286;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 235;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.enemyyy.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
}
function wave9() {
i = 806;
while (i <= 810) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 390;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 335;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 282;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.bever.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
i = 811;
while (i <= 818) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 409;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 353;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 293;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.enemyy.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
}
function wave10() {
i = 819;
while (i <= 830) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 390;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 335;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 282;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.bever.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
}
function wave11() {
i = 831;
while (i <= 833) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 224;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 173;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 118;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.truck.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(500) + 600;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
}
function wave12() {
i = 834;
while (i <= 836) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 224;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 173;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 118;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.truck.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(500) + 600;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
i = 837;
while (i <= 842) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 340;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 286;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 235;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.enemyyy.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
}
function wave13() {
i = 843;
while (i <= 850) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 340;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 286;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 235;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.enemyyy.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
i = 851;
while (i <= 860) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 390;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 335;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 282;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.bever.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
i = 861;
while (i <= 862) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 224;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 173;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 118;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.truck.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(500) + 600;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
}
function wave14() {
i = 862;
while (i <= 872) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 390;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 335;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 282;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.bever.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
i = 873;
while (i <= 883) {
whatLane = random(3) + 1;
if (whatLane == 1) {
whatLane2 = 340;
whatLane3 = 10000;
}
if (whatLane == 2) {
whatLane2 = 286;
whatLane3 = 1000;
}
if (whatLane == 3) {
whatLane2 = 235;
whatLane3 = 1;
}
thenum = i + whatLane3;
_root.enemyyy.duplicateMovieClip('enemy' + i, i + whatLane3);
pushback = random(1000) + 500;
_root['enemy' + _root.i]._x = -182 - pushback;
_root['enemy' + _root.i]._y = whatLane2;
_root.hml += 1;
++i;
}
}
_root.placeTree = true;
_root.count = 10000;
_root.count2 = 1000;
_root.al = 7;
_root.count3 = 1;
_root.donemsg = false;
_root.hml = 0;
_root.wave = 0;
_root.tidebtn.gotoAndStop(700);
_root.cometbtn.gotoAndStop(800);
_root.energyNum = 0;
_root.cup = 1;
_root.levelnum = 1;
_root.priceoflightning = 250;
_root.bigtree1.swapDepths(24537);
_root.bigtree2.swapDepths(1938);
_root.bigtree3.swapDepths(631);
_root.messagebox.play();
if (_root.hml <= 0) {
}
}
movieClip 185 {
}
movieClip 187 {
}
movieClip 189 {
}
movieClip 192 {
}
movieClip 194 {
frame 1 {
stop();
}
}
movieClip 197 {
frame 1 {
stop();
}
}
movieClip 199 {
}
movieClip 201 {
}
movieClip 202 {
}
movieClip 203 {
}
movieClip 205 {
}
movieClip 208 {
}
movieClip 210 {
}
movieClip 212 {
}
movieClip 214 {
}
movieClip 215 {
}
movieClip 216 {
}
movieClip 217 {
}
movieClip 234 {
}
movieClip 236 {
}
movieClip 243 {
frame 42 {
gotoAndPlay('run');
}
frame 57 {
gotoAndPlay('run');
}
frame 90 {
stop();
}
}
movieClip 244 {
}
movieClip 246 {
}
movieClip 247 {
frame 1 {
stop();
}
}
instance truck of movieClip 247 {
onClipEvent (load) {
thespeed = 2;
this.health = 25;
this.truckspeed = random(3) + 1;
this.deadd = false;
this.hittree = false;
this.work = false;
this.howmanytimes = 0;
this.testy = false;
this.hitbigtree = false;
_root.pausedd = false;
this.touched = true;
}
onClipEvent (enterFrame) {
function binHit() {
_root['lanee' + i].tree2.nextFrame();
_root['lanee' + i].tree2.healthbar.nextFrame();
hittingTree = true;
if (this.testy != true) {
this.truckspeed = 0;
this.testy = true;
this.hitty = false;
}
}
function rmc() {
removeMovieClip(this);
trace('poo4234');
}
if (!this.deadd == true) {
if (!_root.pausedd) {
this._x += this.truckspeed;
}
if (this.bth.hitTest(_root.bigtree1.hit)) {
if (!this.gaz == true) {
this.truckspeed = 0;
this.gaz = true;
}
this.hitbigtree = true;
hittingTree = true;
_root.bigtree1.healthbar.nextFrame();
}
if (this.bth.hitTest(_root.bigtree2.hit)) {
if (!this.gaz == true) {
this.truckspeed = 0;
this.gaz = true;
}
this.hitbigtree = true;
hittingTree = true;
_root.bigtree2.healthbar.nextFrame();
}
if (this.bth.hitTest(_root.bigtree3.hit)) {
if (!this.gaz == true) {
this.truckspeed = 0;
this.gaz = true;
}
this.hitbigtree = true;
hittingTree = true;
_root.bigtree3.healthbar.nextFrame();
}
}
if (this.hit.hitTest(_root.cloud.lightning.lightning2.lightning3.hit) || this.hit.hitTest(_root.comet.hit)) {
if (this.health >= 0) {
this.truck2.truck3.gotoAndPlay('hurt');
this.health -= 1;
trace(this.health);
} else {
if (!this.deadd == true) {
if (this.health <= 0) {
trace('poo');
this.deadd = true;
this.truck2.truck3.gotoAndPlay('die');
_root.hml -= 1;
_root.multip -= 1;
}
}
}
}
if (!this.hitTest(_root.cloud.lightning.lightning2.lightning3.hit)) {
if (this.hitTest(_root.stopbar)) {
removeMovieClip(this);
_root.multip -= 1;
}
if (this.truck2.truck3.hit.hitTest(_root.three.hit) || this.truck2.truck3.hit2.hitTest(_root.three.hit)) {
i = 1;
while (i < 20) {
if (this.truck2.truck3.hit.hitTest(_root['lanee' + i].tree2.hitt)) {
if (_root['lanee' + i].tree2.healthbar._currentframe >= 98) {
_root['lanee' + i].tree2.hitt.gotoAndStop(2);
this.truckspeed = random(3) + 1;
this.testy = false;
if (!this.hitty == true) {
this.truck2.truck3.gotoAndPlay('run');
this.hitty = true;
}
} else {
binHit();
}
}
++i;
}
}
if (this.truck2.truck3.hit.hitTest(_root.two.hit) || this.truck2.truck3.hit2.hitTest(_root.two.hit)) {
this.gotoAndStop(2);
i = 1000;
while (i < 1020) {
if (this.truck2.truck3.hit.hitTest(_root['lanee' + i].tree2.hitt)) {
if (_root['lanee' + i].tree2.healthbar._currentframe >= 98) {
_root['lanee' + i].tree2.hitt.gotoAndStop(2);
this.truckspeed = random(6) + 3;
this.testy = false;
if (!this.hitty == true) {
if (!this.hitbigtree == true) {
this.truck2.truck3.gotoAndPlay('run');
this.hitty = true;
}
}
} else {
binHit();
}
}
++i;
}
}
if (this.truck2.truck3.hit.hitTest(_root.one.hit) || this.truck2.truck3.hit2.hitTest(_root.one.hit)) {
this.gotoAndStop(3);
i = 10000;
while (i < 10020) {
if (this.truck2.truck3.hit.hitTest(_root['lanee' + i].tree2.hitt)) {
if (_root['lanee' + i].tree2.healthbar._currentframe >= 98) {
_root['lanee' + i].tree2.hitt.gotoAndStop(2);
this.truckspeed = random(6) + 3;
this.testy = false;
if (!this.hitty == true) {
this.truck2.truck3.gotoAndPlay('run');
this.hitty = true;
}
} else {
binHit();
}
}
++i;
}
}
if (this.truckspeed <= 0) {
this.truck2.truck3.gotoAndPlay('attack');
this.truckspeed = 0.1;
}
}
if (this.truck2.truck3.hit.hitTest(_root.onee)) {
thespeed = 2;
}
if (this.truck2.truck3.hit.hitTest(_root.twoo)) {
thespeed = 3;
}
if (this.truck2.truck3.hit.hitTest(_root.threee)) {
thespeed = 4;
}
if (this.truck2.truck3.hit.hitTest(_root.effectHolder_mc)) {
--this.health;
if (this.health <= 0) {
removeMovieClip(this);
}
}
if (_root.mouse.hitTest(this.truck2.truck3.energy)) {
if (this.touched == false) {
this.truck2.truck3.energy.gotoAndStop(10);
if (!_root.mute == true) {
_root.collect.start(0, 1);
}
_root.energyNum += random(15) + 2;
_root.enum.play();
_root.touched = true;
}
}
if (this.touched == true) {
if (this.enemyyy2.enemyyy3.energy._currentframe <= 9) {
this.enemyyy2.enemyyy3.energy.gotoAndStop(10);
}
}
getx = _root.enum._x;
gety = _root.enum._y;
this.mainspeed = 5;
if (!this.truck2.truck3.energy.ghost.hitTest(_root.topbit) || !this.truck2.truck3.energy.ghost.hitTest(_root.leftbit)) {
if (this.truck2.truck3.energy.ghost._x <= getx) {
this.truck2.truck3.energy.ghost._x -= this.mainspeed + random(2) + 0.3;
}
if (this.truck2.truck3.energy.ghost._x >= getx) {
this.truck2.truck3.energy.ghost._x += this.mainspeed + random(2) + 0.3;
}
if (this.truck2.truck3.energy.ghost._y <= gety) {
this.truck2.truck3.energy.ghost._y -= this.mainspeed + random(2) + 0.3;
}
if (this.truck2.truck3.energy.ghost._y >= gety) {
this.truck2.truck3.energy.ghost._y += this.mainspeed + random(2) + 0.3;
}
}
}
}
movieClip 250 {
}
movieClip 251 {
}
instance three of movieClip 251 {
onClipEvent (release) {
if (!_root.cantplace == true) {
if (!_root.pausedd) {
if (_root.placeTree == true) {
_root.al -= 1;
_root.lane3.duplicateMovieClip('lanee' + _root.count3, _root.count3);
_root['lanee' + _root.count3]._x = _xmouse + 170;
_root['lanee' + _root.count3]._y = 293.6;
++_root.count3;
trace(_xmouse);
}
if (!_root.placeTree == true) {
_root.cloud.swapDepths(400);
_root.cloud.lightning.gotoAndStop(2);
_root.cloud.lightning.lightning2.play();
_root.multip = 100;
}
} else {
_root.lane3.duplicateMovieClip('lanee' + _root.count3, _root.count3);
_root['lanee' + _root.count3]._x = _xmouse + 170;
_root['lanee' + _root.count3]._y = 293.6;
++_root.count3;
_root.upgrade.play();
}
}
}
}
movieClip 253 {
}
instance two of movieClip 253 {
onClipEvent (release) {
if (!_root.cantplace == true) {
if (!_root.pausedd) {
if (_root.placeTree == true) {
_root.al -= 1;
_root.lane2.duplicateMovieClip('lanee' + _root.count2, _root.count2);
_root['lanee' + _root.count2]._x = _xmouse + 140;
_root['lanee' + _root.count2]._y = 332;
++_root.count2;
trace(_xmouse);
}
if (!_root.placeTree == true) {
_root.cloud.swapDepths(1500);
_root.cloud.lightning.gotoAndStop(3);
_root.cloud.lightning.lightning2.play();
_root.multip = 100;
}
} else {
_root.lane2.duplicateMovieClip('lanee' + _root.count2, _root.count2);
_root['lanee' + _root.count2]._x = _xmouse + 140;
_root['lanee' + _root.count2]._y = 332;
++_root.count2;
_root.upgrade.play();
}
}
}
}
movieClip 255 {
}
instance one of movieClip 255 {
onClipEvent (release) {
if (!_root.cantplace == true) {
if (!_root.pausedd) {
if (_root.placeTree == true) {
_root.al -= 1;
_root.lane1.duplicateMovieClip('lanee' + _root.count, _root.count);
_root['lanee' + _root.count]._x = _xmouse - 60;
_root['lanee' + _root.count]._y = 371.9;
++_root.count;
trace(_xmouse);
}
if (!_root.placeTree == true) {
_root.cloud.swapDepths(12000);
_root.cloud.lightning.gotoAndStop(4);
_root.cloud.lightning.lightning2.play();
_root.multip = 100;
}
} else {
_root.lane1.duplicateMovieClip('lanee' + _root.count, _root.count);
_root['lanee' + _root.count]._x = _xmouse - 60;
_root['lanee' + _root.count]._y = 371.9;
++_root.count;
_root.upgrade.play();
}
}
}
}
button 256 {
on (press) {
trace('this many left - ' + _root.hml);
trace('wave - ' + _root.wave);
trace('place tree is ' + _root.placeTree);
}
}
button 257 {
on (release) {
if (!_root.placeTree == true) {
_root.cloud.swapDepths(12000);
_root.cloud.lightning.gotoAndStop(2);
_root.cloud.lightning.lightning2.play();
_root.multip = 100;
}
}
}
movieClip 263 {
frame 1 {
stop();
}
frame 101 {
stop();
_root.bigtree3.gotoAndStop(2);
}
}
movieClip 265 {
}
movieClip 268 {
}
movieClip 269 {
frame 1 {
stop();
}
instance of movieClip 268 {
onClipEvent (enterFrame) {
var i = 0;
while (i < 1000) {
var clip = _root['enemy' + i];
clip.removeMovieClip();
removeMovieClip(clip);
++i;
}
var a = 0;
while (a < 1000) {
var clip2 = _root['lanee' + a];
clip2.removeMovieClip();
removeMovieClip(clip2);
++a;
}
var a = 999;
while (a < 2000) {
var clip3 = _root['lanee' + a];
clip3.removeMovieClip();
removeMovieClip(clip3);
++a;
}
var a = 9999;
while (a < 11000) {
var clip4 = _root['lanee' + a];
clip4.removeMovieClip();
removeMovieClip(clip4);
++a;
}
_root.gotoAndStop('die');
}
}
}
movieClip 272 {
frame 1 {
stop();
}
frame 101 {
stop();
_root.bigtree2.gotoAndStop(2);
}
}
movieClip 274 {
frame 1 {
stop();
}
instance of movieClip 268 {
onClipEvent (enterFrame) {
var i = 0;
while (i < 1000) {
var clip = _root['enemy' + i];
clip.removeMovieClip();
removeMovieClip(clip);
++i;
}
var a = 0;
while (a < 1000) {
var clip2 = _root['lanee' + a];
clip2.removeMovieClip();
removeMovieClip(clip2);
++a;
}
var a = 999;
while (a < 2000) {
var clip3 = _root['lanee' + a];
clip3.removeMovieClip();
removeMovieClip(clip3);
++a;
}
var a = 9999;
while (a < 11000) {
var clip4 = _root['lanee' + a];
clip4.removeMovieClip();
removeMovieClip(clip4);
++a;
}
_root.gotoAndStop('die');
}
}
}
movieClip 277 {
frame 1 {
stop();
}
frame 101 {
stop();
_root.bigtree1.gotoAndStop(2);
}
}
movieClip 279 {
frame 1 {
stop();
}
instance of movieClip 268 {
onClipEvent (enterFrame) {
var i = 0;
while (i < 1000) {
var clip = _root['enemy' + i];
clip.removeMovieClip();
removeMovieClip(clip);
++i;
}
var a = 0;
while (a < 1000) {
var clip2 = _root['lanee' + a];
clip2.removeMovieClip();
removeMovieClip(clip2);
++a;
}
var a = 999;
while (a < 2000) {
var clip3 = _root['lanee' + a];
clip3.removeMovieClip();
removeMovieClip(clip3);
++a;
}
var a = 9999;
while (a < 11000) {
var clip4 = _root['lanee' + a];
clip4.removeMovieClip();
removeMovieClip(clip4);
++a;
}
_root.gotoAndStop('die');
}
}
}
button 280 {
on (rollOver) {
if (_root.placeTree == true) {
_root.cantplace = false;
}
}
}
movieClip 284 {
frame 101 {
stop();
}
}
movieClip 325 {
frame 3 {
if (!_root.mute == true) {
_root.grow.start(0, 1);
}
}
}
button 326 {
on (rollOver) {
if (_root.placeTree == true) {
_root.cantplace = true;
_root.mouse.gotoAndStop(3);
}
}
on (rollOut) {
if (_root.placeTree == true) {
_root.cantplace = false;
_root.mouse.gotoAndStop(2);
}
}
}
movieClip 328 {
}
movieClip 329 {
frame 1 {
stop();
}
}
movieClip 330 {
}
movieClip 332 {
frame 1 {
stop();
}
frame 8 {
stop();
}
}
movieClip 333 {
instance healthbar of movieClip 284 {
onClipEvent (enterFrame) {
this.stop();
}
}
instance of movieClip 329 {
onClipEvent (enterFrame) {
if (_root.placeTree == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
}
frame 25 {
stop();
}
frame 124 {
nextFrame();
}
frame 124 {
nextFrame();
}
instance healthbar of movieClip 284 {
onClipEvent (enterFrame) {
this.stop();
this.gotoAndStop(99);
}
}
frame 125 {
nextFrame();
}
frame 126 {
stop();
}
frame 127 {
stop();
}
frame 128 {
stop();
}
instance healthbar of movieClip 284 {
onClipEvent (enterFrame) {
this.stop();
}
}
}
movieClip 335 {
frame 2 {
stop();
}
}
movieClip 337 {
frame 1 {
stop();
}
}
instance lane3 of movieClip 337 {
onClipEvent (enterFrame) {
if (this.tree2.healthbar._currentframe >= 98) {
this.tree2.gotoAndStop(124);
removeMovieClip(this.butt);
}
if (this.hitTest(_root.tide.tide2)) {
this.tree2.healthbar.gotoAndStop(1);
}
}
}
instance lane2 of movieClip 337 {
onClipEvent (enterFrame) {
if (this.tree2.healthbar._currentframe >= 98) {
this.tree2.gotoAndStop(124);
removeMovieClip(this.butt);
}
if (this.hitTest(_root.tide.tide2)) {
this.tree2.healthbar.gotoAndStop(1);
}
}
}
movieClip 338 {
}
instance effectHolder_mc of movieClip 338 {
onClipEvent (enterFrame) {
if (_ymouse <= 297) {
this.swapDepths(_root.count3 + 1);
}
if (_ymouse >= 297 && _ymouse <= 349) {
this.swapDepths(_root.count2 + 1);
}
if (_ymouse >= 350) {
this.swapDepths(_root.count + 1);
}
}
}
instance lane1 of movieClip 337 {
onClipEvent (enterFrame) {
if (this.tree2.healthbar._currentframe >= 98) {
this.tree2.gotoAndStop(124);
removeMovieClip(this.butt);
}
if (this.hitTest(_root.tide.tide2)) {
this.tree2.healthbar.gotoAndStop(1);
}
}
}
movieClip 340 {
}
instance of movieClip 340 {
onClipEvent (enterFrame) {
if (_root.donemsg) {
if (_root.hml <= 0) {
if (!_root.wave >= 1) {
if (_root.hml <= 0) {
_root.wave1();
_root.wave = 2;
_root.levelnum = 1;
}
}
if (_root.wave == 2) {
if (_root.hml <= 0) {
_root.hml = 0;
_root.wave2();
_root.wc.play();
_root.wc.play();
_root.wave = 3;
_root.levelnum = 2;
}
}
if (_root.wave == 3) {
if (_root.hml <= 0) {
_root.hml = 0;
_root.wave3();
_root.wc.play();
_root.wc.play();
_root.wave = 4;
_root.levelnum = 3;
}
}
if (_root.wave == 4) {
if (_root.hml <= 0) {
_root.hml = 0;
_root.wave4();
_root.wc.play();
_root.wc.play();
_root.wave = 5;
_root.levelnum = 4;
}
}
if (_root.wave == 5) {
if (_root.hml <= 0) {
_root.hml = 0;
_root.wave5();
_root.wave = 6;
_root.wc.play();
_root.wc.play();
_root.levelnum = 5;
}
}
if (_root.wave == 6) {
if (_root.hml <= 0) {
_root.hml = 0;
_root.wave6();
_root.wave = 7;
_root.wc.play();
_root.wc.play();
_root.levelnum = 6;
}
}
if (_root.wave == 7) {
if (_root.hml <= 0) {
_root.hml = 0;
_root.wave7();
_root.wave = 8;
_root.wc.play();
_root.wc.play();
_root.levelnum = 7;
}
}
if (_root.wave == 8) {
if (_root.hml <= 0) {
_root.hml = 0;
_root.wave8();
_root.wave = 9;
_root.wc.play();
_root.wc.play();
_root.levelnum = 8;
}
}
if (_root.wave == 9) {
if (_root.hml <= 0) {
_root.hml = 0;
_root.wave9();
_root.wave = 10;
_root.wc.play();
_root.wc.play();
_root.levelnum = 9;
}
}
if (_root.wave == 10) {
if (_root.hml <= 0) {
_root.hml = 0;
_root.wave10();
_root.wave = 11;
_root.wc.play();
_root.wc.play();
_root.levelnum = 10;
}
}
if (_root.wave == 11) {
if (_root.hml <= 0) {
_root.hml = 0;
_root.wave11();
_root.wave = 12;
_root.wc.play();
_root.wc.play();
_root.levelnum = 11;
}
}
if (_root.wave == 12) {
if (_root.hml <= 0) {
_root.hml = 0;
_root.wave12();
_root.wave = 13;
_root.wc.play();
_root.wc.play();
_root.levelnum = 12;
}
}
if (_root.wave == 13) {
if (_root.hml <= 0) {
_root.hml = 0;
_root.wave13();
_root.wave = 14;
_root.wc.play();
_root.wc.play();
_root.levelnum = 13;
}
}
if (_root.wave == 14) {
if (_root.hml <= 0) {
_root.hml = 0;
_root.wave14();
_root.wave = 15;
_root.wc.play();
_root.wc.play();
_root.levelnum = 14;
}
}
if (_root.wave == 15) {
if (_root.hml <= 0) {
_root.hml = 0;
_root.wave15();
_root.wave = 16;
_root.wc.play();
_root.wc.play();
_root.levelnum = 16;
}
}
}
if (_root.wave == 16) {
if (_root.hml <= 0) {
_root.hml = 0;
var i = 0;
while (i < 1000) {
var clip = _root['enemy' + i];
clip.removeMovieClip();
removeMovieClip(clip);
++i;
}
var a = 0;
while (a < 1000) {
var clip2 = _root['lanee' + a];
clip2.removeMovieClip();
removeMovieClip(clip2);
++a;
}
var a = 999;
while (a < 2000) {
var clip3 = _root['lanee' + a];
clip3.removeMovieClip();
removeMovieClip(clip3);
++a;
}
var a = 9999;
while (a < 11000) {
var clip4 = _root['lanee' + a];
clip4.removeMovieClip();
removeMovieClip(clip4);
++a;
}
_root.gotoAndStop('win');
}
}
}
if (_root.al <= 0) {
_root.placeTree = false;
}
}
}
movieClip 341 {
}
movieClip 343 {
}
movieClip 344 {
}
movieClip 346 {
}
movieClip 348 {
}
movieClip 350 {
}
movieClip 352 {
}
movieClip 369 {
}
movieClip 371 {
}
movieClip 375 {
}
movieClip 378 {
}
movieClip 382 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 387 {
frame 1 {
_root.rnum = random(3) + 1;
}
instance flower2 of movieClip 382 {
onClipEvent (load) {
this.gotoAndStop(rnum);
}
}
frame 30 {
stop();
}
}
movieClip 389 {
}
movieClip 390 {
frame 81 {
stop();
}
}
movieClip 391 {
frame 1 {
stop();
}
frame 2 {
nextFrame();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 392 {
frame 1 {
this.hitty = false;
this.testy = false;
}
frame 13 {
gotoAndPlay('run');
}
frame 22 {
if (!_root.mute == true) {
_root.bite.start(0, 1);
}
}
frame 25 {
gotoAndPlay('attack');
}
frame 42 {
stop();
}
frame 42 {
stop();
}
}
movieClip 393 {
frame 1 {
stop();
}
}
movieClip 394 {
frame 1 {
stop();
}
}
instance enemy of movieClip 394 {
onClipEvent (load) {
thespeed = 2;
this.health = 10;
this.enemyspeed = random(6) + 3;
this.deadd = false;
this.hittree = false;
this.work = false;
this.howmanytimes = 0;
this.testy = false;
this.hitbigtree = false;
_root.pausedd = false;
this.touched = false;
this.hitbigtree2 = false;
}
onClipEvent (enterFrame) {
function binHit() {
_root['lanee' + i].tree2.nextFrame();
_root['lanee' + i].tree2.healthbar.nextFrame();
hittingTree = true;
if (this.testy != true) {
this.enemyspeed = 0;
this.testy = true;
this.hitty = false;
}
}
if (!this.deadd == true) {
if (!_root.pausedd) {
this._x += this.enemyspeed;
}
if (this.bth.hitTest(_root.bigtree1.hit)) {
if (!this.gaz == true) {
this.enemyspeed = 0;
this.gaz = true;
}
this.hitbigtree = true;
hittingTree = true;
_root.bigtree1.healthbar.nextFrame();
}
if (this.bth.hitTest(_root.bigtree2.hit)) {
if (!this.gaz == true) {
this.enemyspeed = 0;
this.gaz = true;
}
this.hitbigtree = true;
hittingTree = true;
_root.bigtree2.healthbar.nextFrame();
}
if (this.bth.hitTest(_root.bigtree3.hit)) {
if (!this.gaz == true) {
this.enemyspeed = 0;
this.gaz = true;
}
this.hitbigtree = true;
hittingTree = true;
_root.bigtree3.healthbar.nextFrame();
}
}
if (this.hitTest(_root.cloud.lightning.lightning2.lightning3.hit) || this.hitTest(_root.comet.hit)) {
if (!this.deadd == true) {
this.deadd = true;
if (!this.deadd2 == true) {
this.enemy2.enemy3.gotoAndPlay('die');
_root.hml -= 1;
trace('kill' + _root.hml + 'left');
_root.multip -= 1;
this.deadd2 = true;
}
}
}
if (!this.hitTest(_root.cloud.lightning.lightning2.lightning3.hit)) {
if (this.hitTest(_root.stopbar)) {
_root.multip -= 1;
}
if (this.enemy2.enemy3.hit.hitTest(_root.three.hit) || this.enemy2.enemy3.hit2.hitTest(_root.three.hit)) {
i = 1;
while (i < 20) {
if (this.enemy2.enemy3.hit.hitTest(_root['lanee' + i].tree2.hitt)) {
if (_root['lanee' + i].tree2.healthbar._currentframe >= 98) {
_root['lanee' + i].tree2.hitt.gotoAndStop(2);
this.enemyspeed = random(6) + 3;
this.testy = false;
if (!this.hitty == true) {
if (!this.hitbigtree == true) {
this.enemy2.enemy3.gotoAndPlay('run');
}
this.hitty = true;
}
} else {
binHit();
}
}
++i;
}
}
if (this.enemy2.enemy3.hit.hitTest(_root.two.hit) || this.enemy2.enemy3.hit2.hitTest(_root.two.hit)) {
this.gotoAndStop(2);
i = 1000;
while (i < 1020) {
if (this.enemy2.enemy3.hit.hitTest(_root['lanee' + i].tree2.hitt)) {
if (_root['lanee' + i].tree2.healthbar._currentframe >= 98) {
_root['lanee' + i].tree2.hitt.gotoAndStop(2);
this.enemyspeed = random(6) + 3;
this.testy = false;
if (!this.hitty == true) {
if (!this.hitbigtree == true) {
if (!this.hitbigtree == true) {
this.enemy2.enemy3.gotoAndPlay('run');
}
this.hitty = true;
}
}
} else {
binHit();
}
}
++i;
}
}
if (this.enemy2.enemy3.hit.hitTest(_root.one.hit) || this.enemy2.enemy3.hit2.hitTest(_root.one.hit)) {
this.gotoAndStop(3);
i = 10000;
while (i < 10020) {
if (this.enemy2.enemy3.hit.hitTest(_root['lanee' + i].tree2.hitt)) {
if (_root['lanee' + i].tree2.healthbar._currentframe >= 98) {
_root['lanee' + i].tree2.hitt.gotoAndStop(2);
this.enemyspeed = random(6) + 3;
this.testy = false;
if (!this.hitty == true) {
if (!this.hitbigtree == true) {
this.enemy2.enemy3.gotoAndPlay('run');
}
this.hitty = true;
}
} else {
binHit();
}
}
++i;
}
}
if (this.enemyspeed <= 0) {
this.enemy2.enemy3.gotoAndPlay('attack');
this.enemyspeed = 0.01;
}
}
if (this.enemy2.enemy3.hit.hitTest(_root.onee)) {
thespeed = 2;
}
if (this.enemy2.enemy3.hit.hitTest(_root.twoo)) {
thespeed = 3;
}
if (this.enemy2.enemy3.hit.hitTest(_root.threee)) {
thespeed = 4;
}
if (this.enemy2.enemy3.hit.hitTest(_root.effectHolder_mc)) {
--this.health;
if (this.health <= 0) {
removeMovieClip(this);
}
}
if (_root.mouse.hitTest(this.enemy2.enemy3.energy)) {
if (this.touched == false) {
this.enemy2.enemy3.energy.gotoAndStop(10);
if (!_root.mute == true) {
_root.collect.start(0, 1);
}
_root.energyNum += random(12) + 2;
_root.enum.play();
this.touched = true;
}
}
getx = _root.enum._x;
gety = _root.enum._y;
this.mainspeed = 5;
if (!this.enemy2.enemy3.energy.ghost.hitTest(_root.topbit) || !this.enemy2.enemy3.energy.ghost.hitTest(_root.leftbit)) {
if (this.enemy2.enemy3.energy.ghost._x <= getx) {
this.enemy2.enemy3.energy.ghost._x -= this.mainspeed + random(2) + 0.3;
}
if (this.enemy2.enemy3.energy.ghost._x >= getx) {
this.enemy2.enemy3.energy.ghost._x += this.mainspeed + random(2) + 0.3;
}
if (this.enemy2.enemy3.energy.ghost._y <= gety) {
this.enemy2.enemy3.energy.ghost._y -= this.mainspeed + random(2) + 0.3;
}
if (this.enemy2.enemy3.energy.ghost._y >= gety) {
this.enemy2.enemy3.energy.ghost._y += this.mainspeed + random(2) + 0.3;
}
}
}
}
movieClip 398 {
}
movieClip 399 {
frame 1 {
stop();
}
frame 2 {
arandomnum = random(10) + 1;
lightning3.gotoAndStop(arandomnum);
}
frame 2 {
if (!_root.mute == true) {
numba = random(2) + 1;
if (numba == 1) {
_root.l1.start(0, 1);
}
if (numba == 2) {
_root.l2.start(0, 1);
}
}
_root.cloud.gotoAndStop(3);
}
frame 5 {
_root.mouse.charger.play();
_root.cloud.gotoAndStop(1);
}
frame 10 {
if (_root.cup == 3) {
gotoAndStop(1);
}
}
frame 20 {
if (_root.cup == 2) {
gotoAndStop(1);
}
}
}
movieClip 400 {
frame 1 {
stop();
}
frame 4 {
stop();
}
}
movieClip 401 {
frame 1 {
stop();
}
}
movieClip 406 {
frame 85 {
_root.captured = false;
_root.cloud.gotoAndStop(1);
}
}
movieClip 407 {
frame 1 {
stop();
}
instance under of movieClip 401 {
onClipEvent (enterFrame) {
if (_root.cloudspeed >= 40 || _root.cloudspeed <= -40) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance cloud of movieClip 407 {
onClipEvent (enterFrame) {
if (!_root.menuplay) {
difx = _parent._xmouse - _x;
_root.cloudspeed = difx;
if (!_root.captured == true) {
_x = _x + difx / 10;
} else {
_x = _x + difx / 70;
}
}
}
}
movieClip 410 {
}
movieClip 412 {
}
movieClip 416 {
}
movieClip 430 {
}
movieClip 433 {
}
movieClip 436 {
frame 1 {
play();
}
frame 13 {
gotoAndStop('run');
}
frame 33 {
gotoAndPlay('attack');
}
frame 48 {
stop();
}
}
movieClip 437 {
}
movieClip 438 {
frame 1 {
stop();
}
}
instance enemyy of movieClip 438 {
onClipEvent (load) {
thespeed = 2;
this.health = 10;
this.enemyspeed = random(6) + 3;
this.deadd = false;
this.hittree = false;
this.work = false;
this.howmanytimes = 0;
this.testy = false;
this.touched = false;
}
onClipEvent (enterFrame) {
function binHit() {
_root['lanee' + i].tree2.nextFrame();
_root['lanee' + i].tree2.healthbar.nextFrame();
hittingTree = true;
if (this.testy != true) {
this.enemyspeed = 0;
this.testy = true;
this.hitty = false;
}
}
if (!this.deadd == true) {
if (!_root.pausedd) {
this._x += this.enemyspeed;
}
if (this.bth.hitTest(_root.bigtree1.hit)) {
if (!this.gaz == true) {
this.enemyspeed = 0;
this.gaz = true;
}
this.hitbigtree = true;
hittingTree = true;
_root.bigtree1.healthbar.nextFrame();
}
if (this.bth.hitTest(_root.bigtree2.hit)) {
if (!this.gaz == true) {
this.enemyspeed = 0;
this.gaz = true;
}
this.hitbigtree = true;
hittingTree = true;
_root.bigtree2.healthbar.nextFrame();
}
if (this.bth.hitTest(_root.bigtree3.hit)) {
if (!this.gaz == true) {
this.enemyspeed = 0;
this.gaz = true;
}
this.hitbigtree = true;
hittingTree = true;
_root.bigtree3.healthbar.nextFrame();
}
if (this.hitTest(_root.cloud.lightning.lightning2.lightning3.hit) || this.hitTest(_root.comet.hit)) {
if (!this.deadd == true) {
this.deadd = true;
this.enemyy2.enemyy3.gotoAndPlay('die');
trace('kill' + _root.hml + 'left');
_root.hml -= 1;
_root.multip -= 1;
}
}
}
if (!this.hitTest(_root.cloud.lightning.lightning2.lightning3.hit)) {
if (this.hitTest(_root.stopbar)) {
removeMovieClip(this);
hml -= 1;
_root.multip -= 1;
}
if (this.enemyy2.enemyy3.hit.hitTest(_root.three.hit) || this.enemyy2.enemyy3.hit2.hitTest(_root.three.hit)) {
i = 1;
while (i < 20) {
if (this.enemyy2.enemyy3.hit.hitTest(_root['lanee' + i].tree2.hitt)) {
if (_root['lanee' + i].tree2.healthbar._currentframe >= 98) {
_root['lanee' + i].tree2.hitt.gotoAndStop(2);
this.enemyspeed = random(6) + 3;
this.testy = false;
if (!this.hitty == true) {
this.enemyy2.enemyy3.gotoAndPlay('run');
this.hitty = true;
}
} else {
binHit();
}
}
++i;
}
}
if (this.enemyy2.enemyy3.hit.hitTest(_root.two.hit) || this.enemyy2.enemyy3.hit2.hitTest(_root.two.hit)) {
this.gotoAndStop(2);
i = 1000;
while (i < 1020) {
if (this.enemyy2.enemyy3.hit.hitTest(_root['lanee' + i].tree2.hitt)) {
if (_root['lanee' + i].tree2.healthbar._currentframe >= 98) {
_root['lanee' + i].tree2.hitt.gotoAndStop(2);
this.enemyspeed = random(6) + 3;
this.testy = false;
if (!this.hitty == true) {
this.enemyy2.enemyy3.gotoAndPlay('run');
this.hitty = true;
}
} else {
binHit();
}
}
++i;
}
}
if (this.enemyy2.enemyy3.hit.hitTest(_root.one.hit) || this.enemyy2.enemyy3.hit2.hitTest(_root.one.hit)) {
this.gotoAndStop(3);
i = 10000;
while (i < 10020) {
if (this.enemyy2.enemyy3.hit.hitTest(_root['lanee' + i].tree2.hitt)) {
if (_root['lanee' + i].tree2.healthbar._currentframe >= 98) {
_root['lanee' + i].tree2.hitt.gotoAndStop(2);
this.enemyspeed = random(6) + 3;
this.testy = false;
if (!this.hitty == true) {
this.enemyy2.enemyy3.gotoAndPlay('run');
this.hitty = true;
}
} else {
binHit();
}
}
++i;
}
}
if (this.enemyspeed <= 0) {
this.enemyy2.enemyy3.gotoAndPlay('attack');
this.enemyspeed = 0.1;
}
}
if (this.enemyy2.enemyy3.hit.hitTest(_root.onee)) {
thespeed = 2;
}
if (this.enemyy2.enemyy3.hit.hitTest(_root.twoo)) {
thespeed = 3;
}
if (this.enemyy2.enemyy3.hit.hitTest(_root.threee)) {
thespeed = 4;
}
if (this.enemyy2.enemyy3.hit.hitTest(_root.effectHolder_mc)) {
--this.health;
if (this.health <= 0) {
}
}
if (_root.mouse.hitTest(this.enemyy2.enemyy3.energy)) {
if (this.touched == false) {
if (!_root.mute == true) {
_root.collect.start(0, 1);
}
this.enemyy2.enemyy3.energy.gotoAndStop(10);
_root.energyNum += random(14) + 2;
_root.enum.play();
this.touched = true;
}
}
getx = _root.enum._x;
gety = _root.enum._y;
this.mainspeed = 5;
if (!this.enemyy2.enemyy3.energy.ghost.hitTest(_root.topbit) || !this.enemyy2.enemyy3.energy.ghost.hitTest(_root.leftbit)) {
if (this.enemyy2.enemyy3.energy.ghost._x <= getx) {
this.enemyy2.enemyy3.energy.ghost._x -= this.mainspeed;
}
if (this.enemyy2.enemyy3.energy.ghost._x >= getx) {
this.enemyy2.enemyy3.energy.ghost._x += this.mainspeed;
}
if (this.enemyy2.enemyy3.energy.ghost._y <= gety) {
this.enemyy2.enemyy3.energy.ghost._y -= this.mainspeed;
}
if (this.enemyy2.enemyy3.energy.ghost._y >= gety) {
this.enemyy2.enemyy3.energy.ghost._y += this.mainspeed;
}
}
if (this.enemyy2.enemyy3.energy.ghost.hitTest(_root.stopper)) {
removeMovieClip(this);
}
}
}
movieClip 484 {
}
movieClip 485 {
frame 1 {
stop();
}
frame 2 {
if (!_root.mute == true) {
_root.tw.start(0, 1);
}
}
}
movieClip 486 {
}
movieClip 496 {
}
movieClip 499 {
}
movieClip 530 {
}
movieClip 531 {
frame 1 {
stop();
}
frame 2 {
if (!_root.mute == true) {
_root.meteors.start(0, 1);
}
}
}
movieClip 534 {
}
movieClip 536 {
}
movieClip 554 {
}
movieClip 559 {
}
movieClip 569 {
}
movieClip 572 {
frame 13 {
gotoAndPlay('run');
}
frame 32 {
gotoAndPlay('attack');
}
frame 47 {
stop();
}
}
movieClip 573 {
}
movieClip 574 {
frame 1 {
stop();
}
}
instance bever of movieClip 574 {
onClipEvent (load) {
thespeed = 2;
this.health = 10;
this.beverspeed = random(8) + 4;
this.deadd = false;
this.hittree = false;
this.work = false;
this.howmanytimes = 0;
this.testy = false;
this.hitbigtree = false;
this.touched = false;
}
onClipEvent (enterFrame) {
function binHit() {
_root['lanee' + i].tree2.nextFrame();
_root['lanee' + i].tree2.healthbar.nextFrame();
hittingTree = true;
if (this.testy != true) {
this.beverspeed = 0;
this.testy = true;
this.hitty = false;
}
}
function rmc() {
removeMovieClip(this);
trace('poo4234');
}
if (!this.deadd == true) {
if (!_root.pausedd) {
this._x += this.beverspeed;
}
if (this.bth.hitTest(_root.bigtree1.hit)) {
if (!this.gaz == true) {
this.beverspeed = 0;
this.gaz = true;
}
this.hitbigtree = true;
hittingTree = true;
_root.bigtree1.healthbar.nextFrame();
}
if (this.bth.hitTest(_root.bigtree2.hit)) {
if (!this.gaz == true) {
this.beverspeed = 0;
this.gaz = true;
}
this.hitbigtree = true;
hittingTree = true;
_root.bigtree2.healthbar.nextFrame();
}
if (this.bth.hitTest(_root.bigtree3.hit)) {
if (!this.gaz == true) {
this.beverspeed = 0;
this.gaz = true;
}
this.hitbigtree = true;
hittingTree = true;
_root.bigtree3.healthbar.nextFrame();
}
}
if (this.hitTest(_root.cloud.lightning.lightning2.lightning3.hit) || this.hitTest(_root.comet.hit)) {
if (!this.deadd == true) {
this.deadd = true;
this.bever2.bever3.gotoAndPlay('die');
_root.hml -= 1;
_root.multip -= 1;
}
}
if (!this.hitTest(_root.cloud.lightning.lightning2.lightning3.hit)) {
if (this.hitTest(_root.stopbar)) {
removeMovieClip(this);
hml -= 1;
_root.multip -= 1;
}
if (this.bever2.bever3.hit.hitTest(_root.three.hit) || this.bever2.bever3.hit2.hitTest(_root.three.hit)) {
i = 1;
while (i < 20) {
if (this.bever2.bever3.hit.hitTest(_root['lanee' + i].tree2.hitt)) {
if (_root['lanee' + i].tree2.healthbar._currentframe >= 98) {
_root['lanee' + i].tree2.hitt.gotoAndStop(2);
this.beverspeed = random(8) + 4;
this.testy = false;
if (!this.hitty == true) {
this.bever2.bever3.gotoAndPlay('run');
this.hitty = true;
}
} else {
binHit();
}
}
++i;
}
}
if (this.bever2.bever3.hit.hitTest(_root.two.hit) || this.bever2.bever3.hit2.hitTest(_root.two.hit)) {
this.gotoAndStop(2);
i = 1000;
while (i < 1020) {
if (this.bever2.bever3.hit.hitTest(_root['lanee' + i].tree2.hitt)) {
if (_root['lanee' + i].tree2.healthbar._currentframe >= 98) {
_root['lanee' + i].tree2.hitt.gotoAndStop(2);
this.beverspeed = random(8) + 4;
this.testy = false;
if (!this.hitty == true) {
this.bever2.bever3.gotoAndPlay('run');
this.hitty = true;
}
} else {
binHit();
}
}
++i;
}
}
if (this.bever2.bever3.hit.hitTest(_root.one.hit) || this.bever2.bever3.hit2.hitTest(_root.one.hit)) {
this.gotoAndStop(3);
i = 10000;
while (i < 10020) {
if (this.bever2.bever3.hit.hitTest(_root['lanee' + i].tree2.hitt)) {
if (_root['lanee' + i].tree2.healthbar._currentframe >= 98) {
_root['lanee' + i].tree2.hitt.gotoAndStop(2);
this.beverspeed = random(8) + 4;
this.testy = false;
if (!this.hitty == true) {
this.bever2.bever3.gotoAndPlay('run');
this.hitty = true;
}
} else {
binHit();
}
}
++i;
}
}
if (this.beverspeed <= 0) {
this.bever2.bever3.gotoAndPlay('attack');
this.beverspeed = 0.1;
}
}
if (this.bever2.bever3.hit.hitTest(_root.onee)) {
thespeed = 2;
}
if (this.bever2.bever3.hit.hitTest(_root.twoo)) {
thespeed = 3;
}
if (this.bever2.bever3.hit.hitTest(_root.threee)) {
thespeed = 4;
}
if (this.bever2.bever3.hit.hitTest(_root.effectHolder_mc)) {
--this.health;
if (this.health <= 0) {
removeMovieClip(this);
}
}
if (_root.mouse.hitTest(this.bever2.bever3.energy)) {
if (this.touched == false) {
this.bever2.bever3.energy.gotoAndStop(10);
if (!_root.mute == true) {
_root.collect.start(0, 1);
}
_root.energyNum += random(20) + 10;
_root.enum.play();
this.touched = true;
}
}
getx = _root.enum._x;
gety = _root.enum._y;
this.mainspeed = 5;
if (!this.bever2.bever3.energy.ghost.hitTest(_root.topbit) || !this.bever2.bever3.energy.ghost.hitTest(_root.leftbit)) {
if (this.bever2.bever3.energy.ghost._x <= getx) {
this.bever2.bever3.energy.ghost._x -= this.mainspeed;
}
if (this.bever2.bever3.energy.ghost._x >= getx) {
this.bever2.bever3.energy.ghost._x += this.mainspeed;
}
if (this.bever2.bever3.energy.ghost._y <= gety) {
this.bever2.bever3.energy.ghost._y -= this.mainspeed;
}
if (this.bever2.bever3.energy.ghost._y >= gety) {
this.bever2.bever3.energy.ghost._y += this.mainspeed;
}
}
if (this.bever2.bever3.energy.ghost.hitTest(_root.stopper)) {
removeMovieClip(this);
}
}
}
movieClip 575 {
frame 1 {
stop();
}
}
button 576 {
on (rollOver) {
if (_root.placeTree == true) {
_root.mouse.gotoAndStop(3);
_root.cantplace = true;
}
}
on (rollOut) {
if (_root.placeTree == true) {
_root.mouse.gotoAndStop(2);
_root.cantplace = false;
}
}
}
movieClip 577 {
frame 1 {
stop();
}
}
instance of movieClip 577 {
onClipEvent (enterFrame) {
if (_root.placeTree == true) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
}
movieClip 579 {
}
button 580 {
on (release) {
_root.mute = true;
_root.mutebtn.gotoAndStop(2);
_root.maintune.stop();
}
}
movieClip 582 {
}
button 583 {
on (release) {
_root.mute = false;
_root.mutebtn.gotoAndStop(1);
_root.maintune.start(0, 999);
}
}
movieClip 584 {
frame 1 {
stop();
}
}
movieClip 586 {
frame 1 {
function camControl() {
rp.x = _x;
rp.y = _y;
var v5 = camH * (_yscale * 0.01);
var v6 = camW * (_xscale * 0.01);
var v3 = sH / v5;
var v4 = sW / v6;
_x2 = (v6 / 2) * v4;
_y2 = (v5 / 2) * v3;
_xscale2 = v4 * 100;
_yscale2 = v3 * 100;
_rotation2 = -_rotation;
_parent.filters = this.filters;
_parent.transform.colorTransform = this.transform.colorTransform;
}
function reset() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
_parent._rotation = 0;
_parent._visible = true;
}
function set_x2(value) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x += value - v2.x;
}
function get_x2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.x;
}
function set_y2(value) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._y += value - v2.y;
}
function get_y2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.y;
}
function get_xscale2() {
return _parent._xscale;
}
function set_xscale2(value) {
setProperty2('_xscale', value);
}
function get_yscale2() {
return _parent._yscale;
}
function set_yscale2(value) {
setProperty2('_yscale', value);
}
function get_rotation2() {
return parent.rotation;
}
function set_rotation2(value) {
setProperty2('_rotation', value);
}
function setProperty2(prop, n) {
var v3 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v3);
_parent[prop] = n;
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x -= v2.x - v3.x;
_parent._y -= v2.y - v3.y;
}
stop();
_visible = false;
addProperty('_x2', get_x2, set_x2);
addProperty('_y2', get_y2, set_y2);
addProperty('_xscale2', get_xscale2, set_xscale2);
addProperty('_yscale2', get_yscale2, set_yscale2);
addProperty('_rotation2', get_rotation2, set_rotation2);
var oldScaleMode = stage.scaleMode;
stage.scaleMode = 'exactFit';
var sW = Stage.width;
var sH = Stage.height;
stage.scaleMode = oldScaleMode;
var bounds_obj = this.getBounds(this);
var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin);
var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin);
var rp = {'x': this._x, 'y': this._y};
onEnterFrame = function () {
camControl();
};
this.onUnload = reset;
}
}
movieClip 587 {
}
instance of movieClip 587 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
if (_root.vcam._x >= -18.25) {
if (this.hitTest(_root.mouse)) {
_root.vcam._x -= _root.scrollSpeed;
_root.charger._x -= _root.scrollSpeed;
_root.mg._x -= _root.scrollSpeed;
_root.cometbtn._x -= _root.scrollSpeed;
_root.treebtn._x -= _root.scrollSpeed;
_root.enum._x -= _root.scrollSpeed;
_root.upgrade._x -= _root.scrollSpeed;
_root.instructions._x -= _root.scrollSpeed;
_root.tidebtn._x -= _root.scrollSpeed;
_root.mutebtn._x -= _root.scrollSpeed;
_root.menubtn._x -= _root.scrollSpeed;
_root.logo._x -= _root.scrollSpeed;
_root.messagebox._x -= _root.scrollSpeed;
_root.wc._x -= _root.scrollSpeed;
_root.tide._x -= _root.scrollSpeed;
if (_root.cometbtn._currentframe <= 30) {
_root.comet._x -= _root.scrollSpeed;
}
_root.scrollSpeed += 0.6;
}
if (!this.hitTest(_root.mouse)) {
_root.scrollSpeed = 0;
}
}
}
}
movieClip 588 {
}
instance of movieClip 588 {
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
if (_root.vcam._x <= 346.45) {
if (this.hitTest(_root.mouse)) {
_root.vcam._x += _root.scrollSpeed2;
_root.charger._x += _root.scrollSpeed2;
_root.mg._x += _root.scrollSpeed2;
_root.cometbtn._x += _root.scrollSpeed2;
_root.treebtn._x += _root.scrollSpeed2;
_root.upgrade._x += _root.scrollSpeed2;
_root.enum._x += _root.scrollSpeed2;
_root.tidebtn._x += _root.scrollSpeed2;
_root.mutebtn._x += _root.scrollSpeed2;
_root.menubtn._x += _root.scrollSpeed2;
_root.wc._x += _root.scrollSpeed2;
_root.logo._x += _root.scrollSpeed2;
_root.instructions._x += _root.scrollSpeed2;
_root.messagebox._x += _root.scrollSpeed2;
_root.tide._x += _root.scrollSpeed2;
if (_root.cometbtn._currentframe <= 30) {
_root.comet._x += _root.scrollSpeed2;
}
_root.scrollSpeed2 += 0.6;
}
if (!this.hitTest(_root.mouse)) {
_root.scrollSpeed2 = 0;
}
}
}
}
movieClip 591 {
}
movieClip 593 {
}
movieClip 608 {
}
movieClip 610 {
}
movieClip 622 {
}
movieClip 624 {
frame 13 {
gotoAndPlay('run');
}
frame 57 {
stop();
}
frame 72 {
stop();
}
}
movieClip 625 {
frame 1 {
stop();
}
}
movieClip 627 {
}
movieClip 628 {
frame 1 {
stop();
}
}
instance enemyyy of movieClip 628 {
onClipEvent (load) {
thespeed = 2;
this.health = 10;
this.enemyspeed = random(6) + 3;
this.deadd = false;
this.hittree = false;
this.work = false;
this.howmanytimes = 0;
this.testy = false;
this.underCloud = false;
this.aiming = false;
_root.captured = false;
this.touched = false;
}
onClipEvent (enterFrame) {
if (!this.deadd == true) {
if (this.enemyyy2.enemyyy3.ahit.hitTest(_root.cloud.hit)) {
_root.captured = true;
_root.cloud.gotoAndStop(5);
}
if (!_root.pausedd) {
if (!this.underCloud == true) {
if (this._x >= _root.cloud._x) {
this._x -= this.enemyspeed;
this.enemyyy2.gotoAndStop(2);
}
if (this._x <= _root.cloud._x + 5) {
this._x += this.enemyspeed;
this.enemyyy2.gotoAndStop(1);
}
if (this.underhit.hitTest(_root.cloud.under)) {
this.underCloud = true;
}
}
}
if (!_root.captured == true) {
if (this.underCloud == true) {
if (!this.aiming == true) {
this.enemyyy2.enemyyy3.gotoAndPlay('aim');
this.aiming = true;
}
if (this.enemyyy2.enemyyy3._currentframe >= 57) {
this.underCloud = false;
this.aiming = false;
this.enemyyy2.enemyyy3.gotoAndPlay('run');
}
}
}
}
if (this.hitTest(_root.cloud.lightning.lightning2.lightning3.hit) || this.hitTest(_root.comet.hit)) {
if (!this.deadd == true) {
this.deadd = true;
this.enemyyy2.enemyyy3.gotoAndPlay('die');
_root.hml -= 1;
_root.multip -= 1;
}
}
if (this.enemyyy2.enemyyy3.hit.hitTest(_root.onee)) {
thespeed = 2;
}
if (this.enemyyy2.enemyyy3.hit.hitTest(_root.twoo)) {
thespeed = 3;
}
if (this.enemyyy2.enemyyy3.hit.hitTest(_root.threee)) {
thespeed = 4;
}
if (this.enemyyy2.enemyyy3.hit.hitTest(_root.effectHolder_mc)) {
--this.health;
if (this.health <= 0) {
removeMovieClip(this);
}
}
if (_root.mouse.hitTest(this.enemyyy2.enemyyy3.energy)) {
if (this.touched == false) {
this.enemyyy2.enemyyy3.energy.gotoAndStop(10);
if (!_root.mute == true) {
_root.collect.start(0, 1);
}
_root.energyNum += random(15) + 5;
_root.enum.play();
this.touched = true;
}
}
if (this.touched == true) {
if (this.enemyyy2.enemyyy3.energy._currentframe <= 9) {
this.enemyyy2.enemyyy3.energy.gotoAndStop(10);
}
}
getx = _root.enum._x;
gety = _root.enum._y;
this.mainspeed = 5;
if (!this.enemyyy2.enemyyy3.energy.ghost.hitTest(_root.topbit) || !this.enemyyy2.enemyyy3.energy.ghost.hitTest(_root.leftbit)) {
if (this.enemyyy2.enemyyy3.energy.ghost._x <= getx) {
this.enemyyy2.enemyyy3.energy.ghost._x -= this.mainspeed;
}
if (this.enemyyy2.enemyyy3.energy.ghost._x >= getx) {
this.enemyyy2.enemyyy3.energy.ghost._x += this.mainspeed;
}
if (this.enemyyy2.enemyyy3.energy.ghost._y <= gety) {
this.enemyyy2.enemyyy3.energy.ghost._y -= this.mainspeed;
}
if (this.enemyyy2.enemyyy3.energy.ghost._y >= gety) {
this.enemyyy2.enemyyy3.energy.ghost._y += this.mainspeed;
}
}
if (this.enemyyy2.enemyyy3.energy.ghost.hitTest(_root.stopper)) {
removeMovieClip(this);
}
}
}
movieClip 630 {
}
movieClip 635 {
frame 1 {
stop();
}
}
instance enum of movieClip 635 {
onClipEvent (enterFrame) {
this.enum2 = _root.energyNum;
this.level = 'Level ' + _root.levelnum;
}
}
movieClip 639 {
}
movieClip 641 {
}
movieClip 649 {
}
movieClip 651 {
}
movieClip 653 {
}
movieClip 654 {
instance of movieClip 651 {
onClipEvent (enterFrame) {
this.ammountleft = '' + _root.al + ' :';
}
}
}
movieClip 656 {
}
movieClip 657 {
instance of movieClip 654 {
onClipEvent (enterFrame) {
if (_root.al <= 0) {
_root.messagebox.play();
}
}
}
frame 27 {
_root.placeTree = true;
}
frame 28 {
_root.placeTree = true;
}
frame 38 {
stop();
}
frame 39 {
_root.placeTree = false;
_root.donemsg = true;
}
frame 50 {
stop();
}
}
instance messagebox of movieClip 657 {
onClipEvent (enterFrame) {
if (_root.al <= 0) {
_root.donemsg = true;
this.gotoAndStop(1);
}
}
}
button 660 {
on (release) {
_root.black.play();
}
}
movieClip 661 {
}
instance menubtn of movieClip 661 {
onClipEvent (enterFrame) {
if (_root.removeall == true) {
var i = 0;
while (i < 1000) {
var clip = _root['enemy' + i];
clip.removeMovieClip();
removeMovieClip(clip);
++i;
}
var a = 0;
while (a < 1000) {
var clip2 = _root['lanee' + a];
clip2.removeMovieClip();
removeMovieClip(clip2);
++a;
}
var a = 999;
while (a < 2000) {
var clip3 = _root['lanee' + a];
clip3.removeMovieClip();
removeMovieClip(clip3);
++a;
}
var a = 9999;
while (a < 11000) {
var clip4 = _root['lanee' + a];
clip4.removeMovieClip();
removeMovieClip(clip4);
++a;
}
}
}
}
movieClip 663 {
}
movieClip 668 {
}
movieClip 674 {
}
movieClip 675 {
}
button 677 {
on (press) {
if (_root.gotcomet == true) {
_root.comet.play();
_root.comet.swapDepths(312893681263.0);
_root.cometbtn.gotoAndPlay(1);
}
}
}
movieClip 678 {
frame 800 {
stop();
}
}
instance cometbtn of movieClip 678 {
onClipEvent (enterFrame) {
if (!_root.gotcomet == true) {
this._alpha = 0;
} else {
this._alpha = 100;
}
if (_root.pausedd == true) {
this.stop();
}
}
}
button 682 {
on (press) {
if (_root.gottide == true) {
_root.tide.tide2.play();
_root.tide.swapDepths(2311312312123.0);
_root.tidebtn.gotoAndPlay(1);
}
}
}
movieClip 683 {
frame 700 {
stop();
}
}
instance tidebtn of movieClip 683 {
onClipEvent (enterFrame) {
if (!_root.gottide == true) {
this._alpha = 0;
}
if (_root.gottide == true) {
this._alpha = 100;
}
if (_root.pausedd == true) {
this.stop();
}
}
}
movieClip 686 {
}
movieClip 691 {
}
movieClip 693 {
}
movieClip 697 {
}
movieClip 700 {
}
movieClip 701 {
}
movieClip 706 {
}
movieClip 709 {
}
movieClip 711 {
}
movieClip 713 {
}
button 714 {
on (release) {
if (!_root.gotthetree == true) {
if (_root.energyNum >= 50) {
_root.placeTree = true;
_root.upgrade.play();
_root.gotthetree = true;
_root.energyNum -= 50;
_root.al = 1;
_root.messagebox.gotoAndPlay(1);
if (!_root.mute == true) {
_root.b1.start(0, 1);
}
}
}
}
}
movieClip 716 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 717 {
on (release) {
if (_root.cup == 1) {
if (_root.energyNum >= 150) {
_root.priceoflightning = 450;
_root.cup = 2;
_root.energyNum -= 150;
if (!_root.mute == true) {
_root.b1.start(0, 1);
}
} else {}
}
if (_root.cup == 2) {
if (_root.energyNum >= 450) {
_root.cup = 3;
_root.energyNum -= 450;
if (!_root.mute == true) {
_root.b1.start(0, 1);
}
} else {}
}
}
}
movieClip 719 {
frame 1 {
stop();
}
}
movieClip 720 {
frame 1 {
stop();
}
instance of movieClip 713 {
onClipEvent (release) {
if (_root.energyNum >= 200) {
_root.gottide = true;
_root.energyNum -= 200;
if (!_root.mute == true) {
_root.b1.start(0, 1);
}
}
}
}
}
movieClip 721 {
frame 1 {
stop();
}
instance of movieClip 713 {
onClipEvent (release) {
if (_root.energyNum >= 350) {
_root.gotcomet = true;
_root.energyNum -= 350;
if (!_root.mute == true) {
_root.b1.start(0, 1);
}
}
}
}
}
movieClip 723 {
}
movieClip 725 {
}
button 726 {
on (release) {
_root.menuplay = false;
_root.gotthetree = false;
_root.pausedd = false;
_root.upgrade.play();
if (_root.tidebtn._currentframe <= 699) {
_root.tidebtn.play();
}
if (_root.cometbtn._currentframe <= 799) {
_root.cometbtn.play();
}
}
}
movieClip 735 {
instance of movieClip 706 {
onClipEvent (enterFrame) {
this.lightningprice = _root.priceoflightning;
}
}
instance of movieClip 716 {
onClipEvent (enterFrame) {
if (_root.gotthetree == true) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 719 {
onClipEvent (enterFrame) {
if (_root.cup == 3) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 720 {
onClipEvent (enterFrame) {
if (_root.gottide == true) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 721 {
onClipEvent (enterFrame) {
if (_root.gotcomet == true) {
this.gotoAndStop(2);
}
}
}
}
movieClip 736 {
frame 1 {
stop();
}
frame 2 {
_root.pausedd = true;
_root.lightning.swapDepths(23456544533.0);
if (_root.gotthetree == true) {
_root.messagebox.play();
}
}
frame 16 {
stop();
_root.al = 0;
}
}
instance upgrade of movieClip 736 {
onClipEvent (enterFrame) {
if (_root.pausedd == true) {
this.swapDepths(9876543543.0);
}
}
}
movieClip 739 {
}
movieClip 740 {
}
movieClip 742 {
}
movieClip 743 {
}
movieClip 745 {
}
movieClip 746 {
}
movieClip 748 {
}
movieClip 749 {
}
movieClip 751 {
}
movieClip 752 {
}
movieClip 754 {
}
movieClip 755 {
}
movieClip 757 {
}
movieClip 758 {
}
movieClip 760 {
}
movieClip 761 {
}
movieClip 763 {
}
movieClip 764 {
}
movieClip 765 {
}
movieClip 767 {
}
movieClip 768 {
}
movieClip 769 {
frame 1 {
stop();
}
frame 2 {
if (!_root.mute == true) {
_root.wc1.start(0, 1);
}
}
frame 2 {
_root.wc.swapDepths(9876543544.0);
}
frame 46 {
_root.upgrade.play();
}
}
movieClip 771 {
}
movieClip 772 {
}
movieClip 773 {
frame 1 {
stop();
}
frame 2 {
_root.removeall = true;
}
instance of movieClip 772 {
onClipEvent (enterFrame) {
_root.black.getNextHighestDepth();
removeMovieClip(_root.bigtree3);
removeMovieClip(_root.bigtree2);
removeMovieClip(_root.bigtree1);
removeMovieClip(_root.cloud);
_root.mouse.gotoAndStop(4);
var i = 0;
while (i < 1000) {
var clip = _root['enemy' + i];
clip.removeMovieClip();
removeMovieClip(clip);
++i;
}
}
}
frame 7 {
_root.removeall = false;
_root.maintune.stop();
removeMovieClip(_root.upgrade);
}
instance of movieClip 772 {
onClipEvent (enterFrame) {
var i = 0;
while (i < 1000) {
var clip = _root['enemy' + i];
clip.removeMovieClip();
removeMovieClip(clip);
++i;
}
}
}
frame 8 {
_root.gotoAndStop('menu');
}
}
movieClip 778 {
}
movieClip 781 {
}
movieClip 785 {
}
button 786 {
on (press) {
_root.instructions.nextFrame();
}
}
button 787 {
on (release) {
_root.instructions.gotoAndStop(5);
}
}
movieClip 791 {
}
button 794 {
on (press) {
_root.instructions.prevFrame();
}
}
movieClip 796 {
frame 1 {
stop();
}
frame 4 {
stop();
}
}
instance instructions of movieClip 796 {
onClipEvent (enterFrame) {
this.swapDepths(100000);
}
}
movieClip 801 {
frame 1 {
stop();
}
}
movieClip 803 {
frame 1 {
stop();
_root.mouse.thing.gotoAndStop(2);
}
frame 2 {
_root.mouse.thing.gotoAndStop(1);
}
instance of movieClip 801 {
onClipEvent (enterFrame) {
if (_root.cup == 1) {
this.gotoAndStop(1);
}
if (_root.cup == 2) {
this.gotoAndStop(2);
}
if (_root.cup == 3) {
this.gotoAndStop(3);
}
}
}
frame 10 {
if (_root.cup == 3) {
gotoAndStop(1);
}
}
frame 20 {
if (_root.cup == 2) {
gotoAndStop(1);
}
}
}
movieClip 806 {
frame 1 {
stop();
}
}
movieClip 810 {
frame 1 {
stop();
}
frame 2 {
stop();
_root.placeTree = true;
}
frame 3 {
stop();
_root.placeTree = true;
}
frame 4 {
stop();
}
}
instance mouse of movieClip 810 {
onClipEvent (enterFrame) {
startDrag(true, false);
if (!_root.cantplace) {
if (_root.placeTree == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
}
frame 6 {
stop();
removeMovieClip(_root.bigtree3);
removeMovieClip(_root.bigtree2);
removeMovieClip(_root.bigtree1);
_root.mouse.gotoAndStop(4);
_root.maintune.stop();
removeMovieClip(_root.upgrade);
removeMovieClip(_root.mouse);
Mouse.show(true);
}
movieClip 811 {
}
movieClip 813 {
}
movieClip 815 {
}
movieClip 817 {
}
movieClip 818 {
}
movieClip 820 {
}
movieClip 822 {
frame 1 {
stop();
}
}
movieClip 825 {
frame 1 {
stop();
}
}
button 827 {
on (release) {
_root.gotoAndStop('menu');
}
}
movieClip 831 {
}
movieClip 832 {
}
frame 7 {
stop();
removeMovieClip(_root.bigtree3);
removeMovieClip(_root.bigtree2);
removeMovieClip(_root.bigtree1);
removeMovieClip(_root.cloud);
_root.mouse.gotoAndStop(4);
_root.maintune.stop();
removeMovieClip(_root.upgrade);
removeMovieClip(_root.mouse);
Mouse.show(true);
}
movieClip 837 {
}
button 839 {
on (release) {
_root.gotoAndStop(5);
if (!_root.mute == true) {
_root.maintune.start(0, 999);
}
}
}
button 840 {
on (release) {
_root.gotoAndStop('menu');
}
}
movieClip 842 {
frame 1 {
stop();
}
}
movieClip 844 {
}
movieClip 845 {
}