Frame 1
stop();
_quality = "HIGH";
_root.pb._visible = false;
loaded = false;
onEnterFrame = function () {
if (_root._currentframe == 1) {
_root.lb._xscale = (_root.getBytesTotal() / _root.getBytesLoaded()) * 100;
if (_root.getBytesLoaded() > (_root.getBytesTotal() - 10)) {
_root.pb._visible = true;
} else {
_root.pb._visible = false;
}
}
};
Frame 2
stop();
Instance of Symbol 39 MovieClip in Frame 2
onClipEvent (load) {
_quality = "HIGH";
}
Frame 3
stop();
Frame 4
function duplicate(toDuplicate, lvl) {
_root.level[lvl]++;
duplicateMovieClip (toDuplicate, "obj" + _root.level[lvl], _root.level[lvl]);
return(eval ("_root.obj" + _root.level[lvl]));
}
function playNewGame() {
_root.gotoAndStop(5);
}
function playSound(snd) {
foundSound = false;
playingNum = 0;
i = 0;
while (i < 10) {
if ((soundChannels[i].position == soundChannels[i].duration) || (soundChannels[i].position == 0)) {
soundChannels[i].snd = "";
}
if (soundChannels[i].snd == snd) {
playingNum++;
}
i++;
}
var _local2;
if (playingNum < 3) {
soundChannels[lastSound].snd = snd;
_local2 = soundChannels[lastSound++];
if (lastSound > 9) {
lastSound = 0;
}
_local2.attachSound(snd);
_local2.start(0, 1);
}
}
function callDialogue(num) {
if (!_root.isDialogue) {
dl = _root.duplicate(_root.dlg, 0);
dl._x = 320 - (dl._width / 2);
dl._y = 240 - (dl._height / 2);
dl.gotoAndStop(num);
_root.isDialogue = true;
}
}
stop();
isDialogue = false;
if (useSFX == undefined) {
useSFX = true;
}
if (useMusic == undefined) {
useMusic = true;
}
level = new Array();
level[0] = 1000;
_quality = "LOW";
Mouse.show();
mtxt = "MUSIC - On";
stxt = "SOUND - On";
qtxt = "QUALITY - Low";
soundChannels = new Array();
lastSound = 0;
i = 0;
while (i < 10) {
soundChannels[i] = new Sound();
soundChannels[i].snd = "";
i++;
}
world = 0;
chp = 0;
mnum = 0;
music = new Sound();
music.onSoundComplete = function () {
music.stop();
if (_root._currentframe == 6) {
((mnum == 3) ? ((mnum = mnum - 2)) : (mnum++));
} else if (_root._currentframe > 3) {
mnum = 0;
} else {
mnum = -1;
}
music.attachSound("mus" + mnum);
music.start(0, 1);
};
music.onSoundComplete();
Instance of Symbol 101 MovieClip in Frame 4
onClipEvent (load) {
timer = 20;
_x = -20;
_y = -20;
_alpha = 100;
}
onClipEvent (enterFrame) {
if (timer > 0) {
_alpha = (_alpha - 5);
timer--;
} else {
_y = -600;
}
}
Frame 5
stop();
victory = true;
stext = "Megatank: Beta";
tbox = new Array("Defeated.", "Welcome to the beta-version of Megatank. Basic controls are Move with WASD, aim and shoot with the mouse. Destroy enemies to collect powerups, which give you weapons, armor and speed. Bare in mind that this is only the beta of the project; Didn't have enough time to put out the final project for the Armor Games contest. Try to work around the glitches, and Enjoy.", "World 2", "World 3", "World 4", "World 5");
txt = tbox[(victory ? (_root.world + 1) : 0)];
Frame 6
function gotoMenu() {
end = true;
Mouse.show();
_root.gotoAndStop(4);
}
function duplicate(toDuplicate, lvl) {
_root.level[lvl]++;
duplicateMovieClip (toDuplicate, "obj" + _root.level[lvl], _root.level[lvl]);
return(eval ("_root.obj" + _root.level[lvl]));
}
function makeJunk(dense) {
i = 0;
while (i < dense) {
spawn("junk", (Math.random() * 850) + _root.bounds.left, (Math.random() * 850) + _root.square[k], _root.world + 1, Math.ceil(Math.random() * 3));
i++;
}
}
function pause() {
if (!_root.paused) {
_root.paused = true;
txt = "Resume";
} else {
_root.paused = false;
txt = "Pause";
}
}
function spawn(type, x, y, arg1, arg2, arg3) {
if (type == "speeder") {
clip = _root.duplicate(_root.etank, 1);
clip.fac = arg1;
_root.targets[_root.targets.length] = clip;
} else if (type == "missileCrawler") {
clip = _root.duplicate(_root.missileCrawler, 1);
clip.fac = arg1;
_root.targets[_root.targets.length] = clip;
clip.gotoAndStop(arg1);
} else if (type == "minelayer") {
clip = _root.duplicate(_root.minelayer, 1);
clip.fac = arg1;
_root.targets[_root.targets.length] = clip;
} else if (type == "jet") {
clip = _root.duplicate(_root.jet, 2);
} else if (type == "gjet") {
clip = _root.duplicate(_root.gjet, 2);
} else if (type == "junk") {
clip = _root.duplicate(_root.junk, 1);
clip.gotoAndStop(((arg1 - 1) * 3) + arg2);
clip._rotation = Math.random() * 360;
_root.targets[_root.targets.length] = clip;
} else if (type == "factory") {
clip = _root.duplicate(_root.factory, 1);
_root.targets[_root.targets.length] = clip;
clip.unit = arg1;
clip.max = arg2;
} else if (type == "turret") {
clip = _root.duplicate(_root.turret, 1);
_root.targets[_root.targets.length] = clip;
if (arg1 == "laser") {
clip.gotoAndStop(1);
} else if (arg1 == "rocket") {
clip.gotoAndStop(2);
} else if (arg1 == "beam") {
clip.gotoAndStop(3);
}
clip.type = arg1;
} else if (type == "boss") {
if (_root.world == 0) {
clip = _root.duplicate(_root["boss" + (_root.world + 1)], 1);
_root.targets[_root.targets.length] = clip;
} else if (_root.world == 1) {
clip = _root.duplicate(_root["boss" + (_root.world + 1)], 1);
i = 0;
while (i < 8) {
_root.targets[_root.targets.length] = clip["p" + i];
i++;
}
}
} else if (type == "checkpoint") {
clip = _root.duplicate(_root.checkpoint, 3);
clip.chp = arg1;
}
clip._x = x;
clip._y = y;
clip.exists = true;
return(clip);
}
function layWorld() {
i = 0;
while (i < 30) {
b = _root.duplicate(_root.bg, 3);
b._x = 0;
b._y = _root.square[i];
b.gotoAndStop((_root.world * 30) + 1);
b.num = i + 1;
b.exists = true;
i++;
}
}
stop();
music.onSoundComplete();
end = false;
menuTimer = -1;
umax = 8;
level = new Array(1000, 100000, 10000000, 0, 5000);
oldPos = new Array(0, 0);
newPos = new Array(0, 0);
square = new Array();
i = 0;
while (i < 30) {
square[i] = 960 * i;
i++;
}
t = getTimer();
FPS = 0;
useTarget = true;
useTargetText = "Auto-Targeting On";
ktimer = 0;
lst = new Object();
Key.addListener(lst);
lst.onKeyDown = function () {
if (Key.isDown(32)) {
_root.pause();
}
};
onEnterFrame = function () {
if ((_currentframe == 6) && (!_root.paused)) {
if (level[0] > 2000) {
level[0] = level[0] - 1000;
}
if (menuTimer > 0) {
menuTimer--;
}
if (menuTimer == 0) {
gotoMenu();
}
if (windy > 3) {
windy = windy - 0.3;
} else if (windy < -3) {
windy = windy + 0.3;
} else {
windy = windy + ((Math.random() * 0.1) - 0.05);
}
if (windx > 3) {
windx = windx - 0.3;
} else if (windx < -3) {
windx = windx + 0.3;
} else {
windx = windx + ((Math.random() * 0.1) - 0.05);
}
if (Key.isDown(77) && (ktimer == 0)) {
_root.music.onSoundComplete();
ktimer = 10;
}
if (ktimer > 0) {
ktimer--;
}
_root.bounds.top = _root.bounds.top + _root.yc;
_root.bounds.bottom = _root.bounds.bottom + _root.yc;
_root.bounds.left = _root.bounds.left + _root.xc;
_root.bounds.right = _root.bounds.right + _root.xc;
xc = oldPos[0] - newPos[0];
yc = oldPos[1] - newPos[1];
FPS = Math.round(1000 / (getTimer() - t));
t = getTimer();
}
};
targets = new Array(_root.tank);
gfx = 0;
xc = 0;
yc = 0;
windx = 0;
windy = 0;
control = new Array();
control.up = 87;
control.down = 83;
control.left = 65;
control.right = 68;
bounds = new Array();
bounds.top = 0;
bounds.bottom = 28800;
bounds.left = 0;
bounds.right = 960;
bounds.bottom = bounds.bottom - (((_root.chp == 0) ? 0 : (((_root.chp == 1) ? 9 : (((_root.chp == 2) ? 17 : 25))))) * 960);
weapon = new Array();
layWorld();
htest = 0;
_quality = "LOW";
paused = false;
Instance of Symbol 159 MovieClip "bg" in Frame 6
onClipEvent (load) {
function loadMap() {
units = new Array();
i = 0;
while (i < toSpawn.length) {
if (toSpawn[i].unit == "factory") {
units[units.length] = _root.spawn("factory", toSpawn[i]._x + _x, toSpawn[i]._y + _y, toSpawn[i].u, toSpawn[i].max);
} else if (toSpawn[i].unit == "jet") {
units[units.length] = _root.spawn("jet", toSpawn[i]._x + _x, toSpawn[i]._y + _y);
} else if (toSpawn[i].unit == "gjet") {
units[units.length] = _root.spawn("gjet", toSpawn[i]._x + _x, toSpawn[i]._y + _y);
} else if (toSpawn[i].unit == "turret") {
units[units.length] = _root.spawn("turret", toSpawn[i]._x + _x, toSpawn[i]._y + _y, toSpawn[i].t);
} else if (toSpawn[i].unit == "boss") {
units[units.length] = _root.spawn("boss", toSpawn[i]._x + _x, toSpawn[i]._y + _y);
} else {
units[units.length] = _root.spawn(toSpawn[i].unit, toSpawn[i]._x + _x, toSpawn[i]._y + _y);
}
i++;
}
loaded = true;
_visible = true;
}
loaded = false;
toSpawn = new Array();
gotoAndStop((30 - (_y / 960)) + (_root.world * 30));
life = 0;
}
onClipEvent (enterFrame) {
if ((exists && (life > 0)) && (!_root.paused)) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
if (((_root.tank._y > (_y + 1440)) || (_root.tank._y < (_y - 480))) && (loaded)) {
if (_root.tank._y < (_y - 480)) {
_root.bounds.bottom = _root.bounds.bottom - 960;
this.removeMovieClip();
}
} else if (((_root.tank._y < (_y + 1440)) && (_root.tank._y > (_y - 480))) && (!loaded)) {
loadMap();
}
}
if (life < 2) {
life++;
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 144 MovieClip "checkpoint" in Frame 6
onClipEvent (load) {
fadeTimer = -1;
}
onClipEvent (enterFrame) {
if (exists && (!_root.paused)) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
if (!_root.saved) {
if (this.hitTest(_root.tank)) {
_root.save(_root.world, chp);
fadeTimer = 40;
}
}
if (fadeTimer > 0) {
fadeTimer--;
_alpha = (_alpha - 2.5);
}
if (fadeTimer == 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 210 MovieClip "tank" in Frame 6
onClipEvent (load) {
function detonate() {
this.swapDepths(3000);
_root.menuTimer = 100;
clip = _root.duplicate(_root.eexp, 1);
clip._x = _x;
clip._y = _y;
clip._rotation = Math.random() * 360;
clip.exists = true;
this.removeMovieClip();
}
function setStatus() {
i = 0;
while (i < gParts.length) {
gParts[i].gotoAndStop(5 - Math.floor(stat.health / 20));
i++;
}
stat.speed = (3 + stat.speedLevel) * 2;
}
function makeSmoke() {
if (stat.smokeTimer == 0) {
if (stat.health < 60) {
if (stat.health < 40) {
if (stat.health < 20) {
clip = _root.duplicate(_root.smoke, 1);
clip._x = _x - 16;
clip._y = _y + 8;
clip._alpha = (Math.random() * 20) + 80;
clip._rotation = Math.random() * 360;
clip.exists = true;
}
clip = _root.duplicate(_root.smoke, 1);
clip._x = _x + 12;
clip._y = _y + 8;
clip._alpha = (Math.random() * 20) + 80;
clip._rotation = Math.random() * 360;
clip.exists = true;
}
clip = _root.duplicate(_root.smoke, 1);
clip._x = _x + 3;
clip._y = _y + -10;
clip._alpha = 80;
clip.exists = true;
stat.smokeTimer = 5;
}
} else {
stat.smokeTimer--;
}
}
function fire() {
if (stat.weaponTimer == 0) {
reload = 0;
rot = new Array();
num = 1;
dmg = 3;
hit = 1;
spl = 0;
cost = 0;
spread = 40;
if (stat.weapon == "laser") {
_root.playSound("las2");
if ((stat.weaponLevel == 1) || (stat.weaponLevel == 3)) {
reload = 14;
} else {
reload = 8;
}
if ((stat.weaponLevel == 3) || (stat.weaponLevel == 4)) {
num = 3;
rot = new Array((-spread) / 2, 0, spread / 2);
dmg = 6;
} else {
num = 1;
rot = new Array();
rot[0] = 0;
}
if (stat.weaponLevel < 5) {
cost = Math.round(stat.weaponLevel * 1.5);
} else {
cost = 1.5;
}
} else if (stat.weapon == "rocket") {
_root.playSound("msl");
if (stat.weaponLevel < 2) {
num = 1;
rot[0] = 0;
} else if (stat.weaponLevel < 4) {
num = 3;
rot = new Array((-spread) / 2, 0, spread / 2);
} else {
num = 5;
rot = new Array(-spread, (-spread) / 2, 0, spread / 2, spread);
}
dmg = 3;
reload = 20;
if (stat.weaponLevel == 1) {
dmg = 6;
} else if (stat.weaponLevel < 3) {
hit = 1;
} else if (stat.weaponLevel < 5) {
hit = 2;
} else {
hit = 3;
}
cost = (stat.weaponLevel * 7) - 7;
} else if (stat.weapon == "cannon") {
reload = 30;
if (stat.weaponLevel == 1) {
hit = 1;
dmg = 10;
spl = 0;
cost = 0;
} else if (stat.weaponLevel == 2) {
hit = 2;
dmg = 10;
spl = 5;
cost = 7;
} else if ((stat.weaponLevel == 3) || (stat.weaponLevel == 4)) {
hit = 3;
dmg = 20;
spl = 10;
cost = 15 + ((stat.weaponLevel - 3) * 5);
} else if (stat.weaponLevel == 5) {
hit = 4;
dmg = 30;
spl = 15;
reload = 40;
cost = 50;
}
if (stat.weaponLevel != 4) {
rot[0] = 0;
num = 1;
} else {
rot = new Array((-spread) / 2, 0, spread / 2);
num = 3;
}
}
if (!((stat.weapon == "laser") && (stat.weaponLevel == 5))) {
i = 0;
while (i < num) {
p = _root.duplicate(_root.projectile, 1);
p._x = turret.point.point.x;
p._y = turret.point.point.y;
p._rotation = turret._rotation + rot[i];
if (stat.weapon == "laser") {
p.gotoAndStop(1);
p.typ = new Object({speed:20, damage:dmg, life:20, seek:0, hit:2});
} else if (stat.weapon == "rocket") {
p.gotoAndStop(hit + 1);
p.typ = new Object({speed:12, damage:dmg, life:20 + (stat.weaponLevel * 5), seek:stat.weaponLevel * 2, hit:hit});
} else if (stat.weapon == "cannon") {
p.gotoAndStop(hit + 4);
p.typ = new Object({speed:12, damage:dmg, life:30, seek:0, hit:stat.weaponLevel, splash:spl});
}
p.typ.el = stat.weapon;
p.exists = true;
i++;
}
} else {
reload = 1;
p = _root.duplicate(_root.beam, 1);
p._height = 500;
p._x = turret.point.point.x;
p._y = turret.point.point.y;
p._rotation = turret._rotation;
p.exists = true;
}
if ((_root.gfx > 1) && (!((stat.weapon == "laser") && (stat.weaponLevel == 5)))) {
l = _root.duplicate(_root.launch, 1);
l._rotation = turret._rotation;
l._x = turret.point.point.x;
l._y = turret.point.point.y;
l.exists = true;
turret.gotoAndPlay(2);
}
stat.weaponEnergy = stat.weaponEnergy - cost;
stat.weaponTimer = reload;
}
}
function mov(spd) {
if (spd > 0) {
momentum = momentum + ((spd - momentum) / 5);
} else {
momentum = momentum + ((spd - momentum) / 2);
}
if (tread._rotation < 0) {
rotat = 360 - Math.abs(tread._rotation);
} else {
rotat = tread._rotation;
}
rotat = rotat * (Math.PI/180);
xmove = Math.sin(rotat) * momentum;
ymove = Math.cos(rotat) * momentum;
_root.oldPos = new Array(_x, _y);
if ((spd != 0) && (stat.speedLevel > 1)) {
stat.speedEnergy = stat.speedEnergy - (stat.speedLevel / 4);
}
_x = (_x + xmove);
_y = (_y - ymove);
}
function gotoRot(position) {
rot = 0;
if (tread._rotation < 0) {
rot = 360 - Math.abs(tread._rotation);
} else {
rot = tread._rotation;
}
rot = rot - pos[position];
if (rot < 0) {
rot = rot + 360;
}
forward = true;
if ((rot > 90) && (rot < 270)) {
if (rot == 180) {
} else if (rot <= 180) {
tread._rotation = tread._rotation + rotChange;
} else {
tread._rotation = tread._rotation - rotChange;
}
forward = false;
} else {
if (rot == 0) {
} else if (rot <= 0) {
tread._rotation = tread._rotation + rotChange;
} else {
tread._rotation = tread._rotation - rotChange;
}
forward = true;
}
return(forward);
}
speed = 3;
wasMoving = false;
moving = false;
firing = false;
junk = false;
moved = false;
hGlow = 0;
eGlow = 0;
weaponAuto = false;
mouseListener = new Object();
Mouse.addListener(mouseListener);
this.swapDepths(++_root.level[1]);
var pos = new Array();
pos.UP = 0;
pos["UP + RIGHT"] = 45;
pos.RIGHT = 90;
pos["DOWN + RIGHT"] = 135;
pos.DOWN = 180;
pos["DOWN + LEFT"] = 225;
pos.LEFT = 270;
pos["UP + LEFT"] = 315;
rotChange = 9;
stat = new Array();
stat.speed = 4;
stat.speedLevel = 1;
stat.speedEnergy = 1;
speedAuto = true;
stat.armorLevel = 1;
stat.armorEnergy = 1;
armorAuto = true;
stat.weapon = "laser";
stat.weaponLevel = 1;
stat.weaponTimer = 0;
stat.weaponEnergy = 1;
weaponAuto = true;
stat.smokeTimer = 0;
stat.health = 100;
momentum = 0;
trot = 0;
gParts = new Array(tread.t1.g, tread.t2.g, turret.g, head);
mouseListener.onMouseWheel = function (delta) {
if (delta > 0) {
if (stat.weapon == "laser") {
stat.weapon = "cannon";
} else if (stat.weapon == "cannon") {
stat.weapon = "rocket";
} else if (stat.weapon == "rocket") {
stat.weapon = "laser";
}
} else if (stat.weapon == "laser") {
stat.weapon = "rocket";
} else if (stat.weapon == "cannon") {
stat.weapon = "laser";
} else if (stat.weapon == "rocket") {
stat.weapon = "cannon";
}
};
tread.onEnterFrame = function () {
if (!_root.paused) {
rot = getRot();
forward = false;
if (Key.isDown(_root.control.up)) {
if (Key.isDown(_root.control.right)) {
forward = gotoRot("UP + RIGHT");
} else if (Key.isDown(_root.control.left)) {
forward = gotoRot("UP + LEFT");
} else {
forward = gotoRot("UP");
}
moving = true;
} else if (Key.isDown(_root.control.down)) {
if (Key.isDown(_root.control.right)) {
forward = gotoRot("DOWN + RIGHT");
} else if (Key.isDown(_root.control.left)) {
forward = gotoRot("DOWN + LEFT");
} else {
forward = gotoRot("DOWN");
}
moving = true;
} else if (Key.isDown(_root.control.right)) {
forward = gotoRot("RIGHT");
moving = true;
} else if (Key.isDown(_root.control.left)) {
forward = gotoRot("LEFT");
moving = true;
} else {
moving = false;
mov(0);
}
if (moving) {
if (forward) {
mov(stat.speed);
} else {
mov(-stat.speed);
}
}
}
};
turret.onEnterFrame = function () {
this._rotation = trot;
};
i = 1;
while (i < 3) {
t = eval ("this.tread.t" + i);
t.onEnterFrame = function () {
if (!_root.paused) {
this.point.x = this._x;
this.point.y = this._y;
this.localToGlobal(this.point);
track = _root.duplicate(_root.tankTrack, 0);
track._x = this.point.point.x;
track._y = this.point.point.y;
track._alpha = 100;
track.exists = true;
track._rotation = tread._rotation;
}
};
i++;
}
this.onEnterFrame = function () {
if (!_root.paused) {
if (!moved) {
_x = 480;
_y = (480 + _root.square[((_root.chp == 0) ? 29 : (((_root.chp == 1) ? 19 : (((_root.chp == 2) ? 10 : 2)))))]);
moved = true;
}
if (moving) {
tread.t1.play();
tread.t2.play();
} else {
tread.t1.stop();
tread.t2.stop();
}
if (firing && (_xmouse <= 150)) {
fire();
}
trot = (Math.atan2(_root.tgt._y - 240, _root.tgt._x - 240) * 57) + 90;
makeSmoke();
if (stat.weaponTimer > 0) {
stat.weaponTimer--;
}
setStatus();
i = 0;
while (i < _root.targets.length) {
t = _root.targets[i];
if (t != this) {
if (this.hitTest(t)) {
if (_x > t._x) {
_x = (_x + (stat.speed * 0.7));
} else {
_x = (_x - (stat.speed * 0.7));
}
if (_y > t._y) {
_y = (_y + (stat.speed * 0.7));
} else {
_y = (_y - (stat.speed * 0.7));
}
}
}
i++;
}
if (Key.isDown(49)) {
stat.weapon = "laser";
} else if (Key.isDown(50)) {
stat.weapon = "rocket";
} else if (Key.isDown(51)) {
stat.weapon = "cannon";
}
if ((_x + (_width / 2)) > _root.bounds.right) {
_x = (_root.bounds.right - (_width / 2));
} else if ((_x - (_width / 2)) < _root.bounds.left) {
_x = (_root.bounds.left + (_width / 2));
}
if ((_y + (_height / 2)) > _root.bounds.bottom) {
_y = (_root.bounds.bottom - (_height / 2));
} else if ((_y - (_height / 2)) < _root.bounds.top) {
_y = (_root.bounds.top + (_height / 2));
}
if (stat.health > 100) {
stat.health = 100;
}
stats = new Array("weapon", "speed", "armor");
i = 0;
while (i < stats.length) {
maxlevel = Math.ceil(stat[stats[i] + "Energy"] / 200) + 1;
if (maxlevel > 5) {
maxlevel = 5;
}
if (stat[stats[i] + "Energy"] == 1) {
maxlevel = 1;
}
if (this[stats[i] + "Auto"] || (stat[stats[i] + "Level"] > maxlevel)) {
stat[stats[i] + "Level"] = maxlevel;
}
if (stat[stats[i] + "Energy"] > 1000) {
stat[stats[i] + "Energy"] = 1000;
} else if (stat[stats[i] + "Energy"] < 1) {
stat[stats[i] + "Energy"] = 1;
}
i++;
}
parts = new Array(this.turret, this.head, this.tread.t1, this.tread.t2);
i = 0;
while (i < parts.length) {
parts[i].glow._alpha = hGlow;
parts[i].en._alpha = eGlow;
i++;
}
if (hGlow > 0) {
hGlow = hGlow - 2;
}
if (eGlow > 0) {
eGlow = eGlow - 2;
}
_x = Math.round(_x);
_y = Math.round(_y);
_root.newPos = new Array(_x, _y);
_x = (_x + _root.xc);
_y = (_y + _root.yc);
if (stat.health <= 0) {
detonate();
}
if (_root.end) {
this.swapDepths(12);
this.removeMovieClip();
}
}
};
mouseListener.onMouseDown = function () {
firing = true;
_root.tgt.at = 100;
_root.tgt.st = 100;
_root.tgt.rot = 8;
};
mouseListener.onMouseUp = function () {
firing = false;
_root.tgt.at = 40;
_root.tgt.st = 160;
_root.tgt.rot = 4;
};
_y = 240;
_x = 240;
}
Instance of Symbol 212 MovieClip "tankTrack" in Frame 6
onClipEvent (enterFrame) {
if (exists && (!_root.paused)) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
_alpha = (_alpha - 2);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 291 MovieClip "projectile" in Frame 6
onClipEvent (load) {
function detonate(target) {
dmg = 0;
if (target == _root.tank) {
dmg = typ.damage * (1 - (target.stat.armorLevel * 0.2));
if (_root.tank.stat.armorLevel > 1) {
target.stat.armorEnergy = target.stat.armorEnergy - ((typ.damage * 5) / (6 - _root.tank.stat.armorLevel));
}
} else {
dmg = typ.damage;
}
target.stat.health = target.stat.health - dmg;
if (typ.el == "rocket") {
_root.playSound("exp3");
if (_currentframe > 8) {
exp = _root.duplicate(_root.rexp4, 1);
} else if (hit == 3) {
exp = _root.duplicate(_root.rexp3, 1);
exp._xscale = 150;
exp._yscale = 150;
} else {
exp = _root.duplicate(_root.rexp, 1);
}
exp._x = _x;
exp._y = _y;
exp._rotation = _rotation;
exp.exists = true;
if (hit == 1) {
this.removeMovieClip();
} else if (target != undefined) {
hit--;
hitStopper = 5;
life = life + 20;
gotoAndStop(_currentframe - 1);
} else {
this.removeMovieClip();
}
} else if (typ.el == "laser") {
if (_currentframe == 1) {
exp = _root.duplicate(_root.lexp, 1);
} else {
exp = _root.duplicate(_root.elexp, 1);
}
exp._x = _x;
exp._y = _y;
exp._rotation = _rotation;
exp.exists = true;
if ((hit == 1) || (target == undefined)) {
this.removeMovieClip();
} else {
hit = hit - 1;
hitStopper = 5;
_alpha = (_alpha - 35);
typ.damage = typ.damage / 2;
this._rotation = this._rotation + ((Math.random() * 180) + 90);
xd = Math.sin(_rotation * (Math.PI/180)) * spd;
yd = Math.cos(_rotation * (Math.PI/180)) * spd;
life = life + 10;
}
} else if (typ.el == "cannon") {
_root.playSound("exp3");
if (_currentframe == 11) {
exp = _root.duplicate(_root.eexp, 1);
} else {
exp = _root.duplicate(_root.cexp1, 1);
exp.r1._visible = false;
}
if (hit == 1) {
} else if (hit == 2) {
exp._xscale = 125;
exp._yscale = 125;
exp.r1._visible = true;
} else if ((hit == 3) || (hit == 4)) {
exp._xscale = 150;
exp._yscale = 150;
exp.r1._visible = true;
} else if (hit == 5) {
exp._xscale = 200;
exp._yscale = 200;
exp.r1._visible = true;
i = 0;
while (i < 4) {
p = _root.duplicate(_root.projectile, 1);
p._x = _x;
p._y = _y;
p._rotation = Math.random() * 360;
p.gotoAndStop(7);
p.typ = new Object({speed:12, damage:10, life:20, seek:0, hit:2, splash:5});
p.typ.el = "cannon";
p.exists = true;
i++;
}
}
exp._x = _x;
exp._y = _y;
exp._rotation = Math.random() * 360;
exp.exists = true;
exp.splash = typ.splash;
this.removeMovieClip();
}
}
_x = (_x + _root.xc);
_y = (_y + _root.yc);
if (level != undefined) {
spd = typ.speed + level;
} else {
spd = typ.speed;
}
xd = Math.sin(_rotation * (Math.PI/180)) * spd;
yd = Math.cos(_rotation * (Math.PI/180)) * spd;
life = typ.life;
hit = typ.hit;
hitStopper = 0;
}
onClipEvent (enterFrame) {
if (exists && (!_root.paused)) {
_y = (_y + (_root.yc - yd));
_x = (_x + (_root.xc + xd));
if (typ.seek != 0) {
if (_currentframe > 8) {
cx = _root.tank._x - _x;
cy = _root.tank._y - _y;
cdist = Math.sqrt(Math.pow(cx, 2) + Math.pow(cy, 2));
target = _root.tank;
} else {
cx = _root.tgt._x - _x;
cy = _root.tgt._y - _y;
cdist = Math.sqrt(Math.pow(cx, 2) + Math.pow(cy, 2));
target = _root.tgt;
}
r = (Math.asin(cy / cdist) * 57.2957795130823) + 90;
if (cx < 0) {
r = 360 - r;
}
c = _rotation;
if (r < 0) {
r = 0 + (360 - Math.abs(r));
}
if (c < 0) {
c = 0 + (360 - Math.abs(c));
}
n = c - r;
if (n < 0) {
n = n + 360;
}
if (n <= 180) {
_rotation = (_rotation - typ.seek);
} else if (n > 180) {
_rotation = (_rotation + typ.seek);
}
xd = Math.sin(_rotation * (Math.PI/180)) * spd;
yd = Math.cos(_rotation * (Math.PI/180)) * spd;
}
cdist = (cy = (cx = Infinity));
target = _root.blank;
if ((xd != 0) && (yd != 0)) {
if (_currentframe <= 8) {
i = 0;
while (i < _root.targets.length) {
if (_root.targets[i] != _root.tank) {
if ((hitStopper == 0) && (_root.targets[i].hitTest(_x, _y, true))) {
detonate(_root.targets[i]);
}
}
i++;
}
} else {
i = 0;
while (i < _root.targets.length) {
if ((((xd != 0) && (yd != 0)) && (_root.targets[i] != fer)) && (_root.targets[i].junk || (_root.targets[i] == _root.tank))) {
if (_root.targets[i].hitTest(_x, _y, true)) {
detonate(_root.targets[i]);
}
}
i++;
}
}
}
if (((life % 2) == 0) && (typ.el == "rocket")) {
exp = _root.duplicate(_root.ms, 1);
exp._x = _x;
exp._y = _y;
if (_currentframe > 8) {
exp.gotoAndPlay(30);
} else if (hit == 1) {
exp.gotoAndPlay(1);
} else {
exp.gotoAndPlay((hit - 1) * 10);
}
exp.exists = true;
} else if (((typ.el == "cannon") && (life < (typ.life - 2))) && (_root.gfx > 1)) {
tr = _root.duplicate(_root.tankTrack, 0);
tr._x = _x;
tr._y = _y;
tr._width = 4;
tr._height = 20;
tr._rotation = _rotation;
tr.exists = true;
}
if ((((_y < _root.bounds.top) || (_y > _root.bounds.bottom)) || (_x < _root.bounds.left)) || (_x > _root.bounds.right)) {
detonate("wall");
} else if (life == 0) {
detonate();
} else {
life--;
}
if (hitStopper > 0) {
hitStopper--;
}
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 304 MovieClip "launch" in Frame 6
onClipEvent (enterFrame) {
if (exists && (!_root.paused)) {
_y = (_y + _root.yc);
_x = (_x + _root.xc);
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 306 MovieClip "cursor" in Frame 6
onClipEvent (load) {
Mouse.hide();
_root.level[2]++;
this.swapDepths(_root.level[2] * 2);
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
if ((_x > 480) || (_root.paused)) {
_visible = false;
_root.tgt._visible = false;
Mouse.show();
} else {
_visible = true;
_root.tgt._visible = true;
Mouse.hide();
}
if (_root.end) {
this.swapDepths(15);
this.removeMovieClip();
}
if (_root.end) {
_root.tgt.removeMovieClip();
this.removeMovieClip();
}
}
Instance of Symbol 308 MovieClip "smoke" in Frame 6
onClipEvent (enterFrame) {
if (exists && (!_root.paused)) {
_x = (_x + (_root.xc + _root.windx));
_y = (_y + (_root.yc + _root.windy));
_alpha = (_alpha - 3);
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_rotation = (_rotation + 3);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 369 MovieClip in Frame 6
onClipEvent (load) {
_root.level[2]++;
this.swapDepths(_root.level[2] * 2);
}
onClipEvent (enterFrame) {
if (_root.end) {
swapDepths(13);
this.removeMovieClip();
}
}
Instance of Symbol 383 MovieClip "ebeam" in Frame 6
onClipEvent (enterFrame) {
if (exists) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
if (_root.end) {
this.removeMovieClip();
}
}
}
Instance of Symbol 411 MovieClip "rexp" in Frame 6
onClipEvent (enterFrame) {
if (exists) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 417 MovieClip "ms" in Frame 6
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (exists) {
_rotation = (_rotation + 6);
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_x = (_x + _root.xc);
_y = (_y + _root.yc);
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 445 MovieClip "rexp3" in Frame 6
onClipEvent (enterFrame) {
if (exists) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 447 MovieClip "tgt" in Frame 6
onClipEvent (load) {
this.swapDepths(++_root.level[2]);
_xscale = 160;
_yscale = 160;
_alpha = 40;
st = 160;
at = 40;
rot = 4;
}
onClipEvent (enterFrame) {
target = _root.cursor;
cdist = (cy = (cx = Infinity));
i = 0;
while (i < _root.targets.length) {
t = _root.targets[i];
if ((t != _root.tank) && (t.junk)) {
xdif = t._x - _root.cursor._x;
ydif = t._y - _root.cursor._y;
dist = Math.sqrt(Math.pow(xdif, 2) + Math.pow(ydif, 2));
if ((dist < cdist) && (dist < 100)) {
target = t;
cdist = dist;
cy = ydif;
cx = xdif;
}
}
i++;
}
cdist = (cy = (cx = Infinity));
i = 0;
while (i < _root.targets.length) {
t = _root.targets[i];
if ((t != _root.tank) && (!t.junk)) {
xdif = t._x - _root.cursor._x;
ydif = t._y - _root.cursor._y;
dist = Math.sqrt(Math.pow(xdif, 2) + Math.pow(ydif, 2));
if ((dist < cdist) && (dist < 100)) {
target = t;
cdist = dist;
cy = ydif;
cx = xdif;
}
}
i++;
}
if (_root.useTarget) {
_x = target._x;
_y = target._y;
_rotation = (_rotation + (Math.sqrt(Math.pow(_root.cursor._x - _x, 2) + Math.pow(_root.cursor._y - _y, 2)) / 6));
_xscale = (_xscale + ((st - _xscale) / 6));
_yscale = (_yscale + ((st - _yscale) / 6));
_alpha = (_alpha + ((at - _alpha) / 6));
} else {
_xscale = (_xscale + ((-_xscale) / 6));
_yscale = (_yscale + ((-_yscale) / 6));
_x = _root.cursor._x;
_y = _root.cursor._y;
}
if (_root.end) {
this.swapDepths(16);
this.removeMovieClip();
}
}
Instance of Symbol 229 MovieClip "lexp" in Frame 6
onClipEvent (enterFrame) {
if (exists) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 489 MovieClip "cexp1" in Frame 6
onClipEvent (load) {
function detonate(target) {
target.stat.health = target.stat.health - splash;
}
age = 1;
}
onClipEvent (enterFrame) {
if (exists) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
if (age == 3) {
i = 0;
while (i < _root.targets.length) {
t = _root.targets[i];
if (t != _root.tank) {
if (this.hitTest(t._x, t._y, true)) {
detonate(t);
}
}
i++;
}
}
age++;
}
}
Instance of Symbol 504 MovieClip "rexp4" in Frame 6
onClipEvent (enterFrame) {
if (exists) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
if (_root.end) {
this.removeMovieClip();
}
}
}
Instance of Symbol 520 MovieClip "elexp" in Frame 6
onClipEvent (enterFrame) {
if (exists) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 530 MovieClip "boss2" in Frame 6
onClipEvent (load) {
function attack() {
if (waitTimer == 0) {
if (attackMode == "unset") {
rnd = Math.ceil(Math.random() * 4);
attackMode = ((rnd == 1) ? "gun" : (((rnd == 2) ? "volley" : (((rnd == 3) ? "beam" : "cannon")))));
waitTimer = (rem * 5) + 35;
fireTimer = 60;
rt = 3;
} else if (attackMode == "gun") {
if ((fireTimer % 5) == 0) {
i = 0;
while (i < 3) {
p = _root.duplicate(_root.projectile, 1);
p._x = turret["point" + i].point.x;
p._y = turret["point" + i].point.y;
p._rotation = (turret._rotation + 90) + (2 - (i * 2));
p.gotoAndStop(10);
p.typ = new Object({speed:28, damage:2, life:30, seek:0, hit:2, el:"laser"});
p.fer = this;
p.exists = true;
i++;
}
}
rmod = 90;
if (fireTimer == 0) {
attackMode = "unset";
}
fireTimer--;
} else if (attackMode == "cannon") {
if ((fireTimer % 10) == 0) {
p = _root.duplicate(_root.projectile, 1);
p._x = turret.point4.point.x;
p._y = turret.point4.point.y;
p._rotation = turret._rotation + 270;
p.gotoAndStop(11);
p.typ = new Object({speed:30, damage:10, life:30, seek:0, hit:1, el:"cannon"});
p.fer = this;
p.exists = true;
turret.play();
}
rmod = 270;
if (fireTimer > 0) {
fireTimer--;
} else {
attackMode = "unset";
}
} else if (attackMode == "volley") {
if ((fireTimer % 5) == 0) {
p = _root.duplicate(_root.projectile, 1);
p._x = turret["point" + ((fireTimer % 3) + 5)].point.x;
p._y = turret["point" + ((fireTimer % 3) + 5)].point.y;
p._rotation = turret._rotation + (-40 + ((fireTimer % 3) * 40));
p.gotoAndStop(9);
p.typ = new Object({speed:12, damage:3, life:35, seek:4, hit:1, el:"rocket"});
p.fer = this;
p.exists = true;
}
rmod = 0;
if (fireTimer == 0) {
attackMode = "unset";
}
fireTimer--;
} else if (attackMode == "beam") {
p = _root.duplicate(_root.enemybeam, 1);
p._height = 600;
p._x = turret.point8.point.x;
p._y = turret.point8.point.y;
p._rotation = turret._rotation + 180;
p.exists = true;
rmod = 180;
rt = 8;
if (fireTimer <= 0) {
attackMode = "unset";
} else {
fireTimer--;
}
}
}
}
attackMode = "unset";
rmod = 0;
waitTimer = 0;
fireTimer = 0;
rt = 3;
reg = false;
rem = 8;
}
onClipEvent (enterFrame) {
if (exists && (!_root.paused)) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
cx = _root.tank._x - _x;
cy = _root.tank._y - _y;
cdist = Math.sqrt(Math.pow(cx, 2) + Math.pow(cy, 2));
r = (Math.asin(cy / cdist) * 57.2957795130823) + 90;
if (cx < 0) {
r = 360 - r;
}
c = turret._rotation;
if (c < 0) {
c = 0 + (360 - Math.abs(c));
}
r = r - rmod;
if (r < 0) {
r = r + 360;
}
turret._rotation = turret._rotation + ((r - c) / rt);
_root.tt.text = (rmod + ", ") + r;
attack();
i = 0;
while (i < 8) {
i++;
}
if (waitTimer > 0) {
waitTimer--;
}
}
}
Instance of Symbol 576 MovieClip "etank" in Frame 6
onClipEvent (load) {
function detonate() {
i = 0;
while (i < _root.targets.length) {
if (_root.targets[i] == this) {
_root.targets.splice(i, 1);
}
i++;
}
if (!mapkill) {
clip = _root.duplicate(_root.stain, 0);
clip._x = _x;
clip._y = _y;
clip._alpha = 80;
clip.exists = true;
powerup = Math.ceil(Math.random() * 2) + 3;
i = 0;
while (i < powerup) {
clip = _root.duplicate(_root.powerup, 1);
clip._x = _x;
clip._y = _y;
clip._rotation = Math.random() * 360;
clip.exists = true;
i++;
}
}
dead = true;
rob.gotoAndStop(2);
}
function setStatus() {
if (typ.rtype == 1) {
rob.body.gotoAndStop(element[stat.element]);
rob.body.col.gotoAndStop(stat.level);
}
}
function fire() {
if (stat.weaponTimer == 0) {
p = _root.duplicate(_root.projectile, 1);
p._x = rob.point.point.x;
p._y = rob.point.point.y;
p._rotation = rob.turret._rotation;
p.gotoAndStop(10);
p.typ = new Object({speed:20, damage:1, life:20, seek:0, hit:2, el:"laser"});
p.fer = this;
p.exists = true;
stat.weaponTimer = 30;
}
}
function mov(spd) {
tr = rob.tread;
t = _root.tank;
xdif = t._x - _x;
ydif = t._y - _y;
dist = Math.sqrt(Math.pow(xdif, 2) + Math.pow(ydif, 2));
r = (Math.asin(ydif / dist) * 57.2957795130823) + 90;
if (cx < 0) {
r = 360 - r;
}
c = this._rotation + 90;
if (r < 0) {
r = 0 + (360 - Math.abs(r));
}
if (c < 0) {
c = 0 + (360 - Math.abs(c));
}
n = c - r;
if (n < 0) {
n = n + 360;
}
rt = 5;
if (n <= 180) {
this._rotation = this._rotation - rt;
} else if (n > 180) {
this._rotation = this._rotation + rt;
}
xd = Math.sin(this._rotation * (Math.PI/180)) * spd;
yd = Math.cos(this._rotation * (Math.PI/180)) * spd;
tr.play();
}
dead = false;
xd = 0;
yd = 0;
junk = false;
rotSpeed = 2;
stat = new Array();
stat.element = "fire";
stat.level = 1;
stat.weaponTimer = 0;
stat.health = 15;
_rotation = 180;
rob.turret.onEnterFrame = function () {
if (exists) {
cdist = (cy = (cx = Infinity));
target = _root.blank;
t = _root.tank;
xdif = t._x - _x;
ydif = t._y - _y;
dist = Math.sqrt(Math.pow(xdif, 2) + Math.pow(ydif, 2));
if (dist < cdist) {
target = t;
cdist = dist;
cy = ydif;
cx = xdif;
}
r = (Math.asin(cy / cdist) * 57.2957795130823) + 90;
if (cx < 0) {
r = 360 - r;
}
c = this._rotation;
if (r < 0) {
r = 0 + (360 - Math.abs(r));
}
if (c < 0) {
c = 0 + (360 - Math.abs(c));
}
n = c - r;
if (n < 0) {
n = n + 360;
}
rt = 6;
if (n <= 180) {
this._rotation = this._rotation - rt;
} else if (n > 180) {
this._rotation = this._rotation + rt;
}
if (((n < 20) || (n > 340)) && (cdist <= 300)) {
fire();
}
}
};
}
onClipEvent (enterFrame) {
if (exists && (!_root.paused)) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
mov(8);
_x = (_x + xd);
_y = (_y - yd);
setStatus();
i = 0;
while (i < _root.targets.length) {
t = _root.targets[i];
if (t != this) {
if (this.hitTest(t)) {
if (_x > t._x) {
_x = (_x + 2);
} else {
_x = (_x - 2);
}
if (_y > t._y) {
_y = (_y + 2);
} else {
_y = (_y - 2);
}
}
}
i++;
}
if ((_x + (_width / 2)) > _root.bounds.right) {
c = (_x + (_width / 2)) - _root.bounds.right;
_x = (_root.bounds.right - (_width / 2));
_rotation = (_rotation + 90);
} else if ((_x - (_width / 2)) < _root.bounds.left) {
_x = (_root.bounds.left + (_width / 2));
_rotation = (_rotation + 90);
}
if ((_y + (_height / 2)) > _root.bounds.bottom) {
_y = (_root.bounds.bottom - (_height / 2));
_rotation = (_rotation + 90);
} else if ((_y - (_height / 2)) < _root.bounds.top) {
_y = (_root.bounds.top + (_height / 2));
_rotation = (_rotation + 90);
}
if (stat.weaponTimer > 0) {
stat.weaponTimer--;
}
if ((stat.health <= 0) && (!dead)) {
detonate();
}
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 578 MovieClip "stain" in Frame 6
onClipEvent (load) {
_alpha = 80;
}
onClipEvent (enterFrame) {
if (exists) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
_alpha = (_alpha - 0.5);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 671 MovieClip "junk" in Frame 6
onClipEvent (load) {
function detonate() {
i = 0;
while (i < _root.targets.length) {
if (_root.targets[i] == this) {
_root.targets.splice(i, 1);
}
i++;
}
j.gotoAndStop(2);
}
stat = new Array();
stat.health = Math.ceil(Math.random() * 30);
stat.element = "neutral";
junk = true;
}
onClipEvent (enterFrame) {
if (exists) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
if (stat.health <= 0) {
detonate();
}
}
}
Instance of Symbol 677 MovieClip "beam" in Frame 6
onClipEvent (load) {
function detonate(target) {
target.stat.health = target.stat.health - 2;
exp = _root.duplicate(_root.ebeam, 1);
exp._x = (target._x + (Math.random() * 10)) - 5;
exp._y = (target._y + (Math.random() * 10)) - 5;
exp._rotation = (_rotation + (Math.random() * 180)) - 90;
exp.exists = true;
}
_x = (_x + _root.xc);
_y = (_y + _root.yc);
}
onClipEvent (enterFrame) {
if (exists) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
if (_alpha > 80) {
i = 0;
while (i < _root.targets.length) {
t = _root.targets[i];
if (t != _root.tank) {
if (this.hitTest(t._x, t._y, true)) {
detonate(t);
}
}
i++;
}
}
_alpha = (_alpha - 40);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 687 MovieClip "powerup" in Frame 6
onClipEvent (load) {
gotoAndStop(Math.round(Math.random() * 4) + 1);
life = Math.ceil(Math.random() * 20) + 390;
glow._alpha = 0;
_yscale = ((powerScale = (Math.random() * 100) + 50));
_xscale = ((powerScale = (Math.random() * 100) + 50));
powerScale = powerScale / 100;
}
onClipEvent (enterFrame) {
if (exists && (!_root.paused)) {
xdif = _root.tank._x - _x;
ydif = _root.tank._y - _y;
dist = Math.sqrt(Math.pow(xdif, 2) + Math.pow(ydif, 2));
speed = 0;
if ((Math.abs(dist) < 200) && (life < 380)) {
_rotation = ((Math.asin(ydif / dist) * 57.2957795130823) + 90);
if (xdif < 0) {
_rotation = (360 - _rotation);
}
_root.tt.text = glow._alpha;
speed = (200 - dist) / 10;
glow._alpha = 100 - (dist / 2);
glow._xscale = (glow._yscale = (100 - dist) * 2);
if (this.hitTest(_root.tank)) {
if (_currentframe < 4) {
_root.tank.stat.health = _root.tank.stat.health + (3 * powerScale);
_root.tank.hGlow = ((_root.tank.hGlow < (40 * powerScale)) ? (40 * powerScale) : (_root.tank.hGlow));
} else {
stats = new Array("weapon", "speed", "armor");
i = 0;
while (i < stats.length) {
_root.tank.stat[stats[i] + "Energy"] = _root.tank.stat[stats[i] + "Energy"] + (40 * powerScale);
_root.tank.eGlow = ((_root.tank.eGlow < (60 * powerScale)) ? (60 * powerScale) : (_root.tank.eGlow));
i++;
}
}
this.removeMovieClip();
}
} else if (life > 380) {
speed = (20 - (400 - life)) / 2;
} else {
speed = 0;
}
if (_currentframe == 4) {
_yscale = (100 + (speed * 15));
_xscale = (100 - (speed * 3));
}
if ((((_x < _root.bounds.left) || (_x > _root.bounds.right)) || (_y < _root.bounds.top)) || (_y > _root.bounds.bottom)) {
_rotation = (_rotation + 180);
}
_x = (_x + (Math.sin(_rotation * (Math.PI/180)) * speed));
_y = (_y - (Math.cos(_rotation * (Math.PI/180)) * speed));
_x = (_x + _root.xc);
_y = (_y + _root.yc);
if ((_x + (_width / 2)) > _root.bounds.right) {
_x = (_root.bounds.right - (_width / 2));
} else if ((_x - (_width / 2)) < _root.bounds.left) {
_x = (_root.bounds.left + (_width / 2));
}
if ((_y + (_height / 2)) > _root.bounds.bottom) {
_y = (_root.bounds.bottom - (_height / 2));
} else if ((_y - (_height / 2)) < _root.bounds.top) {
_y = (_root.bounds.top + (_height / 2));
}
if (life < 10) {
_alpha = (_alpha - 10);
}
if (life <= 0) {
this.removeMovieClip();
}
if (life > 0) {
life--;
}
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 694 MovieClip "missileCrawler" in Frame 6
onClipEvent (load) {
function detonate() {
_root.playSound("exp1");
i = 0;
while (i < _root.targets.length) {
if (_root.targets[i] == this) {
_root.targets.splice(i, 1);
}
i++;
}
if (!mapkill) {
clip = _root.duplicate(_root.stain, 0);
clip._x = _x;
clip._y = _y;
clip._alpha = 80;
clip.exists = true;
powerup = Math.ceil(Math.random() * 4) + 2;
i = 0;
while (i < powerup) {
clip = _root.duplicate(_root.powerup, 1);
clip._x = _x;
clip._y = _y;
clip._rotation = Math.random() * 360;
clip.exists = true;
i++;
}
clip = _root.duplicate(_root.eexp, 1);
clip._x = _x;
clip._y = _y;
clip._rotation = Math.random() * 360;
clip.exists = true;
}
this.removeMovieClip();
}
function setRot() {
i = 0;
while (i < 8) {
t = (this["t" + (i + 1)]._rotation = stat.rotation);
i++;
}
}
function fire() {
cx = _root.tank._x - _x;
cy = _root.tank._y - _y;
cdist = Math.sqrt(Math.pow(cx, 2) + Math.pow(cy, 2));
target = _root.tgt;
rotTo = (Math.asin(cy / cdist) * 57.2957795130823) + 90;
if (cx < 0) {
rotTo = 360 - rotTo;
}
turret._rotation = rotTo;
if (stat.weaponTimer == 0) {
reload = 30 + Math.round(Math.random() * 20);
p = _root.duplicate(_root.projectile, 1);
p._x = _x;
p._y = _y;
p._rotation = rotTo;
p.gotoAndStop(9);
p.typ = new Object({speed:12, damage:2, life:30, seek:3, hit:1, el:"rocket"});
p.exists = true;
stat.weaponTimer = reload;
}
}
function mov() {
xdif = _root.tank._x - _x;
ydif = _root.tank._y - _y;
if (Math.abs(xdif) <= Math.abs(ydif)) {
if (Math.abs(xdif) >= 5) {
if (xdif >= 0) {
_x = (_x + 2);
} else {
_x = (_x - 2);
}
}
} else if (Math.abs(ydif) >= 5) {
if (ydif >= 0) {
_y = (_y + 2);
} else {
_y = (_y - 2);
}
}
if (Math.abs(xdif) > 200) {
if (xdif > 0) {
_x = (_x + 2);
} else {
_x = (_x - 2);
}
} else if (Math.abs(ydif) > 200) {
if (ydif > 0) {
_y = (_y + 2);
} else {
_y = (_y - 2);
}
}
}
stat = new Array();
stat.health = 50;
stat.weaponTimer = 0;
stat.rotation = 0;
d = new Array();
d.up = 0;
d.down = 180;
d.left = 270;
d.right = 90;
dir = "up";
builtTimer = 20;
mapkill = false;
rotChange = 10;
}
onClipEvent (enterFrame) {
if (exists && (!_root.paused)) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
if (builtTimer == 0) {
fire();
mov();
i = 0;
while (i < _root.targets.length) {
t = _root.targets[i];
if (t != this) {
if (this.hitTest(t)) {
if (_x > t._x) {
_x = (_x + 2);
} else {
_x = (_x - 2);
}
if (_y > t._y) {
_y = (_y + 2);
} else {
_y = (_y - 2);
}
}
}
i++;
}
}
if (builtTimer > 0) {
builtTimer--;
_y = (_y + 2);
}
if ((_x + (_width / 2)) > _root.bounds.right) {
c = (_x + (_width / 2)) - _root.bounds.right;
_x = (_root.bounds.right - (_width / 2));
} else if ((_x - (_width / 2)) < _root.bounds.left) {
_x = (_root.bounds.left + (_width / 2));
}
if ((_y + (_height / 2)) > _root.bounds.bottom) {
_y = (_root.bounds.bottom - (_height / 2));
} else if ((_y - (_height / 2)) < _root.bounds.top) {
_y = (_root.bounds.top + (_height / 2));
}
if (stat.weaponTimer > 0) {
stat.weaponTimer--;
}
if (stat.health <= 0) {
detonate();
}
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 704 MovieClip "factory" in Frame 6
onClipEvent (load) {
function detonate() {
_root.playSound("exp2");
i = 0;
while (i < _root.targets.length) {
if (_root.targets[i] == this) {
_root.targets.splice(i, 1);
}
i++;
}
if (!mapkill) {
if (_root.gfx > 1) {
clip = _root.duplicate(_root.stain, 0);
clip._x = _x;
clip._y = _y;
clip._alpha = 80;
clip.exists = true;
}
powerup = Math.round(Math.random() * 4) + 15;
i = 0;
while (i < powerup) {
clip = _root.duplicate(_root.powerup, 1);
clip._x = _x;
clip._y = _y;
clip._rotation = Math.random() * 360;
clip.exists = true;
i++;
}
}
this.removeMovieClip();
}
function makeUnit() {
if ((mtimer == 0) && (current < max)) {
_root.spawn(unit, _x, _y, this);
warp = _root.duplicate(_root.gw, 1);
warp._x = _x;
warp._y = _y;
warp.exists = true;
mtimer = 300;
}
}
mtimer = 0;
current = 0;
stat = new Array();
stat.health = 500;
mapkill = false;
}
onClipEvent (enterFrame) {
if (exists && (!_root.paused)) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
current = 0;
i = 0;
while (i < _root.targets.length) {
if (_root.targets[i].fac == this) {
current++;
}
i++;
}
makeUnit();
if (mtimer > 0) {
mtimer--;
}
if (stat.health <= 0) {
detonate();
} else if (stat.health < 150) {
gotoAndStop (3);
} else if (stat.health < 300) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 709 MovieClip "jet" in Frame 6
onClipEvent (load) {
function fire() {
if ((((ftimer == 0) && (Math.abs(_x - _root.tank._x) < 100)) && (Math.abs(_y - _root.tank._y) < 50)) && ((_x > _root.bounds.left) && (_x < _root.bounds.right))) {
clip = _root.duplicate(_root.bomb, 1);
clip.exists = true;
clip._x = (_x + (Math.random() * 20)) - 10;
clip._y = (_y + (Math.random() * 60)) - 30;
ftimer = 3;
}
}
ftimer = 0;
}
onClipEvent (enterFrame) {
if (exists && (!_root.paused)) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
_x = (_x + 10);
if (_x > 680) {
_x = (_x - 2000);
}
fire();
if (ftimer > 0) {
ftimer--;
}
if ((_root.tank._y > (_y + 1440)) || (_root.tank._y < (_y - 480))) {
this.removeMovieClip();
}
}
}
Instance of Symbol 720 MovieClip "gw" in Frame 6
onClipEvent (load) {
timer = 10;
}
onClipEvent (enterFrame) {
if (exists) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
}
if (timer > 0) {
timer--;
} else {
this.removeMovieClip();
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 724 MovieClip "bomb" in Frame 6
onClipEvent (load) {
function detonate() {
_root.playSound("exp4");
if (!good) {
clip = _root.duplicate(_root.bexp, 1);
clip._x = _x;
clip._y = _y;
clip._rotation = Math.random() * 360;
clip.exists = true;
} else {
powerup = Math.round(Math.random() * 2);
i = 0;
while (i < powerup) {
clip = _root.duplicate(_root.powerup, 1);
clip._x = _x;
clip._y = _y;
clip._rotation = Math.random() * 360;
clip.exists = true;
i++;
}
}
this.removeMovieClip();
}
timer = 21;
}
onClipEvent (enterFrame) {
if (exists && (!_root.paused)) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
if (timer > 0) {
timer--;
}
if (timer == 0) {
detonate();
}
_x = (_x + 0.2);
_y = (_y + 0.2);
_yscale = (50 + ((timer / 21) * 50));
_xscale = (50 + ((timer / 21) * 50));
}
if (_root.paused) {
stop();
} else {
play();
}
}
Instance of Symbol 739 MovieClip "bexp" in Frame 6
onClipEvent (enterFrame) {
if (exists) {
if (_currentframe == 6) {
t = _root.tank;
if (this.hitTest(t._x, t._y, true)) {
_root.tank.stat.health = _root.tank.stat.health - 5;
}
}
}
}
Instance of Symbol 756 MovieClip "turret" in Frame 6
onClipEvent (load) {
function detonate() {
i = 0;
while (i < _root.targets.length) {
if (_root.targets[i] == this) {
_root.targets.splice(i, 1);
}
i++;
}
if (!mapkill) {
_root.playSound("exp2");
if (_root.gfx > 1) {
clip = _root.duplicate(_root.stain, 0);
clip._x = _x;
clip._y = _y;
clip._alpha = 80;
clip.exists = true;
}
powerup = Math.round(Math.random() * 4) + 8;
i = 0;
while (i < powerup) {
clip = _root.duplicate(_root.powerup, 1);
clip._x = _x;
clip._y = _y;
clip._rotation = Math.random() * 360;
clip.exists = true;
i++;
}
}
this.removeMovieClip();
}
ft = 0;
turret._rotation = 180;
stat = new Array();
stat.health = 150;
speed = ((type == "beam") ? 1 : 2);
_x = (_x + _root.xc);
_y = (_y + _root.yc);
}
onClipEvent (enterFrame) {
if (exists && (!_root.paused)) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
cx = _root.tank._x - _x;
cy = _root.tank._y - _y;
cdist = Math.sqrt(Math.pow(cx, 2) + Math.pow(cy, 2));
r = (Math.asin(cy / cdist) * 57.2957795130823) + 90;
if (cx < 0) {
r = 360 - r;
}
c = turret._rotation;
if (r < 0) {
r = 0 + (360 - Math.abs(r));
}
if (c < 0) {
c = 0 + (360 - Math.abs(c));
}
n = c - r;
if (n < 0) {
n = n + 360;
}
if (n <= 180) {
turret._rotation = turret._rotation - speed;
} else if (n > 180) {
turret._rotation = turret._rotation + speed;
}
if (ft == 0) {
if (((type == "laser") && ((n < 30) || (n > 330))) && (cdist < 500)) {
_root.playSound("las2");
i = 0;
while (i < 2) {
p = _root.duplicate(_root.projectile, 1);
p._x = turret["point" + i].point.x;
p._y = turret["point" + i].point.y;
p._rotation = turret._rotation;
p.gotoAndStop(10);
p.typ = new Object({speed:20, damage:1, life:20, seek:0, hit:2, el:"laser"});
p.fer = this;
p.exists = true;
i++;
}
ft = 10;
} else if (((type == "rocket") && ((n < 60) || (n > 300))) && (cdist < 500)) {
_root.playSound("msl");
i = 0;
while (i < 3) {
p = _root.duplicate(_root.projectile, 1);
p._x = turret["point" + i].point.x;
p._y = turret["point" + i].point.y;
p._rotation = turret._rotation + (-40 + (i * 40));
p.gotoAndStop(9);
p.typ = new Object({speed:12, damage:3, life:35, seek:4, hit:1, el:"rocket"});
p.fer = this;
p.exists = true;
i++;
}
ft = 40;
} else if (((type == "beam") && ((n < 30) || (n > 330))) && (cdist < 500)) {
p = _root.duplicate(_root.enemybeam, 1);
p._height = 600;
p._x = turret.point.point.x;
p._y = turret.point.point.y;
p._rotation = turret._rotation;
p.exists = true;
ft = 1;
}
}
if (ft > 0) {
ft--;
}
if (stat.health > 100) {
base.gotoAndStop(1);
turret.gotoAndStop(1);
} else if (stat.health > 50) {
base.gotoAndStop(2);
turret.gotoAndStop(2);
} else {
base.gotoAndStop(3);
turret.gotoAndStop(3);
}
if (stat.health <= 0) {
detonate();
}
}
}
Instance of Symbol 758 MovieClip "enemybeam" in Frame 6
onClipEvent (load) {
function detonate(target) {
target.stat.health = target.stat.health - 0.5;
exp = _root.duplicate(_root.ebeam, 1);
exp._x = (target._x + (Math.random() * 10)) - 5;
exp._y = (target._y + (Math.random() * 10)) - 5;
exp._rotation = (_rotation + (Math.random() * 180)) - 90;
exp.exists = true;
}
_x = (_x + _root.xc);
_y = (_y + _root.yc);
}
onClipEvent (enterFrame) {
if (exists) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
if (_alpha > 80) {
t = _root.tank;
if (this.hitTest(t._x, t._y, true)) {
detonate(t);
}
}
_alpha = (_alpha - 40);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 764 MovieClip "minelayer" in Frame 6
onClipEvent (load) {
function detonate() {
i = 0;
while (i < _root.targets.length) {
if (_root.targets[i] == this) {
_root.targets.splice(i, 1);
}
i++;
}
if (!mapkill) {
clip = _root.duplicate(_root.stain, 0);
clip._x = _x;
clip._y = _y;
clip._alpha = 80;
clip.exists = true;
powerup = Math.ceil(Math.random() * 4) + 2;
i = 0;
while (i < powerup) {
clip = _root.duplicate(_root.powerup, 1);
clip._x = _x;
clip._y = _y;
clip._rotation = Math.random() * 360;
clip.exists = true;
i++;
}
}
this.removeMovieClip();
}
function mov() {
if ((Math.abs(_x - locx) < 40) && (Math.abs(_y - locy) < 40)) {
locx = ((Math.random() * 500) - 250) + _root.tank._x;
locy = ((Math.random() * 500) - 250) + _root.tank._x;
}
cx = locx - _x;
cy = locy - _y;
cdist = Math.sqrt(Math.pow(cx, 2) + Math.pow(cy, 2));
r = (Math.asin(cy / cdist) * 57.2957795130823) + 90;
if (cx < 0) {
r = 360 - r;
}
c = rot("get");
if (r < 0) {
r = 0 + (360 - Math.abs(r));
}
if (c < 0) {
c = 0 + (360 - Math.abs(c));
}
n = c - r;
if (n < 0) {
n = n + 360;
}
if (n <= 180) {
rot("set", -9);
} else if (n > 180) {
rot("set", 9);
}
_x = (_x + (Math.sin(rot("get") * (Math.PI/180)) * 3));
_y = (_y - (Math.cos(rot("get") * (Math.PI/180)) * 3));
}
function rot(set, r) {
if (set == "set") {
i = 0;
while (i < 4) {
this["t" + i]._rotation = this["t" + i]._rotation + r;
i++;
}
} else if (set == "get") {
return(t0._rotation);
}
}
function laymine() {
if (mtimer == 0) {
clip = _root.duplicate(_root.mine, 4);
clip._x = _x;
clip._y = _y;
clip._rotation = rot("get");
clip.exists = true;
mtimer = 80;
} else {
mtimer--;
}
}
builtTimer = 40;
stat = new Array();
stat.health = 50;
xd = 0;
yd = 0;
locx = ((Math.random() * 500) - 250) + _root.tank._x;
locy = ((Math.random() * 500) - 250) + _root.tank._x;
mtimer = 20;
}
onClipEvent (enterFrame) {
if (exists && (!_root.paused)) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
if (builtTimer > 0) {
builtTimer--;
_y = (_y + 2);
} else {
fire();
mov();
laymine();
i = 0;
while (i < _root.targets.length) {
t = _root.targets[i];
if (t != this) {
if (this.hitTest(t)) {
if (_x > t._x) {
_x = (_x + 2);
} else {
_x = (_x - 2);
}
if (_y > t._y) {
_y = (_y + 2);
} else {
_y = (_y - 2);
}
}
}
i++;
}
}
if ((_x + (_width / 2)) > _root.bounds.right) {
c = (_x + (_width / 2)) - _root.bounds.right;
_x = (_root.bounds.right - (_width / 2));
} else if ((_x - (_width / 2)) < _root.bounds.left) {
_x = (_root.bounds.left + (_width / 2));
}
if ((_y + (_height / 2)) > _root.bounds.bottom) {
_y = (_root.bounds.bottom - (_height / 2));
} else if ((_y - (_height / 2)) < _root.bounds.top) {
_y = (_root.bounds.top + (_height / 2));
}
if (stat.weaponTimer > 0) {
stat.weaponTimer--;
}
if (stat.health <= 0) {
detonate();
}
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 769 MovieClip "mine" in Frame 6
onClipEvent (load) {
function detonate() {
_root.playSound("exp4");
clip = _root.duplicate(_root.bexp, 1);
_root.tank.stat.health = _root.tank.stat.health - 3;
clip._x = _x;
clip._y = _y;
clip._rotation = Math.random() * 360;
clip.exists = true;
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (exists && (!_root.paused)) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
if ((Math.abs(_root.tank._x - _x) < 30) && (Math.abs(_root.tank._y - _y) < 30)) {
detonate();
}
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 772 MovieClip "gjet" in Frame 6
onClipEvent (load) {
function fire() {
if ((ftimer == 0) && ((_x > _root.bounds.left) && (_x < _root.bounds.right))) {
clip = _root.duplicate(_root.bomb, 1);
clip.exists = true;
clip.good = true;
clip._x = (_x + (Math.random() * 20)) - 10;
clip._y = (_y + (Math.random() * 60)) - 30;
ftimer = 30;
}
}
ftimer = 0;
}
onClipEvent (enterFrame) {
if (exists && (!_root.paused)) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
_x = (_x - 12);
if (_x < -600) {
_x = 8000;
_y = _root.tank._y;
}
fire();
if (ftimer > 0) {
ftimer--;
}
}
}
Instance of Symbol 787 MovieClip "boss1" in Frame 6
onClipEvent (load) {
function detonate() {
_root.playSound("exp2");
clip = _root.duplicate(_root.eexp, 1);
clip._x = _x;
clip._y = _y;
clip._rotation = Math.random() * 360;
clip.exists = true;
if (body > 1) {
this["b" + body]._visible = false;
stat.health = 400;
clip._xscale = (clip._yscale = 150);
powerup = Math.round(Math.random() * 4) + 5;
i = 0;
while (i < powerup) {
clip = _root.duplicate(_root.powerup, 1);
clip._x = _x;
clip._y = _y;
clip._rotation = Math.random() * 360;
clip.exists = true;
i++;
}
body--;
} else {
clip._xscale = (clip._yscale = 200);
powerup = Math.round(Math.random() * 4) + 12;
i = 0;
while (i < powerup) {
clip = _root.duplicate(_root.powerup, 1);
clip._x = _x;
clip._y = _y;
clip._rotation = Math.random() * 360;
clip.exists = true;
i++;
}
_root.menuTimer = 100;
this.removeMovieClip();
}
}
function attack() {
if (waitTimer == 0) {
if (attackMode == "unset") {
attackMode = chooseMode();
waitTimer = body * 30;
fireTimer = 60;
} else if (attackMode == "gun") {
if ((fireTimer % 5) == 0) {
_root.playSound("las2");
i = 0;
while (i < 2) {
p = _root.duplicate(_root.projectile, 1);
p._x = turret["point" + i].point.x;
p._y = turret["point" + i].point.y;
p._rotation = turret._rotation;
p.gotoAndStop(10);
p.typ = new Object({speed:28, damage:2, life:30, seek:0, hit:2, el:"laser"});
p.fer = this;
p.exists = true;
i++;
}
}
if (fireTimer == 0) {
attackMode = "unset";
}
fireTimer--;
} else if (attackMode == "cannon") {
if ((fireTimer % 20) == 0) {
_root.playSound("las1");
p = _root.duplicate(_root.projectile, 1);
p._x = turret.point6.point.x;
p._y = turret.point6.point.y;
p._rotation = turret._rotation;
p.gotoAndStop(11);
p.typ = new Object({speed:28, damage:10, life:30, seek:0, hit:1, el:"cannon"});
p.fer = this;
p.exists = true;
turret.play();
}
if (fireTimer > 0) {
fireTimer--;
} else {
attackMode = "unset";
}
} else if (attackMode == "volley") {
if ((fireTimer % 20) == 0) {
i = 0;
while (i < 4) {
p = _root.duplicate(_root.projectile, 1);
p._x = turret["point" + (i + 2)].point.x;
p._y = turret["point" + (i + 2)].point.y;
p._rotation = turret._rotation + (-30 + (i * 20));
p.gotoAndStop(9);
p.typ = new Object({speed:12, damage:3, life:35, seek:4, hit:1, el:"rocket"});
p.fer = this;
p.exists = true;
i++;
}
}
if (fireTimer == 0) {
attackMode = "unset";
}
fireTimer--;
} else if (attackMode == "dash") {
if (fireTimer <= 0) {
attackMode = "unset";
} else {
fireTimer = fireTimer - ((fireTimer % 2) + 1);
}
}
}
}
function mov() {
if ((Math.abs(_x - locx) < 40) && (Math.abs(_y - locy) < 40)) {
locx = ((Math.random() * 600) - 300) + _root.tank._x;
locy = ((Math.random() * 600) - 300) + _root.tank._y;
if ((locx > _root.bounds.right) || (locx < _root.bounds.left)) {
locx = -locx;
}
if ((locy < _root.bounds.top) || (locy > _root.bounds.bottom)) {
locy = -locy;
}
}
dash = (attackMode == "dash") && (waitTimer == 0);
if (dash) {
locx = _root.tank._x;
locy = _root.tank._y;
if (this.hitTest(_root.tank)) {
_root.tank.stat.health = _root.tank.stat.health - 1;
}
}
cx = locx - _x;
cy = locy - _y;
cdist = Math.sqrt(Math.pow(cx, 2) + Math.pow(cy, 2));
r = (Math.asin(cy / cdist) * 57.2957795130823) + 90;
if (cx < 0) {
r = 360 - r;
}
c = tread._rotation;
if (r < 0) {
r = 0 + (360 - Math.abs(r));
}
if (c < 0) {
c = 0 + (360 - Math.abs(c));
}
n = c - r;
if (n < 0) {
n = n + 360;
}
dst = Math.abs(n - 180);
if (n <= 180) {
tread._rotation = tread._rotation - (dash ? 10 : 3);
} else if (n > 180) {
tread._rotation = tread._rotation + (dash ? 10 : 3);
}
_x = (_x + (Math.sin(tread._rotation * (Math.PI/180)) * (dash ? 12 : 3)));
_y = (_y - (Math.cos(tread._rotation * (Math.PI/180)) * (dash ? 12 : 3)));
locx = locx + _root.xc;
locy = locy + _root.yc;
}
function chooseMode() {
dashProb = (gunProb = 20 + ((body * 10) / 2));
cannonProb = (volleyProb = (100 - (2 * dashProb)) / 2);
p = new Array(dashProb, dashProb * 2, (dashProb * 2) + cannonProb, 100);
r = Math.random() * 100;
i = 0;
while (i < 4) {
if (r <= p[i]) {
return(((i == 0) ? "cannon" : (((i == 1) ? "dash" : (((i == 2) ? "gun" : "volley"))))));
}
i++;
}
}
attackMode = "unset";
fireTimer = 0;
waitTimer = 0;
boss = true;
stat = new Array();
stat.health = 400;
body = 3;
locx = ((Math.random() * 600) - 300) + _root.tank._x;
locy = ((Math.random() * 600) - 300) + _root.tank._y;
if ((locx > _root.bounds.right) || (locx < _root.bounds.left)) {
locx = -locx;
}
if ((locy > _root.bounds.top) || (locy < _root.bounds.bottom)) {
locy = -locy;
}
}
onClipEvent (enterFrame) {
if (exists && (!_root.paused)) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
cx = _root.tank._x - _x;
cy = _root.tank._y - _y;
cdist = Math.sqrt(Math.pow(cx, 2) + Math.pow(cy, 2));
r = (Math.asin(cy / cdist) * 57.2957795130823) + 90;
if (cx < 0) {
r = 360 - r;
}
turret._rotation = r;
attack();
mov();
i = 0;
while (i < _root.targets.length) {
t = _root.targets[i];
if (t != this) {
if (this.hitTest(t)) {
if (_x > t._x) {
_x = (_x + 2);
} else {
_x = (_x - 2);
}
if (_y > t._y) {
_y = (_y + 2);
} else {
_y = (_y - 2);
}
}
}
i++;
}
if ((_x + (_width / 2)) > _root.bounds.right) {
c = (_x + (_width / 2)) - _root.bounds.right;
_x = (_root.bounds.right - (_width / 2));
} else if ((_x - (_width / 2)) < _root.bounds.left) {
_x = (_root.bounds.left + (_width / 2));
}
if ((_y + (_height / 2)) > _root.bounds.bottom) {
_y = (_root.bounds.bottom - (_height / 2));
} else if ((_y - (_height / 2)) < _root.bounds.top) {
_y = (_root.bounds.top + (_height / 2));
}
h = stat.health;
this["b" + body].gotoAndStop(((h > 250) ? 1 : (((h > 100) ? 2 : 3))));
if (stat.health <= 0) {
detonate();
}
if (waitTimer > 0) {
waitTimer--;
}
}
if (_root.end) {
this.removeMovieClip();
}
}
Instance of Symbol 804 MovieClip "eexp" in Frame 6
onClipEvent (enterFrame) {
if (exists) {
_x = (_x + _root.xc);
_y = (_y + _root.yc);
}
if (_root.end) {
this.removeMovieClip();
}
}
Symbol 18 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 24 Button
on (release) {
_root.play();
}
Instance of Symbol 36 MovieClip in Symbol 39 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 2);
}
Symbol 39 MovieClip Frame 289
_root.play();
Symbol 46 MovieClip Frame 1
stopAllSounds();
Symbol 50 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 53 MovieClip Frame 140
_root.play();
Symbol 57 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 36 MovieClip in Symbol 59 MovieClip Frame 1
onClipEvent (enterFrame) {
}
Symbol 63 Button
on (release) {
_root.loadGame();
}
Symbol 72 Button
on (release) {
_root.saveGame();
}
Symbol 80 Button
on (release) {
_root.playNewGame();
}
Symbol 92 Button
on (release) {
_root.callDialogue(2);
}
Symbol 93 Button
on (release) {
_root.callDialogue(1);
}
Symbol 94 Button
on (release) {
_root.callDialogue(3);
}
Symbol 109 Button
on (release) {
_root.isDialogue = false;
this.removeMovieClip();
}
Symbol 118 Button
on (release) {
if (_root.useMusic) {
_root.mtxt = "MUSIC - Off";
stopAllSounds();
} else {
_root.mtxt = "MUSIC - On";
_root.music.onSoundComplete();
}
_root.useMusic = !_root.useMusic;
}
Symbol 120 Button
on (release) {
if (_root.useSFX) {
_root.stxt = "SOUND - Off";
} else {
_root.stxt = "SOUND - On";
}
_root.useSFX = !_root.useSFX;
}
Symbol 122 Button
on (release) {
if (_root._quality == "LOW") {
_root._quality = "MEDIUM";
_root.qtxt = "QUALITY - Low";
} else if (_root._quality == "MEDIUM") {
_root._quality = "HIGH";
_root.qtxt = "QUALITY - Med";
} else if (_root._quality == "HIGH") {
_root._quality = "LOW";
_root.qtxt = "QUALITY - High";
}
}
Symbol 126 MovieClip Frame 1
stop();
Symbol 127 Button
on (release) {
doAction();
}
Instance of Symbol 128 MovieClip in Symbol 135 MovieClip Frame 1
onClipEvent (load) {
function doAction() {
_root.gotoAndStop(4);
}
}
Instance of Symbol 128 MovieClip in Symbol 135 MovieClip Frame 1
onClipEvent (load) {
function doAction() {
getURL ("http://www.armorgames.com", "_blank");
}
}
Instance of Symbol 128 MovieClip in Symbol 135 MovieClip Frame 1
onClipEvent (load) {
function doAction() {
_root.gotoAndStop(6);
}
}
Symbol 154 MovieClip Frame 1
stop();
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 2
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "missileCrawler";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 2
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "missileCrawler";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 3
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "speeder";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 4
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "speeder";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 4
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "minelayer";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 4
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "missileCrawler";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 4
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "missileCrawler";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 5
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "missileCrawler";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 5
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "missileCrawler";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 5
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "speeder";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 6
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "speeder";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 6
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "minelayer";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 7
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "missileCrawler";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 8
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "minelayer";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 8
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "minelayer";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 144 MovieClip in Symbol 159 MovieClip Frame 10
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
chp = 0;
unit = "checkpoint";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 12
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "missileCrawler";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 12
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "missileCrawler";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 12
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "speeder";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 12
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "speeder";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 146 MovieClip in Symbol 159 MovieClip Frame 12
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "factory";
u = "missileCrawler";
max = 1;
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 12
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "minelayer";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 13
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "missileCrawler";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 13
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "missileCrawler";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 13
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "speeder";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 13
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "minelayer";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 148 MovieClip in Symbol 159 MovieClip Frame 13
onClipEvent (load) {
done = false;
unit = "jet";
}
onClipEvent (enterFrame) {
if (!done) {
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 146 MovieClip in Symbol 159 MovieClip Frame 14
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "factory";
u = "speeder";
max = 1;
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 14
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "speeder";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 14
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "speeder";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 14
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "minelayer";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 15
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "missileCrawler";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 15
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "speeder";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 15
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "speeder";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 15
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "minelayer";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 148 MovieClip in Symbol 159 MovieClip Frame 15
onClipEvent (load) {
done = false;
unit = "jet";
}
onClipEvent (enterFrame) {
if (!done) {
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 148 MovieClip in Symbol 159 MovieClip Frame 15
onClipEvent (load) {
done = false;
unit = "jet";
}
onClipEvent (enterFrame) {
if (!done) {
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 148 MovieClip in Symbol 159 MovieClip Frame 15
onClipEvent (load) {
done = false;
unit = "jet";
}
onClipEvent (enterFrame) {
if (!done) {
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 146 MovieClip in Symbol 159 MovieClip Frame 16
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "factory";
u = "missileCrawler";
max = 1;
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 146 MovieClip in Symbol 159 MovieClip Frame 16
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "factory";
u = "minelayer";
max = 1;
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 16
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "speeder";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 16
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "speeder";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 16
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "minelayer";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 16
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "minelayer";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 17
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "missileCrawler";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 17
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "missileCrawler";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 17
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "missileCrawler";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 17
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "speeder";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 17
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "speeder";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 17
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "minelayer";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 148 MovieClip in Symbol 159 MovieClip Frame 17
onClipEvent (load) {
done = false;
unit = "jet";
}
onClipEvent (enterFrame) {
if (!done) {
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 148 MovieClip in Symbol 159 MovieClip Frame 17
onClipEvent (load) {
done = false;
unit = "jet";
}
onClipEvent (enterFrame) {
if (!done) {
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 146 MovieClip in Symbol 159 MovieClip Frame 18
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "factory";
u = "missileCrawler";
max = 2;
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 146 MovieClip in Symbol 159 MovieClip Frame 18
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "factory";
u = "speeder";
max = 2;
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 18
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "speeder";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 18
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "minelayer";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 144 MovieClip in Symbol 159 MovieClip Frame 20
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
chp = 0;
unit = "checkpoint";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 150 MovieClip in Symbol 159 MovieClip Frame 22
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "turret";
t = "laser";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 146 MovieClip in Symbol 159 MovieClip Frame 22
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "factory";
u = "missileCrawler";
max = 3;
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 148 MovieClip in Symbol 159 MovieClip Frame 22
onClipEvent (load) {
done = false;
unit = "jet";
}
onClipEvent (enterFrame) {
if (!done) {
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 148 MovieClip in Symbol 159 MovieClip Frame 22
onClipEvent (load) {
done = false;
unit = "jet";
}
onClipEvent (enterFrame) {
if (!done) {
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 148 MovieClip in Symbol 159 MovieClip Frame 22
onClipEvent (load) {
done = false;
unit = "jet";
}
onClipEvent (enterFrame) {
if (!done) {
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 148 MovieClip in Symbol 159 MovieClip Frame 22
onClipEvent (load) {
done = false;
unit = "jet";
}
onClipEvent (enterFrame) {
if (!done) {
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 150 MovieClip in Symbol 159 MovieClip Frame 23
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "turret";
t = "rocket";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 148 MovieClip in Symbol 159 MovieClip Frame 23
onClipEvent (load) {
done = false;
unit = "jet";
}
onClipEvent (enterFrame) {
if (!done) {
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 150 MovieClip in Symbol 159 MovieClip Frame 24
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "turret";
t = "laser";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 150 MovieClip in Symbol 159 MovieClip Frame 24
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "turret";
t = "laser";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 146 MovieClip in Symbol 159 MovieClip Frame 24
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "factory";
u = "speeder";
max = 2;
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 146 MovieClip in Symbol 159 MovieClip Frame 24
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "factory";
u = "speeder";
max = 2;
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 148 MovieClip in Symbol 159 MovieClip Frame 24
onClipEvent (load) {
done = false;
unit = "jet";
}
onClipEvent (enterFrame) {
if (!done) {
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 150 MovieClip in Symbol 159 MovieClip Frame 25
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "turret";
t = "rocket";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 150 MovieClip in Symbol 159 MovieClip Frame 26
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "turret";
t = "laser";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 150 MovieClip in Symbol 159 MovieClip Frame 26
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "turret";
t = "beam";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 150 MovieClip in Symbol 159 MovieClip Frame 26
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "turret";
t = "rocket";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 146 MovieClip in Symbol 159 MovieClip Frame 26
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "factory";
u = "missileCrawler";
max = 3;
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 146 MovieClip in Symbol 159 MovieClip Frame 26
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "factory";
u = "minelayer";
max = 2;
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 148 MovieClip in Symbol 159 MovieClip Frame 26
onClipEvent (load) {
done = false;
unit = "jet";
}
onClipEvent (enterFrame) {
if (!done) {
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 148 MovieClip in Symbol 159 MovieClip Frame 26
onClipEvent (load) {
done = false;
unit = "jet";
}
onClipEvent (enterFrame) {
if (!done) {
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 148 MovieClip in Symbol 159 MovieClip Frame 26
onClipEvent (load) {
done = false;
unit = "jet";
}
onClipEvent (enterFrame) {
if (!done) {
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 148 MovieClip in Symbol 159 MovieClip Frame 26
onClipEvent (load) {
done = false;
unit = "jet";
}
onClipEvent (enterFrame) {
if (!done) {
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 144 MovieClip in Symbol 159 MovieClip Frame 28
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
chp = 0;
unit = "checkpoint";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 154 MovieClip in Symbol 159 MovieClip Frame 30
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "boss";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 148 MovieClip in Symbol 159 MovieClip Frame 91
onClipEvent (load) {
done = false;
unit = "jet";
}
onClipEvent (enterFrame) {
if (!done) {
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 150 MovieClip in Symbol 159 MovieClip Frame 91
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "turret";
t = "laser";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 146 MovieClip in Symbol 159 MovieClip Frame 91
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "factory";
u = "speeder";
max = 2;
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 154 MovieClip in Symbol 159 MovieClip Frame 91
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "boss";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 139 MovieClip in Symbol 159 MovieClip Frame 91
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
unit = "missileCrawler";
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Instance of Symbol 144 MovieClip in Symbol 159 MovieClip Frame 91
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
chp = 0;
_parent.toSpawn[_parent.toSpawn.length] = this;
this._visible = false;
done = true;
}
}
Symbol 168 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 1
stop();
Instance of Symbol 172 MovieClip "point" in Symbol 182 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Symbol 196 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 1
stop();
Instance of Symbol 172 MovieClip "point" in Symbol 209 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Symbol 229 MovieClip Frame 15
this.removeMovieClip();
Symbol 230 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 10
_parent.removeMovieClip();
Instance of Symbol 309 MovieClip in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
pos = 40;
_xscale = 0;
}
onClipEvent (enterFrame) {
pos = pos + ((_root.FPS - pos) / 5);
_xscale = (2.5 * (40 - pos));
if (_xscale < 0) {
_xscale = 0;
}
}
Instance of Symbol 316 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (load) {
xst = 0;
_xscale = 0;
}
onClipEvent (enterFrame) {
xst = _root.tank.stat.health;
_xscale = (_xscale + ((xst - _xscale) / 3));
}
Instance of Symbol 321 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (enterFrame) {
_alpha = _root.tank.hGlow;
}
Symbol 326 MovieClip Frame 1
stop();
Symbol 331 Button
on (release) {
_root.tank.stat.weapon = w;
}
Instance of Symbol 326 MovieClip "sc" in Symbol 334 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.tank.stat.weapon == _parent.w) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 340 Button
on (release) {
_root.useTarget = !_root.useTarget;
if (_root.useTarget) {
_root.useTargetText = "Auto-Targeting On";
} else {
_root.useTargetText = "Auto-Targeting Off";
}
}
Instance of Symbol 334 MovieClip in Symbol 341 MovieClip Frame 1
onClipEvent (load) {
wep = "1 - Laser Cannon";
w = "laser";
}
Instance of Symbol 334 MovieClip in Symbol 341 MovieClip Frame 1
onClipEvent (load) {
wep = "2 - Rocket Volley";
w = "rocket";
}
Instance of Symbol 334 MovieClip in Symbol 341 MovieClip Frame 1
onClipEvent (load) {
wep = "3 - Explosive Cannon";
w = "cannon";
}
Symbol 345 Button
on (release) {
_root.pause();
}
Symbol 351 Button
on (release) {
if (st == "Auto") {
st = "Manual";
} else {
st = "Auto";
}
}
Symbol 359 Button
on (release) {
_root.tank.stat[_parent.txt.toLowerCase() + "Level"] = num;
}
Symbol 365 MovieClip Frame 1
stop();
Instance of Symbol 362 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.tank.stat[_parent._parent.txt.toLowerCase() + "Level"] == _parent.num) {
_visible = true;
} else {
_visible = false;
}
evalue = _root.tank.stat[_parent._parent.txt.toLowerCase() + "Energy"];
if (evalue == 1) {
elevel = 0;
} else {
elevel = Math.ceil(evalue / 200);
}
if (_root.tank[_parent._parent.txt.toLowerCase() + "Auto"]) {
if ((_parent.num - 1) != elevel) {
_parent.gotoAndStop(2);
} else {
_parent.gotoAndStop(1);
}
} else if ((_parent.num - 1) > elevel) {
_parent.gotoAndStop(2);
} else {
_parent.gotoAndStop(1);
}
}
Instance of Symbol 354 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
st = "Auto";
}
onClipEvent (enterFrame) {
if (st == "Auto") {
_root.tank[_parent.txt.toLowerCase() + "Auto"] = true;
} else {
_root.tank[_parent.txt.toLowerCase() + "Auto"] = false;
}
}
Instance of Symbol 365 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
num = 1;
}
Instance of Symbol 365 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
num = 2;
}
Instance of Symbol 365 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
num = 3;
}
Instance of Symbol 365 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
num = 4;
}
Instance of Symbol 365 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
num = 5;
}
Instance of Symbol 316 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (load) {
xst = 0;
_xscale = 0;
}
onClipEvent (enterFrame) {
xst = (_root.tank.stat[_parent.txt.toLowerCase() + "Energy"] / 10) * 0.923076923076923;
_xscale = (_xscale + ((xst - _xscale) / 3));
}
Instance of Symbol 321 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (enterFrame) {
_alpha = (_root.tank.eGlow / 2);
}
Instance of Symbol 322 MovieClip in Symbol 369 MovieClip Frame 1
onClipEvent (load) {
txt = "Health";
}
Instance of Symbol 341 MovieClip in Symbol 369 MovieClip Frame 1
onClipEvent (load) {
w = "laser";
}
onClipEvent (enterFrame) {
}
Instance of Symbol 347 MovieClip in Symbol 369 MovieClip Frame 1
onClipEvent (load) {
txt = "Pause";
}
Instance of Symbol 368 MovieClip in Symbol 369 MovieClip Frame 1
onClipEvent (load) {
txt = "Weapon";
}
Instance of Symbol 368 MovieClip in Symbol 369 MovieClip Frame 1
onClipEvent (load) {
txt = "Speed";
st = "auto";
}
Instance of Symbol 368 MovieClip in Symbol 369 MovieClip Frame 1
onClipEvent (load) {
txt = "Armor";
st = "auto";
}
Symbol 383 MovieClip Frame 15
this.removeMovieClip();
Symbol 399 MovieClip Frame 15
_parent._parent.removeMovieClip();
Symbol 411 MovieClip Frame 15
this.removeMovieClip();
Symbol 417 MovieClip Frame 5
this.removeMovieClip();
Symbol 417 MovieClip Frame 14
this.removeMovieClip();
Symbol 417 MovieClip Frame 24
this.removeMovieClip();
Symbol 417 MovieClip Frame 34
this.removeMovieClip();
Symbol 433 MovieClip Frame 15
_parent._parent.removeMovieClip();
Symbol 445 MovieClip Frame 15
this.removeMovieClip();
Symbol 489 MovieClip Frame 15
this.removeMovieClip();
Symbol 504 MovieClip Frame 15
_parent._parent.removeMovieClip();
this.removeMovieClip();
Symbol 520 MovieClip Frame 15
this.removeMovieClip();
Symbol 527 MovieClip Frame 1
function detonate() {
i = 0;
while (i < _root.targets.length) {
if (_root.targets[i] == this) {
_root.targets.splice(i, 1);
}
i++;
}
_visible = false;
}
stat = new Array();
stat.health = 200;
onEnterFrame = function () {
h = stat.health;
gotoAndStop(((h > 150) ? 2 : (((h > 50) ? 3 : 4))));
if (stat.health <= 0) {
detonate();
}
};
Symbol 527 MovieClip Frame 2
stop();
Instance of Symbol 172 MovieClip "point0" in Symbol 529 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Instance of Symbol 172 MovieClip "point1" in Symbol 529 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Instance of Symbol 172 MovieClip "point2" in Symbol 529 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Instance of Symbol 172 MovieClip "point4" in Symbol 529 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Instance of Symbol 172 MovieClip "point5" in Symbol 529 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Instance of Symbol 172 MovieClip "point6" in Symbol 529 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Instance of Symbol 172 MovieClip "point7" in Symbol 529 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Instance of Symbol 172 MovieClip "point8" in Symbol 529 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Symbol 545 MovieClip Frame 1
stop();
Symbol 555 MovieClip Frame 1
stop();
Symbol 556 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 15
_parent._parent.removeMovieClip();
Symbol 575 MovieClip Frame 1
stop();
Instance of Symbol 172 MovieClip "point" in Symbol 575 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Symbol 576 MovieClip Frame 1
stop();
Symbol 578 MovieClip Frame 1
stop();
Symbol 593 MovieClip Frame 15
_parent._parent.removeMovieClip();
Symbol 594 MovieClip Frame 1
stop();
Symbol 608 MovieClip Frame 15
_parent._parent.removeMovieClip();
Symbol 609 MovieClip Frame 1
stop();
Symbol 624 MovieClip Frame 15
_parent._parent.removeMovieClip();
Symbol 625 MovieClip Frame 1
stop();
Symbol 638 MovieClip Frame 15
_parent._parent.removeMovieClip();
Symbol 639 MovieClip Frame 1
stop();
Symbol 651 MovieClip Frame 15
_parent._parent.removeMovieClip();
Symbol 652 MovieClip Frame 1
stop();
Symbol 669 MovieClip Frame 15
_parent._parent.removeMovieClip();
Symbol 670 MovieClip Frame 1
stop();
Symbol 687 MovieClip Frame 1
stop();
Instance of Symbol 680 MovieClip "glow" in Symbol 687 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 60);
}
Symbol 739 MovieClip Frame 15
this.removeMovieClip();
Instance of Symbol 172 MovieClip "point0" in Symbol 747 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Instance of Symbol 172 MovieClip "point1" in Symbol 747 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Instance of Symbol 172 MovieClip "point0" in Symbol 751 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Instance of Symbol 172 MovieClip "point1" in Symbol 751 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Instance of Symbol 172 MovieClip "point2" in Symbol 751 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Instance of Symbol 172 MovieClip "point" in Symbol 755 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Symbol 779 MovieClip Frame 1
stop();
Symbol 783 MovieClip Frame 1
stop();
Symbol 786 MovieClip Frame 1
stop();
Instance of Symbol 172 MovieClip "point0" in Symbol 786 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Instance of Symbol 172 MovieClip "point1" in Symbol 786 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Instance of Symbol 172 MovieClip "point2" in Symbol 786 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Instance of Symbol 172 MovieClip "point3" in Symbol 786 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Instance of Symbol 172 MovieClip "point4" in Symbol 786 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Instance of Symbol 172 MovieClip "point5" in Symbol 786 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Instance of Symbol 172 MovieClip "point6" in Symbol 786 MovieClip Frame 1
onClipEvent (load) {
var point = new Object();
}
onClipEvent (enterFrame) {
point.x = _x;
point.y = _y;
this.localToGlobal(point);
}
Symbol 804 MovieClip Frame 17
this.removeMovieClip();