Frame 1
stop();
if (System.capabilities.os == "Nintendo Wii") {
_root.wiiControl = true;
_root.graphicsRating = 0.5;
wiiflashinst._visible = false;
} else {
_root.wiiControl = false;
}
Stage.showMenu = false;
Instance of Symbol 54 MovieClip in Frame 1
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Frame 2
stop();
Frame 3
_root._quality = "high";
stop();
Instance of Symbol 128 MovieClip in Frame 3
/* no clip actions */
Instance of Symbol 138 MovieClip in Frame 3
onClipEvent (load) {
if (_root.instRead == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 54 MovieClip in Frame 3
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Instance of Symbol 332 MovieClip "HStable" in Frame 8
onClipEvent (load) {
stop();
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = _root.hid;
__top10_send__.kid = _root.kid;
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_root.HStable[("_name" + i) + "_"].text = __top10_receive__["name" + i];
_root.HStable[("_score" + i) + "_"].text = __top10_receive__["score" + i];
i++;
}
} else {
_root.__err__.gotoAndStop(2);
}
};
}
Frame 9
stop();
_root._quality = "medium";
_quality = "medium";
Instance of Symbol 283 MovieClip "hud" in Frame 9
onClipEvent (load) {
activeFrame = 40;
}
onClipEvent (enterFrame) {
if (_root.barry.gameComplete == false) {
if ((_root.gameFroze == true) and (this._currentframe != activeFrame)) {
this.play();
} else if (_root.gameFroze == false) {
this.gotoAndStop(1);
}
} else if (_root.gameFroze == false) {
this.gotoAndStop("complete");
}
}
Instance of Symbol 469 MovieClip in Frame 9
onClipEvent (load) {
_root.inactivityPause = "";
stop();
pauseFrame = 1;
keyPressed = false;
activityTimer = 0;
mousePressed = false;
}
onClipEvent (enterFrame) {
if (_root.barry.dead == false) {
if (_root.gameFroze == false) {
if (activityTimer < 2000) {
if (_root.gamePaused == false) {
activityTimer++;
}
} else {
activityTimer = 0;
_root.inactivityPause = "Game paused due to inactivity";
_root.gamePaused = true;
}
if ((Key.isDown(80) and (keyPressed == false)) or (mousePressed == true)) {
mousePressed = false;
keyPressed = true;
if (_root.gamePaused == true) {
_root.inactivityPause = "";
_root.gamePaused = false;
} else {
_root.gamePaused = true;
}
} else if (Key.isDown(80) == false) {
keyPressed = false;
}
if (_root.gamePaused == false) {
if (pauseFrame != 1) {
pauseFrame--;
this.prevFrame();
}
} else if (pauseFrame != 20) {
pauseFrame++;
this.nextFrame();
}
} else {
this.gotoAndStop(1);
pauseFrame = 1;
}
if ((Key.isDown(39) or Key.isDown(37)) or Key.isDown(80)) {
activityTimer = 0;
}
}
}
onClipEvent (mouseDown) {
if ((_root.wiiControl == true) and (_root.gamePaused == false)) {
mousePressed = true;
}
}
onClipEvent (mouseMove) {
if (_root.wiiControl == true) {
activityTimer = 0;
}
}
Instance of Symbol 472 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (((_root.barry._y > -20) or (_root.gamePaused == true)) or (_root.gameFroze == true)) {
this._x = -500;
} else {
this._x = _root.barry._x;
this._xscale = 500 + _root.barry._y;
if (this._xscale < 0) {
this._xscale = 0;
}
this._yscale = _xscale;
}
}
Instance of Symbol 481 MovieClip "bulletHit" in Frame 9
onClipEvent (load) {
placeSwitch = false;
_visible = false;
}
onClipEvent (enterFrame) {
this._xscale = 100 * _root.splashDamage;
this._yscale = _xscale;
if ((this._x != -1000) and (placeSwitch == false)) {
placeSwitch = true;
} else if (this._x != -1000) {
this._x = -1000;
} else if (this._x == -1000) {
placeSwitch = false;
}
}
Instance of Symbol 151 MovieClip "barry" in Frame 9
onClipEvent (load) {
function physics(xPos, power) {
_root.barry.xSpeed = (_x - xPos) / (20 / power);
_root.barry.spin = xSpeed;
if (barry.drop > 0) {
_root.barry.drop = _root.barry.drop + ((random(power) + (power * 2)) * -1);
} else {
_root.barry.drop = (random(power) + (power * 2)) * -1;
}
}
function cloneEnemy() {
if ((level == 1) or (level == 2)) {
if (Math.round(random(300) / EBomber) == 0) {
_root.enemy.newEnemy(random(550), random(250) + 50, "Enemy_Bomber");
}
}
if (Math.round(random(500) / EBomber) == 0) {
_root.enemy.newEnemy(random(550), random(250) + 50, "Enemy_Bomber");
}
if (Math.round(random(500) / EGunner) == 0) {
_root.enemy.newEnemy(random(550), random(250) + 50, "Enemy_Gunner");
}
if (Math.round(random(500) / EBouncer) == 0) {
_root.enemy.newEnemy(random(550), random(250) + 50, "Enemy_Bouncer");
}
if (Math.round(random(500) / EHomer) == 0) {
_root.enemy.newEnemy(random(550), random(250) + 50, "Enemy_Homer");
}
if (Math.round(random(500) / EMiner) == 0) {
_root.enemy.newEnemy(random(550), random(250) + 50, "Enemy_Miner");
}
}
gameComplete = false;
dead = false;
moveSwitch = false;
totalEXP = 0;
EBomber = 5;
EGunner = 0;
EBouncer = 0;
EHomer = 0;
EMiner = 0;
airTime = 0;
maxAirTime = 0;
combo = 0;
maxCombo = 0;
leftSide = 50;
rightSide = 550;
_root.gamePaused = false;
_root.gameFroze = false;
_root.graphicsRating = 0.5;
xSpeed = 0;
xSpeedMax = 10;
accel = 1;
bodyHeight = body._y;
wheelHeight = wheelF._y;
maxFuel = 500;
fuel = maxFuel;
experience = 0;
expStore = 0;
expPot = 0;
maxExpStore = 0;
nextLevel = 100;
level = 1;
enemyArray = ["Enemy_Bomber", "Enemy_Bouncer", "Enemy_Miner", "Enemy_Homer", "Enemy_Gunner", "Enemy_Bomber"];
drop = 0;
groundLevel = this._y;
maxHeight = groundLevel;
maxHeightStore = 0;
}
onClipEvent (enterFrame) {
if (dead == true) {
if (_visible == true) {
_visible = false;
_root.effects.spark(this._x, this._y, 40, 4, 250, "Effect_fragment");
_root.effects.spark(this._x, this._y, 40, 20, 200, "Effect_spark");
_root.effects.spark(this._x, this._y, 80, 10, 200, "Effect_smoke");
_root.sound.gotoAndStop("enemyDestroy");
_root.sound.gotoAndStop(1);
this._x = -1000;
_root.hud.swapDepths(0);
_root.hud.removeMovieClip();
} else if (_alpha > 0) {
_alpha = (_alpha - 2);
} else if ((_root._alpha > 0) and (moveSwitch == false)) {
_root._alpha = _root._alpha - 2;
} else {
moveSwitch = true;
_root.gotoAndStop("gameOver");
}
}
if (((_root.gamePaused == false) and (_root.gameFroze == false)) and (dead == false)) {
cloneEnemy();
if (gameComplete == false) {
if (fuel > 0) {
fuel = fuel - 0.25;
} else {
dead = true;
}
fuelDisplay = Math.round(fuel);
}
if (expPot > 0) {
experience = experience + level;
expPot = expPot - level;
}
if (gameComplete == false) {
if (experience >= nextLevel) {
experience = 0;
nextLevel = nextLevel * 1.3;
nextLevel = Math.round(nextLevel);
_root.effects.exp(50, 300, "", "LEVEL UP", 350);
level++;
_root.sound.gotoAndStop("level");
_root.sound.gotoAndStop(1);
_root.gameFroze = true;
}
} else {
nextLevel = "";
}
airTime++;
this._y = this._y + drop;
tankHeight = this._y - groundLevel;
if (tankHeight < maxHeight) {
maxHeight = tankHeight;
}
drop++;
if (this._y >= groundLevel) {
if (airTime > maxAirTime) {
maxAirTime = airTime;
}
airTime = 0;
if (combo > maxCombo) {
maxCombo = combo;
}
if (combo > 0) {
maxHeight = maxHeight * -1;
maxHeight = maxHeight / 4;
if (Math.round(maxHeight) > maxHeightStore) {
maxHeightStore = Math.round(maxHeight);
}
if (combo > 1) {
expStore = expStore * ((combo / 10) + 1);
expStore = Math.round(expStore);
if (expStore > maxExpStore) {
maxExpStore = expStore;
}
}
dataString = [((((Math.round(maxHeight) + " FT ") + combo) + " COMBO ") + expStore) + " EXP"];
_root.effects.exp(this._x, this._y, "", dataString, 200, true);
}
maxHeight = groundLevel;
expPot = expPot + expStore;
totalEXP = totalEXP + expStore;
expStore = 0;
combo = 0;
drop = (-drop) / 1.5;
if ((_rotation > 45) or (_rotation < -45)) {
spin = (-spin) / 1.2;
} else {
_rotation = (_rotation / 1.5);
}
if ((drop > -5) and (drop < 5)) {
resetRotation = true;
drop = 0;
} else {
_root.sound.gotoAndStop("land");
_root.sound.gotoAndStop(1);
}
this._y = groundLevel;
} else {
_rotation = (_rotation + spin);
resetRotation = false;
}
if (resetRotation == true) {
_rotation = (_rotation / 1.5);
}
shotPercent = (100 / shotsFired) * shotsHit;
body._y = bodyHeight + random(5);
wheelF._y = wheelHeight + random(5);
wheelB._y = wheelHeight + random(5);
wheelF._rotation = wheelF._rotation + (30 + (xSpeed * 2));
wheelB._rotation = wheelB._rotation + (30 + (xSpeed * 2));
if ((Key.isDown(39) or Key.isDown(68)) or ((_root._xmouse > this._x) and (_root.wiiControl == true))) {
if (body._rotation < 20) {
body._rotation = body._rotation + 2;
}
if (xSpeed < xSpeedMax) {
xSpeed = xSpeed + accel;
} else {
xSpeed = xSpeedMax;
}
} else if ((Key.isDown(37) or Key.isDown(65)) or ((_root._xmouse < this._x) and (_root.wiiControl == true))) {
if (body._rotation > -20) {
body._rotation = body._rotation - 2;
}
if (xSpeed > (-xSpeedMax)) {
xSpeed = xSpeed - accel;
} else {
xSpeed = -xSpeedMax;
}
}
body._rotation = body._rotation / 1.1;
xSpeed = xSpeed / 1.1;
this._x = this._x + xSpeed;
if (this._x > rightSide) {
xSpeed = 0;
this._x = rightSide - 5;
} else if (this._x < leftSide) {
xSpeed = 0;
this._x = leftSide + 5;
}
if (shotSwitch > 0) {
shotSwitch--;
}
}
}
Instance of Symbol 484 MovieClip in Frame 9
onClipEvent (enterFrame) {
if ((_root.gamePaused == false) and (_root.gameFroze == false)) {
play();
} else {
stop();
}
}
Instance of Symbol 485 MovieClip in Frame 9
onClipEvent (load) {
if (_root.wiiControl == true) {
this.swapDepths(0);
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if ((_root.gamePaused == false) and (_root.gameFroze == false)) {
play();
} else {
stop();
}
}
Instance of Symbol 486 MovieClip in Frame 9
onClipEvent (load) {
if (_root.wiiControl == true) {
this.swapDepths(0);
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if ((_root.gamePaused == false) and (_root.gameFroze == false)) {
play();
} else {
stop();
}
}
Frame 10
_root._alpha = 100;
Instance of Symbol 468 MovieClip "menuContent" in Frame 10
onClipEvent (load) {
stop();
}
Symbol 6 MovieClip [Effect_exp] Frame 1
function onEnterFrame() {
if (_alpha > 0) {
_alpha = (_alpha - alphaSpeed);
this._y = this._y - float;
float = float + floatSpeed;
} else {
this.removeMovieClip();
}
}
float = 0;
Symbol 8 MovieClip [Effect_fragment_barry] Frame 1
function onEnterFrame() {
if ((_root.gamePaused == false) and (_root.gameFroze == false)) {
if (_x > 0) {
_rotation = (_rotation + (xSpeed * 10));
_y = (_y + ySpeed);
_y = (_y + drop);
drop++;
_x = (_x + (xSpeed * 2));
if (_y > 400) {
_rotation = random(360);
drop = ((drop / 2) + 1) * -1;
xSpeed = -8;
}
} else {
this.removeMovieClip();
}
}
}
ySpeed = Speed * Math.sin(_rotation * (Math.PI/180));
xSpeed = Speed * Math.cos(_rotation * (Math.PI/180));
_rotation = random(360);
drop = -5;
Symbol 10 MovieClip [Effect_fragment] Frame 1
function onEnterFrame() {
if ((_root.gamePaused == false) and (_root.gameFroze == false)) {
if (_x > 0) {
_rotation = (_rotation + (xSpeed * 10));
_y = (_y + ySpeed);
_y = (_y + drop);
drop++;
_x = (_x + (xSpeed * 2));
if (_y > 400) {
drop = ((drop / 2) + 1) * -1;
xSpeed = -8;
}
} else {
this.removeMovieClip();
}
}
}
ySpeed = Speed * Math.sin(_rotation * (Math.PI/180));
xSpeed = Speed * Math.cos(_rotation * (Math.PI/180));
_rotation = random(360);
drop = -5;
Symbol 12 MovieClip [Weapon_Bomb] Frame 1
function onEnterFrame() {
if ((_root.gamePaused == false) and (_root.gameFroze == false)) {
if (this.hitTest(_root.bulletHit)) {
this.removeMovieClip();
}
if (_rotation < 180) {
_rotation = (_rotation + (xSpeed * 0.8));
}
_y = (_y + drop);
drop = drop + 0.2;
_x = (_x + xSpeed);
xSpeed = xSpeed / 1.1;
if (this.hitTest(_root.barry.hitBullet)) {
_root.effects.spark(this._x, this._y, 5, 4, 250, "Effect_fragment_barry");
_root.effects.spark(this._x, this._y, 10, 10, 150, "Effect_spark");
_root.effects.spark(this._x, this._y, 50, 10, 100, "Effect_smoke");
_root.barry.physics(this._x, 10);
_root.sound.gotoAndStop("hitbang");
_root.sound.gotoAndStop(1);
this.removeMovieClip();
} else if (this._y > (_root.barry.groundLevel + 20)) {
_root.effects.spark(this._x, this._y, 10, 10, 150, "Effect_spark");
_root.effects.spark(this._x, this._y, 10, 10, 200, "Effect_smoke");
_root.sound.gotoAndStop("bang");
_root.sound.gotoAndStop(1);
this.removeMovieClip();
}
}
}
drop = 0;
if (dir > 0) {
xSpeed = 10;
} else {
xSpeed = -10;
_xscale = (-_xscale);
}
Symbol 14 MovieClip [Weapon_Bouncer] Frame 1
function onEnterFrame() {
if ((_root.gamePaused == false) and (_root.gameFroze == false)) {
if (bounce == false) {
this._rotation = this._rotation + spin;
}
if (this.hitTest(_root.bulletHit)) {
this.removeMovieClip();
}
if (_rotation < 180) {
_rotation = (_rotation + (xSpeed * 0.8));
}
_y = (_y + drop);
drop = drop + 0.4;
_x = (_x + xSpeed);
xSpeed = xSpeed / 1.1;
if (this.hitTest(_root.barry.hitBullet)) {
_root.effects.spark(this._x, this._y, 5, 4, 250, "Effect_fragment_barry");
_root.effects.spark(this._x, this._y, 10, 10, 150, "Effect_spark");
_root.effects.spark(this._x, this._y, 50, 10, 100, "Effect_smoke");
_root.barry.physics(this._x, 10);
_root.sound.gotoAndStop("hitbang");
_root.sound.gotoAndStop(1);
this.removeMovieClip();
} else if (this._y > (_root.barry.groundLevel + 20)) {
_root.effects.spark(this._x, this._y, 10, 10, 150, "Effect_spark");
if (bounce == true) {
this._y = _root.barry.groundLevel;
drop = -10;
bounce = false;
} else {
_root.effects.spark(this._x, this._y, 10, 10, 200, "Effect_smoke");
_root.sound.gotoAndStop("bang");
_root.sound.gotoAndStop(1);
this.removeMovieClip();
}
}
}
}
drop = 0;
bounce = true;
spin = random(20) - 10;
if (dir > 0) {
xSpeed = 10;
} else {
xSpeed = -10;
_xscale = (-_xscale);
}
Symbol 17 MovieClip [Weapon_Seeker] Frame 1
function onEnterFrame() {
if ((_root.gamePaused == false) and (_root.gameFroze == false)) {
if (this.hitTest(_root.bulletHit)) {
this.removeMovieClip();
}
_rotation = Math.round((Math.atan2(_root.barry._y - this._y, _root.barry._x - this._x) / Math.PI) * 180);
ySpeed = bulletSpeed * Math.sin(_rotation * (Math.PI/180));
xSpeed = bulletSpeed * Math.cos(_rotation * (Math.PI/180));
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if ((this._x < 0) or (this._x > 600)) {
this.removeMovieClip();
}
if (this.hitTest(_root.barry.hitBullet)) {
_root.effects.spark(this._x, this._y, 5, 4, 250, "Effect_fragment_barry");
_root.effects.spark(this._x, this._y, 10, 10, 150, "Effect_spark");
_root.effects.spark(this._x, this._y, 50, 10, 100, "Effect_smoke");
_root.barry.physics(this._x, 5);
_root.sound.gotoAndStop("hitbang");
_root.sound.gotoAndStop(1);
this.removeMovieClip();
} else if (this._y > (_root.barry.groundLevel + 20)) {
_root.effects.spark(this._x, this._y, 10, 10, 150, "Effect_spark");
_root.effects.spark(this._x, this._y, 10, 10, 200, "Effect_smoke");
_root.sound.gotoAndStop("bang");
_root.sound.gotoAndStop(1);
this.removeMovieClip();
}
}
}
Symbol 20 MovieClip [Weapon_Homer] Frame 1
function onEnterFrame() {
if ((_root.gamePaused == false) and (_root.gameFroze == false)) {
if (this.hitTest(_root.bulletHit)) {
this.removeMovieClip();
}
if (timer > 0) {
barryPos = Math.round((Math.atan2(_root.barry._y - this._y, _root.barry._x - this._x) / Math.PI) * 180);
if (barryPos < 0) {
barryPos = barryPos * -1;
}
if (_rotation < barryPos) {
_rotation = (_rotation + 10);
} else {
_rotation = (_rotation - 10);
}
ySpeed = bulletSpeed * Math.sin(_rotation * (Math.PI/180));
xSpeed = bulletSpeed * Math.cos(_rotation * (Math.PI/180));
timer--;
}
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (((this._y < 0) or (this._x < 0)) or (this._x > 600)) {
this.removeMovieClip();
}
if (this.hitTest(_root.barry.hitBullet)) {
_root.effects.spark(this._x, this._y, 5, 4, 250, "Effect_fragment_barry");
_root.effects.spark(this._x, this._y, 10, 10, 150, "Effect_spark");
_root.effects.spark(this._x, this._y, 50, 10, 100, "Effect_smoke");
_root.barry.physics(this._x, 10);
_root.sound.gotoAndStop("hitbang");
_root.sound.gotoAndStop(1);
this.removeMovieClip();
} else if (this._y > (_root.barry.groundLevel + 20)) {
_root.effects.spark(this._x, this._y, 10, 10, 150, "Effect_spark");
_root.effects.spark(this._x, this._y, 10, 10, 200, "Effect_smoke");
_root.sound.gotoAndStop("bang");
_root.sound.gotoAndStop(1);
this.removeMovieClip();
}
}
}
Symbol 22 MovieClip [Weapon_Bullet] Frame 1
function onEnterFrame() {
if ((_root.gamePaused == false) and (_root.gameFroze == false)) {
if (this.hitTest(_root.bulletHit)) {
this.removeMovieClip();
}
_y = (_y + ySpeed);
_x = (_x + xSpeed);
if (((this._y < 0) or (this._x < 0)) or (this._x > 600)) {
this.removeMovieClip();
}
if (this.hitTest(_root.barry.hitBullet)) {
_root.effects.spark(this._x, this._y, 5, 4, 250, "Effect_fragment_barry");
_root.effects.spark(this._x, this._y, 10, 10, 150, "Effect_spark");
_root.effects.spark(this._x, this._y, 50, 10, 100, "Effect_smoke");
_root.barry.physics(this._x, 10);
this.removeMovieClip();
} else if (this._y > (_root.barry.groundLevel + 20)) {
_root.effects.spark(this._x, this._y, 10, 10, 150, "Effect_spark");
_root.effects.spark(this._x, this._y, 10, 10, 200, "Effect_smoke");
this.removeMovieClip();
}
}
}
_rotation = Math.round((Math.atan2(_root.barry._y - this._y, _root.barry._x - this._x) / Math.PI) * 180);
ySpeed = bulletSpeed * Math.sin(_rotation * (Math.PI/180));
xSpeed = bulletSpeed * Math.cos(_rotation * (Math.PI/180));
Symbol 24 MovieClip [Bullet] Frame 1
function onEnterFrame() {
_y = (_y + ySpeed);
_x = (_x + xSpeed);
ySpeed = ySpeed + _root.barry.bulletRange;
if (_root.enemy.hitTest(_x, _y, true)) {
_root.barry.shotsHit++;
_root.bulletHit._x = this._x;
_root.bulletHit._y = this._y;
_root.effects.spark(this._x, this._y, 20, 10, 100, "Effect_spark");
this.removeMovieClip();
}
if (((this._y > (_root.barry.groundLevel + 20)) or (this._x < 0)) or (this._x > 600)) {
this.removeMovieClip();
}
}
_rotation = Math.round((Math.atan2(_parent._ymouse - _root.barry._y, _parent._xmouse - _root.barry._x) / Math.PI) * 180);
_rotation = (_rotation + ((random(_root.barry.bulletSpray * 10) / 10) - (_root.barry.bulletSpray / 2)));
bulletSpeed = _root.barry.bulletSpeed + (random(_root.barry.bulletSpeedVar * 10) / 10);
ySpeed = bulletSpeed * Math.sin(_rotation * (Math.PI/180));
xSpeed = bulletSpeed * Math.cos(_rotation * (Math.PI/180));
Symbol 27 MovieClip [Enemy_Bouncer] Frame 1
function onEnterFrame() {
if ((_root.gamePaused == false) and (_root.gameFroze == false)) {
if ((this._x > (600 + (this._width * 2))) or (this._x < ((-this._width) * 2))) {
this.removeMovieClip();
} else {
this._x = this._x + speed;
}
if (this.hitTest(_root.barry.hit)) {
_root.barry.physics(this._x, 6);
health = 0;
}
if (this.hitTest(_root.bulletHit)) {
health--;
}
if ((((this._x < (_root.barry._x + 80)) and (this._x > (_root.barry._x - 80))) and (ammo > 0)) and (random(5) == 0)) {
_root.enemy.newBomb(this._x, this._y, this._xscale, "Weapon_Bouncer");
ammo--;
}
if (health <= 0) {
_root.effects.spark(this._x, this._y, 10, 4, 250, "Effect_fragment");
_root.effects.spark(this._x, this._y, 10, 10, 150, "Effect_spark");
_root.effects.spark(this._x, this._y, 20, 10, 200, "Effect_smoke");
_root.barry.combo++;
_root.barry.expStore = _root.barry.expStore + 15;
_root.effects.exp(this._x, this._y, _root.barry.combo, "COMBO", 150);
_root.sound.gotoAndStop("enemyDestroy");
_root.sound.gotoAndStop(1);
this.removeMovieClip();
}
}
}
if (this._x < 325) {
speed = 5;
_x = ((-this._width) * 2);
} else {
_x = (600 + (this._width * 2));
speed = -5;
_xscale = (-_xscale);
}
health = 1;
ammo = 1;
Symbol 33 MovieClip [Enemy_Miner] Frame 1
function onEnterFrame() {
if ((_root.gamePaused == false) and (_root.gameFroze == false)) {
if ((this._x > (600 + (this._width * 2))) or (this._x < ((-this._width) * 2))) {
this.removeMovieClip();
} else {
this._x = this._x + speed;
}
if (this.hitTest(_root.barry.hit)) {
_root.barry.physics(this._x, 10);
health = 0;
}
if (this.hitTest(_root.bulletHit)) {
health--;
}
if (health <= 0) {
_root.effects.spark(this._x, this._y, 10, 4, 250, "Effect_fragment");
_root.effects.spark(this._x, this._y, 30, 20, 150, "Effect_spark");
_root.effects.spark(this._x, this._y, 20, 10, 200, "Effect_smoke");
_root.barry.combo++;
_root.barry.expStore = _root.barry.expStore + 10;
_root.effects.exp(this._x, this._y, _root.barry.combo, "COMBO", 150);
_root.sound.gotoAndStop("enemyDestroy");
_root.sound.gotoAndStop(1);
this.removeMovieClip();
}
}
}
if (this._x < 325) {
speed = 3;
_x = ((-this._width) * 2);
} else {
_x = (600 + (this._width * 2));
speed = -3;
}
this._y = _root.barry.groundLevel - 5;
health = 2;
ammo = 1;
Symbol 35 MovieClip [Enemy_Homer] Frame 1
function onEnterFrame() {
if ((_root.gamePaused == false) and (_root.gameFroze == false)) {
if ((this._x > (600 + (this._width * 2))) or (this._x < ((-this._width) * 2))) {
this.removeMovieClip();
} else {
this._x = this._x + speed;
}
if (this.hitTest(_root.barry.hit)) {
_root.barry.physics(this._x, 6);
health = 0;
}
if (this.hitTest(_root.bulletHit)) {
health--;
}
if ((random(20) == 0) and (ammo > 0)) {
_root.enemy.newEnemyBullet(this._x, this._y, 8, "Weapon_Seeker");
ammo--;
}
if (health <= 0) {
_root.effects.spark(this._x, this._y, 10, 4, 250, "Effect_fragment");
_root.effects.spark(this._x, this._y, 10, 10, 150, "Effect_spark");
_root.effects.spark(this._x, this._y, 20, 10, 200, "Effect_smoke");
_root.barry.combo++;
_root.barry.expStore = _root.barry.expStore + 25;
_root.effects.exp(this._x, this._y, _root.barry.combo, "COMBO", 150);
_root.sound.gotoAndStop("enemyDestroy");
_root.sound.gotoAndStop(1);
this.removeMovieClip();
}
}
}
if (this._x < 325) {
speed = 7;
_x = ((-this._width) * 2);
} else {
_x = (600 + (this._width * 2));
speed = -7;
_xscale = (-_xscale);
}
health = 2;
ammo = 1;
Symbol 37 MovieClip Frame 1
function onEnterFrame() {
if ((_root.gamePaused == false) and (_root.gameFroze == false)) {
_rotation = (_rotation + 50);
}
}
Symbol 41 MovieClip [Enemy_Gunner] Frame 1
function onEnterFrame() {
if ((_root.gamePaused == false) and (_root.gameFroze == false)) {
if ((this._x > (600 + (this._width * 2))) or (this._x < ((-this._width) * 2))) {
this.removeMovieClip();
} else {
this._x = this._x + speed;
}
if (this.hitTest(_root.barry.hit)) {
_root.barry.physics(this._x, 6);
health = 0;
}
if (this.hitTest(_root.bulletHit)) {
health--;
}
if ((random(20) == 0) and (ammo > 0)) {
_root.enemy.newEnemyBullet(this._x, this._y, 8, "Weapon_Homer");
ammo--;
}
if (health <= 0) {
_root.effects.spark(this._x, this._y, 10, 4, 250, "Effect_fragment");
_root.effects.spark(this._x, this._y, 10, 10, 150, "Effect_spark");
_root.effects.spark(this._x, this._y, 20, 10, 200, "Effect_smoke");
_root.barry.combo++;
_root.barry.expStore = _root.barry.expStore + 20;
_root.effects.exp(this._x, this._y, _root.barry.combo, "COMBO", 150);
_root.sound.gotoAndStop("enemyDestroy");
_root.sound.gotoAndStop(1);
this.removeMovieClip();
}
}
}
if (this._x < 325) {
speed = 5;
_x = ((-this._width) * 2);
} else {
_x = (600 + (this._width * 2));
speed = -5;
_xscale = (-_xscale);
}
health = 2;
ammo = 5;
Symbol 44 MovieClip [Enemy_Bomber] Frame 1
function onEnterFrame() {
if ((_root.gamePaused == false) and (_root.gameFroze == false)) {
if ((this._x > (600 + (this._width * 2))) or (this._x < ((-this._width) * 2))) {
this.removeMovieClip();
} else {
this._x = this._x + speed;
}
if (this.hitTest(_root.barry.hit)) {
_root.barry.physics(this._x, 6);
health = 0;
}
if (this.hitTest(_root.bulletHit)) {
health--;
}
if ((((this._x < (_root.barry._x + 80)) and (this._x > (_root.barry._x - 80))) and (ammo > 0)) and (random(5) == 0)) {
_root.enemy.newBomb(this._x, this._y, this._xscale, "Weapon_Bomb");
ammo--;
}
if (health <= 0) {
_root.effects.spark(this._x, this._y, 10, 4, 250, "Effect_fragment");
_root.effects.spark(this._x, this._y, 10, 10, 150, "Effect_spark");
_root.effects.spark(this._x, this._y, 20, 10, 200, "Effect_smoke");
_root.barry.combo++;
_root.barry.expStore = _root.barry.expStore + 10;
_root.effects.exp(this._x, this._y, _root.barry.combo, "COMBO", 150);
_root.sound.gotoAndStop("enemyDestroy");
_root.sound.gotoAndStop(1);
this.removeMovieClip();
}
}
}
if (this._x < 325) {
speed = 5;
_x = ((-this._width) * 2);
} else {
_x = (600 + (this._width * 2));
speed = -5;
_xscale = (-_xscale);
}
health = 1;
ammo = 1;
Symbol 46 MovieClip [Effect_spark] Frame 1
function onEnterFrame() {
if ((_root.gamePaused == false) and (_root.gameFroze == false)) {
if (_alpha > 0) {
_alpha = (_alpha - Math.round(20 / _root.graphicsRating));
_y = (_y + ySpeed);
ySpeed++;
_x = (_x + xSpeed);
} else {
this.removeMovieClip();
}
}
}
ySpeed = Speed * Math.sin(_rotation * (Math.PI/180));
xSpeed = Speed * Math.cos(_rotation * (Math.PI/180));
Symbol 48 MovieClip [Effect_smoke] Frame 1
function onEnterFrame() {
if ((_root.gamePaused == false) and (_root.gameFroze == false)) {
if ((_y > 0) and (_x > 0)) {
_y = (_y + ySpeed);
ySpeed--;
this._x = this._x + xSpeed;
xSpeed--;
} else {
this.removeMovieClip();
}
}
}
_rotation = (45 - random(90));
ySpeed = Speed * Math.sin(_rotation * (Math.PI/180));
xSpeed = random(20) - 10;
this._x = this._x + random(10);
float = 0;
Symbol 61 Button
on (release) {
getURL ("http://www.newgrounds.com", "blank");
}
Symbol 70 Button
on (release) {
_root.play();
}
Symbol 71 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 71 MovieClip Frame 2
gotoAndPlay (1);
Symbol 489 MovieClip [__Packages.ab20] Frame 0
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Symbol 125 MovieClip Frame 90
_alpha = (_alpha - 10);
Symbol 125 MovieClip Frame 91
_alpha = (_alpha - 10);
Symbol 125 MovieClip Frame 92
_alpha = (_alpha - 10);
Symbol 125 MovieClip Frame 93
_alpha = (_alpha - 10);
Symbol 125 MovieClip Frame 94
_alpha = (_alpha - 10);
Symbol 125 MovieClip Frame 95
_alpha = (_alpha - 10);
Symbol 125 MovieClip Frame 96
_alpha = (_alpha - 10);
Symbol 125 MovieClip Frame 97
_alpha = (_alpha - 10);
Symbol 125 MovieClip Frame 98
_alpha = (_alpha - 10);
Symbol 125 MovieClip Frame 99
_alpha = (_alpha - 10);
Symbol 125 MovieClip Frame 100
_root.play();
Symbol 134 Button
on (release) {
_root.gotoAndStop("scores");
}
Symbol 138 MovieClip Frame 1
stop();
Symbol 139 Button
on (release) {
_root.instRead = true;
_root.gotoAndStop("inst");
}
Symbol 140 Button
on (press) {
if (_root.instRead == true) {
stopAllSounds();
this.gotoAndStop("game");
}
}
Instance of Symbol 148 MovieClip "hit" in Symbol 151 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 148 MovieClip "hitBullet" in Symbol 151 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 157 MovieClip "star" in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
timer = 20;
}
onClipEvent (enterFrame) {
if (timer < 0) {
this.removeMovieClip();
}
timer--;
_alpha = (_alpha + 10);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
}
Instance of Symbol 157 MovieClip in Symbol 158 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
_parent.star._visible = false;
ii = 0;
speed = 20;
count = 30;
timer = 3;
}
onClipEvent (enterFrame) {
if (timer > 0) {
timer = timer - 1;
} else {
timer = 3;
ii++;
_parent.star.duplicateMovieClip("star" + ii, ii, ii);
_parent["star" + ii].xSpeed = random(speed) + 5;
if (random(2) == 0) {
_parent["star" + ii].xSpeed = _parent["star" + ii].xSpeed * -1;
}
_parent["star" + ii].ySpeed = random(speed) + 5;
if (random(2) == 0) {
_parent["star" + ii].ySpeed = _parent["star" + ii].ySpeed * -1;
}
_parent["star" + ii]._xscale = random(50) + 5;
_parent["star" + ii]._yscale = _parent["star" + ii]._xscale;
_parent["star" + ii]._alpha = 0;
}
}
Symbol 169 Button
on (release) {
_root.nextFrame();
}
Symbol 174 Button
on (release) {
_root.prevFrame();
}
Symbol 183 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("title");
}
Symbol 205 Button
on (release) {
activeFrame = 45;
gotoAndStop(activeFrame);
}
Symbol 206 Button
on (release) {
activeFrame = 44;
gotoAndStop(activeFrame);
}
Symbol 207 Button
on (release) {
activeFrame = 43;
gotoAndStop(activeFrame);
}
Symbol 208 Button
on (release) {
activeFrame = 42;
gotoAndStop(activeFrame);
}
Symbol 209 Button
on (release) {
activeFrame = 41;
gotoAndStop(activeFrame);
}
Symbol 232 Button
on (release) {
_root.gameFroze = false;
_root.barry.fuel = _root.barry.maxFuel;
_root.barry.fuelDisplay = Math.round(_root.barry.fuel);
}
Symbol 250 Button
on (release) {
activeFrame = 40;
gotoAndStop (40);
}
Symbol 283 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 283 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.barry.gameComplete == true) {
this._visible = false;
}
}
Instance of Symbol 148 MovieClip "expbar" in Symbol 283 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.barry.gameComplete == false) {
this._width = (_root.barry.fuel / _root.barry.maxFuel) * 500;
if (((this._width == 100) and (_root.gameFroze == false)) and (_root.gamePaused == false)) {
_root.effects.exp(20, 320, "", "LOW FUEL!", 300, true);
_root.sound.gotoAndStop("lowFuel");
_root.sound.gotoAndStop(1);
} else if (this._width < 100) {
if (this._visible == true) {
this._visible = false;
} else {
this._visible = true;
}
} else {
this._visible = true;
}
} else {
this._visible = false;
}
}
Instance of Symbol 148 MovieClip "expbar" in Symbol 283 MovieClip Frame 1
onClipEvent (enterFrame) {
wStore = this._width;
this._width = (_root.barry.experience / _root.barry.nextLevel) * 500;
if (this._width != wStore) {
if (this._alpha == 100) {
this._alpha = 50;
} else {
this._alpha = 100;
}
} else {
this._alpha = 100;
}
}
Symbol 283 MovieClip Frame 40
function onEnterFrame() {
if (_root.gameFroze == true) {
if (_root.barry.fuel < _root.barry.maxFuel) {
_root.barry.fuel = _root.barry.fuel + 5;
_root.barry.fuelDisplay = Math.round(_root.barry.fuel);
} else {
_root.barry.fuel = _root.barry.maxFuel;
_root.barry.fuelDisplay = Math.round(_root.barry.fuel);
}
if (_root.barry.EBomber == _root.maxShips) {
EBomberCost = "";
} else {
EBomberCost = EBomberCostStore * (_root.barry.EBomber + 1);
}
if (_root.barry.EGunner == _root.maxShips) {
EGunnerCost = "";
} else {
EGunnerCost = EGunnerCostStore * (_root.barry.EGunner + 1);
}
if (_root.barry.EBouncer == _root.maxShips) {
EBouncerCost = "";
} else {
EBouncerCost = EBouncerCostStore * (_root.barry.EBouncer + 1);
}
if (_root.barry.EHomer == _root.maxShips) {
EHomerCost = "";
} else {
EHomerCost = EHomerCostStore * (_root.barry.EHomer + 1);
}
if (_root.barry.EMiner == _root.maxShips) {
EMinerCost = "";
} else {
EMinerCost = EMinerCostStore * (_root.barry.EMiner + 1);
}
if (((((EBomberCost == "") and (EGunnerCost == "")) and (EBouncerCost == "")) and (EHomerCost == "")) and (EMinerCost == "")) {
_root.barry.gameComplete = true;
activeFrame = 46;
gotoAndStop(activeFrame);
}
}
}
stop();
_root.maxShips = 10;
EBomberCostStore = 10;
EGunnerCostStore = 20;
EBouncerCostStore = 30;
EHomerCostStore = 40;
EMinerCostStore = 50;
EBomberPlus.onRelease = function () {
cost = EBomberCostStore;
if ((_root.barry.EBomber < _root.maxShips) and ((_root.barry.totalEXP - EBomberCost) >= 0)) {
_root.barry.EBomber++;
_root.barry.totalEXP = _root.barry.totalEXP - (cost * _root.barry.EBomber);
}
};
EBouncerPlus.onRelease = function () {
cost = EBouncerCostStore;
if ((_root.barry.EBouncer < _root.maxShips) and ((_root.barry.totalEXP - EBouncerCost) >= 0)) {
_root.barry.EBouncer++;
_root.barry.totalEXP = _root.barry.totalEXP - (cost * _root.barry.EBouncer);
}
};
EGunnerPlus.onRelease = function () {
cost = EGunnerCostStore;
if ((_root.barry.EGunner < _root.maxShips) and ((_root.barry.totalEXP - EGunnerCost) >= 0)) {
_root.barry.EGunner++;
_root.barry.totalEXP = _root.barry.totalEXP - (cost * _root.barry.EGunner);
}
};
EHomerPlus.onRelease = function () {
cost = EHomerCostStore;
if ((_root.barry.EHomer < _root.maxShips) and ((_root.barry.totalEXP - EHomerCost) >= 0)) {
_root.barry.EHomer++;
_root.barry.totalEXP = _root.barry.totalEXP - (cost * _root.barry.EHomer);
}
};
EMinerPlus.onRelease = function () {
cost = EMinerCostStore;
if ((_root.barry.EMiner < _root.maxShips) and ((_root.barry.totalEXP - EMinerCost) >= 0)) {
_root.barry.EMiner++;
_root.barry.totalEXP = _root.barry.totalEXP - (cost * _root.barry.EMiner);
}
};
Symbol 288 Button
on (release) {
stopAllSounds();
gotoAndStop ("title");
}
Symbol 292 Button
on (release) {
_root.hid = 1007;
_root.kid = "HZSUVQ";
gotoAndStop ("highScores");
}
Symbol 293 Button
on (release) {
_root.hid = 1010;
_root.kid = "FPAILL";
gotoAndStop ("highScores");
}
Symbol 294 Button
on (release) {
_root.hid = 1011;
_root.kid = "WATMMZ";
gotoAndStop ("highScores");
}
Symbol 297 Button
on (release) {
_root.hid = 1009;
_root.kid = "SDZPUP";
_root.gotoAndStop("highScores");
}
Symbol 299 Button
on (release) {
gotoAndStop ("scores");
}
Symbol 304 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 2
stop();
Symbol 339 Button
on (release) {
_root.gamePaused = false;
}
Symbol 348 Button
on (release) {
gotoAndStop ("graphics");
}
Symbol 350 Button
on (release) {
gotoAndStop ("submit");
}
Symbol 352 Button
on (release) {
gotoAndStop ("hsSelect");
}
Symbol 354 Button
on (release) {
gotoAndStop ("stats");
}
Symbol 355 Button
on (release) {
_root.hid = 1007;
_root.kid = "HZSUVQ";
gotoAndStop ("highScores");
}
Symbol 356 Button
on (release) {
_root.hid = 1010;
_root.kid = "FPAILL";
gotoAndStop ("highScores");
}
Symbol 357 Button
on (release) {
_root.hid = 1011;
_root.kid = "WATMMZ";
gotoAndStop ("highScores");
}
Symbol 359 Button
on (release) {
_root.hid = 1009;
_root.kid = "SDZPUP";
gotoAndStop ("highScores");
}
Symbol 394 Button
on (press) {
if (inputbox.length > 0) {
temparray = inputbox.text.split("");
temparray.pop();
inputbox.text = temparray.join("");
}
}
Symbol 398 Button
on (press) {
inputbox.text = inputbox.text + "_";
}
Symbol 406 Button
on (press) {
inputbox.text = inputbox.text + "M";
}
Symbol 407 Button
on (press) {
inputbox.text = inputbox.text + "N";
}
Symbol 408 Button
on (press) {
inputbox.text = inputbox.text + "B";
}
Symbol 409 Button
on (press) {
inputbox.text = inputbox.text + "V";
}
Symbol 410 Button
on (press) {
inputbox.text = inputbox.text + "C";
}
Symbol 411 Button
on (press) {
inputbox.text = inputbox.text + "X";
}
Symbol 412 Button
on (press) {
inputbox.text = inputbox.text + "Z";
}
Symbol 413 Button
on (press) {
inputbox.text = inputbox.text + "L";
}
Symbol 414 Button
on (press) {
inputbox.text = inputbox.text + "K";
}
Symbol 415 Button
on (press) {
inputbox.text = inputbox.text + "J";
}
Symbol 416 Button
on (press) {
inputbox.text = inputbox.text + "H";
}
Symbol 417 Button
on (press) {
inputbox.text = inputbox.text + "G";
}
Symbol 418 Button
on (press) {
inputbox.text = inputbox.text + "F";
}
Symbol 419 Button
on (press) {
inputbox.text = inputbox.text + "D";
}
Symbol 420 Button
on (press) {
inputbox.text = inputbox.text + "S";
}
Symbol 421 Button
on (press) {
inputbox.text = inputbox.text + "A";
}
Symbol 422 Button
on (press) {
inputbox.text = inputbox.text + "P";
}
Symbol 423 Button
on (press) {
inputbox.text = inputbox.text + "O";
}
Symbol 424 Button
on (press) {
inputbox.text = inputbox.text + "I";
}
Symbol 425 Button
on (press) {
inputbox.text = inputbox.text + "U";
}
Symbol 426 Button
on (press) {
inputbox.text = inputbox.text + "Y";
}
Symbol 427 Button
on (press) {
inputbox.text = inputbox.text + "T";
}
Symbol 428 Button
on (press) {
inputbox.text = inputbox.text + "R";
}
Symbol 429 Button
on (press) {
inputbox.text = inputbox.text + "E";
}
Symbol 430 Button
on (press) {
inputbox.text = inputbox.text + "W";
}
Symbol 431 Button
on (press) {
inputbox.text = inputbox.text + "Q";
}
Instance of Symbol 402 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (load) {
stop();
}
on (release) {
_root.playername = _parent.inputbox.text;
_parent._parent.gotoAndStop("submitInfo");
}
Symbol 437 Button
on (release) {
ab20_09 = new LoadVars();
ab20_09.z = _root.playername;
ab20_09.x = ab20.encodeNum(_root.barry.maxHeightStore);
ab20_09.c = 1010;
ab20_09.v = "FPAILL";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
ab20_09 = new LoadVars();
ab20_09.z = _root.playername;
ab20_09.x = ab20.encodeNum(_root.barry.maxCombo);
ab20_09.c = 1009;
ab20_09.v = "SDZPUP";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
ab20_09 = new LoadVars();
ab20_09.z = _root.playername;
ab20_09.x = ab20.encodeNum(_root.barry.maxExpStore);
ab20_09.c = 1011;
ab20_09.v = "WATMMZ";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
ab20_09 = new LoadVars();
ab20_09.z = _root.playername;
ab20_09.x = ab20.encodeNum(_root.barry.totalEXP);
ab20_09.c = 1007;
ab20_09.v = "HZSUVQ";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
_root.gotoAndStop("scores");
}
Symbol 454 Button
on (release) {
qualSel._x = bestQual._x;
_root._quality = "best";
}
Symbol 455 Button
on (release) {
qualSel._x = highQual._x;
_root._quality = "high";
}
Symbol 456 Button
on (release) {
qualSel._x = medQual._x;
_root._quality = "medium";
}
Symbol 458 Button
on (release) {
qualSel._x = lowQual._x;
_root._quality = "low";
}
Symbol 460 Button
on (release) {
particleSel._x = bestPart._x;
_root.graphicsRating = 5;
}
Symbol 461 Button
on (release) {
particleSel._x = highPart._x;
_root.graphicsRating = 3;
}
Symbol 462 Button
on (release) {
particleSel._x = medPart._x;
_root.graphicsRating = 1;
}
Symbol 463 Button
on (release) {
particleSel._x = lowPart._x;
_root.graphicsRating = 0.5;
}
Symbol 468 MovieClip Frame 1
if ((_root.wiiControl == false) or (_root.gamePaused == false)) {
pausebutton._x = 2000;
pausetext = "";
}
Instance of Symbol 332 MovieClip "HStable" in Symbol 468 MovieClip Frame 3
onClipEvent (load) {
stop();
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = _root.hid;
__top10_send__.kid = _root.kid;
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_parent.HStable[("_name" + i) + "_"].text = __top10_receive__["name" + i];
_parent.HStable[("_score" + i) + "_"].text = __top10_receive__["score" + i];
i++;
}
} else {
_root.__err__.gotoAndStop(2);
}
};
}
Instance of Symbol 432 MovieClip in Symbol 468 MovieClip Frame 4
onClipEvent (load) {
inputbox.text = "";
}
Instance of Symbol 466 MovieClip "particleSel" in Symbol 468 MovieClip Frame 6
onClipEvent (load) {
if (_root.graphicsRating == 0.5) {
_x = _parent.lowPart._x;
} else if (_root.graphicsRating == 1) {
_x = _parent.medPart._x;
} else if (_root.graphicsRating == 3) {
_x = _parent.highPart._x;
} else {
_x = _parent.bestPart._x;
}
}
Instance of Symbol 466 MovieClip "qualSel" in Symbol 468 MovieClip Frame 6
onClipEvent (load) {
this._x = _root.qualStore;
}
onClipEvent (enterFrame) {
_root.qualStore = this._x;
}
Instance of Symbol 336 MovieClip in Symbol 469 MovieClip Frame 1
onClipEvent (load) {
if (_root.wiiControl == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 469 MovieClip Frame 20
stop();
Instance of Symbol 468 MovieClip "menuContent" in Symbol 469 MovieClip Frame 20
onClipEvent (load) {
stop();
}
Instance of Symbol 336 MovieClip in Symbol 469 MovieClip Frame 20
onClipEvent (load) {
if (_root.wiiControl == true) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 151 MovieClip "barry" in Symbol 472 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = _root.barry._rotation;
}
Symbol 473 MovieClip Frame 1
function newEnemy(xPos, yPos, type) {
b = attachMovie(type, "enemy" + enemyCount, enemyCount++);
b._x = xPos;
b._y = yPos;
}
function newEnemyBullet(xPos, yPos, speed, type) {
b = attachMovie(type, "enemy" + enemyCount, enemyCount++);
b._x = xPos;
b._y = yPos;
b.bulletSpeed = speed;
b.timer = 30;
}
function newBomb(xPos, yPos, dir, type) {
b = attachMovie(type, "enemy" + enemyCount, enemyCount++);
b._x = xPos;
b._y = yPos;
b.dir = dir;
}
enemyCount = 0;
var b;
Symbol 479 MovieClip Frame 1
stop();
Symbol 481 MovieClip Frame 1
Symbol 482 MovieClip Frame 1
function spark(xPos, yPos, ammount, Speed, scale, type) {
var _local2 = 0;
while (_local2 < (ammount * _root.graphicsRating)) {
b = attachMovie(type, "effect" + effectCount, effectCount++);
b._x = xPos;
b._y = yPos;
b._xscale = random(scale) + 10;
b._yscale = b._xscale;
b.Speed = random(Speed) + 1;
b._rotation = random(360);
_local2++;
}
}
function exp(xPos, yPos, num, str, size, dataString) {
b = attachMovie("Effect_exp", "effect" + effectCount, effectCount++);
b._x = xPos;
b._y = yPos;
b.exp = num;
b.str = str;
b.floatSpeed = 0.3;
b._xscale = size;
b._yscale = size;
b.alphaSpeed = 3;
if (dataString == true) {
b._x = 50;
b._y = _root.barry.groundLevel - 20;
b.floatSpeed = 0.04;
b.alphaSpeed = 1;
}
}
effectCount = 0;
var b;
Symbol 483 MovieClip Frame 1
function newBullet(xPos, yPos) {
b = attachMovie("Bullet", "Bullet" + bulletCount, bulletCount++);
b._x = xPos;
b._y = yPos;
}
bulletCount = 0;
var b;