Frame 2
stop();
Instance of Symbol 79 MovieClip in Frame 2
on (press) {
getURL ("http://www.wardh.se", "_blank");
}
Frame 3
ballxs = 3;
ballys = 2;
weight = 80;
movespeed = 14;
live = true;
stop();
Instance of Symbol 85 MovieClip "chara" in Frame 4
onClipEvent (load) {
gravity = 3;
ys = 0;
xs = 5;
js = -25;
jump = false;
hitDot = new Sound();
hitDot.attachSound("gulp");
}
onClipEvent (enterFrame) {
ys = ys + gravity;
_y = (_y + ys);
if (_root.vanster.hitTest(this)) {
this._x = this._x + (_root.movespeed - (_root.weight / 10));
}
if (_root.hoger.hitTest(this)) {
this._x = this._x - (_root.movespeed - (_root.weight / 10));
}
while (_root.golv.hitTest(this)) {
ys = 0;
jump = false;
this._y = this._y - 1;
}
i = 0;
while (i < 15) {
if (_root["mark" + i].hitTest(this)) {
ys = 0;
while (_root["mark" + i].hitTest(this)) {
if (_y < _root["mark" + i]._y) {
jump = false;
_y = (_y - 1);
} else {
_y = (_y + 1);
}
}
}
i++;
}
i = 0;
while (i < 15) {
if (_root["box" + i].hitTest(this)) {
while (_root["box" + i].hitTest(this)) {
if (_y < _root["box" + i]._y) {
ys = 0;
jump = false;
_y = (_y - 1);
} else {
_y = (_y + 1);
}
}
}
i++;
}
if (Key.isDown(39)) {
this._x = this._x + (_root.movespeed - (_root.weight / 10));
}
if (Key.isDown(37)) {
this._x = this._x - (_root.movespeed - (_root.weight / 10));
}
if (Key.isDown(38) && (!jump)) {
ys = js;
jump = true;
}
if (this.hitTest(_root.dot) && (_root.live == true)) {
hitDot.start();
_root.weight++;
this._width = this._width + 1.2;
_root.dot._x = random(800);
_root.dot._y = random(390);
}
}
Instance of Symbol 113 MovieClip "box1" in Frame 4
onClipEvent (load) {
gravity = 3;
ys = 0;
xs = 5;
js = -25;
}
onClipEvent (enterFrame) {
ys = ys + gravity;
_y = (_y + ys);
if (this.vansterkant.hitTest(_root.chara)) {
this._x = this._x + (_root.movespeed - (_root.weight / 10));
}
if (this.hogerkant.hitTest(_root.chara)) {
this._x = this._x - (_root.movespeed - (_root.weight / 10));
}
if (_root.vanster.hitTest(this)) {
this._x = this._x + (_root.movespeed - (_root.weight / 10));
if (_root.chara.hitTest(this)) {
_root.chara._x = _root.chara._x + (_root.movespeed - (_root.weight / 10));
this._x = 400;
this.y = 275;
}
}
if (_root.hoger.hitTest(this)) {
this._x = this._x - (_root.movespeed - (_root.weight / 10));
if (_root.chara.hitTest(this)) {
_root.chara._x = _root.chara._x - (_root.movespeed - (_root.weight / 10));
this._x = 400;
this.y = 275;
}
}
while (_root.golv.hitTest(this)) {
ys = 0;
this._y = this._y - 1;
}
i = 0;
while (i < 15) {
if (_root["mark" + i].hitTest(this)) {
ys = 0;
while (_root["mark" + i].hitTest(this)) {
if (_y < _root["mark" + i]._y) {
_y = (_y - 1);
} else {
_y = (_y + 1);
}
}
}
i++;
}
}
Instance of Symbol 124 MovieClip in Frame 4
onClipEvent (load) {
this._x = random(800);
}
onClipEvent (enterFrame) {
this._y = this._y + 3;
if (_root.lineend.hitTest(this)) {
this._y = -890;
this._x = random(800);
}
}
Instance of Symbol 124 MovieClip in Frame 4
onClipEvent (load) {
this._x = random(800);
}
onClipEvent (enterFrame) {
this._y = this._y + 3;
if (_root.lineend.hitTest(this)) {
this._y = -890;
this._x = random(800);
}
}
Instance of Symbol 124 MovieClip in Frame 4
onClipEvent (load) {
this._x = random(800);
}
onClipEvent (enterFrame) {
this._y = this._y + 5;
if (_root.lineend.hitTest(this)) {
this._y = -890;
this._x = random(800);
}
}
Instance of Symbol 124 MovieClip in Frame 4
onClipEvent (load) {
this._x = random(800);
}
onClipEvent (enterFrame) {
this._y = this._y + 2;
if (_root.lineend.hitTest(this)) {
this._y = -890;
this._x = random(800);
}
}
Instance of Symbol 124 MovieClip in Frame 4
onClipEvent (load) {
this._x = random(800);
}
onClipEvent (enterFrame) {
this._y = this._y + 3;
if (_root.lineend.hitTest(this)) {
this._y = -890;
this._x = random(800);
}
}
Instance of Symbol 124 MovieClip in Frame 4
onClipEvent (load) {
this._x = random(800);
}
onClipEvent (enterFrame) {
this._y = this._y + 3;
if (_root.lineend.hitTest(this)) {
this._y = -890;
this._x = random(800);
}
}
Instance of Symbol 126 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.weight > 95) {
this._y = this._y + 1;
if (_root.chara.hitTest(this)) {
_root.movespeed = _root.movespeed + 2;
this._x = this._x + 100000;
}
if (_root.lineend.hitTest(this)) {
this._y = -890;
this._x = random(800);
}
}
}
Instance of Symbol 126 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.weight > 120) {
this._y = this._y + 1;
if (_root.chara.hitTest(this)) {
_root.movespeed = _root.movespeed + 2;
this._x = this._x + 100000;
}
if (_root.lineend.hitTest(this)) {
this._y = -890;
this._x = random(800);
}
}
}
Instance of Symbol 126 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.weight > 140) {
this._y = this._y + 1;
if (_root.chara.hitTest(this)) {
_root.movespeed = _root.movespeed + 2;
this._x = this._x + 100000;
}
if (_root.lineend.hitTest(this)) {
this._y = -890;
this._x = random(800);
}
}
}
Instance of Symbol 128 MovieClip "attack" in Frame 4
onClipEvent (enterFrame) {
_x = (_x + _root.ballxs);
_y = (_y + _root.ballys);
if (this.hitTest(_root.mark3) or this.hitTest(_root.golv)) {
_root.ballys = -_root.ballys;
}
if (this.hitTest(_root.hoger) or this.hitTest(_root.vanster)) {
_root.ballxs = -_root.ballxs;
}
if (_root.chara.hitTest(_x, _y, true) && (_root.live == true)) {
_root.chara.gotoAndPlay(2);
_root.live = false;
}
}
Symbol 48 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 50 MovieClip Frame 40
stop();
Symbol 76 Button
on (release) {
startMovie();
}
Symbol 77 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 79 MovieClip Frame 181
_root.gotoAndStop(3);
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
_root.live = false;
Symbol 85 MovieClip Frame 7
_root.gotoAndStop(5);
Symbol 95 Button
on (release) {
gotoAndStop (4);
}
Instance of Symbol 123 MovieClip in Symbol 124 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.chara.hitTest(this) && (_root.live == true)) {
_root.chara.gotoAndPlay(2);
_root.live = false;
}
}
Symbol 133 Button
on (release) {
gotoAndStop (3);
}