Frame 1
_root.vapen = 1;
_quality = "LOW";
_root.as = 16;
_root.damage = 1;
_root.teller = 0;
_root.sekunder = 0;
_root.minutter = 0;
_root.bd = 1400;
_root.kuler = 200;
_root.skrik = 1;
_root.basehealth = 10;
_root.dual = 0;
_root.begynn = 0;
_root.score = 0;
_root.sigjen = 40;
_root.sorry = 0;
_root.buy = 0;
Frame 281
if (_root.sorry == 1) {
gotoAndPlay (283);
}
if (_root.begynn == 0) {
_root.begynn = 1;
tellTarget (_root.bakgrunn.tanks) {
_x = (Math.round(Math.random() * 500) - 300);
_y = (Math.round(Math.random() * 150) + 450);
health = 5 + (_root.minutter * 5);
gotoAndPlay (1);
dead = 0;
fart = Math.round(Math.random() * 2) + 1;
};
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
_x = (Math.round(Math.random() * 500) - 300);
_y = (Math.round(Math.random() * 150) + 450);
health = 1 + _root.minutter;
gotoAndPlay (1);
dead = 0;
fart = Math.round(Math.random() * 5) + 2;
_root.sorry = 0;
_root.ok = 1;
};
i++;
}
}
teller = teller + 1;
if (teller == 24) {
teller = 1;
sekunder = sekunder + 1;
}
if (sekunder == 31) {
sekunder = 0;
minutter = minutter + 1;
}
if (sekunder == 30) {
_root.kuler = _root.kuler + 4;
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (dead == 1) {
_x = (Math.round(Math.random() * 500) - 300);
_y = (Math.round(Math.random() * 150) + 450);
health = 1 + _root.minutter;
gotoAndPlay (1);
dead = 0;
fart = Math.round(Math.random() * 5) + 2;
}
};
i++;
}
tellTarget (_root.bakgrunn.tanks) {
if (dead == 1) {
_x = (Math.round(Math.random() * 500) - 300);
_y = (Math.round(Math.random() * 150) + 450);
health = 5 + (_root.minutter * 5);
gotoAndPlay (1);
dead = 0;
fart = Math.round(Math.random() * 2) + 1;
}
};
}
_root.sigjen = 30 - sekunder;
if (ok != 0) {
i = 0;
while (i < 16) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (dead != 1) {
_x = (_x + fart);
if (_x >= _root.bd) {
dead = 1;
gotoAndPlay (17);
_root.basehealth = _root.basehealth - 1;
}
}
};
i++;
}
if (_root.basehealth <= 0) {
_root.basehealth = 0;
_root.sorry = 1;
}
if (sorry == 1) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (9);
};
ok = 0;
}
}
if (_root.basehealth == 9) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (2);
};
}
if (_root.basehealth == 8) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (2);
};
}
if (_root.basehealth == 7) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (2);
};
}
if (_root.basehealth == 6) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (3);
};
}
if (_root.basehealth == 5) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (4);
};
}
if (_root.basehealth == 4) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (5);
};
}
if (_root.basehealth == 3) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (6);
};
}
if (_root.basehealth == 2) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (7);
};
}
if (_root.basehealth == 1) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (8);
};
}
if (_root.basehealth == 0) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (9);
};
}
tellTarget (_root.bakgrunn.tanks) {
if (dead != 1) {
_x = (_x + 2);
if (_x >= (_root.bd - 100)) {
dead = 1;
gotoAndPlay (12);
_root.basehealth = _root.basehealth - 1;
tellTarget (_root.rodt) {
gotoAndPlay (2);
};
}
}
};
Instance of Symbol 19 MovieClip in Frame 281
on (press) {
if (_root.kuler >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(_root.sikte.treff) == true) {
tellTarget (_root.skriket) {
gotoAndPlay (20);
};
health = health - _root.damage;
if (dead != 1) {
if (health <= 0) {
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
}
}
}
};
i++;
}
} else {
tellTarget (_root.gun1) {
gotoAndPlay (11);
};
tellTarget (_root.gun2) {
gotoAndPlay (11);
};
}
}
on (press) {
if (_root.kuler >= 1) {
if (_root.vapen == 1) {
_root.vapen = 2;
_root.kuler = _root.kuler - 1;
tellTarget (_root.gun1) {
gotoAndPlay (2);
};
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
if (_root.dual == 1) {
} else {
return(true);
}
}
if (_root.vapen == 2) {
_root.vapen = 1;
_root.kuler = _root.kuler - 1;
tellTarget (_root.gun2) {
gotoAndPlay (2);
};
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
} else {
tellTarget (_root.gun1) {
gotoAndPlay (11);
};
tellTarget (_root.gun2) {
gotoAndPlay (11);
};
}
}
Instance of Symbol 90 MovieClip "bakgrunn" in Frame 281
on (press) {
if (_root.kuler >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(_root.sikte.treff) == true) {
tellTarget (_root.bakgrunn.blodes) {
gotoAndPlay (1);
_x = this._x;
_y = this._y;
};
tellTarget (_root.skriket) {
gotoAndPlay (20);
_root.score = _root.score + 1;
};
if (_root.dual == 0) {
health = health - _root.damage;
}
if (_root.dual == 1) {
health = health - (_root.damage * 2);
}
if (dead != 1) {
if (health <= 0) {
_root.score = _root.score + 3;
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
}
}
}
};
i++;
}
} else {
tellTarget (_root.gun1) {
gotoAndPlay (11);
};
tellTarget (_root.gun2) {
gotoAndPlay (11);
};
}
}
onClipEvent (mouseMove) {
if (_root.buy == 0) {
_x = (_root._xmouse - (_root._xmouse * 2.5));
_y = (_root._ymouse - (_root._ymouse * 2.5));
Mouse.hide();
} else {
Mouse.show();
}
}
on (press) {
if (_root.kuler >= 1) {
if (_root.vapen == 1) {
_root.vapen = 2;
_root.kuler = _root.kuler - 1;
tellTarget (_root.gun1) {
gotoAndPlay (2);
};
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
if (_root.dual == 1) {
} else {
return(true);
}
}
if (_root.vapen == 2) {
_root.vapen = 1;
_root.kuler = _root.kuler - 1;
tellTarget (_root.gun2) {
gotoAndPlay (2);
};
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
} else {
tellTarget (_root.gun1) {
gotoAndPlay (11);
};
tellTarget (_root.gun2) {
gotoAndPlay (11);
};
}
}
on (keyPress "<Space>") {
if (_root.buy == 0) {
_root.buy = 1;
tellTarget (_root.buyscreen) {
gotoAndPlay (2);
};
return(true);
}
if (_root.buy == 1) {
_root.buy = 0;
tellTarget (_root.buyscreen) {
gotoAndPlay (11);
};
}
}
on (press) {
tellTarget (_root.bakgrunn.tanks) {
if (hitTest(_root.sikte.treff) == true) {
if (dead != 1) {
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + 1;
if (_root.dual == 0) {
health = health - _root.damage;
}
if (_root.dual == 1) {
health = health - (_root.damage * 2);
}
if (dead != 1) {
if (health <= 0) {
_root.score = _root.score + 3;
gotoAndPlay (2);
dead = 1;
}
}
}
};
}
Instance of Symbol 107 MovieClip in Frame 281
onClipEvent (mouseMove) {
if (_root.buy != 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
Frame 282
gotoAndPlay (281);
Instance of Symbol 90 MovieClip "bakgrunn" in Frame 283
on (press) {
if (_root.kuler >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(_root.sikte.treff) == true) {
tellTarget (_root.skriket) {
gotoAndPlay (20);
};
if (_root.dual == 0) {
health = health - _root.damage;
}
if (_root.dual == 1) {
health = health - (_root.damage * 2);
}
if (dead != 1) {
if (health <= 0) {
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
}
}
}
};
i++;
}
} else {
tellTarget (_root.gun1) {
gotoAndPlay (11);
};
tellTarget (_root.gun2) {
gotoAndPlay (11);
};
}
}
onClipEvent (mouseMove) {
_x = (_root._xmouse - (_root._xmouse * 2.5));
_y = (_root._ymouse - (_root._ymouse * 2.5));
Mouse.hide();
}
on (press) {
if (_root.kuler >= 1) {
if (_root.vapen == 1) {
_root.vapen = 2;
_root.kuler = _root.kuler - 1;
tellTarget (_root.gun1) {
gotoAndPlay (2);
};
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
if (_root.dual == 1) {
} else {
return(true);
}
}
if (_root.vapen == 2) {
_root.vapen = 1;
_root.kuler = _root.kuler - 1;
tellTarget (_root.gun2) {
gotoAndPlay (2);
};
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
} else {
tellTarget (_root.gun1) {
gotoAndPlay (11);
};
tellTarget (_root.gun2) {
gotoAndPlay (11);
};
}
}
Instance of Symbol 107 MovieClip in Frame 283
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 305
gotoAndPlay (306);
Symbol 11 Button
on (release) {
_root.play();
}
Symbol 12 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 12 MovieClip Frame 2
gotoAndPlay (1);
Symbol 38 MovieClip Frame 1
if (_root.basehealth >= 10) {
stop();
}
Symbol 38 MovieClip Frame 2
if (_root.basehealth >= 7) {
stop();
}
Symbol 38 MovieClip Frame 3
if (_root.basehealth >= 6) {
stop();
}
Symbol 38 MovieClip Frame 4
if (_root.basehealth >= 5) {
stop();
}
Symbol 38 MovieClip Frame 5
if (_root.basehealth >= 4) {
stop();
}
Symbol 38 MovieClip Frame 6
if (_root.basehealth >= 3) {
stop();
}
Symbol 38 MovieClip Frame 7
if (_root.basehealth >= 2) {
stop();
}
Symbol 38 MovieClip Frame 8
if (_root.basehealth >= 1) {
stop();
}
Symbol 38 MovieClip Frame 30
Symbol 38 MovieClip Frame 31
stop();
Symbol 46 MovieClip Frame 1
if (_parent.dead == 1) {
stop();
}
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 16
stop();
Symbol 69 MovieClip Frame 17
tellTarget (_root.rodt) {
gotoAndPlay (2);
};
Symbol 69 MovieClip Frame 29
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 11
stop();
Symbol 85 MovieClip Frame 16
stop();
Symbol 89 MovieClip Frame 11
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 10
gotoAndPlay (1);
Symbol 98 MovieClip Frame 20
gotoAndPlay (1);
Symbol 118 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 2
stop();
Symbol 138 MovieClip Frame 3
stop();
Symbol 138 MovieClip Frame 4
stop();
Symbol 138 MovieClip Frame 5
stop();
Symbol 138 MovieClip Frame 6
stop();
Symbol 138 MovieClip Frame 7
stop();
Symbol 138 MovieClip Frame 8
stop();
Symbol 138 MovieClip Frame 9
stop();
Symbol 138 MovieClip Frame 10
stop();
Symbol 138 MovieClip Frame 11
stop();
Symbol 138 MovieClip Frame 12
stop();
Symbol 138 MovieClip Frame 13
stop();
Symbol 138 MovieClip Frame 14
stop();
Symbol 138 MovieClip Frame 20
stop();
Symbol 145 MovieClip Frame 1
if (_root.dual != 1) {
stop();
} else {
gotoAndPlay (9);
}
Symbol 145 MovieClip Frame 9
if (_root.dual == 1) {
stop();
}
Symbol 149 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 1
stop();
Instance of Symbol 145 MovieClip "knapp1" in Symbol 150 MovieClip Frame 2
on (press) {
if (_root.dual == 0) {
if (_root.score >= 600) {
_root.score = _root.score - 600;
_root.dual = 1;
gotoAndPlay (2);
}
} else {
_root.score = _root.score + 400;
_root.dual = 0;
gotoAndPlay (1);
}
}
Instance of Symbol 149 MovieClip in Symbol 150 MovieClip Frame 2
on (press) {
if (_root.score >= 100) {
_root.score = _root.score - 100;
_root.kuler = _root.kuler + 100;
gotoAndPlay (2);
}
}
Symbol 150 MovieClip Frame 10
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 1
stop();