Combined Code
movieClip 3 bulletline-turret {
frame 1 {
onEnterFrame = function () {
_alpha = _alpha - 10;
if (_alpha < 0) {
this.removeMovieClip();
}
};
}
}
movieClip 29 {
}
movieClip 51 {
}
movieClip 52 WoodenCrateExplode {
frame 50 {
this.removeMovieClip();
}
}
movieClip 97 PropaneTankExplode {
frame 46 {
this.removeMovieClip();
}
}
movieClip 142 GreenBarrelExplode {
frame 1 {
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
};
}
frame 46 {
this.removeMovieClip();
}
}
movieClip 144 BlueBarrelExplode {
frame 1 {
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
};
}
frame 47 {
this.removeMovieClip();
}
}
movieClip 146 playchaosstartsmc {
frame 1 {
stop();
mySoundChaosStarting = new Sound(this);
mySoundChaosStarting.attachSound('CHAOS_Starts');
mySoundChaosStarting.start();
mySoundChaosStarting.setVolume(_root.sfxvolume);
}
}
movieClip 148 {
}
movieClip 164 {
}
movieClip 176 {
}
movieClip 177 paratroopers {
frame 1 {
stop();
speed = 1 + Math.random() / 2;
_xscale = 15;
_yscale = 15;
}
frame 1 {
deploycounter = 0;
rot = random(10) + 5;
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
_rotation = _rotation + rot;
_y = _y + speed * 2;
++deploycounter;
if (deploycounter > 20) {
gotoAndStop(2);
}
};
}
frame 2 {
mySound = new Sound(this);
mySound.attachSound('ParachuteOPEN');
mySound.start();
mySound.setVolume(_root.sfxvolume * 2);
deploycounterz = 0;
_rotation = 0;
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
_y = _y + speed;
++deploycounterz;
if (deploycounterz > 10) {
gotoAndStop(3);
}
};
}
frame 3 {
counter = 0;
swiggle = random(30) + 30;
swigglecounter = 0;
swiggleright = true;
swiggleleft = false;
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
++swigglecounter;
if (swigglecounter < swiggle && swiggleright) {
_rotation = _rotation + 0.2;
} else {
if (swigglecounter > swiggle && swiggleright) {
swiggleright = false;
swiggleleft = true;
swigglecounter = 0;
} else {
if (swigglecounter < swiggle && swiggleleft) {
_rotation = _rotation - 0.2;
} else {
if (swigglecounter > swiggle && swiggleleft) {
swiggleleft = false;
swiggleright = true;
swigglecounter = 0;
}
}
}
}
_y = _y + speed;
++counter;
if (counter > 20) {
mySound2 = new Sound(this);
mySound2.attachSound('ParaShooterShooting');
mySound2.start();
mySound2.setVolume(_root.sfxvolume * 2.3);
_root.bulletarray[_root.arrayspot] = _root.attachMovie('bullet-paratroop', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
counter = random(10);
}
if (_root.ground.hitTest(_x, _y, true)) {
if (_root.shake == false) {
_root.shake = true;
_root.shakeintensity = 10;
_root.shakelength = 1;
}
_root.attachMovie('ParashooterExplode', 'paraexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
_root.bomboff = true;
this.removeMovieClip();
}
};
}
}
movieClip 201 ParashooterExplode {
frame 1 {
_xscale = 15;
_yscale = 15;
mySound = new Sound(this);
mySound.attachSound('Boom4');
mySound.start();
mySound.setVolume(_root.sfxvolume);
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
};
}
frame 26 {
this.removeMovieClip();
}
}
movieClip 203 kaz {
frame 1 {
yspeed = 20;
xspeed = 2;
mySound = new Sound(this);
mySound.attachSound('KamakazeSingle');
mySound.start(0.8, 1);
mySound.setVolume(_root.sfxvolume * 2.5);
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
_y = _y + yspeed;
_x = _x + xspeed;
if (_root.ground.hitTest(_x, _y, true)) {
if (_root.shake == false) {
_root.shake = true;
_root.shakeintensity = 10;
_root.shakelength = 1;
}
mySound.stop(['KamakazeSingle']);
_root.attachMovie('DeathKamikaze', 'kazexplosion', _root.getNextHighestDepth(), {'_x': _x - 11, '_y': _y - 55});
_root.bomboff = true;
this.removeMovieClip();
}
};
}
}
movieClip 272 DeathKamikaze {
frame 1 {
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
};
}
frame 1 {
mySound = new Sound(this);
mySound.attachSound('Boom3');
mySound.start();
mySound.setVolume(_root.sfxvolume * 2);
}
frame 59 {
this.removeMovieClip();
}
}
movieClip 299 CarboomFull {
frame 54 {
stop();
this.removeMovieClip();
}
}
movieClip 310 {
}
movieClip 312 Car1_Explode {
frame 1 {
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
};
}
frame 1 {
mySound = new Sound(this);
mySound.attachSound('Boom4');
mySound.start();
mySound.setVolume(_root.sfxvolume);
}
frame 54 {
stop();
this.removeMovieClip();
}
}
movieClip 314 bulletline {
frame 1 {
angle = Math.atan((_root.airplane._y - _root.crosshair._y) / (_root.crosshair._x - _root.airplane._x));
if (_root.crosshair._x < _root.airplane._x) {
_rotation = angle * 57.2957795 * -1 + 90;
} else {
_rotation = angle * 57.2957795 * -1 - 90;
}
onEnterFrame = function () {
_alpha = _alpha - 10;
if (_alpha < 0) {
this.removeMovieClip();
}
};
}
}
movieClip 316 bullet-paratroop {
frame 1 {
angle = Math.random() + 1.1;
speed = 100;
onEnterFrame = function () {
_y = _y + Math.sin(angle) * speed;
_x = _x + Math.cos(angle) * speed;
};
}
}
movieClip 321 bullet {
frame 1 {
stop();
mySound = new Sound(this);
mySound.attachSound('PlaneTurretShoot');
mySound.start();
mySound.setVolume(_root.sfxvolume);
angle = Math.atan((_root.airplane._y - _root.crosshair._y) / (_root.crosshair._x - _root.airplane._x));
if (_root.mousetorightofplane) {
yfliper = -1;
} else {
yfliper = 1;
}
if (_root.mousetorightofplane) {
xfliper = 1;
} else {
xfliper = -1;
}
speed = 100;
this.gotoAndStop(_root.bulletlevel);
onEnterFrame = function () {
_y = _y + Math.sin(angle) * yfliper * speed;
_x = _x + Math.cos(angle) * xfliper * speed;
};
}
frame 2 {
stop();
onEnterFrame = function () {
_y = _y + Math.sin(angle) * yfliper * speed;
_x = _x + Math.cos(angle) * xfliper * speed;
};
}
frame 3 {
stop();
onEnterFrame = function () {
_y = _y + Math.sin(angle) * yfliper * speed;
_x = _x + Math.cos(angle) * xfliper * speed;
};
}
frame 4 {
stop();
onEnterFrame = function () {
_y = _y + Math.sin(angle) * yfliper * speed;
_x = _x + Math.cos(angle) * xfliper * speed;
};
}
frame 5 {
stop();
onEnterFrame = function () {
_y = _y + Math.sin(angle) * yfliper * speed;
_x = _x + Math.cos(angle) * xfliper * speed;
};
}
}
movieClip 327 SmallExplosion {
frame 11 {
this.removeMovieClip();
}
}
movieClip 373 buildingexp {
frame 1 {
mySound = new Sound(this);
mySound.attachSound('Bomb_1');
mySound.start();
mySound.setVolume(_root.sfxvolume);
}
frame 86 {
this.removeMovieClip();
}
}
movieClip 376 !!BazookaMissile {
frame 1 {
stop();
_root.missileout = true;
speed = 5;
moving = true;
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
this.gotoAndStop(2);
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
if (this.hitTest(_root.airplane)) {
_root.airplanehp -= 30;
_root.airplane.gotoAndStop(4);
_root.missileout = false;
this.removeMovieClip();
} else {
if (_root.planegone) {
_root.missileout = false;
this.removeMovieClip();
}
}
if (moving && _root.freezetime == false) {
angle = Math.atan((_y - _root.airplane._y) / (_root.airplane._x - 60 - _x));
this._rotation = angle;
if (_x < _root.airplane._x - 60) {
yfliper = -1;
xfliper = 1;
_rotation = angle * 57.2957795 * -1 + 90;
} else {
yfliper = 1;
xfliper = -1;
_rotation = angle * 57.2957795 * -1 - 90;
}
_y = _y + Math.sin(angle) * yfliper * speed;
_x = _x + Math.cos(angle) * xfliper * speed;
}
};
}
frame 2 {
moving = false;
acc = 0;
onEnterFrame = function () {
if (_root.ground.hitTest(_x, _y, true)) {
_root.missileout = false;
mySound = new Sound(this);
mySound.attachSound('Boom3');
mySound.start();
mySound.setVolume(_root.sfxvolume);
_root.attachMovie('CarboomFull', 'missileexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
_root.missileexplotion._xscale = 50;
_root.missileexplotion._yscale = 50;
this.removeMovieClip();
} else {
acc += 0.5;
_y = _y + (3 + acc);
_rotation = _rotation + (10 + acc);
}
};
}
}
movieClip 378 !hurt {
frame 1 {
once = true;
onEnterFrame = function () {
if (once) {
mySound = new Sound(this);
mySound.attachSound('metal slam b JO');
mySound.start();
mySound.setVolume(_root.sfxvolume * 0.2);
once = false;
}
_alpha = _alpha - 10;
if (_alpha < 1) {
mySound.stop(['metal slam b JO']);
this.removeMovieClip();
}
};
}
}
movieClip 393 BazookaExplode {
frame 69 {
stop();
}
frame 79 {
stop();
}
}
movieClip 398 {
}
movieClip 477 MarketExplodde {
frame 41 {
this.unloadMovie();
}
frame 46 {
}
}
movieClip 479 crosshair {
}
movieClip 505 Bomb2_Explosion {
frame 40 {
if (_root.timetodie == true) {
_root.airplanehp = 100;
_root.multiplyer = 0;
_root.skipround = true;
}
this.unloadMovie();
}
}
frame 1 {
stop();
getpumponce = true;
getstoreupgradesonce = true;
getturretachievmentonce = true;
getepwndonce = true;
getrelativeonce = true;
getbirdsonce = true;
startstartcounter = 0;
startstart = false;
oneunlocked = false;
twounlocked = false;
threeunlocked = false;
fourunlocked = false;
fiveunlocked = false;
sixunlocked = false;
sevemunlocked = false;
eightunlocked = false;
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
zzzzz = true;
_root._quality = 'medium';
bytes_loaded = 0;
bytes_total = 0;
getPercent = 0;
doitonce = true;
onEnterFrame = function () {
if (startstart) {
if (startstartcounter > 90 && doitonce) {
this.gotoAndPlay('splash');
doitonce = false;
} else {
++startstartcounter;
}
}
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
loadbar.gotoAndStop(Math.round(getPercent * 100));
if (bytes_loaded == bytes_total && zzzzz) {
zzzzz = false;
startstart = true;
}
};
}
frame 1 {
var urlString = _root._url;
if (urlString.indexOf('armorgames.com') == -1) {
_root._alpha = 0;
}
my_sohi = SharedObject.getLocal('oneunlocked');
if (my_sohi.data.oneunlocked == undefined) {
my_sohi.data.oneunlocked = false;
}
my_sohi.flush;
updateoneunlocked = function () {
my_sohi.data.oneunlocked = true;
};
my_sohi = SharedObject.getLocal('twounlocked');
if (my_sohi.data.twounlocked == undefined) {
my_sohi.data.twounlocked = false;
}
my_sohi.flush;
updatetwounlocked = function () {
my_sohi.data.twounlocked = true;
};
my_sohi = SharedObject.getLocal('threeunlocked');
if (my_sohi.data.threeunlocked == undefined) {
my_sohi.data.threeunlocked = false;
}
my_sohi.flush;
updatethreeunlocked = function () {
my_sohi.data.threeunlocked = true;
};
my_sohi = SharedObject.getLocal('fourunlocked');
if (my_sohi.data.fourunlocked == undefined) {
my_sohi.data.fourunlocked = false;
}
my_sohi.flush;
updatefourunlocked = function () {
my_sohi.data.fourunlocked = true;
};
my_sohi = SharedObject.getLocal('fiveunlocked');
if (my_sohi.data.fiveunlocked == undefined) {
my_sohi.data.fiveunlocked = false;
}
my_sohi.flush;
updatefiveunlocked = function () {
my_sohi.data.fiveunlocked = true;
};
my_sohi = SharedObject.getLocal('sixunlocked');
if (my_sohi.data.sixunlocked == undefined) {
my_sohi.data.sixunlocked = false;
}
my_sohi.flush;
updatesixunlocked = function () {
my_sohi.data.sixunlocked = true;
};
my_sohi = SharedObject.getLocal('sevenunlocked');
if (my_sohi.data.sevenunlocked == undefined) {
my_sohi.data.sevenunlocked = false;
}
my_sohi.flush;
updatesevenunlocked = function () {
my_sohi.data.sevenunlocked = true;
};
my_sohi = SharedObject.getLocal('eightunlocked');
if (my_sohi.data.eightunlocked == undefined) {
my_sohi.data.eightunlocked = false;
}
my_sohi.flush;
updateeightunlocked = function () {
my_sohi.data.eightunlocked = true;
};
}
movieClip 510 {
frame 1 {
stop();
}
frame 101 {
stop();
}
}
button 514 {
on (release) {
getURL('http://armorgames.com/', '_blank');
}
}
frame 2 {
stop();
clicktopass = false;
onMouseDown = function () {
clicktopass = true;
};
onMouseUp = function () {
clicktopass = false;
};
}
movieClip 516 {
}
instance of movieClip 516 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('330721_princess_full');
mySound.start(0, 99);
mySound.setVolume(65);
}
}
movieClip 541 {
}
movieClip 560 {
}
movieClip 564 {
}
movieClip 567 {
}
// unknown tag 88 length 69
movieClip 571 {
}
movieClip 576 {
}
movieClip 579 {
}
movieClip 594 {
}
movieClip 677 {
}
movieClip 681 {
}
movieClip 684 {
}
movieClip 694 {
}
movieClip 757 {
}
movieClip 761 {
}
movieClip 764 {
}
movieClip 767 {
}
movieClip 776 {
}
movieClip 927 {
}
movieClip 931 {
}
movieClip 934 {
}
movieClip 937 {
}
movieClip 942 {
}
movieClip 945 {
}
movieClip 948 {
}
movieClip 949 {
frame 1 {
onEnterFrame = function () {
if (_root.clicktopass) {
_root.gotoAndStop('menu');
}
};
}
frame 1062 {
stop();
_root.gotoAndStop(3);
}
}
movieClip 1009 {
frame 1 {
stop();
}
}
movieClip 1022 {
frame 49 {
this.unloadMovie();
}
}
movieClip 1067 {
frame 51 {
this.unloadMovie();
}
}
movieClip 1077 {
}
movieClip 1084 {
frame 65 {
this.unloadMovie();
}
}
movieClip 1092 {
frame 64 {
this.unloadMovie();
}
}
movieClip 1093 {
}
movieClip 1106 {
}
movieClip 1137 {
frame 47 {
this.unloadMovie();
}
}
movieClip 1175 {
frame 78 {
this.unloadMovie();
}
}
movieClip 1201 {
}
movieClip 1203 {
frame 101 {
this.removeMovieClip();
}
}
movieClip 1248 {
frame 84 {
this.unloadMovie();
}
}
movieClip 1316 {
frame 99 {
this.unloadMovie();
}
}
movieClip 1317 exps {
frame 1 {
this.gotoAndStop(_root.currentbomb);
}
frame 1 {
timer = 0;
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
++timer;
if (timer > 80) {
this.removeMovieClip();
}
};
}
instance of movieClip 1022 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('Bomb_1');
mySound.start();
mySound.setVolume(_root.sfxvolume * 2.5);
}
}
frame 2 {
timer = 0;
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
++timer;
if (timer > 80) {
this.removeMovieClip();
}
};
}
instance of movieClip 505 Bomb2_Explosion {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('Bomb_2');
mySound.start();
mySound.setVolume(_root.sfxvolume * 2);
}
}
frame 3 {
timer = 0;
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
++timer;
if (timer > 80) {
this.removeMovieClip();
}
};
}
instance of movieClip 1067 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('Bomb_3');
mySound.start();
mySound.setVolume(_root.sfxvolume * 2.5);
}
}
frame 4 {
timer = 0;
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
++timer;
if (timer > 80) {
this.removeMovieClip();
}
};
}
instance of movieClip 1093 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('Bomb_4');
mySound.start();
mySound.setVolume(_root.sfxvolume * 3);
}
}
frame 5 {
timer = 0;
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
++timer;
if (timer > 80) {
this.removeMovieClip();
}
};
}
instance of movieClip 1137 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('Bomb_5');
mySound.start();
mySound.setVolume(_root.sfxvolume * 3);
}
}
frame 6 {
timer = 0;
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
++timer;
if (timer > 80) {
this.removeMovieClip();
}
};
}
instance of movieClip 1175 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('bomb6fixed');
mySound.start();
mySound.setVolume(_root.sfxvolume * 3);
}
}
frame 7 {
timer = 0;
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
++timer;
if (timer > 80) {
this.removeMovieClip();
}
};
}
instance of movieClip 1203 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('Bomb_7');
mySound.start();
mySound.setVolume(_root.sfxvolume * 2);
}
}
frame 8 {
timer = 0;
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
++timer;
if (timer > 80) {
this.removeMovieClip();
}
};
}
instance of movieClip 1248 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('Bomb_8');
mySound.start();
mySound.setVolume(_root.sfxvolume * 4);
}
}
frame 9 {
timer = 0;
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
++timer;
if (timer > 80) {
this.removeMovieClip();
}
};
}
instance of movieClip 1316 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('Bomb_9');
mySound.start();
mySound.setVolume(_root.sfxvolume * 3);
}
}
}
instance of movieClip 1317 exps {
onClipEvent (load) {
stop();
}
}
movieClip 1342 {
}
movieClip 1348 {
}
movieClip 1358 {
}
movieClip 1368 {
frame 24 {
stop();
}
}
movieClip 1369 {
frame 75 {
stop();
}
}
movieClip 1379 {
frame 40 {
stop();
}
}
movieClip 1380 {
frame 77 {
stop();
}
}
movieClip 1393 {
frame 73 {
stop();
}
}
movieClip 1394 {
frame 91 {
stop();
}
}
movieClip 1411 {
}
movieClip 1449 {
frame 81 {
stop();
}
}
movieClip 1450 {
frame 46 {
stop();
}
}
movieClip 1457 {
frame 60 {
stop();
}
}
movieClip 1458 {
frame 76 {
stop();
}
}
movieClip 1459 bomb {
frame 1 {
yvelocity = 1;
mySound2 = new Sound(this);
mySound2.attachSound('BombDropping');
mySound2.start();
mySound2.setVolume(_root.sfxvolume);
this.gotoAndStop(_root.currentbomb);
onEnterFrame = function () {
if (_root.atgame == false) {
this.removeMovieClip();
}
if (_root.atgame) {
_x = _x + _root.airplanespeed;
yvelocity += 0.24;
_y = _y + yvelocity;
}
if (_root.ground.hitTest(_x, _y, true) && _root.grounttester._y > _y && (_root.currentbomb == 1 || _root.currentbomb == 2 || _root.currentbomb == 3)) {
_root.shake = true;
_root.shakeintensity = inten;
_root.shakelength = len;
_root.bombwentoff = true;
mySound2.stop(['BombDropping']);
_root.attachMovie('buildingexp', 'explosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
_root.bomboff = true;
this.removeMovieClip();
} else {
if (_root.ground.hitTest(_x, _y, true) && _root.grounttester._y > _y && (_root.currentbomb != 1 && _root.currentbomb != 2 && _root.currentbomb != 3)) {
_root.shake = true;
_root.shakeintensity = inten;
_root.shakelength = len;
_root.bombwentoff = true;
mySound2.stop(['BombDropping']);
_root.attachMovie('exps', 'explosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _root.grounttester._y});
_root.bomboff = true;
this.removeMovieClip();
} else {
if (_root.ground.hitTest(_x, _y, true)) {
_root.shake = true;
_root.shakeintensity = inten;
_root.shakelength = len;
_root.bombwentoff = true;
mySound2.stop(['BombDropping']);
_root.attachMovie('exps', 'explosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _root.grounttester._y + 15});
_root.bomboff = true;
this.removeMovieClip();
}
}
}
};
}
frame 1 {
inten = 15;
len = 1;
}
frame 2 {
inten = 5;
len = 2;
}
frame 3 {
inten = 12;
len = 2;
}
frame 4 {
inten = 12;
len = 1;
}
frame 5 {
inten = 14;
len = 1;
}
frame 6 {
inten = 12;
len = 2;
}
frame 7 {
inten = 10;
len = 4;
}
frame 8 {
inten = 18;
len = 1;
}
frame 9 {
inten = 22;
len = 1;
}
}
instance of movieClip 1459 bomb {
onClipEvent (load) {
stop();
}
}
movieClip 1467 {
}
movieClip 1468 {
}
movieClip 1476 {
}
movieClip 1481 {
}
movieClip 1483 {
frame 29 {
stop();
}
}
movieClip 1484 airplane {
frame 1 {
dropone = true;
mySound = new Sound(this);
mySound.attachSound('PlaneFly');
mySound.start();
mySound.setVolume(_root.sfxvolume * 1.6);
}
frame 2 {
stop();
_xscale = 70;
_yscale = 70;
_xscale = _xscale * -1;
}
frame 2 {
onEnterFrame = function () {
if (_root.timetodie == true) {
gotoAndStop(5);
}
if (_root.atgame == false) {
mySound.stop(['PlaneFly']);
this.removeMovieClip();
}
if (_root.freezetime == false) {
_x = _x + _root.airplanespeed;
}
if (this._x - _width / 2 + _root.targetline._width / 2 > _root.xx && dropone) {
dropone = false;
_root.attachMovie('bomb', 'bomb', _root.getNextHighestDepth(), {'_x': this._x - _width / 2, '_y': 100});
gotoAndStop(3);
}
if (this._x - _width > _root.ground._width) {
_root.planegone = true;
_root.buttonsshouldwork = false;
_root.timetocountdown = true;
this.removeMovieClip();
}
};
}
frame 3 {
stop();
_xscale = 70;
_yscale = 70;
_xscale = _xscale * -1;
}
frame 3 {
tcounter = 0;
onEnterFrame = function () {
if (_root.timetodie == true) {
gotoAndStop(5);
}
if (_root.atgame == false) {
mySound.stop(['PlaneFly']);
this.removeMovieClip();
}
if (_root.freezetime == false) {
_x = _x + _root.airplanespeed;
}
++tcounter;
if (tcounter > 40) {
this.gotoAndStop(2);
}
};
}
frame 4 {
stop();
_xscale = 70;
_yscale = 70;
_xscale = _xscale * -1;
_root.attachMovie('!hurt', '!hurtgf', _root.getNextHighestDepth(), {'_x': _root.pos - 400, '_y': 0});
}
frame 4 {
thcounter = 0;
onEnterFrame = function () {
if (_root.timetodie == true) {
gotoAndStop(5);
}
if (_root.atgame == false) {
mySound.stop(['PlaneFly']);
this.removeMovieClip();
}
if (_root.freezetime == false) {
_x = _x + _root.airplanespeed;
}
++thcounter;
if (thcounter > 5) {
this.gotoAndStop(2);
}
};
}
frame 5 {
stop();
_xscale = 70;
_yscale = 70;
_xscale = _xscale * -1;
}
frame 5 {
acc = 0;
onEnterFrame = function () {
_x = _x + _root.airplanespeed;
acc += 0.7;
_y = _y + (acc + 2);
if (_root.ground.hitTest(_x, _y, true)) {
_root.attachMovie('Bomb2_Explosion', 'planeexploding' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': _x - 50, '_y': _y});
this.unloadMovie();
}
};
}
}
instance of movieClip 1484 airplane {
onClipEvent (load) {
stop();
}
}
movieClip 1489 {
}
movieClip 1512 {
}
movieClip 1551 {
frame 15 {
_root.poopypee._x = _parent._x + 100;
_root.poopypee._y = _parent._y + 220;
}
frame 41 {
_root.poopypee._x = 1;
_root.poopypee._y = 800;
}
frame 91 {
stop();
}
}
movieClip 1552 {
frame 1 {
hp = 100;
}
frame 2 {
onEnterFrame = function () {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) {
hp -= 10;
} else {
if (this.hitTest(_root.carexplosion || _root.otherexp)) {
hp -= 1.3;
}
}
if (hp < 1) {
this.gotoAndStop(4);
} else {
if (hp < 51) {
this.gotoAndStop(3);
}
}
};
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
_root.chaos += 50;
_root.money += 150;
_root.score += 150;
_root.updatesheet(25);
mySound = new Sound(this);
mySound.attachSound('Boom1');
mySound.start();
mySound.setVolume(_root.sfxvolume * 2.5);
}
}
movieClip 1557 {
frame 15 {
_root.poopypee._x = _parent._x + 100;
_root.poopypee._y = _parent._y + 220;
}
frame 40 {
_root.poopypee._x = 1;
_root.poopypee._y = 800;
}
frame 91 {
stop();
}
}
movieClip 1558 {
frame 1 {
hp = 100;
}
frame 2 {
onEnterFrame = function () {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) {
hp -= 10;
} else {
if (this.hitTest(_root.carexplosion || _root.otherexp)) {
hp -= 1.3;
}
}
if (hp < 1) {
this.gotoAndStop(4);
} else {
if (hp < 51) {
this.gotoAndStop(3);
}
}
};
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
_root.chaos += 50;
_root.updatesheet(14);
_root.money += 185;
_root.score += 185;
mySound = new Sound(this);
mySound.attachSound('Boom2');
mySound.start();
mySound.setVolume(_root.sfxvolume * 2.5);
}
}
movieClip 1563 {
frame 15 {
_root.poopypee._x = _parent._x + 100;
_root.poopypee._y = _parent._y + 220;
}
frame 40 {
_root.poopypee._x = 1;
_root.poopypee._y = 800;
}
frame 91 {
stop();
}
}
movieClip 1564 {
frame 1 {
hp = 100;
}
frame 2 {
onEnterFrame = function () {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) {
hp -= 10;
} else {
if (this.hitTest(_root.carexplosion || _root.otherexp)) {
hp -= 1.3;
}
}
if (hp < 1) {
this.gotoAndStop(4);
} else {
if (hp < 51) {
this.gotoAndStop(3);
}
}
};
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
_root.chaos += 50;
_root.updatesheet(26);
_root.money += 245;
_root.score += 245;
mySound = new Sound(this);
mySound.attachSound('Boom2');
mySound.start();
mySound.setVolume(_root.sfxvolume * 2.5);
}
}
movieClip 1569 {
frame 15 {
_root.poopypee._x = _parent._x + 100;
_root.poopypee._y = _parent._y + 220;
}
frame 40 {
_root.poopypee._x = 1;
_root.poopypee._y = 800;
}
frame 91 {
stop();
}
}
movieClip 1570 {
frame 1 {
hp = 100;
}
frame 2 {
onEnterFrame = function () {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) {
hp -= 10;
} else {
if (this.hitTest(_root.carexplosion || _root.otherexp)) {
hp -= 1.3;
}
}
if (hp < 1) {
this.gotoAndStop(4);
} else {
if (hp < 51) {
this.gotoAndStop(3);
}
}
};
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
_root.chaos += 50;
_root.updatesheet(15);
_root.money += 290;
_root.score += 290;
mySound = new Sound(this);
mySound.attachSound('Boom1');
mySound.start();
mySound.setVolume(_root.sfxvolume * 3);
}
}
movieClip 1573 {
}
movieClip 1577 {
frame 15 {
_root.poopypee._x = _parent._x + 100;
_root.poopypee._y = _parent._y + 220;
}
frame 41 {
_root.poopypee._x = 1;
_root.poopypee._y = 800;
}
frame 91 {
stop();
}
}
movieClip 1578 {
frame 1 {
hp = 100;
}
frame 2 {
onEnterFrame = function () {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) {
hp -= 10;
} else {
if (this.hitTest(_root.carexplosion || _root.otherexp)) {
hp -= 1.3;
}
}
if (hp < 1) {
this.gotoAndStop(4);
} else {
if (hp < 51) {
this.gotoAndStop(3);
}
}
};
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
_root.chaos += 50;
_root.updatesheet(20);
_root.money += 200;
_root.score += 200;
mySound = new Sound(this);
mySound.attachSound('Boom2');
mySound.start();
mySound.setVolume(_root.sfxvolume * 2.5);
}
}
movieClip 1591 {
frame 31 {
_root.poopypee._x = _parent._x + 150;
_root.poopypee._y = _parent._y + 280;
}
frame 60 {
_root.poopypee._x = 1;
_root.poopypee._y = 800;
}
frame 87 {
stop();
}
}
movieClip 1592 {
frame 1 {
hp = 100;
}
frame 2 {
onEnterFrame = function () {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) {
hp -= 10;
} else {
if (this.hitTest(_root.carexplosion || _root.otherexp)) {
hp -= 1.3;
}
}
if (hp < 1) {
this.gotoAndStop(4);
} else {
if (hp < 51) {
this.gotoAndStop(3);
}
}
};
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
_root.chaos += 100;
_root.updatesheet(27);
_root.money += 375;
_root.score += 375;
mySound = new Sound(this);
mySound.attachSound('BuildingCollapse2');
mySound.start();
mySound.setVolume(_root.sfxvolume * 3);
}
}
movieClip 1602 {
frame 31 {
_root.poopypee._x = _parent._x + 150;
_root.poopypee._y = _parent._y + 280;
}
frame 60 {
_root.poopypee._x = 1;
_root.poopypee._y = 800;
}
frame 87 {
stop();
}
}
movieClip 1603 {
frame 1 {
hp = 100;
}
frame 2 {
onEnterFrame = function () {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) {
hp -= 10;
} else {
if (this.hitTest(_root.carexplosion || _root.otherexp)) {
hp -= 1.3;
}
}
if (hp < 1) {
this.gotoAndStop(4);
} else {
if (hp < 51) {
this.gotoAndStop(3);
}
}
};
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
_root.chaos += 100;
_root.updatesheet(16);
_root.money += 430;
_root.score += 430;
mySound = new Sound(this);
mySound.attachSound('BuildingCollapse2');
mySound.start();
mySound.setVolume(_root.sfxvolume * 3.5);
}
}
movieClip 1608 {
frame 15 {
_root.poopypee._x = _parent._x + 100;
_root.poopypee._y = _parent._y + 220;
}
frame 40 {
_root.poopypee._x = 1;
_root.poopypee._y = 800;
}
frame 91 {
stop();
}
}
movieClip 1609 {
frame 1 {
hp = 100;
}
frame 2 {
onEnterFrame = function () {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) {
hp -= 10;
} else {
if (this.hitTest(_root.carexplosion || _root.otherexp)) {
hp -= 1.3;
}
}
if (hp < 1) {
this.gotoAndStop(4);
} else {
if (hp < 51) {
this.gotoAndStop(3);
}
}
};
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
_root.chaos += 50;
_root.updatesheet(21);
_root.money += 350;
_root.score += 350;
mySound = new Sound(this);
mySound.attachSound('Boom2');
mySound.start();
mySound.setVolume(_root.sfxvolume * 3);
}
}
movieClip 1619 {
frame 31 {
_root.poopypee._x = _parent._x + 150;
_root.poopypee._y = _parent._y + 280;
}
frame 61 {
_root.poopypee._x = 1;
_root.poopypee._y = 800;
}
frame 87 {
stop();
}
}
movieClip 1620 {
frame 1 {
hp = 100;
}
frame 2 {
onEnterFrame = function () {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) {
hp -= 10;
} else {
if (this.hitTest(_root.carexplosion || _root.otherexp)) {
hp -= 1.3;
}
}
if (hp < 1) {
this.gotoAndStop(4);
} else {
if (hp < 51) {
this.gotoAndStop(3);
}
}
};
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
_root.chaos += 100;
_root.updatesheet(22);
_root.money += 550;
_root.score += 550;
mySound = new Sound(this);
mySound.attachSound('BuildingCollapse2');
mySound.start();
mySound.setVolume(_root.sfxvolume * 3);
}
}
movieClip 1621 ground {
frame 1 {
gotoAndStop(_root.level - 9);
}
}
instance of movieClip 1621 ground {
onClipEvent (load) {
stop();
}
}
frame 3 {
stopAllSounds();
stop();
musicreducer = 0.3;
sfxvolume = 50;
shootingtime = 10;
musicvolume = 75;
airplanehp = 100;
shootunlocked = false;
paraunlocked = false;
kazunlocked = false;
timeunlocked = false;
bulletlevel = 5;
bulletpower = 20;
currentbomb = 1;
airplanespeed = 3;
level = 10;
money = 0;
score = 0;
spendablemoney = 0;
moneytoadd = 0;
}
movieClip 1624 {
frame 33 {
stop();
}
}
button 1625 {
on (release) {
getURL('http://armorgames.com/', '_blank');
}
}
movieClip 1626 {
frame 89 {
stop();
}
}
movieClip 1641 {
frame 15 {
stop();
}
}
button 1643 {
on (release) {
_root.gotoAndStop(4);
}
}
movieClip 1660 {
frame 16 {
stop();
}
}
button 1662 {
on (press) {
_root.menuz.gotoAndStop(2);
}
}
movieClip 1681 {
frame 18 {
stop();
}
}
button 1683 {
on (release) {
getURL('http://armorgames.com/', '_blank');
}
}
movieClip 1684 {
frame 92 {
stop();
}
}
movieClip 1688 {
frame 226 {
stop();
}
}
button 1692 {
on (release) {
_root.menuz.gotoAndStop(1);
}
}
button 1694 {
on (release) {
getURL('http://frozenfire.newgrounds.com/', '_blank');
}
}
button 1695 {
on (release) {
getURL('http://archer-11.newgrounds.com/', '_blank');
}
}
movieClip 1697 {
frame 61 {
stop();
}
}
movieClip 1698 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance of movieClip 516 {
onClipEvent (load) {
counter = 0;
once = true;
}
onClipEvent (enterFrame) {
if (counter < 4) {
++counter;
}
if (counter > 2 && once) {
mySound = new Sound(this);
mySound.attachSound('MAINMENU');
mySound.start(0, 99);
mySound.setVolume(_root.musicvolume * _root.musicreducer * 3);
once = false;
}
}
}
movieClip 1704 {
}
movieClip 1712 {
frame 1 {
stop();
}
instance of movieClip 1704 {
onClipEvent (release) {
_root.tut.gotoAndStop(2);
}
}
instance of movieClip 1704 {
onClipEvent (release) {
_root.gotoAndStop(10);
}
}
frame 2 {
stop();
}
instance of movieClip 1704 {
onClipEvent (release) {
_root.tut.gotoAndStop(3);
}
}
frame 3 {
stop();
}
instance of movieClip 1704 {
onClipEvent (release) {
_root.tut.gotoAndStop(4);
}
}
frame 4 {
stop();
}
instance of movieClip 1704 {
onClipEvent (release) {
_root.gotoAndStop(10);
}
}
}
frame 5 {
stop();
}
movieClip 1717 {
}
button 1722 {
on (press) {
getURL('http://www.armorgames.com', '_blank');
}
}
movieClip 1725 {
frame 218 {
_root.gotoAndStop('start');
}
}
frame 9 {
if (level < 18 && shootunlocked) {
updatesevenunlocked();
}
gotoAndStop(level);
}
frame 10 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
movieClip 1730 {
}
movieClip 1731 {
frame 1 {
variable = 0;
onEnterFrame = function () {
if (_root.chaos > variable) {
variable = _root.chaos;
}
bgevil._alpha = variable;
};
}
frame 2 {
stop();
}
}
movieClip 1733 {
}
// unknown tag 88 length 72
movieClip 1750 {
}
movieClip 1751 {
}
movieClip 1753 {
}
instance of movieClip 516 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('PeacefullTime');
mySound.start(0, 99);
mySound.setVolume(_root.musicvolume * _root.musicreducer * 1.3);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound.stop(['PeacefullTime']);
}
}
}
instance of movieClip 516 {
onClipEvent (load) {
once = true;
chaosonce = true;
}
onClipEvent (enterFrame) {
if (once && _root.bomboff) {
mySound = new Sound(this);
mySound.attachSound('PANICMUSIC');
mySound.start();
mySound.setVolume(_root.musicvolume * _root.musicreducer * 3);
once = false;
}
if (_root.chaos > 100 && chaosonce) {
mySound.stop(['PANICMUSIC']);
chaosonce = false;
}
}
}
instance of movieClip 516 {
onClipEvent (load) {
once = true;
}
onClipEvent (enterFrame) {
if (_root.chaos > 100 && once) {
mySound = new Sound(this);
mySound.attachSound('CHAOSMUSIC');
mySound.start();
mySound.setVolume(_root.musicvolume * _root.musicreducer * 5);
once = false;
}
}
}
movieClip 1758 {
frame 1 {
stop();
onEnterFrame = function () {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
gotoAndStop(2);
} else {
if (this.hitTest(_root.otherexp)) {
gotoAndStop(2);
}
}
};
}
frame 2 {
stop();
_root.updatesheet(31);
_root.money += 20;
_root.score += 20;
}
}
movieClip 1763 {
frame 1 {
stop();
onEnterFrame = function () {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
gotoAndStop(2);
} else {
if (this.hitTest(_root.otherexp)) {
gotoAndStop(2);
}
}
};
}
frame 2 {
stop();
_root.updatesheet(31);
_root.money += 20;
_root.score += 20;
}
}
movieClip 1766 {
frame 1 {
stop();
onEnterFrame = function () {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
gotoAndStop(2);
} else {
if (this.hitTest(_root.otherexp)) {
gotoAndStop(2);
}
}
};
}
frame 2 {
stop();
_root.updatesheet(28);
_root.money += 25;
_root.score += 25;
}
}
movieClip 1773 {
}
movieClip 1776 {
frame 1 {
stop();
}
}
movieClip 1786 {
}
movieClip 1800 {
}
movieClip 1816 {
}
movieClip 1843 {
}
movieClip 1846 {
}
movieClip 1858 {
}
movieClip 1892 {
}
movieClip 1909 {
}
movieClip 1918 {
}
movieClip 1919 {
frame 1 {
hp = 100;
speed = 0;
pos = random(2);
flyleft = false;
flyright = false;
}
frame 2 {
stop();
flips = 0;
flipcount = 0;
randomscream = random(3);
if (randomscream == 0) {
scream = 'Scream1';
} else {
if (randomscream == 1) {
scream = 'Scream2';
} else {
if (randomscream == 2) {
scream = 'Scream3';
}
}
}
if (pos == 0) {
right = true;
oneflip = false;
_root.hpflip = false;
} else {
right = false;
oneflip = true;
_root.hpflip = true;
}
flying = false;
onEnterFrame = function () {
if (flips > 2) {
this.unloadMovie();
}
++flipcount;
if (flipcount > 100) {
flipcount = 0;
flips = 0;
}
if (!flying) {
if (oneflip) {
_xscale = _xscale * -1;
oneflip = false;
_root.hpflip = false;
}
if (this._x < 10) {
oneflip = true;
_root.hpflip = true;
right = true;
} else {
if (this._x > _root.ground._width) {
right = false;
oneflip = true;
_root.hpflip = true;
}
}
if (right) {
_x = _x + speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = false;
oneflip = true;
_root.hpflip = true;
}
} else {
_x = _x - speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = true;
oneflip = true;
_root.hpflip = true;
}
}
}
if (!flying) {
if (_root.bomboff == true) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
hpbar.gotoAndStop(Math.abs(100 - hp) + 1);
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyright = true;
} else {
if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyleft = true;
} else {
if (hp < 1) {
_root.chaos += 5;
this.gotoAndStop(9);
}
}
}
}
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
hp -= _root.bulletpower;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
};
}
frame 2 {
speed = 1;
}
frame 3 {
speed = 2;
}
frame 6 {
archeight = random(150) + 50;
secondarcheight = archeight + 15;
downtime = false;
speed = archeight / 50;
acccounter = 0;
acccounter2 = 0;
othercounter = 0;
onEnterFrame = function () {
acccounter += 0.5;
if (flyleft) {
_x = _x - speed;
} else {
if (flyright) {
_x = _x + speed;
}
}
archeight -= 10;
if (archeight > 0) {
_y = _y - (10 - acccounter);
} else {
downtime = true;
}
if (downtime) {
++othercounter;
}
if (othercounter > 4) {
secondarcheight -= 10;
acccounter2 += 0.8;
}
if (secondarcheight > 0 && downtime && othercounter > 4) {
_y = _y + (3 + acccounter2);
}
if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) {
if (_y < _root.grounttester._y) {
this.gotoAndStop(10);
} else {
this.gotoAndStop(7);
}
}
};
}
frame 7 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 50) {
deadcounter = 0;
_root.updatesheet(2);
_root.money += 1;
_root.score += 1;
this.unloadMovie();
}
};
}
frame 8 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 20) {
deadcounter = 0;
_root.updatesheet(2);
_root.money += 1;
_root.score += 1;
this.unloadMovie();
}
};
}
frame 9 {
hpbar.gotoAndStop(100);
deadcounter = 0;
mySound = new Sound(this);
mySound.attachSound(scream);
mySound.start();
mySound.setVolume(_root.sfxvolume * 2);
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 25) {
deadcounter = 0;
_root.updatesheet(2);
_root.money += 1;
_root.score += 1;
this.unloadMovie();
}
};
}
frame 10 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 10) {
deadcounter = 0;
_root.updatesheet(2);
_root.money += 1;
_root.score += 1;
this.unloadMovie();
}
};
}
}
movieClip 1926 {
}
movieClip 1936 {
}
movieClip 1953 {
}
movieClip 1973 {
}
movieClip 1976 {
}
movieClip 1985 {
}
movieClip 2001 {
}
movieClip 2018 {
}
movieClip 2024 {
}
movieClip 2025 {
frame 1 {
hp = 100;
speed = 0;
pos = random(2);
flyleft = false;
flyright = false;
}
frame 2 {
stop();
flips = 0;
flipcount = 0;
randomscream = random(3);
if (randomscream == 0) {
scream = 'Scream1';
} else {
if (randomscream == 1) {
scream = 'Scream2';
} else {
if (randomscream == 2) {
scream = 'Scream3';
}
}
}
if (pos == 0) {
right = true;
oneflip = false;
_root.hpflip = false;
} else {
right = false;
oneflip = true;
_root.hpflip = true;
}
flying = false;
onEnterFrame = function () {
if (flips > 2) {
this.unloadMovie();
}
++flipcount;
if (flipcount > 100) {
flipcount = 0;
flips = 0;
}
if (!flying) {
if (oneflip) {
_xscale = _xscale * -1;
oneflip = false;
_root.hpflip = false;
}
if (this._x < 10) {
oneflip = true;
_root.hpflip = true;
right = true;
} else {
if (this._x > _root.ground._width) {
right = false;
oneflip = true;
_root.hpflip = true;
}
}
if (right) {
_x = _x + speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = false;
oneflip = true;
_root.hpflip = true;
}
} else {
_x = _x - speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = true;
oneflip = true;
_root.hpflip = true;
}
}
}
if (!flying) {
if (_root.bomboff == true) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
hpbar.gotoAndStop(Math.abs(100 - hp) + 1);
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyright = true;
} else {
if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyleft = true;
} else {
if (hp < 1) {
_root.chaos += 5;
this.gotoAndStop(9);
}
}
}
}
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
hp -= _root.bulletpower;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
};
}
frame 2 {
speed = 1;
}
frame 3 {
speed = 2;
}
frame 6 {
archeight = random(150) + 50;
secondarcheight = archeight + 15;
downtime = false;
speed = archeight / 50;
acccounter = 0;
acccounter2 = 0;
othercounter = 0;
onEnterFrame = function () {
acccounter += 0.5;
if (flyleft) {
_x = _x - speed;
} else {
if (flyright) {
_x = _x + speed;
}
}
archeight -= 10;
if (archeight > 0) {
_y = _y - (10 - acccounter);
} else {
downtime = true;
}
if (downtime) {
++othercounter;
}
if (othercounter > 4) {
secondarcheight -= 10;
acccounter2 += 0.8;
}
if (secondarcheight > 0 && downtime && othercounter > 4) {
_y = _y + (3 + acccounter2);
}
if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) {
if (_y < _root.grounttester._y) {
this.gotoAndStop(10);
} else {
this.gotoAndStop(7);
}
}
};
}
frame 7 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 50) {
deadcounter = 0;
_root.updatesheet(3);
_root.money += 3;
_root.score += 3;
this.unloadMovie();
}
};
}
frame 8 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 20) {
deadcounter = 0;
_root.updatesheet(3);
_root.money += 3;
_root.score += 3;
this.unloadMovie();
}
};
}
frame 9 {
hpbar.gotoAndStop(100);
deadcounter = 0;
mySound = new Sound(this);
mySound.attachSound(scream);
mySound.start();
mySound.setVolume(_root.sfxvolume);
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 25) {
deadcounter = 0;
_root.updatesheet(3);
_root.money += 3;
_root.score += 3;
this.unloadMovie();
}
};
}
frame 10 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 10) {
deadcounter = 0;
_root.updatesheet(3);
_root.money += 3;
_root.score += 3;
this.unloadMovie();
}
};
}
}
movieClip 2027 {
frame 1 {
onEnterFrame = function () {
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
_root.attachMovie('GreenBarrelExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
_root.chaos += 10;
this.unloadMovie();
}
++i;
}
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.chaos += 10;
_root.attachMovie('GreenBarrelExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 10;
_root.attachMovie('GreenBarrelExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
}
}
};
}
}
movieClip 2032 {
}
movieClip 2033 {
frame 1 {
stop();
onEnterFrame = function () {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
gotoAndStop(2);
} else {
if (this.hitTest(_root.otherexp)) {
gotoAndStop(2);
}
}
};
}
frame 2 {
stop();
_root.updatesheet(18);
_root.money += 29;
_root.score += 29;
mySound = new Sound(this);
mySound.attachSound('FireHydrantPopped');
mySound.start(0, 99);
mySound.setVolume(_root.sfxvolume);
}
}
movieClip 2036 {
frame 1 {
stop();
onEnterFrame = function () {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
gotoAndStop(2);
} else {
if (this.hitTest(_root.otherexp)) {
gotoAndStop(2);
}
}
};
}
frame 2 {
stop();
_root.updatesheet(30);
_root.money += 11;
_root.score += 11;
}
}
movieClip 2038 {
}
movieClip 2041 {
}
movieClip 2042 {
frame 1 {
hp = 3;
chaintimer = 0;
}
frame 2 {
onEnterFrame = function () {
if (hp < 1) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
mySound.stop(['caralarmfixed']);
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
} else {
if (hp < 3) {
this.gotoAndStop(3);
}
}
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion)) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
mySound.stop(['caralarmfixed']);
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 15;
_root.updatesheet(33);
mySound.stop(['caralarmfixed']);
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
} else {
if (this.hitTest(_root.carexplosion)) {
++chaintimer;
if (chaintimer > 10) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
mySound.stop(['caralarmfixed']);
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
}
}
}
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
--hp;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
};
}
frame 2 {
stop();
}
frame 3 {
stop();
mySound = new Sound(this);
mySound.attachSound('caralarmfixed');
mySound.start(0, 99);
mySound.setVolume(_root.sfxvolume);
}
}
movieClip 2044 {
}
movieClip 2046 {
}
movieClip 2047 {
frame 1 {
hp = 3;
chaintimer = 0;
}
frame 2 {
onEnterFrame = function () {
if (hp < 1) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
mySound.stop(['caralarmfixed']);
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
} else {
if (hp < 3) {
this.gotoAndStop(3);
}
}
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion)) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
mySound.stop(['caralarmfixed']);
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
mySound.stop(['caralarmfixed']);
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
} else {
if (this.hitTest(_root.carexplosion)) {
++chaintimer;
if (chaintimer > 10) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
mySound.stop(['caralarmfixed']);
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
}
}
}
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
--hp;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
};
}
frame 2 {
stop();
}
frame 3 {
stop();
mySound = new Sound(this);
mySound.attachSound('caralarmfixed');
mySound.start(0, 99);
mySound.setVolume(_root.sfxvolume);
}
}
movieClip 2049 {
}
movieClip 2051 {
}
movieClip 2052 {
frame 1 {
hp = 3;
chaintimer = 0;
}
frame 2 {
onEnterFrame = function () {
if (hp < 1) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
mySound.stop(['caralarmfixed']);
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
} else {
if (hp < 3) {
this.gotoAndStop(3);
}
}
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion)) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
mySound.stop(['caralarmfixed']);
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
mySound.stop(['caralarmfixed']);
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
} else {
if (this.hitTest(_root.carexplosion)) {
++chaintimer;
if (chaintimer > 10) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
mySound.stop(['caralarmfixed']);
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
}
}
}
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
--hp;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
};
}
frame 2 {
stop();
}
frame 3 {
stop();
mySound = new Sound(this);
mySound.attachSound('caralarmfixed');
mySound.start(0, 99);
mySound.setVolume(_root.sfxvolume);
}
}
movieClip 2056 {
}
movieClip 2057 {
frame 1 {
hp = 3;
pos = random(2);
}
frame 2 {
if (pos == 0) {
right = true;
oneflip = true;
} else {
right = false;
oneflip = false;
}
speed = 4;
chaintimer = 0;
onEnterFrame = function () {
if (movin) {
if (oneflip) {
_xscale = _xscale * -1;
oneflip = false;
_root.hpflip = false;
}
if (this._x < 10) {
oneflip = true;
_root.hpflip = true;
right = true;
} else {
if (this._x > _root.ground._width) {
right = false;
oneflip = true;
_root.hpflip = true;
}
}
if (right) {
_x = _x + speed;
} else {
_x = _x - speed;
}
}
if (hp < 1) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
if (right) {
_root.carexplosion._xscale *= -1;
}
this.unloadMovie();
} else {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
if (right) {
_root.carexplosion._xscale *= -1;
}
this.unloadMovie();
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
if (right) {
_root.carexplosion._xscale *= -1;
}
this.unloadMovie();
} else {
if (this.hitTest(_root.carexplosion)) {
++chaintimer;
if (chaintimer > 10) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
if (right) {
_root.carexplosion._xscale *= -1;
}
this.unloadMovie();
}
} else {}
}
}
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
--hp;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
};
}
frame 2 {
stop();
movin = true;
}
}
movieClip 2061 {
}
movieClip 2062 {
frame 1 {
hp = 3;
pos = random(2);
}
frame 2 {
if (pos == 0) {
right = true;
oneflip = true;
} else {
right = false;
oneflip = false;
}
speed = 4;
chaintimer = 0;
onEnterFrame = function () {
if (movin) {
if (oneflip) {
_xscale = _xscale * -1;
oneflip = false;
_root.hpflip = false;
}
if (this._x < 10) {
oneflip = true;
_root.hpflip = true;
right = true;
} else {
if (this._x > _root.ground._width) {
right = false;
oneflip = true;
_root.hpflip = true;
}
}
if (right) {
_x = _x + speed;
} else {
_x = _x - speed;
}
}
if (hp < 1) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
if (right) {
_root.carexplosion._xscale *= -1;
}
this.unloadMovie();
} else {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
if (right) {
_root.carexplosion._xscale *= -1;
}
this.unloadMovie();
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
if (right) {
_root.carexplosion._xscale *= -1;
}
this.unloadMovie();
} else {
if (this.hitTest(_root.carexplosion)) {
++chaintimer;
if (chaintimer > 10) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
if (right) {
_root.carexplosion._xscale *= -1;
}
this.unloadMovie();
}
} else {}
}
}
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
--hp;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
};
}
frame 2 {
stop();
movin = true;
}
}
movieClip 2066 {
}
movieClip 2067 {
frame 1 {
hp = 3;
pos = random(2);
}
frame 2 {
if (pos == 0) {
right = true;
oneflip = true;
} else {
right = false;
oneflip = false;
}
speed = 4;
chaintimer = 0;
onEnterFrame = function () {
if (movin) {
if (oneflip) {
_xscale = _xscale * -1;
oneflip = false;
_root.hpflip = false;
}
if (this._x < 10) {
oneflip = true;
_root.hpflip = true;
right = true;
} else {
if (this._x > _root.ground._width) {
right = false;
oneflip = true;
_root.hpflip = true;
}
}
if (right) {
_x = _x + speed;
} else {
_x = _x - speed;
}
}
if (hp < 1) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
if (right) {
_root.carexplosion._xscale *= -1;
}
this.unloadMovie();
} else {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.missileexplosion || _root.poopypee)) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
if (right) {
_root.carexplosion._xscale *= -1;
}
this.unloadMovie();
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
if (right) {
_root.carexplosion._xscale *= -1;
}
this.unloadMovie();
} else {
if (this.hitTest(_root.carexplosion)) {
++chaintimer;
if (chaintimer > 10) {
_root.chaos += 15;
_root.updatesheet(33);
_root.money += 95;
_root.score += 95;
_root.attachMovie('Car1_Explode', 'carexplosion', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
if (right) {
_root.carexplosion._xscale *= -1;
}
this.unloadMovie();
}
} else {}
}
}
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
--hp;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
};
}
frame 2 {
stop();
movin = true;
}
}
movieClip 2071 {
}
movieClip 2072 {
}
movieClip 2073 {
}
instance targetline of movieClip 2073 {
onClipEvent (enterFrame) {
this._x = _root._xmouse - 140;
this._y = 30;
if (_root.onetime == false) {
_alpha = 0;
}
}
}
movieClip 2076 {
}
movieClip 2141 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
frame 15 {
stop();
}
frame 16 {
stop();
}
frame 17 {
stop();
}
frame 18 {
stop();
}
frame 19 {
stop();
}
frame 20 {
stop();
}
frame 21 {
stop();
}
frame 22 {
stop();
}
frame 23 {
stop();
}
frame 24 {
stop();
}
frame 25 {
stop();
}
frame 26 {
stop();
}
frame 27 {
stop();
}
frame 28 {
stop();
}
frame 29 {
stop();
}
frame 30 {
stop();
}
frame 31 {
stop();
}
frame 32 {
stop();
}
frame 33 {
stop();
}
}
movieClip 2179 {
frame 1 {
stop();
}
frame 11 {
mySoundWheel = new Sound(this);
mySoundWheel.attachSound('ChaosRotate');
mySoundWheel.start();
mySoundWheel.setVolume(_root.sfxvolume);
}
frame 19 {
stop();
}
frame 47 {
mySoundWheel = new Sound(this);
mySoundWheel.attachSound('ChaosRotate');
mySoundWheel.start();
mySoundWheel.setVolume(_root.sfxvolume);
}
frame 55 {
stop();
}
frame 89 {
mySoundWheel = new Sound(this);
mySoundWheel.attachSound('ChaosRotate');
mySoundWheel.start();
mySoundWheel.setVolume(_root.sfxvolume);
}
frame 97 {
stop();
}
frame 130 {
mySoundWheel = new Sound(this);
mySoundWheel.attachSound('ChaosRotate');
mySoundWheel.start();
mySoundWheel.setVolume(_root.sfxvolume);
}
frame 138 {
stop();
}
}
movieClip 2183 {
}
movieClip 2188 {
}
movieClip 2193 {
}
movieClip 2198 {
}
movieClip 2203 {
}
// unknown tag 88 length 62
// unknown tag 88 length 68
movieClip 2215 {
}
movieClip 2230 {
frame 1 {
if (_root.sparking) {
randomspark = random(2);
if (randomspark == 0) {
mySound = new Sound(this);
mySound.attachSound('Sparks1');
mySound.start();
mySound.setVolume(_root.sfxvolume * Math.random());
} else {
if (randomspark == 1) {
mySound = new Sound(this);
mySound.attachSound('Sparks2');
mySound.start();
mySound.setVolume(_root.sfxvolume * Math.random());
}
}
}
}
}
button 2236 {
on (release) {
_root.skipround = true;
}
}
movieClip 2238 {
}
movieClip 2241 {
}
movieClip 2292 {
}
movieClip 2293 {
instance paper of movieClip 2076 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.airplane)) {
_alpha = 20;
}
}
}
instance shootbutton of movieClip 2188 {
onClipEvent (release) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
}
instance kazbutton of movieClip 2193 {
onClipEvent (release) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && _root.kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
}
instance parabutton of movieClip 2198 {
onClipEvent (release) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && _root.paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
}
instance timebutton of movieClip 2203 {
onClipEvent (release) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.timeunlocked == true) {
mySound = new Sound(this);
mySound.attachSound('TIMEFREEZE copy');
mySound.start();
mySound.setVolume(_root.sfxvolume * 10);
_root.freezetime = true;
_root.onefreeze = false;
}
}
}
}
instance hud of movieClip 2293 {
onClipEvent (load) {
once = true;
randomer = random(3);
}
onClipEvent (enterFrame) {
if (_root.bomboff && once) {
if (randomer == 0) {
mySound = new Sound(this);
mySound.attachSound('Panic1');
mySound.start();
mySound.setVolume(_root.sfxvolume);
} else {
if (randomer == 1) {
mySound = new Sound(this);
mySound.attachSound('Panic2');
mySound.start();
mySound.setVolume(_root.sfxvolume);
} else {
if (randomer == 2) {
mySound = new Sound(this);
mySound.attachSound('Panic3');
mySound.start();
mySound.setVolume(_root.sfxvolume);
}
}
}
once = false;
}
}
}
instance crosshair of movieClip 479 crosshair {
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_root.onetime == true || _root.switchmousetokaz || _root.shootunlocked == false) {
_alpha = 0;
} else {
_alpha = 100;
}
}
}
movieClip 2295 {
}
instance of movieClip 2295 {
onClipEvent (enterFrame) {
this._x = _root._xmouse;
if (_root.switchmousetokaz) {
_alpha = 100;
} else {
_alpha = 0;
}
}
}
frame 11 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
movieClip 2298 {
}
instance of movieClip 516 {
onClipEvent (load) {
mySound11 = new Sound(this);
mySound11.attachSound('PeacefullTime');
mySound11.start(0, 99);
mySound11.setVolume(_root.musicvolume * _root.musicreducer * 1);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound11.stop(['PeacefullTime']);
}
}
}
instance of movieClip 516 {
onClipEvent (load) {
once = true;
chaosonce = true;
}
onClipEvent (enterFrame) {
if (once && _root.bomboff) {
mySound = new Sound(this);
mySound.attachSound('PANICMUSIC');
mySound.start();
mySound.setVolume(_root.musicvolume * _root.musicreducer * 3);
once = false;
}
if (_root.chaos > 100 && chaosonce) {
mySound.stop(['PANICMUSIC']);
chaosonce = false;
}
}
}
instance of movieClip 516 {
onClipEvent (load) {
once = true;
}
onClipEvent (enterFrame) {
if (_root.chaos > 100 && once) {
mySound = new Sound(this);
mySound.attachSound('CHAOSMUSIC');
mySound.start();
mySound.setVolume(_root.musicvolume * _root.musicreducer * 5);
once = false;
}
}
}
frame 12 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
movieClip 2301 {
}
instance of movieClip 516 {
onClipEvent (load) {
mySoundr = new Sound(this);
mySoundr.attachSound('PeacefullTime');
mySoundr.start(0, 99);
mySoundr.setVolume(_root.musicvolume * _root.musicreducer * 0.8);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySoundr.stop(['PeacefullTime']);
}
}
}
movieClip 2302 {
frame 1 {
stop();
once = true;
onEnterFrame = function () {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee) && once == true) {
_root.chaos += 20;
_root.updatesheet(29);
_root.money += 130;
_root.score += 130;
once = false;
gotoAndStop(2);
} else {
if (this.hitTest(_root.otherexp) && once == true) {
_root.chaos += 20;
_root.updatesheet(29);
_root.money += 130;
_root.score += 130;
once = false;
gotoAndStop(2);
}
}
};
}
}
movieClip 2304 {
frame 1 {
onEnterFrame = function () {
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
_root.chaos += 10;
_root.attachMovie('WoodenCrateExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
}
++i;
}
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.chaos += 10;
_root.attachMovie('WoodenCrateExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 10;
_root.attachMovie('WoodenCrateExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
}
}
};
}
}
movieClip 2306 {
frame 1 {
onEnterFrame = function () {
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
_root.chaos += 10;
_root.attachMovie('BlueBarrelExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
}
++i;
}
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.chaos += 10;
_root.attachMovie('BlueBarrelExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 10;
_root.attachMovie('BlueBarrelExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
}
}
};
}
}
frame 13 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
movieClip 2309 {
}
movieClip 2314 {
frame 1 {
stop();
onEnterFrame = function () {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
gotoAndStop(2);
} else {
if (this.hitTest(_root.otherexp)) {
gotoAndStop(2);
}
}
};
}
frame 2 {
stop();
_root.updatesheet(17);
_root.money += 37;
_root.score += 37;
}
}
instance of movieClip 516 {
onClipEvent (load) {
mySound115 = new Sound(this);
mySound115.attachSound('PeacefullTime');
mySound115.start(0, 99);
mySound115.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound115.stop(['PeacefullTime']);
}
}
}
frame 14 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
instance of movieClip 516 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('PeacefullTime');
mySound.start(0, 99);
mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound.stop(['PeacefullTime']);
}
}
}
movieClip 2317 {
frame 1 {
stop();
onEnterFrame = function () {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
gotoAndStop(2);
} else {
if (this.hitTest(_root.otherexp)) {
gotoAndStop(2);
}
}
};
}
frame 2 {
stop();
_root.updatesheet(23);
_root.money += 62;
_root.score += 62;
}
}
movieClip 2324 {
}
movieClip 2334 {
}
movieClip 2351 {
}
movieClip 2371 {
}
movieClip 2374 {
}
movieClip 2383 {
}
movieClip 2399 {
}
movieClip 2416 {
}
movieClip 2423 {
}
movieClip 2424 {
frame 1 {
hp = 100;
speed = 0;
pos = random(2);
flyleft = false;
flyright = false;
}
frame 2 {
stop();
flips = 0;
flipcount = 0;
randomscream = random(3);
if (randomscream == 0) {
scream = 'Scream1';
} else {
if (randomscream == 1) {
scream = 'Scream2';
} else {
if (randomscream == 2) {
scream = 'Scream3';
}
}
}
if (pos == 0) {
right = true;
oneflip = false;
_root.hpflip = false;
} else {
right = false;
oneflip = true;
_root.hpflip = true;
}
flying = false;
onEnterFrame = function () {
if (flips > 2) {
this.unloadMovie();
}
++flipcount;
if (flipcount > 100) {
flipcount = 0;
flips = 0;
}
if (!flying) {
if (oneflip) {
_xscale = _xscale * -1;
oneflip = false;
_root.hpflip = false;
}
if (this._x < 10) {
oneflip = true;
_root.hpflip = true;
right = true;
} else {
if (this._x > _root.ground._width) {
right = false;
oneflip = true;
_root.hpflip = true;
}
}
if (right) {
_x = _x + speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = false;
oneflip = true;
_root.hpflip = true;
}
} else {
_x = _x - speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = true;
oneflip = true;
_root.hpflip = true;
}
}
}
if (!flying) {
if (_root.bomboff == true) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
hpbar.gotoAndStop(Math.abs(100 - hp) + 1);
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyright = true;
} else {
if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyleft = true;
} else {
if (hp < 1) {
_root.chaos += 5;
this.gotoAndStop(9);
}
}
}
}
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
hp -= _root.bulletpower;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
};
}
frame 2 {
speed = 1;
}
frame 3 {
speed = 2;
}
frame 6 {
archeight = random(150) + 50;
secondarcheight = archeight + 15;
downtime = false;
speed = archeight / 50;
acccounter = 0;
acccounter2 = 0;
othercounter = 0;
onEnterFrame = function () {
acccounter += 0.5;
if (flyleft) {
_x = _x - speed;
} else {
if (flyright) {
_x = _x + speed;
}
}
archeight -= 10;
if (archeight > 0) {
_y = _y - (10 - acccounter);
} else {
downtime = true;
}
if (downtime) {
++othercounter;
}
if (othercounter > 4) {
secondarcheight -= 10;
acccounter2 += 0.8;
}
if (secondarcheight > 0 && downtime && othercounter > 4) {
_y = _y + (3 + acccounter2);
}
if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) {
if (_y < _root.grounttester._y) {
this.gotoAndStop(10);
} else {
this.gotoAndStop(7);
}
}
};
}
frame 7 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 50) {
deadcounter = 0;
_root.updatesheet(4);
_root.money += 6;
_root.score += 6;
this.unloadMovie();
}
};
}
frame 8 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 20) {
deadcounter = 0;
_root.updatesheet(4);
_root.money += 6;
_root.score += 6;
this.unloadMovie();
}
};
}
frame 9 {
hpbar.gotoAndStop(100);
deadcounter = 0;
mySound = new Sound(this);
mySound.attachSound(scream);
mySound.start();
mySound.setVolume(_root.sfxvolume);
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 25) {
deadcounter = 0;
_root.updatesheet(4);
_root.money += 6;
_root.score += 6;
this.unloadMovie();
}
};
}
frame 10 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 10) {
deadcounter = 0;
_root.updatesheet(4);
_root.money += 6;
_root.score += 6;
this.unloadMovie();
}
};
}
}
frame 15 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
movieClip 2427 {
frame 1 {
stop();
onEnterFrame = function () {
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
gotoAndStop(2);
} else {
if (this.hitTest(_root.otherexp)) {
gotoAndStop(2);
}
}
};
}
frame 2 {
stop();
_root.updatesheet(19);
_root.money += 45;
_root.score += 45;
}
}
instance of movieClip 516 {
onClipEvent (load) {
mySound11 = new Sound(this);
mySound11.attachSound('PeacefullTime');
mySound11.start(0, 99);
mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound11.stop(['PeacefullTime']);
}
}
}
movieClip 2454 {
}
movieClip 2463 {
}
movieClip 2464 {
frame 1 {
stop();
onEnterFrame = function () {
if (_root.bomboff == true) {
this.gotoAndStop(2);
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
_root.updatesheet(24);
_root.bomboff = true;
_root.money += 120;
_root.score += 120;
++_root.birdskilled;
this.unloadMovie();
}
++i;
}
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.updatesheet(24);
_root.bomboff = true;
_root.money += 120;
_root.score += 120;
++_root.birdskilled;
this.unloadMovie();
} else {
if (this.hitTest(_root.otherexp)) {
_root.updatesheet(24);
_root.bomboff = true;
_root.money += 120;
_root.score += 120;
++_root.birdskilled;
this.unloadMovie();
}
}
};
}
frame 2 {
stop();
onEnterFrame = function () {
if (_y < 0 || _x < 0 || _x > 800) {
this.unloadMovie();
}
_y = _y - 2;
_x = _x + 1.4;
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
_root.updatesheet(24);
_root.bomboff = true;
_root.money += 120;
_root.score += 120;
++_root.birdskilled;
this.unloadMovie();
}
++i;
}
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.updatesheet(24);
_root.bomboff = true;
_root.money += 120;
_root.score += 120;
++_root.birdskilled;
this.unloadMovie();
} else {
if (this.hitTest(_root.otherexp)) {
_root.updatesheet(24);
_root.bomboff = true;
_root.money += 120;
_root.score += 120;
++_root.birdskilled;
this.unloadMovie();
}
}
};
}
}
movieClip 2478 {
}
movieClip 2479 {
frame 1 {
stop();
onEnterFrame = function () {
if (_root.bomboff == true) {
this.gotoAndStop(2);
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
_root.updatesheet(24);
_root.bomboff = true;
_root.money += 120;
_root.score += 120;
++_root.birdskilled;
this.unloadMovie();
}
++i;
}
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.updatesheet(24);
_root.bomboff = true;
_root.money += 120;
_root.score += 120;
++_root.birdskilled;
this.unloadMovie();
} else {
if (this.hitTest(_root.otherexp)) {
_root.updatesheet(24);
_root.bomboff = true;
_root.money += 120;
_root.score += 120;
++_root.birdskilled;
this.unloadMovie();
}
}
};
}
frame 2 {
stop();
onEnterFrame = function () {
if (_y < 0 || _x < 0 || _x > 800) {
this.unloadMovie();
}
_y = _y - 2;
_x = _x - 1.4;
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
_root.updatesheet(24);
_root.bomboff = true;
_root.money += 120;
_root.score += 120;
++_root.birdskilled;
this.unloadMovie();
}
++i;
}
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.updatesheet(24);
_root.bomboff = true;
_root.money += 120;
_root.score += 120;
++_root.birdskilled;
this.unloadMovie();
} else {
if (this.hitTest(_root.otherexp)) {
_root.updatesheet(24);
_root.bomboff = true;
_root.money += 120;
_root.score += 120;
++_root.birdskilled;
this.unloadMovie();
}
}
};
}
}
frame 16 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
instance of movieClip 516 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('PeacefullTime');
mySound.start(0, 99);
mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound.stop(['PeacefullTime']);
}
}
}
movieClip 2481 {
frame 1 {
onEnterFrame = function () {
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
_root.chaos += 10;
_root.attachMovie('PropaneTankExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
}
++i;
}
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.chaos += 10;
_root.attachMovie('PropaneTankExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 10;
_root.attachMovie('PropaneTankExplode', 'otherexp', _root.getNextHighestDepth(), {'_x': _x, '_y': _y});
this.unloadMovie();
}
}
};
}
}
movieClip 2487 {
}
movieClip 2497 {
}
movieClip 2514 {
}
movieClip 2534 {
}
movieClip 2537 {
}
movieClip 2546 {
}
movieClip 2562 {
}
movieClip 2579 {
}
movieClip 2585 {
}
movieClip 2586 {
frame 1 {
hp = 100;
speed = 0;
pos = random(2);
flyleft = false;
flyright = false;
}
frame 2 {
stop();
flips = 0;
flipcount = 0;
randomscream = random(3);
if (randomscream == 0) {
scream = 'Scream1';
} else {
if (randomscream == 1) {
scream = 'Scream2';
} else {
if (randomscream == 2) {
scream = 'Scream3';
}
}
}
if (pos == 0) {
right = true;
oneflip = false;
_root.hpflip = false;
} else {
right = false;
oneflip = true;
_root.hpflip = true;
}
flying = false;
onEnterFrame = function () {
if (flips > 2) {
this.unloadMovie();
}
++flipcount;
if (flipcount > 100) {
flipcount = 0;
flips = 0;
}
if (!flying) {
if (oneflip) {
_xscale = _xscale * -1;
oneflip = false;
_root.hpflip = false;
}
if (this._x < 10) {
oneflip = true;
_root.hpflip = true;
right = true;
} else {
if (this._x > _root.ground._width) {
right = false;
oneflip = true;
_root.hpflip = true;
}
}
if (right) {
_x = _x + speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = false;
oneflip = true;
_root.hpflip = true;
}
} else {
_x = _x - speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = true;
oneflip = true;
_root.hpflip = true;
}
}
}
if (!flying) {
if (_root.bomboff == true) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
hpbar.gotoAndStop(Math.abs(100 - hp) + 1);
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyright = true;
} else {
if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyleft = true;
} else {
if (hp < 1) {
_root.chaos += 5;
this.gotoAndStop(9);
}
}
}
}
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
hp -= _root.bulletpower;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
};
}
frame 2 {
speed = 1;
}
frame 3 {
speed = 2;
}
frame 6 {
archeight = random(150) + 50;
secondarcheight = archeight + 15;
downtime = false;
speed = archeight / 50;
acccounter = 0;
acccounter2 = 0;
othercounter = 0;
onEnterFrame = function () {
acccounter += 0.5;
if (flyleft) {
_x = _x - speed;
} else {
if (flyright) {
_x = _x + speed;
}
}
archeight -= 10;
if (archeight > 0) {
_y = _y - (10 - acccounter);
} else {
downtime = true;
}
if (downtime) {
++othercounter;
}
if (othercounter > 4) {
secondarcheight -= 10;
acccounter2 += 0.8;
}
if (secondarcheight > 0 && downtime && othercounter > 4) {
_y = _y + (3 + acccounter2);
}
if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) {
if (_y < _root.grounttester._y) {
this.gotoAndStop(10);
} else {
this.gotoAndStop(7);
}
}
};
}
frame 7 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 50) {
deadcounter = 0;
_root.updatesheet(5);
_root.money += 10;
_root.score += 10;
this.unloadMovie();
}
};
}
frame 8 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 20) {
deadcounter = 0;
_root.updatesheet(5);
_root.money += 10;
_root.score += 10;
this.unloadMovie();
}
};
}
frame 9 {
hpbar.gotoAndStop(100);
deadcounter = 0;
mySound = new Sound(this);
mySound.attachSound(scream);
mySound.start();
mySound.setVolume(_root.sfxvolume);
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 25) {
deadcounter = 0;
_root.updatesheet(5);
_root.money += 10;
_root.score += 10;
this.unloadMovie();
}
};
}
frame 10 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 10) {
deadcounter = 0;
_root.updatesheet(5);
_root.money += 10;
_root.score += 10;
this.unloadMovie();
}
};
}
}
frame 17 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
movieClip 2589 {
}
instance of movieClip 516 {
onClipEvent (load) {
mySound11 = new Sound(this);
mySound11.attachSound('PeacefullTime');
mySound11.start(0, 99);
mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound11.stop(['PeacefullTime']);
}
}
}
movieClip 2594 {
frame 14 {
if (_root.timetodie == false) {
_root.attachMovie('bulletline-turret', 'bulletforshooterthing', _root.getNextHighestDepth(), {'_x': _x - 0, '_y': _y - 40});
angle = Math.atan((_y - _root.airplane._y) / (_root.airplane._x - _x));
bulletforshooterthing._rotation = angle * 57.2957795 * -1 - 65;
mySound = new Sound(this);
mySound.attachSound('TurretShootin');
mySound.start();
mySound.setVolume(_root.sfxvolume);
}
}
frame 22 {
if (_root.timetodie == false) {
_root.airplanehp -= 5;
_root.airplane.gotoAndStop(4);
}
}
}
movieClip 2609 {
frame 72 {
stop();
}
}
movieClip 2610 {
frame 1 {
stop();
}
frame 1 {
stop();
over = false;
turret.gotoAndStop(1);
turret._rotation = -20;
startit = false;
once = true;
hp = 100;
onEnterFrame = function () {
hpbar.gotoAndStop(Math.abs(100 - hp) + 1);
if (hp < 1) {
this.gotoAndStop(2);
}
if (startit && once) {
turret.gotoAndPlay(1);
once = false;
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
hp -= _root.bulletpower;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
this.gotoAndStop(2);
} else {
if (this.hitTest(_root.otherexp)) {
this.gotoAndStop(2);
}
}
angle = Math.atan((_y - _root.airplane._y) / (_root.airplane._x - 60 - _x));
if (_x - 400 < _root.airplane._x && _x > _root.airplane._x && _root.freezetime == false) {
turret._rotation = angle * 57.2957795 * -1 - 30;
startit = true;
} else {
if (_x < _root.airplane._x || _root.freezetime) {
over = true;
turret.gotoAndStop(1);
}
}
};
}
frame 2 {
stop();
_root.chaos += 30;
_root.updatesheet(32);
_root.money += 50;
_root.score += 50;
}
}
frame 18 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
instance of movieClip 516 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('PeacefullTime');
mySound.start(0, 99);
mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound.stop(['PeacefullTime']);
}
}
}
movieClip 2616 {
}
movieClip 2626 {
}
movieClip 2643 {
}
movieClip 2663 {
}
movieClip 2666 {
}
movieClip 2674 {
}
movieClip 2692 {
}
movieClip 2709 {
}
movieClip 2715 {
}
movieClip 2716 {
frame 1 {
hp = 100;
speed = 0;
pos = random(2);
flyleft = false;
flyright = false;
}
frame 2 {
stop();
flips = 0;
flipcount = 0;
randomscream = random(3);
if (randomscream == 0) {
scream = 'Scream1';
} else {
if (randomscream == 1) {
scream = 'Scream2';
} else {
if (randomscream == 2) {
scream = 'Scream3';
}
}
}
if (pos == 0) {
right = true;
oneflip = false;
_root.hpflip = false;
} else {
right = false;
oneflip = true;
_root.hpflip = true;
}
flying = false;
onEnterFrame = function () {
if (flips > 2) {
this.unloadMovie();
}
++flipcount;
if (flipcount > 100) {
flipcount = 0;
flips = 0;
}
if (!flying) {
if (oneflip) {
_xscale = _xscale * -1;
oneflip = false;
_root.hpflip = false;
}
if (this._x < 10) {
oneflip = true;
_root.hpflip = true;
right = true;
} else {
if (this._x > _root.ground._width) {
right = false;
oneflip = true;
_root.hpflip = true;
}
}
if (right) {
_x = _x + speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = false;
oneflip = true;
_root.hpflip = true;
}
} else {
_x = _x - speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = true;
oneflip = true;
_root.hpflip = true;
}
}
}
if (!flying) {
if (_root.bomboff == true) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
hpbar.gotoAndStop(Math.abs(100 - hp) + 1);
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyright = true;
} else {
if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyleft = true;
} else {
if (hp < 1) {
_root.chaos += 5;
this.gotoAndStop(9);
}
}
}
}
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
hp -= _root.bulletpower;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
};
}
frame 2 {
speed = 1;
}
frame 3 {
speed = 2;
}
frame 6 {
archeight = random(150) + 50;
secondarcheight = archeight + 15;
downtime = false;
speed = archeight / 50;
acccounter = 0;
acccounter2 = 0;
othercounter = 0;
onEnterFrame = function () {
acccounter += 0.5;
if (flyleft) {
_x = _x - speed;
} else {
if (flyright) {
_x = _x + speed;
}
}
archeight -= 10;
if (archeight > 0) {
_y = _y - (10 - acccounter);
} else {
downtime = true;
}
if (downtime) {
++othercounter;
}
if (othercounter > 4) {
secondarcheight -= 10;
acccounter2 += 0.8;
}
if (secondarcheight > 0 && downtime && othercounter > 4) {
_y = _y + (3 + acccounter2);
}
if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) {
if (_y < _root.grounttester._y) {
this.gotoAndStop(10);
} else {
this.gotoAndStop(7);
}
}
};
}
frame 7 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 50) {
deadcounter = 0;
_root.updatesheet(6);
_root.money += 16;
_root.score += 16;
this.unloadMovie();
}
};
}
frame 8 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 20) {
deadcounter = 0;
_root.updatesheet(6);
_root.money += 16;
_root.score += 16;
this.unloadMovie();
}
};
}
frame 9 {
hpbar.gotoAndStop(100);
deadcounter = 0;
mySound = new Sound(this);
mySound.attachSound(scream);
mySound.start();
mySound.setVolume(_root.sfxvolume);
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 25) {
deadcounter = 0;
_root.updatesheet(6);
_root.money += 16;
_root.score += 16;
this.unloadMovie();
}
};
}
frame 10 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 10) {
deadcounter = 0;
_root.updatesheet(6);
_root.money += 16;
_root.score += 16;
this.unloadMovie();
}
};
}
}
frame 19 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
instance of movieClip 516 {
onClipEvent (load) {
mySound11 = new Sound(this);
mySound11.attachSound('PeacefullTime');
mySound11.start(0, 99);
mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound11.stop(['PeacefullTime']);
}
}
}
frame 20 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
instance targetline of movieClip 2073 {
onClipEvent (enterFrame) {
this._x = _root._xmouse - 140;
this._y = 30;
if (_root.onetime == false) {
_alpha = 0;
}
}
}
instance of movieClip 516 {
onClipEvent (load) {
mySound121 = new Sound(this);
mySound121.attachSound('PeacefullTime');
mySound121.start(0, 99);
mySound121.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound121.stop(['PeacefullTime']);
}
}
}
instance of movieClip 516 {
onClipEvent (load) {
once = true;
chaosonce = true;
}
onClipEvent (enterFrame) {
if (once && _root.bomboff) {
mySound = new Sound(this);
mySound.attachSound('PANICMUSIC');
mySound.start();
mySound.setVolume(_root.musicvolume * _root.musicreducer * 3);
once = false;
}
if (_root.chaos > 100 && chaosonce) {
mySound.stop(['PANICMUSIC']);
chaosonce = false;
}
}
}
instance of movieClip 516 {
onClipEvent (load) {
once = true;
}
onClipEvent (enterFrame) {
if (_root.chaos > 100 && once) {
mySound = new Sound(this);
mySound.attachSound('CHAOSMUSIC');
mySound.start();
mySound.setVolume(_root.musicvolume * _root.musicreducer * 5);
once = false;
}
}
}
frame 21 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
instance of movieClip 516 {
onClipEvent (load) {
mySound11 = new Sound(this);
mySound11.attachSound('PeacefullTime');
mySound11.start(0, 99);
mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound11.stop(['PeacefullTime']);
}
}
}
instance of movieClip 516 {
onClipEvent (load) {
once = true;
chaosonce = true;
}
onClipEvent (enterFrame) {
if (once && _root.bomboff) {
mySound = new Sound(this);
mySound.attachSound('PANICMUSIC');
mySound.start();
mySound.setVolume(_root.musicvolume * _root.musicreducer * 3);
once = false;
}
if (_root.chaos > 100 && chaosonce) {
mySound.stop(['PANICMUSIC']);
chaosonce = false;
}
}
}
instance of movieClip 516 {
onClipEvent (load) {
once = true;
}
onClipEvent (enterFrame) {
if (_root.chaos > 100 && once) {
mySound = new Sound(this);
mySound.attachSound('CHAOSMUSIC');
mySound.start();
mySound.setVolume(_root.musicvolume * _root.musicreducer * 5);
once = false;
}
}
}
movieClip 2722 {
}
movieClip 2732 {
}
movieClip 2749 {
}
movieClip 2769 {
}
movieClip 2772 {
}
movieClip 2780 {
}
movieClip 2796 {
}
movieClip 2813 {
}
movieClip 2819 {
}
movieClip 2820 {
frame 1 {
hp = 100;
speed = 0;
pos = random(2);
flyleft = false;
flyright = false;
}
frame 2 {
stop();
flips = 0;
flipcount = 0;
randomscream = random(3);
if (randomscream == 0) {
scream = 'Scream1';
} else {
if (randomscream == 1) {
scream = 'Scream2';
} else {
if (randomscream == 2) {
scream = 'Scream3';
}
}
}
if (pos == 0) {
right = true;
oneflip = false;
_root.hpflip = false;
} else {
right = false;
oneflip = true;
_root.hpflip = true;
}
flying = false;
onEnterFrame = function () {
if (flips > 2) {
this.unloadMovie();
}
++flipcount;
if (flipcount > 100) {
flipcount = 0;
flips = 0;
}
if (!flying) {
if (oneflip) {
_xscale = _xscale * -1;
oneflip = false;
_root.hpflip = false;
}
if (this._x < 10) {
oneflip = true;
_root.hpflip = true;
right = true;
} else {
if (this._x > _root.ground._width) {
right = false;
oneflip = true;
_root.hpflip = true;
}
}
if (right) {
_x = _x + speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = false;
oneflip = true;
_root.hpflip = true;
}
} else {
_x = _x - speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = true;
oneflip = true;
_root.hpflip = true;
}
}
}
if (!flying) {
if (_root.bomboff == true) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
hpbar.gotoAndStop(Math.abs(100 - hp) + 1);
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyright = true;
} else {
if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyleft = true;
} else {
if (hp < 1) {
_root.chaos += 5;
this.gotoAndStop(9);
}
}
}
}
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
hp -= _root.bulletpower;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
};
}
frame 2 {
speed = 1;
}
frame 3 {
speed = 2;
}
frame 6 {
archeight = random(150) + 50;
secondarcheight = archeight + 15;
downtime = false;
speed = archeight / 50;
acccounter = 0;
acccounter2 = 0;
othercounter = 0;
onEnterFrame = function () {
acccounter += 0.5;
if (flyleft) {
_x = _x - speed;
} else {
if (flyright) {
_x = _x + speed;
}
}
archeight -= 10;
if (archeight > 0) {
_y = _y - (10 - acccounter);
} else {
downtime = true;
}
if (downtime) {
++othercounter;
}
if (othercounter > 4) {
secondarcheight -= 10;
acccounter2 += 0.8;
}
if (secondarcheight > 0 && downtime && othercounter > 4) {
_y = _y + (3 + acccounter2);
}
if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) {
if (_y < _root.grounttester._y) {
this.gotoAndStop(10);
} else {
this.gotoAndStop(7);
}
}
};
}
frame 7 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 50) {
deadcounter = 0;
_root.updatesheet(7);
_root.money += 23;
_root.score += 23;
this.unloadMovie();
}
};
}
frame 8 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 20) {
deadcounter = 0;
_root.updatesheet(7);
_root.money += 23;
_root.score += 23;
this.unloadMovie();
}
};
}
frame 9 {
hpbar.gotoAndStop(100);
deadcounter = 0;
mySound = new Sound(this);
mySound.attachSound(scream);
mySound.start();
mySound.setVolume(_root.sfxvolume);
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 25) {
deadcounter = 0;
_root.updatesheet(7);
_root.money += 23;
_root.score += 23;
this.unloadMovie();
}
};
}
frame 10 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 10) {
deadcounter = 0;
_root.updatesheet(7);
_root.money += 23;
_root.score += 23;
this.unloadMovie();
}
};
}
}
frame 22 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
instance of movieClip 516 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('PeacefullTime');
mySound.start(0, 99);
mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound.stop(['PeacefullTime']);
}
}
}
frame 23 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
instance of movieClip 516 {
onClipEvent (load) {
mySound11 = new Sound(this);
mySound11.attachSound('PeacefullTime');
mySound11.start(0, 99);
mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound11.stop(['PeacefullTime']);
}
}
}
movieClip 2826 {
}
movieClip 2836 {
}
movieClip 2853 {
}
movieClip 2873 {
}
movieClip 2876 {
}
movieClip 2884 {
}
movieClip 2900 {
}
movieClip 2917 {
}
movieClip 2923 {
}
movieClip 2924 {
frame 1 {
hp = 100;
speed = 0;
pos = random(2);
flyleft = false;
flyright = false;
}
frame 2 {
stop();
flips = 0;
flipcount = 0;
randomscream = random(3);
if (randomscream == 0) {
scream = 'Scream1';
} else {
if (randomscream == 1) {
scream = 'Scream2';
} else {
if (randomscream == 2) {
scream = 'Scream3';
}
}
}
if (pos == 0) {
right = true;
oneflip = false;
_root.hpflip = false;
} else {
right = false;
oneflip = true;
_root.hpflip = true;
}
flying = false;
onEnterFrame = function () {
if (flips > 2) {
this.unloadMovie();
}
++flipcount;
if (flipcount > 100) {
flipcount = 0;
flips = 0;
}
if (!flying) {
if (oneflip) {
_xscale = _xscale * -1;
oneflip = false;
_root.hpflip = false;
}
if (this._x < 10) {
oneflip = true;
_root.hpflip = true;
right = true;
} else {
if (this._x > _root.ground._width) {
right = false;
oneflip = true;
_root.hpflip = true;
}
}
if (right) {
_x = _x + speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = false;
oneflip = true;
_root.hpflip = true;
}
} else {
_x = _x - speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = true;
oneflip = true;
_root.hpflip = true;
}
}
}
if (!flying) {
if (_root.bomboff == true) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
hpbar.gotoAndStop(Math.abs(100 - hp) + 1);
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyright = true;
} else {
if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyleft = true;
} else {
if (hp < 1) {
_root.chaos += 5;
this.gotoAndStop(9);
}
}
}
}
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
hp -= _root.bulletpower;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
};
}
frame 2 {
speed = 1;
}
frame 3 {
speed = 2;
}
frame 6 {
archeight = random(150) + 50;
secondarcheight = archeight + 15;
downtime = false;
speed = archeight / 50;
acccounter = 0;
acccounter2 = 0;
othercounter = 0;
onEnterFrame = function () {
acccounter += 0.5;
if (flyleft) {
_x = _x - speed;
} else {
if (flyright) {
_x = _x + speed;
}
}
archeight -= 10;
if (archeight > 0) {
_y = _y - (10 - acccounter);
} else {
downtime = true;
}
if (downtime) {
++othercounter;
}
if (othercounter > 4) {
secondarcheight -= 10;
acccounter2 += 0.8;
}
if (secondarcheight > 0 && downtime && othercounter > 4) {
_y = _y + (3 + acccounter2);
}
if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) {
if (_y < _root.grounttester._y) {
this.gotoAndStop(10);
} else {
this.gotoAndStop(7);
}
}
};
}
frame 7 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 50) {
deadcounter = 0;
_root.updatesheet(8);
_root.money += 65;
_root.score += 65;
this.unloadMovie();
}
};
}
frame 8 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 20) {
deadcounter = 0;
_root.updatesheet(8);
_root.money += 65;
_root.score += 65;
this.unloadMovie();
}
};
}
frame 9 {
hpbar.gotoAndStop(100);
deadcounter = 0;
mySound = new Sound(this);
mySound.attachSound(scream);
mySound.start();
mySound.setVolume(_root.sfxvolume);
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 25) {
deadcounter = 0;
_root.updatesheet(8);
_root.money += 65;
_root.score += 65;
this.unloadMovie();
}
};
}
frame 10 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 10) {
deadcounter = 0;
_root.updatesheet(8);
_root.money += 65;
_root.score += 65;
this.unloadMovie();
}
};
}
}
frame 24 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
instance of movieClip 516 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('PeacefullTime');
mySound.start(0, 99);
mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound.stop(['PeacefullTime']);
}
}
}
frame 25 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
instance of movieClip 516 {
onClipEvent (load) {
mySound11 = new Sound(this);
mySound11.attachSound('PeacefullTime');
mySound11.start(0, 99);
mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound11.stop(['PeacefullTime']);
}
}
}
frame 26 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
movieClip 2927 {
}
instance of movieClip 516 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('PeacefullTime');
mySound.start(0, 99);
mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound.stop(['PeacefullTime']);
}
}
}
movieClip 2933 {
}
movieClip 2943 {
}
movieClip 2960 {
}
movieClip 2980 {
}
movieClip 2983 {
}
movieClip 2991 {
}
movieClip 3007 {
}
movieClip 3024 {
}
movieClip 3030 {
}
movieClip 3031 {
frame 1 {
hp = 100;
speed = 0;
pos = random(2);
flyleft = false;
flyright = false;
}
frame 2 {
stop();
flips = 0;
flipcount = 0;
randomscream = random(3);
if (randomscream == 0) {
scream = 'Scream1';
} else {
if (randomscream == 1) {
scream = 'Scream2';
} else {
if (randomscream == 2) {
scream = 'Scream3';
}
}
}
if (pos == 0) {
right = true;
oneflip = false;
_root.hpflip = false;
} else {
right = false;
oneflip = true;
_root.hpflip = true;
}
flying = false;
onEnterFrame = function () {
if (flips > 2) {
this.unloadMovie();
}
++flipcount;
if (flipcount > 100) {
flipcount = 0;
flips = 0;
}
if (!flying) {
if (oneflip) {
_xscale = _xscale * -1;
oneflip = false;
_root.hpflip = false;
}
if (this._x < 10) {
oneflip = true;
_root.hpflip = true;
right = true;
} else {
if (this._x > _root.ground._width) {
right = false;
oneflip = true;
_root.hpflip = true;
}
}
if (right) {
_x = _x + speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = false;
oneflip = true;
_root.hpflip = true;
}
} else {
_x = _x - speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = true;
oneflip = true;
_root.hpflip = true;
}
}
}
if (!flying) {
if (_root.bomboff == true) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
hpbar.gotoAndStop(Math.abs(100 - hp) + 1);
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyright = true;
} else {
if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyleft = true;
} else {
if (hp < 1) {
_root.chaos += 5;
this.gotoAndStop(9);
}
}
}
}
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
hp -= _root.bulletpower;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
};
}
frame 2 {
speed = 1;
}
frame 3 {
speed = 2;
}
frame 6 {
archeight = random(150) + 50;
secondarcheight = archeight + 15;
downtime = false;
speed = archeight / 50;
acccounter = 0;
acccounter2 = 0;
othercounter = 0;
onEnterFrame = function () {
acccounter += 0.5;
if (flyleft) {
_x = _x - speed;
} else {
if (flyright) {
_x = _x + speed;
}
}
archeight -= 10;
if (archeight > 0) {
_y = _y - (10 - acccounter);
} else {
downtime = true;
}
if (downtime) {
++othercounter;
}
if (othercounter > 4) {
secondarcheight -= 10;
acccounter2 += 0.8;
}
if (secondarcheight > 0 && downtime && othercounter > 4) {
_y = _y + (3 + acccounter2);
}
if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) {
if (_y < _root.grounttester._y) {
this.gotoAndStop(10);
} else {
this.gotoAndStop(7);
}
}
};
}
frame 7 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 50) {
deadcounter = 0;
_root.updatesheet(9);
_root.money += 40;
_root.score += 40;
this.unloadMovie();
}
};
}
frame 8 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 20) {
deadcounter = 0;
_root.updatesheet(9);
_root.money += 40;
_root.score += 40;
this.unloadMovie();
}
};
}
frame 9 {
hpbar.gotoAndStop(100);
deadcounter = 0;
mySound = new Sound(this);
mySound.attachSound(scream);
mySound.start();
mySound.setVolume(_root.sfxvolume);
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 25) {
deadcounter = 0;
_root.updatesheet(9);
_root.money += 40;
_root.score += 40;
this.unloadMovie();
}
};
}
frame 10 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 10) {
deadcounter = 0;
_root.updatesheet(9);
_root.money += 40;
_root.score += 40;
this.unloadMovie();
}
};
}
}
movieClip 3033 {
}
movieClip 3110 {
frame 125 {
mySoundg = new Sound(this);
mySoundg.attachSound('BazookaManClose_repaired');
mySoundg.start();
mySoundg.setVolume(_root.sfxvolume);
}
}
movieClip 3111 {
frame 1 {
shootable = false;
dead = false;
}
frame 1 {
hp = 100;
timetocomeoutcounter = 0;
once = true;
}
frame 2 {
stop();
dead = false;
shootable = false;
}
frame 2 {
onEnterFrame = function () {
if (_root.airplane._x > _x && once) {
once = false;
_xscale = _xscale * -1;
}
if (_root.onetime == false && _root.planegone == false && _root.missileout == false && dead == false) {
++timetocomeoutcounter;
}
if (timetocomeoutcounter > random(200) + 100 && dead == false && _root.missileout == false && _root.freezetime == false) {
_root.missileout = true;
timetocomeoutcounter = 0;
this.gotoAndStop(3);
}
};
}
frame 3 {
stop();
shootable = true;
zzzcounter = 0;
g = true;
dead = false;
mySound = new Sound(this);
mySound.attachSound('BazookaManOpen');
mySound.start();
mySound.setVolume(_root.sfxvolume);
onEnterFrame = function () {
if (hp < 1) {
this.gotoAndStop(4);
}
hpbar.gotoAndStop(Math.abs(100 - hp) + 1);
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
hp -= _root.bulletpower;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
this.gotoAndStop(4);
} else {
if (this.hitTest(_root.otherexp)) {
this.gotoAndStop(4);
}
}
++zzzcounter;
if (zzzcounter > 75 && g && dead == false) {
g = false;
mySound2 = new Sound(this);
mySound2.attachSound('BazookaManShootin');
mySound2.start();
mySound2.setVolume(_root.sfxvolume);
_root.attachMovie('!!BazookaMissile', 'missile', _root.getNextHighestDepth(), {'_x': _x - 20, '_y': _y - 20});
} else {
if (zzzcounter > 160 && dead == false) {
zzzcounter = 0;
gotoAndStop(2);
}
}
};
}
frame 4 {
stop();
dead = true;
_root.chaos += 30;
_root.updatesheet(13);
_root.money += 50;
_root.score += 50;
}
}
frame 27 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
instance of movieClip 516 {
onClipEvent (load) {
mySound11 = new Sound(this);
mySound11.attachSound('PeacefullTime');
mySound11.start(0, 99);
mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound11.stop(['PeacefullTime']);
}
}
}
movieClip 3118 {
}
movieClip 3128 {
}
movieClip 3145 {
}
movieClip 3165 {
}
movieClip 3168 {
}
movieClip 3177 {
}
movieClip 3193 {
}
movieClip 3210 {
}
movieClip 3217 {
}
movieClip 3218 {
frame 1 {
hp = 100;
speed = 0;
pos = random(2);
flyleft = false;
flyright = false;
}
frame 2 {
stop();
flips = 0;
flipcount = 0;
randomscream = random(3);
if (randomscream == 0) {
scream = 'Scream1';
} else {
if (randomscream == 1) {
scream = 'Scream2';
} else {
if (randomscream == 2) {
scream = 'Scream3';
}
}
}
if (pos == 0) {
right = true;
oneflip = false;
_root.hpflip = false;
} else {
right = false;
oneflip = true;
_root.hpflip = true;
}
flying = false;
onEnterFrame = function () {
if (flips > 2) {
this.unloadMovie();
}
++flipcount;
if (flipcount > 100) {
flipcount = 0;
flips = 0;
}
if (!flying) {
if (oneflip) {
_xscale = _xscale * -1;
oneflip = false;
_root.hpflip = false;
}
if (this._x < 10) {
oneflip = true;
_root.hpflip = true;
right = true;
} else {
if (this._x > _root.ground._width) {
right = false;
oneflip = true;
_root.hpflip = true;
}
}
if (right) {
_x = _x + speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = false;
oneflip = true;
_root.hpflip = true;
}
} else {
_x = _x - speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = true;
oneflip = true;
_root.hpflip = true;
}
}
}
if (!flying) {
if (_root.bomboff == true) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
hpbar.gotoAndStop(Math.abs(100 - hp) + 1);
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyright = true;
} else {
if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyleft = true;
} else {
if (hp < 1) {
_root.chaos += 5;
this.gotoAndStop(9);
}
}
}
}
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
hp -= _root.bulletpower;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
};
}
frame 2 {
speed = 1;
}
frame 3 {
speed = 2;
}
frame 6 {
archeight = random(150) + 50;
secondarcheight = archeight + 15;
downtime = false;
speed = archeight / 50;
acccounter = 0;
acccounter2 = 0;
othercounter = 0;
onEnterFrame = function () {
acccounter += 0.5;
if (flyleft) {
_x = _x - speed;
} else {
if (flyright) {
_x = _x + speed;
}
}
archeight -= 10;
if (archeight > 0) {
_y = _y - (10 - acccounter);
} else {
downtime = true;
}
if (downtime) {
++othercounter;
}
if (othercounter > 4) {
secondarcheight -= 10;
acccounter2 += 0.8;
}
if (secondarcheight > 0 && downtime && othercounter > 4) {
_y = _y + (3 + acccounter2);
}
if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) {
if (_y < _root.grounttester._y) {
this.gotoAndStop(10);
} else {
this.gotoAndStop(7);
}
}
};
}
frame 7 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 50) {
deadcounter = 0;
_root.updatesheet(10);
_root.money += 52;
_root.score += 52;
this.unloadMovie();
}
};
}
frame 8 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 20) {
deadcounter = 0;
_root.updatesheet(10);
_root.money += 52;
_root.score += 52;
this.unloadMovie();
}
};
}
frame 9 {
hpbar.gotoAndStop(100);
deadcounter = 0;
mySound = new Sound(this);
mySound.attachSound(scream);
mySound.start();
mySound.setVolume(_root.sfxvolume);
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 25) {
deadcounter = 0;
_root.updatesheet(10);
_root.money += 52;
_root.score += 52;
this.unloadMovie();
}
};
}
frame 10 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 10) {
deadcounter = 0;
_root.updatesheet(10);
_root.money += 52;
_root.score += 52;
this.unloadMovie();
}
};
}
}
frame 28 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
instance of movieClip 516 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('PeacefullTime');
mySound.start(0, 99);
mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound.stop(['PeacefullTime']);
}
}
}
frame 29 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
instance of movieClip 516 {
onClipEvent (load) {
mySound11 = new Sound(this);
mySound11.attachSound('PeacefullTime');
mySound11.start(0, 99);
mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound11.stop(['PeacefullTime']);
}
}
}
frame 30 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
instance of movieClip 516 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('PeacefullTime');
mySound.start(0, 99);
mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound.stop(['PeacefullTime']);
}
}
}
frame 31 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
instance of movieClip 516 {
onClipEvent (load) {
mySound11 = new Sound(this);
mySound11.attachSound('PeacefullTime');
mySound11.start(0, 99);
mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound11.stop(['PeacefullTime']);
}
}
}
movieClip 3224 {
}
movieClip 3234 {
}
movieClip 3251 {
}
movieClip 3271 {
}
movieClip 3274 {
}
movieClip 3282 {
}
movieClip 3298 {
}
movieClip 3315 {
}
movieClip 3321 {
}
movieClip 3322 {
frame 1 {
hp = 100;
speed = 0;
pos = random(2);
flyleft = false;
flyright = false;
}
frame 2 {
stop();
flips = 0;
flipcount = 0;
randomscream = random(3);
if (randomscream == 0) {
scream = 'Scream1';
} else {
if (randomscream == 1) {
scream = 'Scream2';
} else {
if (randomscream == 2) {
scream = 'Scream3';
}
}
}
if (pos == 0) {
right = true;
oneflip = false;
_root.hpflip = false;
} else {
right = false;
oneflip = true;
_root.hpflip = true;
}
flying = false;
onEnterFrame = function () {
if (flips > 2) {
this.unloadMovie();
}
++flipcount;
if (flipcount > 100) {
flipcount = 0;
flips = 0;
}
if (!flying) {
if (oneflip) {
_xscale = _xscale * -1;
oneflip = false;
_root.hpflip = false;
}
if (this._x < 10) {
oneflip = true;
_root.hpflip = true;
right = true;
} else {
if (this._x > _root.ground._width) {
right = false;
oneflip = true;
_root.hpflip = true;
}
}
if (right) {
_x = _x + speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = false;
oneflip = true;
_root.hpflip = true;
}
} else {
_x = _x - speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = true;
oneflip = true;
_root.hpflip = true;
}
}
}
if (!flying) {
if (_root.bomboff == true) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
hpbar.gotoAndStop(Math.abs(100 - hp) + 1);
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyright = true;
} else {
if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyleft = true;
} else {
if (hp < 1) {
_root.chaos += 5;
this.gotoAndStop(9);
}
}
}
}
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
hp -= _root.bulletpower;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
};
}
frame 2 {
speed = 1;
}
frame 3 {
speed = 2;
}
frame 6 {
archeight = random(150) + 50;
secondarcheight = archeight + 15;
downtime = false;
speed = archeight / 50;
acccounter = 0;
acccounter2 = 0;
othercounter = 0;
onEnterFrame = function () {
acccounter += 0.5;
if (flyleft) {
_x = _x - speed;
} else {
if (flyright) {
_x = _x + speed;
}
}
archeight -= 10;
if (archeight > 0) {
_y = _y - (10 - acccounter);
} else {
downtime = true;
}
if (downtime) {
++othercounter;
}
if (othercounter > 4) {
secondarcheight -= 10;
acccounter2 += 0.8;
}
if (secondarcheight > 0 && downtime && othercounter > 4) {
_y = _y + (3 + acccounter2);
}
if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) {
if (_y < _root.grounttester._y) {
this.gotoAndStop(10);
} else {
this.gotoAndStop(7);
}
}
};
}
frame 7 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 50) {
deadcounter = 0;
_root.updatesheet(11);
_root.money += 31;
_root.score += 31;
this.unloadMovie();
}
};
}
frame 8 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 20) {
deadcounter = 0;
_root.updatesheet(11);
_root.money += 31;
_root.score += 31;
this.unloadMovie();
}
};
}
frame 9 {
hpbar.gotoAndStop(100);
deadcounter = 0;
mySound = new Sound(this);
mySound.attachSound(scream);
mySound.start();
mySound.setVolume(_root.sfxvolume);
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 25) {
deadcounter = 0;
_root.updatesheet(11);
_root.money += 31;
_root.score += 31;
this.unloadMovie();
}
};
}
frame 10 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 10) {
deadcounter = 0;
_root.updatesheet(11);
_root.money += 31;
_root.score += 31;
this.unloadMovie();
}
};
}
}
frame 32 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
instance of movieClip 516 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('PeacefullTime');
mySound.start(0, 99);
mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound.stop(['PeacefullTime']);
}
}
}
movieClip 3328 {
}
movieClip 3338 {
}
movieClip 3355 {
}
movieClip 3375 {
}
movieClip 3378 {
}
movieClip 3386 {
}
movieClip 3402 {
}
movieClip 3419 {
}
movieClip 3425 {
}
movieClip 3426 {
frame 1 {
hp = 100;
speed = 0;
pos = random(2);
flyleft = false;
flyright = false;
}
frame 2 {
stop();
flips = 0;
flipcount = 0;
randomscream = random(3);
if (randomscream == 0) {
scream = 'Scream1';
} else {
if (randomscream == 1) {
scream = 'Scream2';
} else {
if (randomscream == 2) {
scream = 'Scream3';
}
}
}
if (pos == 0) {
right = true;
oneflip = false;
_root.hpflip = false;
} else {
right = false;
oneflip = true;
_root.hpflip = true;
}
flying = false;
onEnterFrame = function () {
if (flips > 2) {
this.unloadMovie();
}
++flipcount;
if (flipcount > 100) {
flipcount = 0;
flips = 0;
}
if (!flying) {
if (oneflip) {
_xscale = _xscale * -1;
oneflip = false;
_root.hpflip = false;
}
if (this._x < 10) {
oneflip = true;
_root.hpflip = true;
right = true;
} else {
if (this._x > _root.ground._width) {
right = false;
oneflip = true;
_root.hpflip = true;
}
}
if (right) {
_x = _x + speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = false;
oneflip = true;
_root.hpflip = true;
}
} else {
_x = _x - speed;
if (_root.ground.hitTest(_x, _y, true)) {
++flips;
right = true;
oneflip = true;
_root.hpflip = true;
}
}
}
if (!flying) {
if (_root.bomboff == true) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
hpbar.gotoAndStop(Math.abs(100 - hp) + 1);
if (this.hitTest(_root.explosion || _root.paraexplosion || _root.kazexplosion || _root.carexplosion || _root.missileexplosion || _root.poopypee)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this.hitTest(_root.otherexp)) {
_root.chaos += 5;
this.gotoAndStop(8);
} else {
if (this._x > _root.explosion._x && this._x < _root.explosion._x + 100 || this._x > _root.paraexplosion._x && this._x < _root.paraexplosion._x + 100 || this._x > _root.kazexplosion._x && this._x < _root.kazexplosion._x + 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyright = true;
} else {
if (this._x < _root.explosion._x && this._x > _root.explosion._x - 100 || this._x < _root.paraexplosion._x && this._x > _root.paraexplosion._x - 100 || this._x < _root.kazexplosion._x && this._x > _root.kazexplosion._x - 100) {
_root.chaos += 5;
flying = true;
this.gotoAndStop(6);
flyleft = true;
} else {
if (hp < 1) {
_root.chaos += 5;
this.gotoAndStop(9);
}
}
}
}
}
i = 0;
while (i < 15) {
if (this.hitTest(_root.bulletarray[i])) {
_root.bomboff = true;
hp -= _root.bulletpower;
_root.bulletarray[i] = null;
_root.bulletarray[i].unloadMovie();
}
++i;
}
};
}
frame 2 {
speed = 1;
}
frame 3 {
speed = 2;
}
frame 6 {
archeight = random(150) + 50;
secondarcheight = archeight + 15;
downtime = false;
speed = archeight / 50;
acccounter = 0;
acccounter2 = 0;
othercounter = 0;
onEnterFrame = function () {
acccounter += 0.5;
if (flyleft) {
_x = _x - speed;
} else {
if (flyright) {
_x = _x + speed;
}
}
archeight -= 10;
if (archeight > 0) {
_y = _y - (10 - acccounter);
} else {
downtime = true;
}
if (downtime) {
++othercounter;
}
if (othercounter > 4) {
secondarcheight -= 10;
acccounter2 += 0.8;
}
if (secondarcheight > 0 && downtime && othercounter > 4) {
_y = _y + (3 + acccounter2);
}
if (secondarcheight < 1 || _root.ground.hitTest(_x, _y, true)) {
if (_y < _root.grounttester._y) {
this.gotoAndStop(10);
} else {
this.gotoAndStop(7);
}
}
};
}
frame 7 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 50) {
deadcounter = 0;
_root.updatesheet(12);
_root.money += 100;
_root.score += 100;
this.unloadMovie();
}
};
}
frame 8 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 20) {
deadcounter = 0;
_root.updatesheet(12);
_root.money += 100;
_root.score += 100;
this.unloadMovie();
}
};
}
frame 9 {
hpbar.gotoAndStop(100);
deadcounter = 0;
mySound = new Sound(this);
mySound.attachSound(scream);
mySound.start();
mySound.setVolume(_root.sfxvolume);
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 25) {
deadcounter = 0;
_root.updatesheet(12);
_root.money += 100;
_root.score += 100;
this.unloadMovie();
}
};
}
frame 10 {
hpbar.gotoAndStop(100);
deadcounter = 0;
onEnterFrame = function () {
++deadcounter;
if (deadcounter > 10) {
deadcounter = 0;
_root.updatesheet(12);
_root.money += 100;
_root.score += 100;
this.unloadMovie();
}
};
}
}
frame 33 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
instance of movieClip 516 {
onClipEvent (load) {
mySound11 = new Sound(this);
mySound11.attachSound('PeacefullTime');
mySound11.start(0, 99);
mySound11.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound11.stop(['PeacefullTime']);
}
}
}
frame 34 {
stopAllSounds();
lws = true;
birdskilled = 0;
timetodie = false;
shotcounter = 0;
shotlimit = true;
sparking = false;
playpooponce = true;
freezetimeplayonce = true;
paperarray = new Array();
paperarray[0] = 1;
paperarray[1] = 1;
paperarray[2] = 1;
paperarray[3] = 1;
paperarray[4] = 1;
updatesheet = function (intvar) {
paperarray[4] = paperarray[3];
paperarray[3] = paperarray[2];
paperarray[2] = paperarray[1];
paperarray[1] = paperarray[0];
paperarray[0] = intvar;
_root.hud.one.gotoAndStop(paperarray[0]);
_root.hud.two.gotoAndStop(paperarray[1]);
_root.hud.three.gotoAndStop(paperarray[2]);
_root.hud.four.gotoAndStop(paperarray[3]);
_root.hud.five.gotoAndStop(paperarray[4]);
};
stop();
multiplyer = 1;
multiplyercounter = 0;
skipround = false;
chaos = 0;
chaospinlevel = 0;
onekaz = true;
onepara = true;
onefreeze = true;
missileout = false;
bombwentoff = false;
uptime = true;
shakelength = 0;
shake = false;
shakecounter = 0;
shakeintensity = 0;
leftacc = 0;
rightacc = 0;
atgame = true;
timetocountdown = false;
kazx = 0;
switchmousetokaz = false;
onekaz = true;
twokaz = true;
startkaz = false;
mdown = false;
mup = false;
kazcounter = 0;
kaztime = false;
buttonsshouldwork = true;
freezetime = false;
freezetimecounter = 0;
baktoscroll = false;
planegone = false;
timetotroop = false;
timetotroopcounter = 20;
troopcounter = 0;
bomboff = false;
xx = 0;
yy = 0;
onetime = true;
timetofly = false;
mousetorightofplane = false;
bulletarray = new Array();
bulletarray[0] = null;
bulletarray[1] = null;
bulletarray[2] = null;
bulletarray[3] = null;
bulletarray[4] = null;
bulletarray[5] = null;
bulletarray[6] = null;
bulletarray[7] = null;
bulletarray[8] = null;
bulletarray[9] = null;
bulletarray[10] = null;
bulletarray[11] = null;
bulletarray[12] = null;
bulletarray[13] = null;
bulletarray[14] = null;
pos = 400;
hud.alarm.gotoAndStop(1);
onlyhavethealarmplayoncevariable = true;
onEnterFrame = function () {
if (birdskilled > 4 && lws) {
if (getbirdsonce) {
API.unlockMedal('Extinction', 150 + pos, 370);
getbirdsonce = false;
}
updateeightunlocked();
lws = false;
}
++shotcounter;
if (shotcounter > shootingtime) {
shotlimit = true;
} else {
shotlimit = false;
}
if (airplanehp < 1) {
timetodie = true;
}
if (atgame) {
if (shootunlocked == true || onetime == true || switchmousetokaz == true) {
Mouse.hide();
} else {
Mouse.show();
}
}
if (atgame) {
hud.dayz.gotoAndStop(level - 9);
if (Key.isDown(49)) {
if (_root.kaztime == true) {
_root.kaztime = false;
_root.startkaz = false;
_root.switchmousetokaz = false;
}
}
if (Key.isDown(50)) {
if (_root.buttonsshouldwork && _root.kaztime == false && _root.switchmousetokaz == false && _root.onekaz && _root.onetime == false && kazunlocked == true) {
_root.kaztime = true;
_root.switchmousetokaz = true;
}
}
if (Key.isDown(51)) {
if (_root.buttonsshouldwork && _root.onepara == true && _root.onetime == false && paraunlocked == true) {
_root.timetotroop = true;
_root.onepara = false;
}
}
if (Key.isDown(52)) {
if (_root.buttonsshouldwork && _root.onefreeze == true && _root.onetime == false && timeunlocked == true) {
_root.freezetime = true;
_root.onefreeze = false;
}
}
if (chaos > 100) {
++multiplyercounter;
} else {
multiplyercounter = 0;
}
if (multiplyercounter > 100) {
multiplyercounter = 0;
if (multiplyer < 5) {
++multiplyer;
if (multiplyer == 1) {
hud.wheel.gotoAndStop(1);
} else {
if (multiplyer == 2) {
hud.wheel.gotoAndPlay('two');
} else {
if (multiplyer == 3) {
hud.wheel.gotoAndPlay('three');
} else {
if (multiplyer == 4) {
hud.wheel.gotoAndPlay('four');
} else {
if (multiplyer == 5) {
if (getepwndonce) {
API.unlockMedal('E=MCpwned', 150 + pos, 370);
getepwndonce = false;
}
updatefourunlocked();
hud.wheel.gotoAndPlay('five');
}
}
}
}
}
}
}
if (chaos < 100) {
sparking = false;
}
if (chaos > 100) {
sparking = true;
if (playpooponce) {
updatefiveunlocked();
if (getpumponce) {
API.unlockMedal('Pump up the Volume', 150 + pos, 370);
getpumponce = false;
}
attachMovie('playchaosstartsmc', 'budllet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': 0, '_y': 0});
playpooponce = false;
}
hud.wordchaos._alpha = 100;
hud.sparks._alpha = 100;
} else {
hud.wordchaos._alpha = 0;
hud.sparks._alpha = 0;
}
if (chaos < 10 && planegone == true || skipround == true) {
chaos = 0;
moneytoadd = multiplyer * money;
spendablemoney += moneytoadd;
if (level < 15) {
_root.gotoAndStop('store');
} else {
_root.gotoAndStop('storewithnoad');
}
}
if (chaos > 100) {
chaos -= 1;
} else {
if (chaos > 0) {
chaos -= 0.5;
}
}
if (chaospinlevel < chaos) {
++chaospinlevel;
} else {
if (chaospinlevel > chaos) {
--chaospinlevel;
}
}
hud.pin.gotoAndStop(chaospinlevel + 1);
if (_root.switchmousetokaz == false && onetime == false && shootunlocked == true) {
hud.shootbutton.gotoAndStop(1);
} else {
hud.shootbutton.gotoAndStop(2);
}
if (onetime) {
hud.kazbutton.gotoAndStop(2);
} else {
if (onekaz == true && _root.kazunlocked == true) {
hud.kazbutton.gotoAndStop(1);
} else {
hud.kazbutton.gotoAndStop(2);
}
}
if (onetime) {
hud.parabutton.gotoAndStop(2);
} else {
if (onepara == true && _root.paraunlocked == true) {
hud.parabutton.gotoAndStop(1);
} else {
hud.parabutton.gotoAndStop(2);
}
}
if (onetime) {
hud.timebutton.gotoAndStop(2);
} else {
if (onefreeze == true && _root.timeunlocked == true) {
hud.timebutton.gotoAndStop(1);
} else {
hud.timebutton.gotoAndStop(2);
}
}
hud.hpbar.gotoAndStop(Math.abs(100 - airplanehp) + 1);
if (airplanehp < 10 && onlyhavethealarmplayoncevariable) {
hud.alarm.gotoAndPlay(1);
onlyhavethealarmplayoncevariable = false;
}
if (shake) {
if (shakecounter < shakelength && uptime) {
_root._y += shakeintensity;
hud._y -= shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime) {
uptime = false;
shakecounter = 0;
} else {
if (uptime == false && shakecounter < shakelength) {
_root._y -= shakeintensity;
hud._y += shakeintensity;
++shakecounter;
} else {
if (shakecounter == shakelength && uptime == false) {
uptime = true;
shakecounter = 0;
shakeintensity -= 3;
}
}
}
}
if (shakeintensity < 1) {
shake = false;
}
}
if (kaztime) {
if (mdown && startkaz == false) {
kazx = _xmouse;
startkaz = true;
switchmousetokaz = false;
}
if (startkaz) {
++kazcounter;
if (kazcounter > 75) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx + 30, '_y': -20});
kaztime = false;
onekaz = true;
twokaz = true;
kazcounter = 0;
startkaz = false;
onekaz = false;
} else {
if (kazcounter > 50 && twokaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx - 30, '_y': -20});
twokaz = false;
} else {
if (kazcounter > 25 && onekaz) {
attachMovie('kaz', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': kazx, '_y': -20});
onekaz = false;
}
}
}
}
}
if (freezetime) {
if (freezetimeplayonce == true) {
freezetimeplayonce = false;
}
++freezetimecounter;
if (freezetimecounter > 180) {
freezetime = false;
freezetimeplayonce = true;
freezetimecounter = 0;
}
}
if (timetotroop) {
++timetotroopcounter;
if (timetotroopcounter > 20) {
if (troopcounter < 3) {
attachMovie('paratroopers', 'troopas', _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
++troopcounter;
timetotroopcounter = 0;
} else {
troopcounter = 0;
timetotroop = false;
}
}
}
if (atgame && timetodie == false) {
if (onetime == true || planegone || baktoscroll) {
if (_xmouse > pos - 300 && pos + 400 < _root.ground._width) {
rightacc += 0.5;
_root._x -= 5 + rightacc;
hud._x += 5 + rightacc;
pos += 5 + rightacc;
leftacc = 0;
}
if (_xmouse < pos + 300 && pos > 400) {
leftacc += 0.5;
_root._x += 5 + leftacc;
hud._x -= 5 + leftacc;
pos -= 5 + leftacc;
rightacc = 0;
}
} else {
if (freezetime == false) {
if (ground._width - 400 < pos) {
baktoscroll = true;
}
if (airplane._x - airplane._width > pos - 200 && ground._width - 400 > pos) {
_root._x -= airplanespeed;
hud._x += airplanespeed;
pos += airplanespeed;
} else {
if (airplane._x + airplane._width < pos && pos > 400) {
_root._x += 20;
hud._x -= 20;
pos -= 20;
}
}
}
}
}
i = 0;
while (i < 15) {
if (bulletarray[i] == null) {
arrayspot = i;
}
if (bulletarray[i]._y > 450 || bulletarray[i]._y < 0) {
bulletarray[i] = null;
bulletarray[i].unloadMovie();
}
++i;
}
if (crosshair._x > airplane._x) {
mousetorightofplane = true;
} else {
mousetorightofplane = false;
}
if (timetofly) {
attachMovie('airplane', 'airplane', _root.getNextHighestDepth(), {'_x': 0, '_y': 100});
timetofly = false;
airplane.swapDepths(hud);
crosshair.swapDepths(hud);
}
}
onMouseDown = function () {
mdown = true;
mup = false;
if (onetime == false && switchmousetokaz == false && planegone == false && _ymouse > airplane._y - 30 && shootunlocked == true && shotlimit == true) {
shotcounter = 0;
shotlimit = false;
bulletarray[arrayspot] = attachMovie('bullet', 'bullet' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
attachMovie('bulletline', 'bulletline' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': airplane._x, '_y': airplane._y});
}
};
onMouseUp = function () {
mup = true;
mdown = false;
if (onetime) {
timetofly = true;
xx = _xmouse;
onetime = false;
}
};
};
}
instance of movieClip 516 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('PeacefullTime');
mySound.start(0, 99);
mySound.setVolume(_root.musicvolume * _root.musicreducer * 0.6);
}
onClipEvent (enterFrame) {
if (_root.bomboff) {
mySound.stop(['PeacefullTime']);
}
}
}
frame 35 {
stop();
glitchcounter = 0;
cancontinue = false;
var musicmc;
var sfxmc;
stopAllSounds();
atgame = false;
_x = 0;
_y = 0;
hud.removeMovieClip();
crosshair.removeMovieClip();
Mouse.show();
onEnterFrame = function () {
if (glitchcounter > 10) {
cancontinue = true;
loadingcover._alpha = 0;
} else {
++glitchcounter;
loadingcover._alpha = 100;
}
};
}
movieClip 3435 {
}
button 3437 {
on (release) {
if (_root.cancontinue) {
_root.gotoAndStop('inbetween');
}
}
on (press) {
if (_root.cancontinue) {
mySound = new Sound(this);
mySound.attachSound('ExitComputer');
mySound.start();
mySound.setVolume(_root.sfxvolume * 0.6);
}
}
}
movieClip 3442 {
}
movieClip 3492 {
frame 158 {
stop();
}
}
movieClip 3493 {
frame 1 {
onEnterFrame = function () {
if (_root.cancontinue) {
button._alpha = 100;
} else {
button._alpha = 0;
}
};
}
}
instance of movieClip 3493 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('PointsScreenTransition');
mySound.start();
mySound.setVolume(_root.sfxvolume * 0.7);
counter = 0;
once = true;
}
onClipEvent (enterFrame) {
if (once) {
++counter;
}
if (counter > 20 && once) {
mySound2 = new Sound(this);
mySound2.attachSound('PointsReveal');
mySound2.start();
mySound2.setVolume(_root.sfxvolume);
once = false;
}
}
}
instance of movieClip 516 {
onClipEvent (load) {
counter = 0;
once = true;
}
onClipEvent (enterFrame) {
if (counter < 4) {
++counter;
}
if (counter > 2 && once) {
mySound2 = new Sound(this);
mySound2.attachSound('GarageAmbience');
mySound2.start(3, 99);
mySound2.setVolume(_root.musicvolume * 3);
once = false;
}
}
}
movieClip 3496 {
}
instance of movieClip 3496 {
onClipEvent (enterFrame) {
if (_root.multiplyer == 0) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
}
movieClip 3499 {
}
frame 36 {
stop();
if (my_sohi.data.oneunlocked == true) {
oneunlocked = true;
}
if (my_sohi.data.twounlocked == true) {
twounlocked = true;
}
if (my_sohi.data.threeunlocked == true) {
threeunlocked = true;
}
if (my_sohi.data.fourunlocked == true) {
fourunlocked = true;
}
if (my_sohi.data.fiveunlocked == true) {
fiveunlocked = true;
}
if (my_sohi.data.sixunlocked == true) {
sixunlocked = true;
}
if (my_sohi.data.sevenunlocked == true) {
sevenunlocked = true;
}
if (my_sohi.data.eightunlocked == true) {
eightunlocked = true;
}
if (spendablemoney >= 30000) {
if (getrelativeonce) {
API.unlockMedal('You must be a relative...');
getrelativeonce = false;
}
updatesixunlocked();
}
if (level < 17 && shootunlocked) {
if (getturretachievmentonce) {
API.unlockMedal('I came prepared.');
getturretachievmentonce = false;
}
updatesevenunlocked();
}
counterbob = 0;
mousedownz = false;
moneyleftopay = 0;
if (_root.level == 34) {
_root.inbetween.gotoAndStop(5);
}
stopAllSounds();
if (_root.currentbomb == 1) {
moneyleftopay = 69450;
} else {
if (_root.currentbomb == 2) {
moneyleftopay = 68750;
} else {
if (_root.currentbomb == 3) {
moneyleftopay = 65500;
} else {
if (_root.currentbomb == 4) {
moneyleftopay = 61000;
} else {
if (_root.currentbomb == 5) {
moneyleftopay = 55500;
} else {
if (_root.currentbomb == 6) {
moneyleftopay = 47500;
} else {
if (_root.currentbomb == 7) {
moneyleftopay = 38000;
} else {
if (_root.currentbomb == 8) {
moneyleftopay = 28000;
} else {
if (_root.currentbomb == 9) {
moneyleftopay = 15000;
}
}
}
}
}
}
}
}
}
}
button 3505 {
on (release) {
if (_root.level == 34) {
_root.gotoAndStop(38);
} else {
++_root.level;
_root.money = 0;
_root.gotoAndStop(9);
}
}
on (rollOver) {
mySound11 = new Sound(this);
mySound11.attachSound('NextRound');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
}
}
button 3509 {
on (release) {
_root.gotoAndStop('actualstore');
}
on (rollOver) {
mySound11 = new Sound(this);
mySound11.attachSound('ToUpgrades');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
}
}
movieClip 3521 {
frame 12 {
stop();
}
}
button 3524 {
on (release) {
gotoAndStop(4);
}
on (rollOver) {
mySound11 = new Sound(this);
mySound11.attachSound('chalkSwipe');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
}
}
button 3525 {
on (release) {
gotoAndStop(3);
}
on (rollOver) {
mySound11 = new Sound(this);
mySound11.attachSound('chalkSwipe');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
}
}
button 3526 {
on (release) {
gotoAndStop(2);
}
on (rollOver) {
mySound11 = new Sound(this);
mySound11.attachSound('chalkSwipe');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
}
}
movieClip 3576 {
}
movieClip 3625 {
}
movieClip 3627 {
}
movieClip 3630 {
}
movieClip 3642 {
}
movieClip 3661 {
frame 1 {
stop();
}
}
button 3666 {
on (release) {
gotoAndStop(1);
}
}
movieClip 3671 {
}
button 3677 {
on (release) {
_root._quality = 'high';
}
}
button 3680 {
on (release) {
_root._quality = 'medium';
}
}
button 3683 {
on (release) {
_root._quality = 'low';
}
}
button 3689 {
on (release) {
if (_root.spendablemoney < _root.moneyleftopay) {
_root.gotoAndStop(38);
}
}
}
button 3690 {
on (release) {
if (_root.spendablemoney >= _root.moneyleftopay) {
_root.gotoAndStop(39);
}
}
}
movieClip 3691 {
frame 1 {
onEnterFrame = function () {
if (_root.spendablemoney < _root.moneyleftopay) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
};
}
}
movieClip 3692 {
frame 1 {
stop();
}
instance of movieClip 3576 {
onClipEvent (enterFrame) {
this.gotoAndStop(_root.level - 8);
}
}
instance of movieClip 3625 {
onClipEvent (enterFrame) {
this.gotoAndStop(_root.level - 8);
}
}
instance of movieClip 3630 {
onClipEvent (load) {
if (_root.level > 10) {
this.unloadMovie();
}
}
}
instance of movieClip 3642 {
onClipEvent (enterFrame) {
if (_root.oneunlocked == true) {
_alpha = 0;
} else {
_alpha = 50;
}
}
onClipEvent (rollOver) {
_root.inbetween.tester.gotoAndStop(1);
_root.inbetween.textbox.text = 'Buy the Atomic Bomb';
}
}
instance of movieClip 3642 {
onClipEvent (enterFrame) {
if (_root.eightunlocked) {
_alpha = 0;
} else {
_alpha = 100;
}
}
onClipEvent (rollOver) {
if (_root.eightunlocked) {
_root.inbetween.tester.gotoAndStop(8);
_root.inbetween.textbox.text = 'Kill 5 rare birds.';
} else {
_root.inbetween.tester.gotoAndStop(9);
_root.inbetween.textbox.text = ' You cannot read this achievement until it\'s unlocked';
}
}
}
instance of movieClip 3642 {
onClipEvent (enterFrame) {
if (_root.sevenunlocked) {
_alpha = 0;
} else {
_alpha = 50;
}
}
onClipEvent (rollOver) {
_root.inbetween.tester.gotoAndStop(7);
_root.inbetween.textbox.text = 'Purchase the turret upgrade before the 8th day';
}
}
instance of movieClip 3642 {
onClipEvent (enterFrame) {
if (_root.sixunlocked) {
_alpha = 0;
} else {
_alpha = 50;
}
}
onClipEvent (rollOver) {
_root.inbetween.tester.gotoAndStop(6);
_root.inbetween.textbox.text = 'Save up $30,000 in earnings.';
}
}
instance of movieClip 3642 {
onClipEvent (enterFrame) {
if (_root.threeunlocked) {
_alpha = 0;
} else {
_alpha = 50;
}
}
onClipEvent (rollOver) {
_root.inbetween.tester.gotoAndStop(3);
_root.inbetween.textbox.text = 'Purchase all of the store upgrades.';
}
}
instance of movieClip 3642 {
onClipEvent (enterFrame) {
if (_root.fourunlocked) {
_alpha = 0;
} else {
_alpha = 50;
}
}
onClipEvent (rollOver) {
_root.inbetween.tester.gotoAndStop(4);
_root.inbetween.textbox.text = 'Cause enough chaos to reach the x5 Multiplier';
}
}
instance of movieClip 3642 {
onClipEvent (enterFrame) {
if (_root.fiveunlocked) {
_alpha = 0;
} else {
_alpha = 50;
}
}
onClipEvent (rollOver) {
_root.inbetween.tester.gotoAndStop(5);
_root.inbetween.textbox.text = 'Reach chaos for the first time';
}
}
instance of movieClip 3642 {
onClipEvent (enterFrame) {
if (_root.twounlocked) {
_alpha = 0;
} else {
_alpha = 50;
}
}
onClipEvent (rollOver) {
_root.inbetween.tester.gotoAndStop(2);
_root.inbetween.textbox.text = 'Beat the game before reaching the 20th Day';
}
}
instance of movieClip 3671 {
onClipEvent (load) {
mousedownz = false;
ylimit = _y;
_y = _y + Math.abs(_root.sfxvolume - 100) / 2;
xx = _x;
yy = _y;
rollover = false;
}
onClipEvent (rollOver) {
rollover = true;
}
onClipEvent (rollOut) {
rollover = false;
}
onClipEvent (enterFrame) {
onMouseUp = function () {
mousedownz = false;
};
onMouseDown = function () {
mousedownz = true;
};
if (rollover && mousedownz) {
this.startDrag(true, xx, ylimit, xx, ylimit + 50);
}
if (mousedownz == false) {
_root.sfxvolume = 100 - Math.abs(_y - ylimit) * 2;
stopDrag();
}
}
}
instance of movieClip 3671 {
onClipEvent (load) {
mousedownz = false;
ylimit = _y;
_y = _y + Math.abs(_root.musicvolume - 100) / 2;
xx = _x;
yy = _y;
rollover = false;
}
onClipEvent (rollOver) {
rollover = true;
}
onClipEvent (rollOut) {
rollover = false;
}
onClipEvent (enterFrame) {
onMouseUp = function () {
mousedownz = false;
};
onMouseDown = function () {
mousedownz = true;
};
if (rollover && mousedownz) {
this.startDrag(true, xx, ylimit, xx, ylimit + 50);
}
if (mousedownz == false) {
_root.musicvolume = 100 - Math.abs(_y - ylimit) * 2;
stopDrag();
}
}
}
}
instance of movieClip 516 {
onClipEvent (load) {
counter = 0;
once = true;
}
onClipEvent (enterFrame) {
if (counter < 4) {
++counter;
}
if (counter > 2 && once) {
mySound = new Sound(this);
mySound.attachSound('GarageAmbience');
mySound.start(3, 99);
mySound.setVolume(_root.musicvolume * 3);
once = false;
}
}
}
frame 37 {
stop();
stopAllSounds();
atgame = false;
_x = 0;
_y = 0;
hud.removeMovieClip();
crosshair.removeMovieClip();
Mouse.show();
onEnterFrame = function () {
if (paraunlocked && kazunlocked && timeunlocked && bulletpower == 100) {
if (getstoreupgradesonce) {
API.unlockMedal('Hero-shima');
getstoreupgradesonce = false;
}
updatethreeunlocked();
}
};
}
movieClip 3701 {
}
button 3703 {
on (release) {
if (_root.currentbomb == 1 && _root.spendablemoney >= 700) {
_root.spendablemoney -= 700;
_root.currentbomb = 2;
mySound11 = new Sound(this);
mySound11.attachSound('BuySomething');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
} else {
if (_root.currentbomb == 2 && _root.spendablemoney >= 3250) {
_root.spendablemoney -= 3250;
_root.currentbomb = 3;
mySound11 = new Sound(this);
mySound11.attachSound('BuySomething');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
} else {
if (_root.currentbomb == 3 && _root.spendablemoney >= 4500) {
_root.spendablemoney -= 4500;
_root.currentbomb = 4;
mySound11 = new Sound(this);
mySound11.attachSound('BuySomething');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
} else {
if (_root.currentbomb == 4 && _root.spendablemoney >= 5500) {
_root.spendablemoney -= 5500;
_root.currentbomb = 5;
mySound11 = new Sound(this);
mySound11.attachSound('BuySomething');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
} else {
if (_root.currentbomb == 5 && _root.spendablemoney >= 8000) {
_root.spendablemoney -= 8000;
_root.currentbomb = 6;
mySound11 = new Sound(this);
mySound11.attachSound('BuySomething');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
} else {
if (_root.currentbomb == 6 && _root.spendablemoney >= 9500) {
_root.spendablemoney -= 9500;
_root.currentbomb = 7;
mySound11 = new Sound(this);
mySound11.attachSound('BuySomething');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
} else {
if (_root.currentbomb == 7 && _root.spendablemoney >= 10000) {
_root.spendablemoney -= 10000;
_root.currentbomb = 8;
mySound11 = new Sound(this);
mySound11.attachSound('BuySomething');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
} else {
if (_root.currentbomb == 8 && _root.spendablemoney >= 13000) {
_root.spendablemoney -= 13000;
_root.currentbomb = 9;
mySound11 = new Sound(this);
mySound11.attachSound('BuySomething');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
} else {
if (_root.currentbomb == 9 && _root.spendablemoney >= 15000) {
_root.spendablemoney -= 15000;
_root.gotoAndStop(39);
}
}
}
}
}
}
}
}
}
}
}
movieClip 3722 {
frame 1 {
onEnterFrame = function () {
this.gotoAndStop(_root.currentbomb);
};
}
}
button 3726 {
on (press) {
if (_root.shootunlocked == false && _root.spendablemoney >= 2400) {
_root.shootunlocked = true;
_root.spendablemoney -= 2400;
_root.shootingtime = 10;
mySound11 = new Sound(this);
mySound11.attachSound('BuySomething');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
} else {
if (_root.bulletpower == 20 && _root.spendablemoney >= 1000) {
_root.bulletpower = 25;
_root.spendablemoney -= 1000;
_root.shootingtime = 7;
mySound11 = new Sound(this);
mySound11.attachSound('BuySomething');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
} else {
if (_root.bulletpower == 25 && _root.spendablemoney >= 2000) {
_root.bulletpower = 35;
_root.spendablemoney -= 2000;
_root.shootingtime = 5;
mySound11 = new Sound(this);
mySound11.attachSound('BuySomething');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
} else {
if (_root.bulletpower == 35 && _root.spendablemoney >= 3000) {
_root.bulletpower = 51;
_root.spendablemoney -= 3000;
_root.shootingtime = 3;
mySound11 = new Sound(this);
mySound11.attachSound('BuySomething');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
} else {
if (_root.bulletpower == 51 && _root.spendablemoney >= 4000) {
_root.bulletpower = 100;
_root.spendablemoney -= 4000;
_root.shootingtime = 1;
mySound11 = new Sound(this);
mySound11.attachSound('BuySomething');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
}
}
}
}
}
}
}
button 3729 {
on (release) {
if (_root.spendablemoney >= 9000 && _root.kazunlocked == false) {
_root.kazunlocked = true;
_root.spendablemoney -= 9000;
mySound11 = new Sound(this);
mySound11.attachSound('BuySomething');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
}
}
}
button 3732 {
on (release) {
if (_root.spendablemoney >= 7500 && _root.paraunlocked == false) {
_root.paraunlocked = true;
_root.spendablemoney -= 7500;
mySound11 = new Sound(this);
mySound11.attachSound('BuySomething');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
}
}
}
button 3735 {
on (release) {
if (_root.spendablemoney >= 4000 && _root.timeunlocked == false) {
_root.timeunlocked = true;
_root.spendablemoney -= 4000;
mySound11 = new Sound(this);
mySound11.attachSound('BuySomething');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
}
}
}
button 3739 {
on (release) {
hptoheal = 100 - _root.airplanehp;
costy = hptoheal * 50;
if (_root.spendablemoney >= costy) {
_root.airplanehp = 100;
_root.spendablemoney -= costy;
if (hptoheal > 1) {
mySound11 = new Sound(this);
mySound11.attachSound('RepairPlane');
mySound11.start();
mySound11.setVolume(_root.sfxvolume);
}
} else {
while (_root.spendablemoney >= 100) {
++_root.airplanehp;
_root.spendablemoney -= 50;
}
}
}
}
button 3744 {
on (release) {
_root.gotoAndStop('inbetween');
}
}
movieClip 3748 {
}
movieClip 3749 {
frame 1 {
onEnterFrame = function () {
hptoheal = 100 - _root.airplanehp;
costy = hptoheal * 50;
txt.text = costy;
};
}
instance of movieClip 3701 {
onClipEvent (enterFrame) {
this.gotoAndStop(Math.abs(_root.airplanehp - 100) + 1);
}
}
instance of movieClip 3748 {
onClipEvent (enterFrame) {
if (_root.shootunlocked == true) {
this.unloadMovie();
}
}
}
}
instance of movieClip 516 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('GarageAmbience');
mySound.start(3, 99);
mySound.setVolume(_root.musicvolume * 3);
}
}
movieClip 3754 {
frame 1 {
onEnterFrame = function () {
if (_root.kazunlocked) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
}
}
movieClip 3757 {
frame 1 {
onEnterFrame = function () {
if (_root.paraunlocked) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
}
}
movieClip 3760 {
frame 1 {
onEnterFrame = function () {
if (_root.timeunlocked) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
}
}
movieClip 3771 {
frame 1 {
onEnterFrame = function () {
if (_root.shootunlocked == false) {
gotoAndStop(1);
} else {
if (_root.bulletpower == 20) {
gotoAndStop(2);
} else {
if (_root.bulletpower == 25) {
gotoAndStop(3);
} else {
if (_root.bulletpower == 35) {
gotoAndStop(4);
} else {
if (_root.bulletpower == 51) {
gotoAndStop(5);
} else {
gotoAndStop(6);
}
}
}
}
}
};
}
}
movieClip 3790 {
frame 1 {
onEnterFrame = function () {
if (_root.currentbomb == 1) {
gotoAndStop(1);
} else {
if (_root.currentbomb == 2) {
gotoAndStop(2);
} else {
if (_root.currentbomb == 3) {
gotoAndStop(3);
} else {
if (_root.currentbomb == 4) {
gotoAndStop(4);
} else {
if (_root.currentbomb == 5) {
gotoAndStop(5);
} else {
if (_root.currentbomb == 6) {
gotoAndStop(6);
} else {
if (_root.currentbomb == 7) {
gotoAndStop(7);
} else {
if (_root.currentbomb == 8) {
gotoAndStop(8);
} else {
if (_root.currentbomb == 9) {
gotoAndStop(9);
}
}
}
}
}
}
}
}
}
};
}
}
frame 38 {
stop();
stopAllSounds();
atgame = false;
_x = 0;
_y = 0;
hud.removeMovieClip();
crosshair.removeMovieClip();
Mouse.show();
}
button 3797 {
on (release) {
_root.gotoAndStop(3);
}
}
instance of movieClip 516 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('youfail');
mySound.start();
mySound.setVolume(65);
}
}
frame 39 {
stop();
stopAllSounds();
API.unlockMedal('Einstein Approves');
updateoneunlocked();
if (level < 29) {
API.unlockMedal('Teacher\'s Pet');
updatetwounlocked();
}
}
movieClip 3808 {
}
movieClip 3809 {
}
movieClip 3835 {
}
movieClip 3891 {
}
movieClip 3900 {
}
button 3906 {
on (release) {
_root.gotoAndStop(3);
}
}
movieClip 3907 {
frame 451 {
stop();
}
}
instance of movieClip 3907 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('epixxx3');
mySound.start();
mySound.setVolume(65);
}
}
frame 40 {
stop();
glitchcounter = 0;
cancontinue = false;
var musicmc;
var sfxmc;
stopAllSounds();
atgame = false;
_x = 0;
_y = 0;
hud.removeMovieClip();
crosshair.removeMovieClip();
Mouse.show();
onEnterFrame = function () {
if (glitchcounter > 10) {
cancontinue = true;
loadingcover._alpha = 0;
} else {
++glitchcounter;
loadingcover._alpha = 100;
}
};
}
instance of movieClip 3493 {
onClipEvent (load) {
mySound = new Sound(this);
mySound.attachSound('PointsScreenTransition');
mySound.start();
mySound.setVolume(_root.sfxvolume * 0.7);
counter = 0;
once = true;
}
onClipEvent (enterFrame) {
if (once) {
++counter;
}
if (counter > 20 && once) {
mySound2 = new Sound(this);
mySound2.attachSound('PointsReveal');
mySound2.start();
mySound2.setVolume(_root.sfxvolume);
once = false;
}
}
}
instance of movieClip 516 {
onClipEvent (load) {
counter = 0;
once = true;
}
onClipEvent (enterFrame) {
if (counter < 4) {
++counter;
}
if (counter > 2 && once) {
mySound2 = new Sound(this);
mySound2.attachSound('GarageAmbience');
mySound2.start(3, 99);
mySound2.setVolume(_root.musicvolume * 3);
once = false;
}
}
}
instance of movieClip 3496 {
onClipEvent (enterFrame) {
if (_root.multiplyer == 0) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
}