Frame 1
score = 0;
time = 10;
ticks = 0;
fps = 40;
addtime = 5;
_root.onEnterFrame = function () {
fscore = score + (time * 25);
if (_currentframe == 7) {
ticks++;
if (time <= 0) {
heldscore = fscore;
_root.gotoAndStop(6);
}
if (ticks == fps) {
time--;
ticks = 0;
}
if (_root.road.hitTest(_root.tank._x, _root.tank._y, true)) {
score = score + Math.round(_root.tank.speed / 10);
} else {
score = score - (Math.round(_root.tank.speed / 10) * 4);
}
}
};
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
Frame 2
if (_root.percentLoaded == 100) {
gotoAndStop (3);
} else {
gotoAndPlay (1);
}
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Frame 6
myname.text = "-Insert Name-";
Instance of Symbol 105 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank._x, _root.tank._y, true)) {
_root.heldscore = (_root.fscore = _root.score + (_root.time * 25));
_root.gotoAndStop(6);
}
}
Instance of Symbol 105 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank._x, _root.tank._y, true)) {
_root.heldscore = (_root.fscore = _root.score + (_root.time * 25));
_root.gotoAndStop(6);
}
}
Instance of Symbol 105 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank._x, _root.tank._y, true)) {
_root.heldscore = (_root.fscore = _root.score + (_root.time * 25));
_root.gotoAndStop(6);
}
}
Instance of Symbol 105 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank._x, _root.tank._y, true)) {
_root.heldscore = (_root.fscore = _root.score + (_root.time * 25));
_root.gotoAndStop(6);
}
}
Instance of Symbol 105 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank._x, _root.tank._y, true)) {
_root.heldscore = (_root.fscore = _root.score + (_root.time * 25));
_root.gotoAndStop(6);
}
}
Instance of Symbol 105 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank._x, _root.tank._y, true)) {
_root.heldscore = (_root.fscore = _root.score + (_root.time * 25));
_root.gotoAndStop(6);
}
}
Instance of Symbol 109 MovieClip in Frame 7
onClipEvent (enterFrame) {
_x = _root.tank._x;
_y = _root.tank._y;
}
Instance of Symbol 119 MovieClip in Frame 7
onClipEvent (enterFrame) {
_x = (_root.tank._x + 25);
_y = (_root.tank._y - 25);
}
Instance of Symbol 122 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.tank.hitTest(this)) {
this.play();
}
}
Instance of Symbol 126 MovieClip "tank" in Frame 7
onClipEvent (load) {
spd = 10;
maxspeed = 300;
}
onClipEvent (enterFrame) {
if (Key.isDown(1)) {
_y = (_y + ((_root._ymouse - _y) / spd));
_x = (_x + ((_root._xmouse - _x) / spd));
ydist = _root._ymouse - _y;
xdist = _root._xmouse - _x;
speed = Math.round(Math.sqrt((xdist * xdist) + (ydist * ydist)) * 5);
} else {
speed = 0;
}
}
onClipEvent (mouseMove) {
Xd = _root._xmouse - _x;
Yd = _root._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
}
Instance of Symbol 122 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.tank.hitTest(this)) {
this.play();
}
}
Instance of Symbol 122 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.tank.hitTest(this)) {
this.play();
}
}
Instance of Symbol 122 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.tank.hitTest(this)) {
this.play();
}
}
Instance of Symbol 122 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.tank.hitTest(this)) {
this.play();
}
}
Instance of Symbol 122 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.tank.hitTest(this)) {
this.play();
}
}
Instance of Symbol 122 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.tank.hitTest(this)) {
this.play();
}
}
Instance of Symbol 122 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.tank.hitTest(this)) {
this.play();
}
}
Instance of Symbol 122 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.tank.hitTest(this)) {
this.play();
}
}
Instance of Symbol 122 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.tank.hitTest(this)) {
this.play();
}
}
Symbol 18 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 25 MovieClip Frame 81
_root.play();
_root.play();
Symbol 45 Button
on (release) {
_root.gotoAndStop(7);
}
Symbol 53 Button
on (release) {
_root.gotoAndStop(5);
}
Symbol 61 Button
on (release) {
getURL ("http://bot.armorstudios.com/highscores.php?id=173&p=1", "_blank");
}
Symbol 69 Button
on (release) {
getURL ("http://armorgame.com", "_blank");
}
Symbol 81 Button
on (release) {
_root.gotoAndStop(4);
_root.stopAllSounds();
}
Symbol 89 Button
on (release) {
pldm128948 = new LoadVars();
pldm128948.namevar = myname;
pldm128948.scorevar = _root.heldscore;
pldm128948.mid = 173;
pldm128948.pro = "30fdec73f395aaec13bbe56565be4353";
pldm128948.sendAndLoad("http://bot.armorstudios.com/hs.php", pldm128948, "POST");
getURL ("http://bot.armorstudios.com/highscores.php?id=173&p=1", "_blank");
_root.score = 0;
_root.time = 10;
_root.ticks = 0;
_root.fps = 40;
_root.addtime = 5;
stopAllSounds();
_root.gotoAndStop(3);
}
Instance of Symbol 96 MovieClip "endlv" in Symbol 97 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.tank._x, _root.tank._y, true)) {
_root.heldscore = (_root.fscore = _root.score + (_root.time * 25));
_root.gotoAndStop(6);
}
}
Symbol 109 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
parentColor.setTransform(camColor.getTransform());
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Instance of Symbol 118 MovieClip in Symbol 119 MovieClip Frame 1
onClipEvent (enterFrame) {
this.bar._rotation = (_root.tank.speed / _root.tank.maxspeed) * 360;
}
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 2
_root.time = _root.time + _root.addtime;
Symbol 122 MovieClip Frame 18
stop();
_root.time = _root.time + _root.addtime;