Frame 1
if (false) {
}
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Frame 6
if (false) {
}
Frame 9
if (false) {
}
Frame 12
if (false) {
}
Frame 13
if (false) {
}
Frame 15
stop();
gotoAndPlay (4);
Symbol 4 MovieClip [tree] Frame 1
function addbranch(rotation, position) {
var branch = new Object();
branch.segwidth = 2;
branch.seglength = (Math.random() * 10) + 10;
branch.rotation = (rotation + (Math.random() * 60)) - 30;
branch.children = new Array();
tree[position] = branch;
attachMovie("leaf", "leaf" + position, this.getNextHighestDepth(), {_rotation:(branch.rotation + (Math.random() * 180)) - 90});
var scaleleaf = ((Math.random() * 50) + 75);
eval ("leaf" + position)._xscale = scaleleaf;
eval ("leaf" + position)._yscale = scaleleaf;
}
function drawSegment(startx, starty, segment) {
tree[segment].segwidth = Math.min(10, tree[segment].segwidth * 1.0015);
tree[segment].seglength = Math.min(75, tree[segment].seglength * 1.0015);
lineStyle(tree[segment].segwidth, 7750418, 100);
moveTo(startx, starty);
var endx = (startx + (tree[segment].seglength * Math.sin(tree[segment].rotation * degreestoradians)));
var endy = (starty - (tree[segment].seglength * Math.cos(tree[segment].rotation * degreestoradians)));
lineTo(endx, endy);
if (Math.random() < 0.005) {
tree[segment].children.push(tree.length);
addbranch(tree[segment].rotation, tree.length);
if (tree[segment].children.length == 1) {
removeMovieClip("leaf" + segment);
}
}
var childpos = 0;
while (childpos < tree[segment].children.length) {
drawSegment(endx, endy, tree[segment].children[childpos]);
childpos++;
}
if (tree[segment].children.length == 0) {
eval ("leaf" + segment)._x = endx;
eval ("leaf" + segment)._y = endy;
}
}
function resettree() {
var treepos = 0;
while (treepos < tree.length) {
if (eval ("leaf" + treepos) != undefined) {
removeMovieClip("leaf" + treepos);
}
treepos++;
}
tree = [];
addbranch(0, 0);
}
degreestoradians = 0.01745329;
var tree = new Array();
addbranch(0, 0);
onEnterFrame = function () {
if (tree.length < 1000) {
clear();
drawSegment(0, 0, 0);
}
};
Symbol 44 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 53 Button
on (release) {
startMovie();
}
Symbol 55 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var _local4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * _local4;
if (_local4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
return(undefined);
}
}
dt = getTimer() - time;
time = time + dt;
frameAccum = frameAccum + dt;
var _local3 = 0;
while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) {
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
_local3++;
}
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.3333333333333;
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();
Symbol 55 MovieClip Frame 2
stop();
Symbol 64 Button
on (release) {
gotoAndPlay (4);
}
Symbol 69 Button
on (release) {
gotoAndPlay (5);
}
Symbol 75 Button
on (release) {
gotoAndPlay (6);
}
Symbol 80 Button
on (release) {
gotoAndPlay (3);
}