Frame 1
function launchURL() {
getURL ("http://www.current.com/supernews", "_blank");
}
function launchURL2() {
getURL ("http://www.current.com", "_blank");
}
function quit() {
reset();
}
stop();
fscommand ("allowscale", true);
_quality = "HIGH";
qualityPreferred = "HIGH";
_global.killsBest = 0;
_global.kills = 0;
_global.hpBest = 0;
_global.bRematch = false;
statPlays = 0;
statWins = 0;
statBossFights = 0;
newMenu = new ContextMenu();
newMenu.builtInItems.rewind = false;
newMenu.builtInItems.forward_back = false;
newMenu.builtInItems.zoom = false;
newMenu.builtInItems.play = false;
newMenu.builtInItems.loop = false;
newMenu.builtInItems.quality = false;
itemQuit = new ContextMenuItem("Quit to Main Menu", quit);
itemURL = new ContextMenuItem("Visit the SuperNews! website", launchURL);
itemURL2 = new ContextMenuItem("Visit Current.com", launchURL2);
newMenu.customItems.push(itemURL);
itemQuit.enabled = false;
_root.menu = newMenu;
Frame 35
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("9b8b7859", this, 10301, true);
Frame 36
var mc = _root.attachMovie("popup_wipe", "noswap_mcEndMsg", _root.getNextHighestDepth());
mc._x = 360;
mc._y = 270;
Frame 37
function frameLimiter() {
counter++;
newT = getTimer();
if (Math.abs(newT - oldT) > maxF) {
frCount = frCount + (Math.abs(newT - oldT) - maxF);
if (frCount >= maxF) {
}
}
while (Math.abs(newT - oldT) < maxF) {
newT = getTimer();
}
currFPS = Math.round(1000 / (newT - oldT));
pastFPS.shift();
pastFPS.push(currFPS);
var _local3 = 0;
var _local2 = 0;
while (_local2 < 10) {
_local3 = _local3 + pastFPS[_local2];
_local2++;
}
_local3 = Math.round(_local3 / 10);
if ((counter % 10) == 0) {
mcMain.mcHUD.textDebug2.text = ((_local3 + " fps :: ") + avg2) + " long-term fps";
pastAvg.shift();
pastAvg.push(_local3);
}
if ((counter % 100) == 10) {
avg2 = 0;
_local2 = 0;
while (_local2 < 10) {
avg2 = avg2 + pastAvg[_local2];
_local2++;
}
avg2 = Math.round(avg2 / 10);
if (avg2 < 27) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
}
actorCountLast = _root.enemyCount + _root.workerCount;
} else if (avg2 > 28) {
var _local4 = _root.enemyCount + _root.workerCount;
if ((_local4 < actorCountLast) || ((_local4 < 3) && (!_root.bFired))) {
if (_root.qualityPreferred == "HIGH") {
if (_quality == "LOW") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
}
} else if (_root.qualityPreferred == "MEDIUM") {
if (_quality == "LOW") {
_quality = "MEDIUM";
}
}
}
}
}
oldT = getTimer();
}
function depthManager() {
for (var _local1 in mcMain) {
if (((((((((((((typeof(mcMain[_local1]) == "movieclip") && (_local1 != "mcHit")) && (_local1 != "bgDesk")) && (_local1.substr(0, 6) != "noswap")) && (_local1.substr(0, 6) != "bullet")) && (_local1.substr(0, 2) != "fx")) && (_local1.substr(0, 5) != "popup")) && (_local1.substr(0, 6) != "mcBoss")) && (_local1 != "mcGun")) && (_local1 != "mcHUD")) && (_local1 != "mcCursor")) && (_local1 != "mcTitle")) && (_local1 != "mcMouths")) {
if (mcMain[_local1].getDepth() != Math.ceil(mcMain[_local1]._x + (mcMain[_local1]._y * 700))) {
depthWanted = Math.ceil(mcMain[_local1]._x + (mcMain[_local1]._y * 700));
temp = getInstanceAtDepth(depthWanted);
if (temp == undefined) {
mcMain[_local1].swapDepths(depthWanted);
}
}
}
}
}
function getAngle(x1, x2, y1, y2) {
var _local1 = Math.atan2(y2 - y1, x2 - x1);
var _local4 = Math.cos(-_local1);
var _local3 = Math.sin(_local1);
var _local2 = new flash.geom.Point(_local4, _local3);
return(_local2);
}
function addSound(id, offset, vol, x1, y1) {
var _local2 = getSoundNum();
if (_local2 > 0) {
var _local4 = _root["sound_fx" + _local2];
_local4.attachSound(id);
_local4.start(offset, 0);
_local4.setVolume(vol);
_local4.setPan(((x1 / 3.6) - 100) / 2);
if (vol == -1) {
_local4.setVolume(getVolumeY(y1));
}
_root[("s_fx" + _local2) + "_id"] = id;
} else {
trace("no room for: " + id);
if ((((id.substr(0, 6) == "s_boss") || (id == "s_scratch")) || (id == "s_killed")) || (id == "s_google_hp")) {
trace((((("slot 1: " + s_fx1_id) + "\n slot 2: ") + s_fx2_id) + "\n slot 3: ") + s_fx3_id);
if (!((s_fx1_id.substr(0, 6) == "s_boss") || (s_fx1_id == "s_scratch"))) {
trace(" > punted1: " + s_fx1_id);
_local2 = 1;
} else if (!((s_fx2_id.substr(0, 6) == "s_boss") || (s_fx2_id == "s_scratch"))) {
trace(" > punted2: " + s_fx2_id);
_local2 = 2;
} else {
trace(" > punted3: " + s_fx3_id);
_local2 = 3;
}
var _local4 = _root["sound_fx" + _local2];
_local4.stop();
_local4.attachSound(id);
_local4.start(offset, 0);
_local4.setVolume(vol);
_local4.setPan(((x1 / 3.6) - 100) / 2);
if (vol == -1) {
_local4.setVolume(getVolumeY(y1));
}
_root[("s_fx" + _local2) + "_id"] = id;
}
}
return(_local2);
}
function endtag() {
sound_music.stop();
sound_music.setVolume(50);
sound_music.attachSound("s_music1b");
sound_music.start(0, 0);
s_music_id = "s_music1b";
s_fx1_id = "";
s_fx2_id = "";
s_fx3_id = "";
if (bWin) {
_root.addSound("s_tagline", 0, 90, 360, 0);
} else {
_root.addSound("s_tagline_lose", 0, 90, 360, 0);
}
_root.addSound("s_music_end", 0, 45, 360, 0);
if (_root.qualityPreferred == "HIGH") {
_quality = "MEDIUM";
} else {
_quality = "LOW";
}
}
function getSoundNum() {
var _local1 = 0;
if (s_fx1_id == "") {
_local1 = 1;
} else if (s_fx2_id == "") {
_local1 = 2;
} else if (s_fx3_id == "") {
_local1 = 3;
}
return(_local1);
}
function popupEnemyKilled(x1, y1, scale) {
popupCount++;
if (popupCount > popupMax) {
popupCount = 1;
}
var _local1 = mcMain.attachMovie("popup_enemy_killed", "popupEnemyKilled" + popupCount, popupEnemyKilledDepth + popupCount);
_local1._x = x1;
_local1._y = y1;
_local1._xscale = scale;
_local1._yscale = scale;
}
function addKill() {
var _local3 = int(mcMain.mcHUD.textKills.text);
_local3++;
if (_local3 > kills) {
_local3 = kills;
}
mcMain.mcHUD.textKills.text = _local3;
if ((_local3 % 10) == 0) {
mcMain.mcHUD.mcRapidfire.gotoAndStop(1);
mcMain.mcHUD.mcAmmo.gotoAndStop("rapidfire");
mcMain.mcGun.gotoAndStop("idle");
bRapidfire = true;
ammo = 32;
ammoClip = 32;
temp = mcMain.attachMovie("popup_rapidfire", "noswap_mcRapidfire", rapidfireDepth);
temp._x = 48.6;
temp._y = 31.5;
reloadWait = -1;
_root.addSound("s_rapidfire_msg", 0, 55, 360, this._y);
}
mcMain.mcHUD.mcRapidfire.gotoAndStop((_local3 % 10) + 1);
}
function gameLOSE() {
bGameover = true;
var _local2 = mcMain.attachMovie("popup_LOSE", "noswap_mcEndMsg", _root.endMsgDepth);
_local2._x = 360;
_local2._y = 270;
mcMain.mcGun.gotoAndStop("end");
Mouse.show();
mcMain.mcCursor._y = -400;
_root.addSound("s_youlose", 0, 90, 360, 0);
}
function gameWIN() {
bGameover = true;
var _local4 = mcMain.attachMovie("popup_WIN", "noswap_mcEndMsg", _root.endMsgDepth);
_local4._x = 360;
_local4._y = 270;
mcMain.mcGun.gotoAndStop("end");
mcMain.mcHUD.mcGoogleHP.gotoAndPlay("win");
Mouse.show();
mcMain.mcCursor._y = -400;
_root.addSound("s_youwin", 0, 50, 360, 0);
__rankz_update__("MzY1MWolZSVhJW4lcw==", "TlNsb1dUcEc=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl, bXlnYW1lX3Njb3JlX3ZhcmlhYmx2, bXlnYW1lX3Njb3JlX3ZhcmlhYmx3, "wins");
var _local2 = 0;
while (_local2 < 7) {
temp = mcMain.attachMovie("worker_cheer", "worker_" + (_local2 + 1), workerDepth + _local2);
temp.gotoAndStop("worker" + (_local2 + 1));
if (_local2 == 0) {
temp._y = baseY + (Math.random() * 2);
temp._x = 200;
} else if (_local2 == 1) {
temp._y = 249 + (Math.random() * 2);
temp._x = 150;
} else if (_local2 == 2) {
temp._y = 365 + (Math.random() * 2);
temp._x = -20;
} else if (_local2 == 3) {
temp._y = 303 + (Math.random() * 2);
temp._x = 680;
} else if (_local2 == 4) {
temp._y = 350 + (Math.random() * 2);
temp._x = 680;
} else if (_local2 == 5) {
temp._y = 249 + (Math.random() * 2);
temp._x = 550;
} else if (_local2 == 6) {
temp._y = 273 + (Math.random() * 2);
temp._x = 600;
}
var _local3 = 1;
if (temp._x > 400) {
_local3 = -1;
}
temp._xscale = ((temp._y * temp._y) / 1536) * _local3;
temp._yscale = Math.abs(temp._xscale);
mcMain["mcWorkerMouth" + (_local2 + 1)].gotoAndPlay("cheer");
_local2++;
}
}
function reloadAmmo() {
reloadWait = reloadTime;
mcMain.mcGun.gotoAndStop("reload");
bActiveReloadTried = false;
sound_gun.stop();
s_gun_id = "s_reload";
sound_gun.attachSound(s_gun_id);
sound_gun.start(0, 0);
}
function resetGame() {
stopAllSounds();
_root.gotoAndPlay("init");
}
function rematch() {
stopAllSounds();
_global.bRematch = true;
_root.gotoAndPlay("init");
}
function resetLevel() {
bReset = true;
if (hp < (hpMax / 2)) {
hp = hpMax / 2;
}
ammo = ammoClip;
mcMain.mcGun.gotoAndStop("idle");
mcMain.mcHUD.mcHP.mc.gotoAndStop(hp + 1);
mcMain.mcHUD.mcAmmo.mc.gotoAndStop(ammo + 1);
mcMain.mcHUD.mcAmmoClip.gotoAndStop(ammoClip + 1);
birdWait = birdWaitTime;
workerCount = 0;
enemyCount = 0;
fxCount = 0;
mcMain.mcBoss.reset();
mcMain.noswap_bosstop.removeMovieClip();
var _local1 = 0;
while (_local1 < bulletMax) {
hitArray[_local1] = null;
_local1++;
}
_local1 = 0;
while (_local1 < deskSlots) {
deskArray[_local1][0] = _local1 * 8;
deskArray[_local1][1] = null;
_local1++;
}
mcCam.gotoAndPlay("start");
}
function getVolumeY(y1) {
y1 = (((y1 - 227) / 2.65) * 0.7) + 30;
if (y1 > 70) {
y1 = 70;
} else if (y1 < 30) {
y1 = 30;
}
return(y1);
}
function spawnBirds() {
var _local1 = 1;
var _local4 = mcMain.attachMovie("birdpositions", "birdpos", birdPosDepth);
_local4._x = -200;
var _local2 = mcMain.attachMovie("bird", "bird_" + _local1, birdDepth + _local1);
_local2._xscale = 50;
_local2._yscale = 50;
if (random(2)) {
_local2._x = -50;
} else {
_local2._x = 750;
_local2._xscale = -_local2._xscale;
}
_local2._y = 104;
_local1 = 2;
while (_local1 <= 10) {
var _local3 = mcMain.attachMovie("bird", "bird_" + _local1, birdDepth + _local1);
_local3._x = _local2._x + ((_local4["bird" + _local1]._x * _local2._xscale) / 100);
_local3._y = _local2._y + ((_local4["bird" + _local1]._y * _local2._yscale) / 100);
_local3._xscale = _local2._xscale;
_local3._yscale = _local2._yscale;
_local1++;
}
_local4.removeMovieClip();
}
function spawnBullet() {
bulletCount++;
if (bulletCount >= bulletMax) {
bulletCount = 0;
}
temp = mcMain.attachMovie("bullet_staple", "bullet" + bulletCount, bulletDepth + bulletCount);
temp._x = mcMain.mcGun._x - 10;
temp._y = mcMain.mcGun._y - 140;
if (bRapidfire) {
temp.gotoAndStop(3);
}
if (!bRapidfire) {
s_gun_id = "s_shoot";
sound_gun.attachSound(s_gun_id);
sound_gun.start(0, 0);
} else {
s_gun_id = "s_shoot_rapid";
sound_gun.attachSound(s_gun_id);
sound_gun.start(0, 0);
}
}
function spawnEnemy(enemyType, bSide, spawnHold) {
if (enemyCount < enemyMax) {
enemyCount++;
enemyNum++;
if (enemyNum > enemyNumMax) {
enemyNum = 1;
}
if (enemyType == 0) {
enemyType = random(4) + 1;
}
switch (enemyType) {
case 1 :
temp = mcMain.attachMovie("enemy_facebook", "enemy_" + enemyNum, enemyDepth + enemyCount);
break;
case 2 :
temp = mcMain.attachMovie("enemy_myspace", "enemy_" + enemyNum, enemyDepth + enemyCount);
break;
case 3 :
temp = mcMain.attachMovie("enemy_friendster", "enemy_" + enemyNum, enemyDepth + enemyCount);
break;
case 4 :
temp = mcMain.attachMovie("enemy_secondlife", "enemy_" + enemyNum, enemyDepth + enemyCount);
}
if (random(2)) {
temp._x = 10;
} else {
temp._x = 720;
}
if (enemyType != 4) {
var _local1 = random(3);
} else {
var _local1 = 0;
}
if (_local1 == 0) {
temp._y = baseY + (Math.random() * 2);
} else if (_local1 == 1) {
temp._y = 249 + (Math.random() * 2);
} else if (_local1 == 2) {
temp._y = 273 + (Math.random() * 2);
} else if (_local1 == 3) {
temp._y = 303 + (Math.random() * 2);
} else if (_local1 == 4) {
temp._y = 350 + (Math.random() * 2);
}
temp._xscale = 1;
temp._yscale = 1;
if (bSide) {
temp.phase = "popup";
} else {
temp.phase = "idle";
}
temp.spawnHold = spawnHold;
}
}
function spawnFX(type, x1, y1, scale, callingObj) {
if (type == "hit") {
if (fxCount < fxMax) {
fxCount++;
} else {
fxCount = 1;
}
var _local2 = mcMain.attachMovie("fx_hit" + (random(2) + 1), "fx_" + fxNum, fxDepth + fxCount);
_local2._x = x1;
_local2._y = y1;
_local2._xscale = scale;
_local2._yscale = scale;
_local2._rotation = random(360);
} else if (type == "hit_des") {
if (fxCount < fxMax) {
fxCount++;
} else {
fxCount = 1;
}
var _local2 = mcMain.attachMovie("fx_hit_des", "fx_" + fxNum, fxDepth + fxCount);
_local2._x = x1;
_local2._y = y1;
_local2._xscale = scale;
_local2._yscale = scale;
_local2._rotation = random(360);
} else if (type == "poof") {
if (fxCount < fxMax) {
fxCount++;
} else {
fxCount = 1;
}
var _local2 = mcMain.attachMovie("fx_poof", "fx_" + fxNum, callingObj.getDepth());
_local2._x = x1;
_local2._y = y1;
_local2._xscale = scale;
_local2._yscale = scale;
_local2._rotation = random(360);
_root.addSound("s_poof", 0.26, -1, x1, y1 - 150);
}
}
function spawnGoogle() {
phase = 2;
mcMain.mcHUD.mcGoogleHP.gotoAndPlay("init");
mcMain.mcHUD.mcGoogleHP.mcBar.gotoAndStop(513);
mcMain.mcHUD.mcGoogleHP.mcBar2.gotoAndStop(513);
mcMain.mcBoss.end();
temp = mcMain.attachMovie("google", "mcGoogle", enemyDepth);
temp._x = Stage.width / 2;
_root.addSound("s_google_hp", 0.4, 80, 360, 0);
sound_music.stop();
s_music_id = "s_music_google";
sound_music.attachSound(s_music_id);
sound_music.start(0, 0);
sound_music.setVolume(90);
}
function spawnWave() {
switch (waveType) {
case 1 :
spawnEnemy(1, false, 0);
spawnEnemy(2, false, 60);
break;
case 2 :
spawnEnemy(3, false, 0);
spawnEnemy(3, false, 60);
break;
case 3 :
spawnEnemy(2, false, 0);
break;
case 4 :
spawnEnemy(2, false, 0);
spawnEnemy(2, false, 30);
spawnEnemy(2, false, 60);
break;
case 6 :
spawnEnemy(1, false, 0);
spawnEnemy(1, false, 70);
break;
case 7 :
spawnEnemy(1, false, 0);
spawnEnemy(1, false, 40);
break;
case 8 :
spawnEnemy(2, false, 0);
spawnEnemy(3, false, 30);
spawnEnemy(1, false, 60);
break;
case 9 :
spawnEnemy(4, false, 0);
break;
case 10 :
spawnEnemy(4, false, 0);
spawnEnemy(4, false, 90);
break;
case 11 :
break;
case 12 :
spawnEnemy(2, true, 30);
break;
case 13 :
spawnEnemy(1, true, 0);
spawnEnemy(3, true, 70);
break;
case 14 :
break;
case 15 :
spawnEnemy(1, false, 0);
spawnEnemy(2, false, 30);
spawnEnemy(1, false, 60);
spawnEnemy(2, false, 90);
break;
case 16 :
spawnEnemy(3, false, 0);
spawnEnemy(4, false, 0);
spawnEnemy(3, false, 30);
spawnEnemy(3, false, 60);
spawnEnemy(4, false, 90);
case 17 :
break;
case 18 :
spawnEnemy(1, true, 0);
spawnEnemy(2, true, 50);
spawnEnemy(4, true, 90);
break;
case 19 :
spawnEnemy(3, true, 0);
spawnEnemy(2, true, 50);
spawnEnemy(1, true, 90);
break;
case 20 :
break;
case 21 :
break;
case 22 :
spawnGoogle();
}
waveType++;
}
function pauseGame() {
_global.bPaused = true;
mcMain.noswap_buttonPause.buttonPause.enabled = false;
temp = mcMain.attachMovie("popup_paused", "noswap_mcPaused", pausedDepth);
sound_dx1_position = sound_dx1.position;
sound_dx2_position = sound_dx2.position;
sound_dxWorker_position = sound_dxWorker.position;
sound_fx1_position = sound_fx1.position;
sound_fx2_position = sound_fx2.position;
sound_fx3_position = sound_fx3.position;
sound_gun_position = sound_gun.position;
sound_dx1.stop();
sound_dx2.stop();
sound_dxWorker.stop();
sound_fx1.stop();
sound_fx2.stop();
sound_fx3.stop();
sound_gun.stop();
var _local2 = 0;
while (_local2 < 7) {
mcMain["mcWorkerMouth" + _local2].stop();
_local2++;
}
_local2 = 1;
while (_local2 < 10) {
mcMain.mcMouths["mcMouth" + _local2].stop();
_local2++;
}
mcMain.mcBossMouth.stop();
}
function spawnWorker() {
if (workerCount < workerMax) {
workerCount++;
workerNum++;
if (workerNum > workerNumMax) {
workerNum = 1;
}
var _local2 = 0;
while (_local2 == 0) {
var _local1 = random(7) + 1;
if ((_local1 != workerLastArray[0]) && (_local1 != workerLastArray[1])) {
_local2 = _local1;
workerPast++;
if (workerPast > (workerLastArray.length - 1)) {
workerPast = 0;
}
workerLastArray[workerPast] = _local1;
}
}
temp = mcMain.attachMovie("worker" + _local2, "worker_" + workerNum, workerDepth + workerCount);
if (random(2)) {
temp._x = -100;
} else {
temp._x = 800;
}
var _local3 = random(5);
if (_local3 == 0) {
temp._y = baseY + (Math.random() * 2);
} else if (_local3 == 1) {
temp._y = 249 + (Math.random() * 2);
} else if (_local3 == 2) {
temp._y = 273 + (Math.random() * 2);
} else if (_local3 == 3) {
temp._y = 303 + (Math.random() * 2);
} else if (_local3 == 4) {
temp._y = 350 + (Math.random() * 2);
}
temp._xscale = 1;
temp._yscale = 1;
temp.type = _local2;
mcMain["mcWorkerMouth" + _local2].gotoAndStop("happy");
}
}
function startGame() {
mcMain.mcTitle.gotoAndPlay("start");
__rankz_update__("MzY1MWolZSVhJW4lcw==", "TlNsb1dUcEc=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl, bXlnYW1lX3Njb3JlX3ZhcmlhYmx2, bXlnYW1lX3Njb3JlX3ZhcmlhYmx3, "plays");
sound_music.stop();
sound_music.setVolume(50);
sound_music.attachSound("s_music1a");
sound_music.start(0, 0);
s_music_id = "s_music1a";
bMusic = true;
}
function startGame2() {
mcMain.mcGun.gotoAndStop("start");
_global.bPaused = false;
bTitles = false;
mcMain.noswap_buttonPause.buttonPause.enabled = true;
Mouse.hide();
mcMain.mcHUD.mcAmmo.mc.gotoAndStop(ammo + 1);
mcMain.mcHUD.mcAmmoClip.gotoAndStop(ammoClip + 1);
mcMain.mcHUD.textKills._y = hudKillsY;
mcMain.mcHUD.mcRapidfire._y = hudRapidfireY;
mcMain.mcHUD.mcHP._y = hudHPY;
}
function toggleMusic() {
bMusic = !bMusic;
if (phase == 1) {
if (bMusic) {
var _local1 = sound_music.position;
sound_music.stop();
sound_music.setVolume(50);
sound_music.attachSound("s_music1a");
sound_music.start(_local1 / 1000, 0);
s_music_id = "s_music1a";
trace("starting 1a at: " + (_local1 / 1000));
} else {
var _local1 = ((sound_music.position / sound_music.duration) - Math.floor(sound_music.position / sound_music.duration)) * sound_music.duration;
sound_music.stop();
sound_music.setVolume(50);
sound_music.attachSound("s_music1b");
sound_music.start(_local1 / 1000, 0);
s_music_id = "s_music1b";
trace("starting 1b at: " + (_local1 / 1000));
}
} else if (bMusic) {
sound_music.stop();
sound_music.setVolume(90);
sound_music.attachSound("s_music_google");
sound_music.start(random(11), 0);
s_music_id = "s_music_google";
} else {
sound_music.stop();
sound_music.setVolume(50);
sound_music.attachSound("s_music1b");
sound_music.start(random(20), 0);
s_music_id = "s_music1b";
}
}
function unpauseGame() {
_global.bPaused = false;
mcMain.noswap_buttonPause.buttonPause.enabled = true;
if (s_dx1_name != "") {
sound_dx1.start(sound_dx1_position / 1000, 0);
}
if (s_dx2_name != "") {
sound_dx2.start(sound_dx2_position / 1000, 0);
}
if (s_dxWorker_name != "") {
sound_dxWorker.start(sound_dxWorker_position / 1000, 0);
}
if (s_fx1_id != "") {
sound_fx1.start(sound_fx1_position / 1000, 0);
}
if (s_fx2_id != "") {
sound_fx2.start(sound_fx2_position / 1000, 0);
}
if (s_fx3_id != "") {
sound_fx3.start(sound_fx3_position / 1000, 0);
}
if (s_gun_id != "") {
sound_gun.start(sound_gun_position / 1000, 0);
}
var _local2 = 0;
while (_local2 < 7) {
if (mcMain["mcWorkerMouth" + _local2]._currentframe > 5) {
mcMain["mcWorkerMouth" + _local2].play();
}
_local2++;
}
_local2 = 1;
while (_local2 < 10) {
if (mcMain.mcMouths["mcMouth" + _local2]._currentframe > 5) {
mcMain.mcMouths["mcMouth" + _local2].play();
}
_local2++;
}
if (mcMain.mcBossMouth._currentframe > 5) {
mcMain.mcBossMouth.play();
}
}
function updateHit() {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_root.hitArray[_local4] != null) {
var _local3 = mcMain["bullet" + _local4];
_root.hitArray[_local4].hitBP = _local3.bp;
_local3.phase = "hit";
var _local2 = 100;
if (_root.hitArray[_local4]._y > baseY) {
_local2 = ((_root.hitArray[_local4]._y - baseY) / 8) + 20;
} else {
_local2 = 25;
}
if (_local2 > 60) {
_local2 = 60;
}
_local3._xscale = _local2;
_local3._yscale = _local2;
if (_root.hitArray[_local4]._name.substr(0, 5) == "mcDes") {
spawnFX("hit_des", _local3._x, _local3._y, ((_local2 * _local2) / 64) + 20, null);
} else {
spawnFX("hit", _local3._x, _local3._y, (_local2 * _local2) / 32, null);
}
var _local5 = _root.hitArray[_local4]._name.substr(0, _root.hitArray[_local4]._name.indexOf("_"));
if (_local5 == "worker") {
_root.addSound("s_hit", 0, -1, _root.hitArray[_local4]._x, _root.hitArray[_local4]._y);
} else if (_local5 == "enemy") {
if ((_root.hitArray[_local4].hp - _root.hitArray[_local4].hitBP) > 0) {
_root.addSound("s_hit", 0, -1, _root.hitArray[_local4]._x, _root.hitArray[_local4]._y);
} else {
_root.addSound("s_killed", 0.3, -1, _root.hitArray[_local4]._x, _root.hitArray[_local4]._y - 100);
}
} else if (_local5 == "bird") {
_root.addSound("s_hit_bird", 0.26, -1, _root.hitArray[_local4]._x, _root.hitArray[_local4]._y + 1500);
}
}
_local4++;
}
_local4 = 0;
while (_local4 < _root.bulletMax) {
_root.hitArray[_local4] = null;
_local4++;
}
}
function updateHP(num) {
var _local2 = hp;
hp = hp + num;
if (num < 0) {
p1Damage = p1Damage + num;
}
if (hp > hpMax) {
hp = hpMax;
} else if (hp <= 0) {
hp = 0;
if (((!bGameover) && (!bWin)) && (!bLose)) {
bLose = true;
stopAllSounds();
mcMain.mcBoss.fired();
_root.addSound("s_scratch", 0, 100, 360, 0);
if (phase == 2) {
mcMain.mcHUD.mcGoogleHP.gotoAndPlay("lose");
}
mcMain.noswap_buttonPause.buttonPause.enabled = false;
}
}
if (hp >= _local2) {
mcMain.mcHUD.mcHP.gotoAndPlay("heal");
mcMain.noswap_flash.gotoAndStop("idle");
} else {
mcMain.mcHUD.mcHP.gotoAndPlay("hit");
mcMain.noswap_flash.gotoAndStop("flash");
temp = getSoundNum();
if (temp > 0) {
temp = _root["sound_fx" + temp];
temp.attachSound("s_hit_player");
temp.start(0, 0);
temp.setVolume(80);
}
}
}
function __rankz_send__(par1, par2, par3, par4, par4n, par4nb) {
top10_send = new LoadVars();
top10_get = new LoadVars();
top10_send.flashkey = par2;
top10_send.SU0249 = par1;
top10_send.bmFtZTE = Armor_Bot_30_En_AS1.Encode(par3);
top10_send.c2NvcmUx = Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
top10_send.c2NvcmUy = Armor_Bot_30_En_AS1.Encode(par4n + "j%e%a%n%s");
top10_send.c2NvcmUz = Armor_Bot_30_En_AS1.Encode(par4nb + "j%e%a%n%s");
top10_send.flashkey = top10_send.flashkey.split("=").join("");
top10_send.SU0249 = top10_send.SU0249.split("=").join("");
top10_get.onLoad = function (success) {
if (success) {
} else {
trace("SEND failed");
}
};
top10_send.sendAndLoad("http://rankz.armorbot.com/submit/", top10_get, "POST");
}
function __rankz_update__(par1, par2, par3, par4, par4n, par4nb, type) {
top10_send = new LoadVars();
top10_get = new LoadVars();
top10_send.flashkey = par2;
top10_send.SU0249 = par1;
top10_send.flashkey = top10_send.flashkey.split("=").join("");
top10_send.SU0249 = top10_send.SU0249.split("=").join("");
top10_get.onLoad = function (success) {
if (success) {
_rankz_ar_ = top10_get.top10.split("<u/*/u>");
tempv = _rankz_ar_[0].split("</*/>");
var _local2 = tempv[1];
statPlays = tempv[3];
statWins = tempv[4];
_local2++;
if (type == "plays") {
statPlays++;
} else if (type == "wins") {
statWins++;
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root._url;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _local2;
bXlnYW1lX3Njb3JlX3ZhcmlhYmx2 = statPlays;
bXlnYW1lX3Njb3JlX3ZhcmlhYmx3 = statWins;
__rankz_send__("MzY1MWolZSVhJW4lcw==", "TlNsb1dUcEc=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl, bXlnYW1lX3Njb3JlX3ZhcmlhYmx2, bXlnYW1lX3Njb3JlX3ZhcmlhYmx3);
} else {
trace("GET failed");
}
};
top10_send.sendAndLoad("http://rankz.armorbot.com/get/top10.php", top10_get, "POST");
}
function __rankz_show__(par1, par2, par3, par4, par4n, par4nb) {
top10_send = new LoadVars();
top10_get = new LoadVars();
top10_send.flashkey = par2;
top10_send.SU0249 = par1;
top10_send.flashkey = top10_send.flashkey.split("=").join("");
top10_send.SU0249 = top10_send.SU0249.split("=").join("");
top10_get.onLoad = function (success) {
if (success) {
_rankz_ar_ = top10_get.top10.split("<u/*/u>");
tempv = _rankz_ar_[0].split("</*/>");
statPlays = tempv[3];
statWins = tempv[4];
} else {
trace("GET failed");
}
};
top10_send.sendAndLoad("http://rankz.armorbot.com/get/top10.php", top10_get, "POST");
}
counter = 0;
frCount = 0;
var pastAvg = new Array(30, 30, 30, 30, 30, 30, 30, 30, 30, 30);
avg2 = 30;
actorCountLast = 0;
oldT = getTimer();
newT = getTimer();
maxF = 33;
var pastFPS = new Array(30, 30, 30, 30, 30, 30, 30, 30, 30, 30);
stop();
Mouse.show();
temp = null;
_global.bPaused = true;
bTitles = true;
titleCount = 0;
count = 0;
clicked = 0;
phase = 1;
bulletCount = -1;
bulletMax = 8;
enemyCount = 0;
enemyMax = 10;
enemyNum = 0;
enemyNumMax = 30;
kills = 0;
deskBound = 500;
hitArray = new Array();
var i = 0;
while (i < bulletMax) {
hitArray[i] = null;
i++;
}
baseY = 230;
deskSlots = 10;
deskArray = new Array();
var i = 0;
while (i < deskSlots) {
deskArray[i] = new Array();
i++;
}
var i = 0;
while (i < deskSlots) {
deskArray[i][0] = i * 8;
deskArray[i][1] = null;
i++;
}
birdWaitTime = 300;
birdWait = 0;
fxCount = 0;
fxMax = 4;
workerCount = 0;
workerMax = 5;
workerNum = 0;
workerNumMax = 8;
workerLastArray = new Array(0, 0);
workerPast = -1;
sideArray = new Array(null, null, null, null);
sideDamageBP = -2;
ammoClip = 24;
ammo = ammoClip;
ammoMax = 32;
reloadTime = 38;
reloadWait = 0;
bRapidfire = false;
iconNum = 0;
iconNumMax = 1;
dayName = "MONDAY";
daySize = 3600;
dayCount = 0;
bReset = false;
bFired = false;
lastKillx = 0;
lastKilly = 0;
popupCount = 0;
popupMax = 10;
ballNum = 0;
waveWait0 = 120;
waveWait = waveWait0;
waveSize = 3;
waveType = 1;
waveSideCount = 1;
bGameover = false;
bWin = false;
bLose = false;
mouthNum = 0;
p1Damage = 0;
p1DamageMax = -4;
bMusic = false;
titleDepth = 994456 /* 0x0F2C98 */;
endMsgDepth = 993556 /* 0x0F2914 */;
hudDepth = 993456 /* 0x0F28B0 */;
playAgainDepth = hudDepth - 10;
flashDepth = 984456 /* 0x0F0588 */;
rapidfireDepth = 984000 /* 0x0F03C0 */;
OblastDepth1 = 983556 /* 0x0F0204 */;
OblastDepth2 = 983557 /* 0x0F0205 */;
gunDepth = 983456 /* 0x0F01A0 */;
bulletDepth = 975000 /* 0x0EE098 */;
bossTopDepth = 973456 /* 0x0EDA90 */;
fxDepth = 965456 /* 0x0EBB50 */;
ballDepth = 963456 /* 0x0EB380 */;
cursorDepth = gunDepth - 10;
pausedDepth = cursorDepth - 10;
popupDayDepth = hudDepth + 50;
popupEnemyKilledDepth = hudDepth + 10;
bgDeskDepth = 950000 /* 0x0E7EF0 */;
pauseButtonDepth = bgDeskDepth + 1;
bossFiredDepth = bgDeskDepth - 10;
enemyDepth = 1234;
birdDepth = 1334;
workerDepth = 1434;
iconDepth = 1534;
birdPosDepth = 2234;
workerMouthDepth = 3234;
bossDepth = 100;
bossMouthDepth = bossDepth + 1;
mouthDepth = 1000;
temp = mcMain.attachMovie("boss", "mcBoss", bossDepth);
temp._x = 399.3;
temp._y = 167.8;
mcMain.mcTitle.swapDepths(titleDepth);
mcMain.mcHUD.swapDepths(hudDepth);
mcMain.noswap_flash.swapDepths(flashDepth);
mcMain.mcGun.swapDepths(gunDepth);
mcMain.mcCursor.swapDepths(cursorDepth);
mcMain.bgDesk.swapDepths(bgDeskDepth);
mcMain.noswap_buttonPause.swapDepths(pauseButtonDepth);
mcWorkerMouth1._visible = false;
mcWorkerMouth2._visible = false;
mcWorkerMouth3._visible = false;
mcWorkerMouth4._visible = false;
mcWorkerMouth5._visible = false;
mcWorkerMouth6._visible = false;
mcWorkerMouth7._visible = false;
hp = 50;
hpMax = 100;
keyPause = 80;
keyReload = 32;
reloadPressed = false;
googlePressed = false;
sound_dx1 = new Sound(mcMain.mcWorkerMouth1);
sound_dx1.setVolume(70);
sound_dx2 = new Sound(mcMain.mcWorkerMouth2);
sound_dx2.setVolume(70);
sound_dxWorker = new Sound(mcMain.mcWorkerMouth3);
sound_dxWorker.setVolume(70);
sound_gun = new Sound(mcMain.mcWorkerMouth4);
sound_gun.setVolume(70);
sound_music = new Sound(mcMain.mcWorkerMouth5);
sound_music.setVolume(50);
sound_music.attachSound("s_music1b");
sound_music.start(0, 0);
sound_fx1 = new Sound(mcMain.mcWorkerMouth6);
sound_fx1.setVolume(80);
sound_fx2 = new Sound(mcMain.mcWorkerMouth7);
sound_fx2.setVolume(80);
sound_fx3 = new Sound(mcMain.mcGun);
sound_fx3.setVolume(80);
s_dx1_name = "";
s_dx2_name = "";
s_dxWorker_name = "";
s_fx1_id = "";
s_fx2_id = "";
s_fx3_id = "";
s_gun_id = "";
s_music_id = "s_music1b";
s_dx2_mult = 1;
sound_dx1_position = 0;
sound_dx2_position = 0;
sound_dxWorker_position = 0;
sound_fx1_position = 0;
sound_fx2_position = 0;
sound_fx3_position = 0;
sound_gun_position = 0;
sound_dx1.onSoundComplete = function () {
s_dx1_name = "";
};
sound_dx2.onSoundComplete = function () {
s_dx2_name = "";
};
sound_dxWorker.onSoundComplete = function () {
s_dxWorker_name = "";
};
sound_fx1.onSoundComplete = function () {
s_fx1_id = "";
};
sound_fx2.onSoundComplete = function () {
s_fx2_id = "";
};
sound_fx3.onSoundComplete = function () {
s_fx3_id = "";
};
sound_gun.onSoundComplete = function () {
s_gun_id = "";
};
sound_music.onSoundComplete = function () {
sound_music.start(0, 0);
};
this.onMouseDown = function () {
clicked = 1;
};
this.onMouseUp = function () {
clicked = 0;
};
mcHUD.mcHP.gotoAndStop(101);
mcMain.mcDesDeskCal.setCalendar();
mcMain.mcHUD.textKills.text = 0;
mcMain.mcHUD.mcHP.mc.gotoAndStop(hp + 1);
__rankz_show__("MzY1MWolZSVhJW4lcw==", "TlNsb1dUcEc=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl, bXlnYW1lX3Njb3JlX3ZhcmlhYmx2, bXlnYW1lX3Njb3JlX3ZhcmlhYmx3);
mcMain.mcHUD.mcAmmo.mc.gotoAndStop(1);
mcMain.mcHUD.mcAmmoClip.gotoAndStop(1);
hudKillsY = mcMain.mcHUD.textKills._y;
hudRapidfireY = mcMain.mcHUD.mcRapidfire._y;
hudHPY = mcMain.mcHUD.mcHP._y;
mcMain.mcHUD.textKills._y = -2000;
mcMain.mcHUD.mcRapidfire._y = -2000;
mcMain.mcHUD.mcHP._y = -2000;
if (_global.bRematch) {
mcMain.mcTitle.gotoAndStop(mcMain.mcTitle._totalframes);
waveType = 1000;
spawnGoogle();
} else {
mcMain.mcGun.gotoAndStop("title");
}
this.onEnterFrame = function () {
if (!_global.bPaused) {
count++;
birdWait--;
sideDamageWait--;
reloadWait--;
dayCount++;
waveWait--;
if (clicked > 0) {
clicked++;
}
if (!bFired) {
if ((count % 15) == 0) {
p1Damage = 0;
}
if (!bGameover) {
if (!bTitles) {
mcMain.mcCursor._x = _root._xmouse;
mcMain.mcCursor._y = _root._ymouse;
mcMain.mcCursor._xscale = mcCam.mc._xscale;
mcMain.mcCursor._yscale = mcMain.mcCursor._xscale;
mcMain.mcGun._x = (_root._xmouse / 3) + 490;
mcMain.mcGun._y = (_root._ymouse / 4) + 350;
mcMain.mcGun._rotation = ((-_root._ymouse) / 32) + 10;
} else {
mcMain.mcCursor._y = -400;
}
if (phase == 1) {
if (waveWait == 0) {
waveWait = waveWait0;
spawnWave();
}
if ((count % 128) == 0) {
spawnWorker();
}
} else if (phase == 2) {
}
if ((count % 15) == 0) {
Mouse.hide();
}
if (!bRapidfire) {
if (((reloadWait <= 0) && ((clicked % 10) == 2)) && (clicked > 0)) {
mcMain.mcGun.gotoAndStop("shoot");
mcMain.mcGun.mc.gotoAndPlay(1);
spawnBullet();
ammo--;
if (ammo <= 0) {
reloadAmmo();
}
} else if (reloadWait == 1) {
ammo = ammoClip;
mcMain.mcGun.gotoAndStop("idle");
mcMain.mcHUD.mcAmmo.gotoAndPlay("reloaded");
}
} else if (((reloadWait <= 0) && ((clicked % 4) == 2)) && (clicked > 0)) {
mcMain.mcGun.gotoAndStop("shoot");
mcMain.mcGun.mc.gotoAndPlay(1);
spawnBullet();
ammo--;
if (ammo <= 0) {
reloadAmmo();
bRapidfire = false;
ammoClip = 24;
}
} else if (reloadWait == 1) {
ammo = ammoClip;
mcMain.mcGun.gotoAndStop("idle");
mcMain.mcHUD.mcAmmo.gotoAndPlay("reloaded");
}
if (birdWait <= 0) {
if (random(100) < 2) {
spawnBirds();
birdWait = birdWaitTime;
}
}
if (reloadWait <= 0) {
if (Key.isDown(keyReload)) {
if (!reloadPressed) {
if (ammo < ammoClip) {
reloadAmmo();
bRapidfire = false;
ammoClip = 24;
}
}
reloadPressed = true;
} else {
reloadPressed = false;
}
} else if (Key.isDown(keyReload)) {
if (!reloadPressed) {
if (!bActiveReloadTried) {
if ((reloadWait > (reloadTime - 13)) && (reloadWait <= (reloadTime - 10))) {
reloadWait = 5;
mcMain.mcGun.gotoAndStop("reload_fast");
sound_gun.stop();
s_gun_id = "s_reload_fast";
sound_gun.attachSound(s_gun_id);
sound_gun.start(0, 0);
}
}
bActiveReloadTried = true;
}
reloadPressed = true;
} else {
reloadPressed = false;
}
}
depthManager();
updateHit();
if (s_dx1_name != "") {
if (mcMain[s_dx1_name] != undefined) {
sound_dx1.setVolume(getVolumeY(mcMain[s_dx1_name]._y));
} else {
sound_dx1.setVolume(60);
}
}
if (s_dx2_name != "") {
if (s_dx1_name != "") {
if (s_dx2_mult > 0.5) {
s_dx2_mult = s_dx2_mult + -0.2;
if (s_dx2_mult < 0.5) {
s_dx2_mult = 0.5;
}
}
} else if (s_dx2_mult < 1) {
s_dx2_mult = s_dx2_mult + 0.1;
if (s_dx2_mult > 1) {
s_dx2_mult = 1;
}
}
if (mcMain[s_dx2_name] != undefined) {
sound_dx2.setVolume(getVolumeY(mcMain[s_dx2_name]._y) * s_dx2_mult);
} else {
sound_dx2.setVolume(60 * s_dx2_mult);
}
}
if (s_dxWorker_name != "") {
sound_dxWorker.setPan(((mcMain[s_dxWorker_name]._x / 3.6) - 100) / 2);
}
temp = ((dayCount / daySize) * 3240) - 2610;
mcMain.noswap_bgBG.mcClock.mcMinute._rotation = temp;
mcMain.noswap_bgBG.mcClock.mcHour._rotation = (temp / 12) + 10;
}
mcMain.mcHUD.mcHP.mc.gotoAndStop(hp + 1);
mcMain.mcHUD.mcAmmo.mc.gotoAndStop(ammo + 1);
mcMain.mcHUD.mcAmmoClip.gotoAndStop(ammoClip + 1);
if (Key.isDown(8) && (Key.isDown(16))) {
if ((((!googlePressed) && (!bFired)) && (!bTitles)) && (!bGameover)) {
if (waveType < 22) {
waveType = 22;
} else {
trace(mcMain.mcGoogle.hp);
mcMain.mcGoogle.hp = 10;
}
}
googlePressed = true;
mcMain.mcHUD.textDebug2.text = "GOOGLE TIME";
} else {
googlePressed = false;
}
} else {
Mouse.show();
titleCount++;
depthManager();
}
if (Key.isDown(keyPause)) {
if ((((!pausePressed) && (!bFired)) && (!bTitles)) && (!bGameover)) {
if (!_global.bPaused) {
pauseGame();
} else if (mcMain.noswap_mcPaused.bOpened) {
mcMain.noswap_mcPaused.gotoAndPlay("close");
}
}
pausePressed = true;
} else {
pausePressed = false;
}
if (bTitles) {
if ((titleCount % 128) == 0) {
spawnWorker();
}
}
if (Key.isDown(16) && (Key.isDown(32))) {
mcMain.mcHUD.textStats.text = (("plays: " + statPlays) + "\n wins: ") + statWins;
mcMain.mcHUD.textStats._visible = true;
} else {
mcMain.mcHUD.textStats._visible = false;
}
frameLimiter();
mcMain.mcHUD.textDebug.text = "";
};
Symbol 2 MovieClip [_flash_red_flash] Frame 4
_parent.gotoAndStop("idle");
Symbol 18 MovieClip Frame 1
this.onEnterFrame = function () {
var _local2 = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
mc.gotoAndStop(_local2 + 1);
if (_local2 >= 100) {
_root.gotoAndPlay("start");
}
};
Symbol 26 Button
on (release) {
getURL ("http://www.current.com", "_blank");
}
Symbol 34 Button
on (release) {
getURL ("http://www.current.com/supernews", "_blank");
}
Symbol 42 MovieClip Frame 1
this._visible = false;
Symbol 64 MovieClip [worker_mouth1] Frame 1
function end(bHappy) {
if (bHappy) {
gotoAndStop ("happy");
} else {
gotoAndStop ("sad");
}
}
stop();
type = 1;
stop();
if (this._name.substr(0, 13) == "mcWorkerMouth") {
}
this.gotoAndStop(_root.mcMain["mcWorkerMouth" + type]._currentframe);
this.onEnterFrame = function () {
if (this._name.substr(0, 13) != "mcWorkerMouth") {
this.gotoAndStop(_root.mcMain["mcWorkerMouth" + type]._currentframe);
}
};
Symbol 64 MovieClip [worker_mouth1] Frame 26
end(false);
Symbol 64 MovieClip [worker_mouth1] Frame 27
end(false);
Symbol 64 MovieClip [worker_mouth1] Frame 43
end(false);
Symbol 64 MovieClip [worker_mouth1] Frame 44
end(false);
Symbol 64 MovieClip [worker_mouth1] Frame 85
end(false);
Symbol 64 MovieClip [worker_mouth1] Frame 86
end(false);
Symbol 64 MovieClip [worker_mouth1] Frame 138
end(false);
Symbol 64 MovieClip [worker_mouth1] Frame 139
end(false);
Symbol 64 MovieClip [worker_mouth1] Frame 178
end(false);
Symbol 64 MovieClip [worker_mouth1] Frame 179
end(false);
Symbol 64 MovieClip [worker_mouth1] Frame 193
gotoAndPlay ("cheer");
Symbol 75 MovieClip Frame 10
gotoAndPlay(_currentframe - 2);
Symbol 77 MovieClip Frame 18
gotoAndPlay(_currentframe - 2);
Symbol 80 MovieClip [worker1] Frame 1
function checkHit() {
if (hitBP <= 0) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y < _parent.bgRow1._y) && (_parent.bgRow1.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow2._y) && (_parent.bgRow2.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow3._y) && (_parent.bgRow3.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow4._y) && (_parent.bgRow4.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow5._y) && (_parent.bgRow5.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
break;
}
_local4++;
}
} else {
hp = hp + (-hitBP);
if (hitTime <= 0) {
hitTime = hitLength;
}
hitBP = 0;
this.gotoAndStop("hit");
animHold = 18;
moveHold = 18;
_root.updateHP(-3);
bMad = true;
if (_root.s_dxWorker_name != this._name) {
var _local5 = random(4) + 1;
while ((_local5 == lastNum[0]) || (_local5 == lastNum[1])) {
_local5 = random(4) + 1;
}
lastNum.pop();
lastNum.push(_local5);
_root.sound_dxWorker.stop();
_root.sound_dxWorker.attachSound((("s_worker" + type) + "_") + _local5);
_root.sound_dxWorker.setVolume(70);
_root.sound_dxWorker.start(0, 0);
_root.s_dxWorker_name = this._name;
_root.mcMain["mcWorkerMouth" + type].gotoAndPlay("hit" + _local5);
}
}
}
function scale() {
this._xscale = ((this._y * this._y) / 1536) * dir;
this._yscale = Math.abs(this._xscale);
xVel = (xVelBase * this._xscale) / 100;
}
stop();
phase = "walk";
phaseCount = 0;
dir = 1;
xVelBase = 7.1;
animHold = 0;
moveHold = 0;
mouthName = "";
lastNum = new Array(0, 0);
bMad = false;
if (type > 5) {
xVelBase = 3.8;
}
if (this._x > 0) {
xVel = -xVel;
dir = -1;
}
scale();
this.onEnterFrame = function () {
if (_root.bReset) {
this.removeMovieClip();
} else if (_root.bFired && (phase != "fired")) {
phase = "fired";
this.gotoAndStop("fired");
if (dir == 1) {
if ((this._x > 360) && (this._x < 460)) {
this.gotoAndStop("fired2");
}
} else if ((this._x > 340) && (this._x < 460)) {
this.gotoAndStop("fired2");
}
}
if (_root.bTitles) {
if (moveHold <= 0) {
this._x = this._x + xVel;
}
if (animHold <= 0) {
this.gotoAndStop("walkSide");
}
if ((this._x > 800) || (this._x < -100)) {
_root.workerCount--;
this.removeMovieClip();
}
}
if (!_global.bPaused) {
this.mc.play();
phaseCount--;
animHold--;
moveHold--;
if (phase == "walk") {
if (moveHold <= 0) {
this._x = this._x + xVel;
checkHit();
}
if (animHold <= 0) {
if (bMad) {
this.gotoAndStop("walkMad");
} else {
this.gotoAndStop("walkSide");
}
}
if ((this._x > 800) || ((this._x < -100) && (_root.s_dxWorker_name != this._name))) {
_root.workerCount--;
this.removeMovieClip();
}
} else if (phase == "fired") {
}
} else {
this.mc.stop();
}
if (_root.bTitles) {
this.mc.play();
}
};
Symbol 107 MovieClip [worker_mouth2] Frame 1
function end(bHappy) {
if (bHappy) {
gotoAndStop ("happy");
} else {
gotoAndStop ("sad");
}
}
stop();
type = 2;
stop();
if (this._name.substr(0, 13) == "mcWorkerMouth") {
}
this.gotoAndStop(_root.mcMain["mcWorkerMouth" + type]._currentframe);
this.onEnterFrame = function () {
if (this._name.substr(0, 13) != "mcWorkerMouth") {
this.gotoAndStop(_root.mcMain["mcWorkerMouth" + type]._currentframe);
}
};
Symbol 107 MovieClip [worker_mouth2] Frame 26
end(false);
Symbol 107 MovieClip [worker_mouth2] Frame 27
end(false);
Symbol 107 MovieClip [worker_mouth2] Frame 46
end(false);
Symbol 107 MovieClip [worker_mouth2] Frame 47
end(false);
Symbol 107 MovieClip [worker_mouth2] Frame 79
end(false);
Symbol 107 MovieClip [worker_mouth2] Frame 80
end(false);
Symbol 107 MovieClip [worker_mouth2] Frame 100
end(false);
Symbol 107 MovieClip [worker_mouth2] Frame 101
end(false);
Symbol 107 MovieClip [worker_mouth2] Frame 140
end(false);
Symbol 107 MovieClip [worker_mouth2] Frame 141
end(false);
Symbol 107 MovieClip [worker_mouth2] Frame 155
gotoAndPlay ("cheer");
Symbol 123 MovieClip Frame 8
gotoAndPlay(_currentframe - 2);
Symbol 124 MovieClip Frame 23
gotoAndPlay(_currentframe - 2);
Symbol 130 MovieClip [worker2] Frame 1
function checkHit() {
if (hitBP <= 0) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y < _parent.bgRow1._y) && (_parent.bgRow1.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow2._y) && (_parent.bgRow2.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow3._y) && (_parent.bgRow3.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow4._y) && (_parent.bgRow4.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow5._y) && (_parent.bgRow5.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
break;
}
_local4++;
}
} else {
hp = hp + (-hitBP);
if (hitTime <= 0) {
hitTime = hitLength;
}
hitBP = 0;
this.gotoAndStop("hit");
animHold = 18;
moveHold = 18;
_root.updateHP(-3);
bMad = true;
if (_root.s_dxWorker_name != this._name) {
var _local5 = random(4) + 1;
while ((_local5 == lastNum[0]) || (_local5 == lastNum[1])) {
_local5 = random(4) + 1;
}
lastNum.pop();
lastNum.push(_local5);
_root.sound_dxWorker.stop();
_root.sound_dxWorker.attachSound((("s_worker" + type) + "_") + _local5);
_root.sound_dxWorker.setVolume(70);
_root.sound_dxWorker.start(0, 0);
_root.s_dxWorker_name = this._name;
_root.mcMain["mcWorkerMouth" + type].gotoAndPlay("hit" + _local5);
}
}
}
function scale() {
this._xscale = ((this._y * this._y) / 1536) * dir;
this._yscale = Math.abs(this._xscale);
xVel = (xVelBase * this._xscale) / 100;
}
stop();
phase = "walk";
phaseCount = 0;
dir = 1;
xVelBase = 7.1;
animHold = 0;
moveHold = 0;
mouthName = "";
lastNum = new Array(0, 0);
bMad = false;
if (type > 5) {
xVelBase = 3.8;
}
if (this._x > 0) {
xVel = -xVel;
dir = -1;
}
scale();
this.onEnterFrame = function () {
if (_root.bReset) {
this.removeMovieClip();
} else if (_root.bFired && (phase != "fired")) {
phase = "fired";
this.gotoAndStop("fired");
if (dir == 1) {
if ((this._x > 360) && (this._x < 460)) {
this.gotoAndStop("fired2");
}
} else if ((this._x > 340) && (this._x < 460)) {
this.gotoAndStop("fired2");
}
}
if (_root.bTitles) {
if (moveHold <= 0) {
this._x = this._x + xVel;
}
if (animHold <= 0) {
this.gotoAndStop("walkSide");
}
if ((this._x > 800) || (this._x < -100)) {
_root.workerCount--;
this.removeMovieClip();
}
}
if (!_global.bPaused) {
this.mc.play();
phaseCount--;
animHold--;
moveHold--;
if (phase == "walk") {
if (moveHold <= 0) {
this._x = this._x + xVel;
checkHit();
}
if (animHold <= 0) {
if (bMad) {
this.gotoAndStop("walkMad");
} else {
this.gotoAndStop("walkSide");
}
}
if ((this._x > 800) || ((this._x < -100) && (_root.s_dxWorker_name != this._name))) {
_root.workerCount--;
this.removeMovieClip();
}
} else if (phase == "fired") {
}
} else {
this.mc.stop();
}
if (_root.bTitles) {
this.mc.play();
}
};
Symbol 153 MovieClip [worker_mouth3] Frame 1
function end(bHappy) {
if (bHappy) {
gotoAndStop ("happy");
} else {
gotoAndStop ("sad");
}
}
stop();
type = 3;
stop();
if (this._name.substr(0, 13) == "mcWorkerMouth") {
}
this.gotoAndStop(_root.mcMain["mcWorkerMouth" + type]._currentframe);
this.onEnterFrame = function () {
if (this._name.substr(0, 13) != "mcWorkerMouth") {
this.gotoAndStop(_root.mcMain["mcWorkerMouth" + type]._currentframe);
}
};
Symbol 153 MovieClip [worker_mouth3] Frame 26
end(false);
Symbol 153 MovieClip [worker_mouth3] Frame 27
end(false);
Symbol 153 MovieClip [worker_mouth3] Frame 60
end(false);
Symbol 153 MovieClip [worker_mouth3] Frame 61
end(false);
Symbol 153 MovieClip [worker_mouth3] Frame 91
end(false);
Symbol 153 MovieClip [worker_mouth3] Frame 92
end(false);
Symbol 153 MovieClip [worker_mouth3] Frame 128
end(false);
Symbol 153 MovieClip [worker_mouth3] Frame 129
end(false);
Symbol 153 MovieClip [worker_mouth3] Frame 163
end(false);
Symbol 153 MovieClip [worker_mouth3] Frame 164
end(false);
Symbol 153 MovieClip [worker_mouth3] Frame 179
gotoAndPlay ("cheer");
Symbol 165 MovieClip Frame 7
gotoAndPlay(_currentframe - 2);
Symbol 166 MovieClip Frame 22
gotoAndPlay(_currentframe - 2);
Symbol 169 MovieClip [worker3] Frame 1
function checkHit() {
if (hitBP <= 0) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y < _parent.bgRow1._y) && (_parent.bgRow1.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow2._y) && (_parent.bgRow2.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow3._y) && (_parent.bgRow3.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow4._y) && (_parent.bgRow4.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow5._y) && (_parent.bgRow5.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
break;
}
_local4++;
}
} else {
hp = hp + (-hitBP);
if (hitTime <= 0) {
hitTime = hitLength;
}
hitBP = 0;
this.gotoAndStop("hit");
animHold = 18;
moveHold = 18;
_root.updateHP(-3);
bMad = true;
if (_root.s_dxWorker_name != this._name) {
var _local5 = random(4) + 1;
while ((_local5 == lastNum[0]) || (_local5 == lastNum[1])) {
_local5 = random(4) + 1;
}
lastNum.pop();
lastNum.push(_local5);
_root.sound_dxWorker.stop();
_root.sound_dxWorker.attachSound((("s_worker" + type) + "_") + _local5);
_root.sound_dxWorker.setVolume(70);
_root.sound_dxWorker.start(0, 0);
_root.s_dxWorker_name = this._name;
_root.mcMain["mcWorkerMouth" + type].gotoAndPlay("hit" + _local5);
}
}
}
function scale() {
this._xscale = ((this._y * this._y) / 1536) * dir;
this._yscale = Math.abs(this._xscale);
xVel = (xVelBase * this._xscale) / 100;
}
stop();
phase = "walk";
phaseCount = 0;
dir = 1;
xVelBase = 7.1;
animHold = 0;
moveHold = 0;
mouthName = "";
lastNum = new Array(0, 0);
bMad = false;
if (type > 5) {
xVelBase = 3.8;
}
if (this._x > 0) {
xVel = -xVel;
dir = -1;
}
scale();
this.onEnterFrame = function () {
if (_root.bReset) {
this.removeMovieClip();
} else if (_root.bFired && (phase != "fired")) {
phase = "fired";
this.gotoAndStop("fired");
if (dir == 1) {
if ((this._x > 360) && (this._x < 460)) {
this.gotoAndStop("fired2");
}
} else if ((this._x > 340) && (this._x < 460)) {
this.gotoAndStop("fired2");
}
}
if (_root.bTitles) {
if (moveHold <= 0) {
this._x = this._x + xVel;
}
if (animHold <= 0) {
this.gotoAndStop("walkSide");
}
if ((this._x > 800) || (this._x < -100)) {
_root.workerCount--;
this.removeMovieClip();
}
}
if (!_global.bPaused) {
this.mc.play();
phaseCount--;
animHold--;
moveHold--;
if (phase == "walk") {
if (moveHold <= 0) {
this._x = this._x + xVel;
checkHit();
}
if (animHold <= 0) {
if (bMad) {
this.gotoAndStop("walkMad");
} else {
this.gotoAndStop("walkSide");
}
}
if ((this._x > 800) || ((this._x < -100) && (_root.s_dxWorker_name != this._name))) {
_root.workerCount--;
this.removeMovieClip();
}
} else if (phase == "fired") {
}
} else {
this.mc.stop();
}
if (_root.bTitles) {
this.mc.play();
}
};
Symbol 193 MovieClip [worker_mouth6] Frame 1
function end(bHappy) {
if (bHappy) {
gotoAndStop ("happy");
} else {
gotoAndStop ("sad");
}
}
stop();
type = 6;
stop();
if (this._name.substr(0, 13) == "mcWorkerMouth") {
}
this.gotoAndStop(_root.mcMain["mcWorkerMouth" + type]._currentframe);
this.onEnterFrame = function () {
if (this._name.substr(0, 13) != "mcWorkerMouth") {
this.gotoAndStop(_root.mcMain["mcWorkerMouth" + type]._currentframe);
}
};
Symbol 193 MovieClip [worker_mouth6] Frame 40
end(false);
Symbol 193 MovieClip [worker_mouth6] Frame 41
end(false);
Symbol 193 MovieClip [worker_mouth6] Frame 69
end(false);
Symbol 193 MovieClip [worker_mouth6] Frame 70
end(false);
Symbol 193 MovieClip [worker_mouth6] Frame 94
end(false);
Symbol 193 MovieClip [worker_mouth6] Frame 95
end(false);
Symbol 193 MovieClip [worker_mouth6] Frame 116
end(false);
Symbol 193 MovieClip [worker_mouth6] Frame 117
end(false);
Symbol 193 MovieClip [worker_mouth6] Frame 191
end(false);
Symbol 193 MovieClip [worker_mouth6] Frame 192
end(false);
Symbol 193 MovieClip [worker_mouth6] Frame 210
gotoAndPlay ("cheer");
Symbol 218 MovieClip Frame 5
gotoAndPlay(_currentframe - 2);
Symbol 219 MovieClip Frame 25
gotoAndPlay(_currentframe - 2);
Symbol 221 MovieClip [worker6] Frame 1
function checkHit() {
if (hitBP <= 0) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y < _parent.bgRow1._y) && (_parent.bgRow1.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow2._y) && (_parent.bgRow2.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow3._y) && (_parent.bgRow3.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow4._y) && (_parent.bgRow4.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow5._y) && (_parent.bgRow5.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
break;
}
_local4++;
}
} else {
hp = hp + (-hitBP);
if (hitTime <= 0) {
hitTime = hitLength;
}
hitBP = 0;
this.gotoAndStop("hit");
animHold = 18;
moveHold = 18;
_root.updateHP(-3);
bMad = true;
if (_root.s_dxWorker_name != this._name) {
var _local5 = random(4) + 1;
while ((_local5 == lastNum[0]) || (_local5 == lastNum[1])) {
_local5 = random(4) + 1;
}
lastNum.pop();
lastNum.push(_local5);
_root.sound_dxWorker.stop();
_root.sound_dxWorker.attachSound((("s_worker" + type) + "_") + _local5);
_root.sound_dxWorker.setVolume(70);
_root.sound_dxWorker.start(0, 0);
_root.s_dxWorker_name = this._name;
_root.mcMain["mcWorkerMouth" + type].gotoAndPlay("hit" + _local5);
}
}
}
function scale() {
this._xscale = ((this._y * this._y) / 1536) * dir;
this._yscale = Math.abs(this._xscale);
xVel = (xVelBase * this._xscale) / 100;
}
stop();
phase = "walk";
phaseCount = 0;
dir = 1;
xVelBase = 7.1;
animHold = 0;
moveHold = 0;
mouthName = "";
lastNum = new Array(0, 0);
bMad = false;
if (type > 5) {
xVelBase = 3.8;
}
if (this._x > 0) {
xVel = -xVel;
dir = -1;
}
scale();
this.onEnterFrame = function () {
if (_root.bReset) {
this.removeMovieClip();
} else if (_root.bFired && (phase != "fired")) {
phase = "fired";
this.gotoAndStop("fired");
if (dir == 1) {
if ((this._x > 360) && (this._x < 460)) {
this.gotoAndStop("fired2");
}
} else if ((this._x > 340) && (this._x < 460)) {
this.gotoAndStop("fired2");
}
}
if (_root.bTitles) {
if (moveHold <= 0) {
this._x = this._x + xVel;
}
if (animHold <= 0) {
this.gotoAndStop("walkSide");
}
if ((this._x > 800) || (this._x < -100)) {
_root.workerCount--;
this.removeMovieClip();
}
}
if (!_global.bPaused) {
this.mc.play();
phaseCount--;
animHold--;
moveHold--;
if (phase == "walk") {
if (moveHold <= 0) {
this._x = this._x + xVel;
checkHit();
}
if (animHold <= 0) {
if (bMad) {
this.gotoAndStop("walkMad");
} else {
this.gotoAndStop("walkSide");
}
}
if ((this._x > 800) || ((this._x < -100) && (_root.s_dxWorker_name != this._name))) {
_root.workerCount--;
this.removeMovieClip();
}
} else if (phase == "fired") {
}
} else {
this.mc.stop();
}
if (_root.bTitles) {
this.mc.play();
}
};
Symbol 248 MovieClip [worker_mouth5] Frame 1
function end(bHappy) {
if (bHappy) {
gotoAndStop ("happy");
} else {
gotoAndStop ("sad");
}
}
stop();
type = 5;
stop();
if (this._name.substr(0, 13) == "mcWorkerMouth") {
}
this.gotoAndStop(_root.mcMain["mcWorkerMouth" + type]._currentframe);
this.onEnterFrame = function () {
if (this._name.substr(0, 13) != "mcWorkerMouth") {
this.gotoAndStop(_root.mcMain["mcWorkerMouth" + type]._currentframe);
}
};
Symbol 248 MovieClip [worker_mouth5] Frame 25
end(false);
Symbol 248 MovieClip [worker_mouth5] Frame 26
end(false);
Symbol 248 MovieClip [worker_mouth5] Frame 65
end(false);
Symbol 248 MovieClip [worker_mouth5] Frame 66
end(false);
Symbol 248 MovieClip [worker_mouth5] Frame 79
end(false);
Symbol 248 MovieClip [worker_mouth5] Frame 80
end(false);
Symbol 248 MovieClip [worker_mouth5] Frame 109
end(false);
Symbol 248 MovieClip [worker_mouth5] Frame 110
end(false);
Symbol 248 MovieClip [worker_mouth5] Frame 139
end(false);
Symbol 248 MovieClip [worker_mouth5] Frame 140
end(false);
Symbol 248 MovieClip [worker_mouth5] Frame 157
gotoAndPlay ("cheer");
Symbol 253 MovieClip Frame 7
gotoAndPlay(_currentframe - 2);
Symbol 254 MovieClip Frame 18
gotoAndPlay(_currentframe - 2);
Symbol 257 MovieClip [worker5] Frame 1
function checkHit() {
if (hitBP <= 0) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y < _parent.bgRow1._y) && (_parent.bgRow1.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow2._y) && (_parent.bgRow2.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow3._y) && (_parent.bgRow3.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow4._y) && (_parent.bgRow4.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow5._y) && (_parent.bgRow5.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
break;
}
_local4++;
}
} else {
hp = hp + (-hitBP);
if (hitTime <= 0) {
hitTime = hitLength;
}
hitBP = 0;
this.gotoAndStop("hit");
animHold = 18;
moveHold = 18;
_root.updateHP(-3);
bMad = true;
if (_root.s_dxWorker_name != this._name) {
var _local5 = random(4) + 1;
while ((_local5 == lastNum[0]) || (_local5 == lastNum[1])) {
_local5 = random(4) + 1;
}
lastNum.pop();
lastNum.push(_local5);
_root.sound_dxWorker.stop();
_root.sound_dxWorker.attachSound((("s_worker" + type) + "_") + _local5);
_root.sound_dxWorker.setVolume(70);
_root.sound_dxWorker.start(0, 0);
_root.s_dxWorker_name = this._name;
_root.mcMain["mcWorkerMouth" + type].gotoAndPlay("hit" + _local5);
}
}
}
function scale() {
this._xscale = ((this._y * this._y) / 1536) * dir;
this._yscale = Math.abs(this._xscale);
xVel = (xVelBase * this._xscale) / 100;
}
stop();
phase = "walk";
phaseCount = 0;
dir = 1;
xVelBase = 7.1;
animHold = 0;
moveHold = 0;
mouthName = "";
lastNum = new Array(0, 0);
bMad = false;
if (type > 5) {
xVelBase = 3.8;
}
if (this._x > 0) {
xVel = -xVel;
dir = -1;
}
scale();
this.onEnterFrame = function () {
if (_root.bReset) {
this.removeMovieClip();
} else if (_root.bFired && (phase != "fired")) {
phase = "fired";
this.gotoAndStop("fired");
if (dir == 1) {
if ((this._x > 360) && (this._x < 460)) {
this.gotoAndStop("fired2");
}
} else if ((this._x > 340) && (this._x < 460)) {
this.gotoAndStop("fired2");
}
}
if (_root.bTitles) {
if (moveHold <= 0) {
this._x = this._x + xVel;
}
if (animHold <= 0) {
this.gotoAndStop("walkSide");
}
if ((this._x > 800) || (this._x < -100)) {
_root.workerCount--;
this.removeMovieClip();
}
}
if (!_global.bPaused) {
this.mc.play();
phaseCount--;
animHold--;
moveHold--;
if (phase == "walk") {
if (moveHold <= 0) {
this._x = this._x + xVel;
checkHit();
}
if (animHold <= 0) {
if (bMad) {
this.gotoAndStop("walkMad");
} else {
this.gotoAndStop("walkSide");
}
}
if ((this._x > 800) || ((this._x < -100) && (_root.s_dxWorker_name != this._name))) {
_root.workerCount--;
this.removeMovieClip();
}
} else if (phase == "fired") {
}
} else {
this.mc.stop();
}
if (_root.bTitles) {
this.mc.play();
}
};
Symbol 277 MovieClip [worker_mouth4] Frame 1
function end(bHappy) {
if (bHappy) {
gotoAndStop ("happy");
} else {
gotoAndStop ("sad");
}
}
stop();
type = 4;
stop();
if (this._name.substr(0, 13) == "mcWorkerMouth") {
}
this.gotoAndStop(_root.mcMain["mcWorkerMouth" + type]._currentframe);
this.onEnterFrame = function () {
if (this._name.substr(0, 13) != "mcWorkerMouth") {
this.gotoAndStop(_root.mcMain["mcWorkerMouth" + type]._currentframe);
}
};
Symbol 277 MovieClip [worker_mouth4] Frame 26
end(false);
Symbol 277 MovieClip [worker_mouth4] Frame 27
end(false);
Symbol 277 MovieClip [worker_mouth4] Frame 56
end(false);
Symbol 277 MovieClip [worker_mouth4] Frame 57
end(false);
Symbol 277 MovieClip [worker_mouth4] Frame 87
end(false);
Symbol 277 MovieClip [worker_mouth4] Frame 88
end(false);
Symbol 277 MovieClip [worker_mouth4] Frame 171
end(false);
Symbol 277 MovieClip [worker_mouth4] Frame 172
end(false);
Symbol 277 MovieClip [worker_mouth4] Frame 210
end(false);
Symbol 277 MovieClip [worker_mouth4] Frame 211
end(false);
Symbol 277 MovieClip [worker_mouth4] Frame 224
gotoAndPlay ("cheer");
Symbol 284 MovieClip Frame 8
gotoAndPlay(_currentframe - 2);
Symbol 285 MovieClip Frame 19
gotoAndPlay(_currentframe - 2);
Symbol 287 MovieClip [worker4] Frame 1
function checkHit() {
if (hitBP <= 0) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y < _parent.bgRow1._y) && (_parent.bgRow1.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow2._y) && (_parent.bgRow2.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow3._y) && (_parent.bgRow3.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow4._y) && (_parent.bgRow4.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow5._y) && (_parent.bgRow5.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
break;
}
_local4++;
}
} else {
hp = hp + (-hitBP);
if (hitTime <= 0) {
hitTime = hitLength;
}
hitBP = 0;
this.gotoAndStop("hit");
animHold = 18;
moveHold = 18;
_root.updateHP(-3);
bMad = true;
if (_root.s_dxWorker_name != this._name) {
var _local5 = random(4) + 1;
while ((_local5 == lastNum[0]) || (_local5 == lastNum[1])) {
_local5 = random(4) + 1;
}
lastNum.pop();
lastNum.push(_local5);
_root.sound_dxWorker.stop();
_root.sound_dxWorker.attachSound((("s_worker" + type) + "_") + _local5);
_root.sound_dxWorker.setVolume(70);
_root.sound_dxWorker.start(0, 0);
_root.s_dxWorker_name = this._name;
_root.mcMain["mcWorkerMouth" + type].gotoAndPlay("hit" + _local5);
}
}
}
function scale() {
this._xscale = ((this._y * this._y) / 1536) * dir;
this._yscale = Math.abs(this._xscale);
xVel = (xVelBase * this._xscale) / 100;
}
stop();
phase = "walk";
phaseCount = 0;
dir = 1;
xVelBase = 7.1;
animHold = 0;
moveHold = 0;
mouthName = "";
lastNum = new Array(0, 0);
bMad = false;
if (type > 5) {
xVelBase = 3.8;
}
if (this._x > 0) {
xVel = -xVel;
dir = -1;
}
scale();
this.onEnterFrame = function () {
if (_root.bReset) {
this.removeMovieClip();
} else if (_root.bFired && (phase != "fired")) {
phase = "fired";
this.gotoAndStop("fired");
if (dir == 1) {
if ((this._x > 360) && (this._x < 460)) {
this.gotoAndStop("fired2");
}
} else if ((this._x > 340) && (this._x < 460)) {
this.gotoAndStop("fired2");
}
}
if (_root.bTitles) {
if (moveHold <= 0) {
this._x = this._x + xVel;
}
if (animHold <= 0) {
this.gotoAndStop("walkSide");
}
if ((this._x > 800) || (this._x < -100)) {
_root.workerCount--;
this.removeMovieClip();
}
}
if (!_global.bPaused) {
this.mc.play();
phaseCount--;
animHold--;
moveHold--;
if (phase == "walk") {
if (moveHold <= 0) {
this._x = this._x + xVel;
checkHit();
}
if (animHold <= 0) {
if (bMad) {
this.gotoAndStop("walkMad");
} else {
this.gotoAndStop("walkSide");
}
}
if ((this._x > 800) || ((this._x < -100) && (_root.s_dxWorker_name != this._name))) {
_root.workerCount--;
this.removeMovieClip();
}
} else if (phase == "fired") {
}
} else {
this.mc.stop();
}
if (_root.bTitles) {
this.mc.play();
}
};
Symbol 309 MovieClip [worker_mouth7] Frame 1
function end(bHappy) {
if (bHappy) {
gotoAndStop ("happy");
} else {
gotoAndStop ("sad");
}
}
stop();
type = 7;
stop();
if (this._name.substr(0, 13) == "mcWorkerMouth") {
}
this.gotoAndStop(_root.mcMain["mcWorkerMouth" + type]._currentframe);
this.onEnterFrame = function () {
if (this._name.substr(0, 13) != "mcWorkerMouth") {
this.gotoAndStop(_root.mcMain["mcWorkerMouth" + type]._currentframe);
}
};
Symbol 309 MovieClip [worker_mouth7] Frame 26
end(false);
Symbol 309 MovieClip [worker_mouth7] Frame 27
end(false);
Symbol 309 MovieClip [worker_mouth7] Frame 56
end(false);
Symbol 309 MovieClip [worker_mouth7] Frame 57
end(false);
Symbol 309 MovieClip [worker_mouth7] Frame 72
end(false);
Symbol 309 MovieClip [worker_mouth7] Frame 73
end(false);
Symbol 309 MovieClip [worker_mouth7] Frame 121
end(false);
Symbol 309 MovieClip [worker_mouth7] Frame 122
end(false);
Symbol 309 MovieClip [worker_mouth7] Frame 136
end(false);
Symbol 309 MovieClip [worker_mouth7] Frame 137
end(false);
Symbol 309 MovieClip [worker_mouth7] Frame 156
gotoAndPlay ("cheer");
Symbol 327 MovieClip Frame 7
gotoAndPlay(_currentframe - 2);
Symbol 329 MovieClip Frame 24
gotoAndPlay(_currentframe - 2);
Symbol 331 MovieClip [worker7] Frame 1
function checkHit() {
if (hitBP <= 0) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y < _parent.bgRow1._y) && (_parent.bgRow1.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow2._y) && (_parent.bgRow2.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow3._y) && (_parent.bgRow3.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow4._y) && (_parent.bgRow4.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow5._y) && (_parent.bgRow5.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
break;
}
_local4++;
}
} else {
hp = hp + (-hitBP);
if (hitTime <= 0) {
hitTime = hitLength;
}
hitBP = 0;
this.gotoAndStop("hit");
animHold = 18;
moveHold = 18;
_root.updateHP(-3);
bMad = true;
if (_root.s_dxWorker_name != this._name) {
var _local5 = random(4) + 1;
while ((_local5 == lastNum[0]) || (_local5 == lastNum[1])) {
_local5 = random(4) + 1;
}
lastNum.pop();
lastNum.push(_local5);
_root.sound_dxWorker.stop();
_root.sound_dxWorker.attachSound((("s_worker" + type) + "_") + _local5);
_root.sound_dxWorker.setVolume(70);
_root.sound_dxWorker.start(0, 0);
_root.s_dxWorker_name = this._name;
_root.mcMain["mcWorkerMouth" + type].gotoAndPlay("hit" + _local5);
}
}
}
function scale() {
this._xscale = ((this._y * this._y) / 1536) * dir;
this._yscale = Math.abs(this._xscale);
xVel = (xVelBase * this._xscale) / 100;
}
stop();
phase = "walk";
phaseCount = 0;
dir = 1;
xVelBase = 7.1;
animHold = 0;
moveHold = 0;
mouthName = "";
lastNum = new Array(0, 0);
bMad = false;
if (type > 5) {
xVelBase = 3.8;
}
if (this._x > 0) {
xVel = -xVel;
dir = -1;
}
scale();
this.onEnterFrame = function () {
if (_root.bReset) {
this.removeMovieClip();
} else if (_root.bFired && (phase != "fired")) {
phase = "fired";
this.gotoAndStop("fired");
if (dir == 1) {
if ((this._x > 360) && (this._x < 460)) {
this.gotoAndStop("fired2");
}
} else if ((this._x > 340) && (this._x < 460)) {
this.gotoAndStop("fired2");
}
}
if (_root.bTitles) {
if (moveHold <= 0) {
this._x = this._x + xVel;
}
if (animHold <= 0) {
this.gotoAndStop("walkSide");
}
if ((this._x > 800) || (this._x < -100)) {
_root.workerCount--;
this.removeMovieClip();
}
}
if (!_global.bPaused) {
this.mc.play();
phaseCount--;
animHold--;
moveHold--;
if (phase == "walk") {
if (moveHold <= 0) {
this._x = this._x + xVel;
checkHit();
}
if (animHold <= 0) {
if (bMad) {
this.gotoAndStop("walkMad");
} else {
this.gotoAndStop("walkSide");
}
}
if ((this._x > 800) || ((this._x < -100) && (_root.s_dxWorker_name != this._name))) {
_root.workerCount--;
this.removeMovieClip();
}
} else if (phase == "fired") {
}
} else {
this.mc.stop();
}
if (_root.bTitles) {
this.mc.play();
}
};
Symbol 332 MovieClip Frame 18
stop();
Symbol 333 MovieClip Frame 16
stop();
Symbol 334 MovieClip Frame 16
stop();
Symbol 335 MovieClip Frame 16
stop();
Symbol 336 MovieClip Frame 16
stop();
Symbol 337 MovieClip Frame 16
stop();
Symbol 338 MovieClip Frame 16
stop();
Symbol 341 MovieClip Frame 1
this._visible = false;
Symbol 356 MovieClip [mouth_friendster] Frame 1
function end() {
if (this._name.substr(0, 7) == "mcMouth") {
this.removeMovieClip();
}
gotoAndStop ("idle");
}
if (this._name.substr(0, 7) == "mcMouth") {
}
this.onEnterFrame = function () {
if (this._name.substr(0, 7) != "mcMouth") {
if (_root.mcMain.mcMouths[_parent._parent._parent.mouthName] != undefined) {
this.gotoAndStop(_root.mcMain.mcMouths[_parent._parent._parent.mouthName]._currentframe);
} else {
this.gotoAndStop("idle");
}
}
};
Symbol 356 MovieClip [mouth_friendster] Frame 71
end();
Symbol 356 MovieClip [mouth_friendster] Frame 72
end();
Symbol 356 MovieClip [mouth_friendster] Frame 148
end();
Symbol 356 MovieClip [mouth_friendster] Frame 149
end();
Symbol 356 MovieClip [mouth_friendster] Frame 228
end();
Symbol 356 MovieClip [mouth_friendster] Frame 229
end();
Symbol 356 MovieClip [mouth_friendster] Frame 287
end();
Symbol 356 MovieClip [mouth_friendster] Frame 288
end();
Symbol 356 MovieClip [mouth_friendster] Frame 383
end();
Symbol 356 MovieClip [mouth_friendster] Frame 384
end();
Symbol 356 MovieClip [mouth_friendster] Frame 436
end();
Symbol 356 MovieClip [mouth_friendster] Frame 437
end();
Symbol 356 MovieClip [mouth_friendster] Frame 474
end();
Symbol 356 MovieClip [mouth_friendster] Frame 475
end();
Symbol 356 MovieClip [mouth_friendster] Frame 512
end();
Symbol 356 MovieClip [mouth_friendster] Frame 513
end();
Symbol 364 MovieClip Frame 1
this._visible = false;
Symbol 382 MovieClip Frame 1
this._visible = false;
Symbol 382 MovieClip Frame 31
stop();
Symbol 385 MovieClip Frame 27
stop();
Symbol 396 MovieClip Frame 80
gotoAndPlay ("pause");
Symbol 396 MovieClip Frame 87
gotoAndPlay ("loop");
Symbol 400 MovieClip Frame 15
stop();
Symbol 401 MovieClip Frame 15
stop();
Symbol 402 MovieClip [enemy_friendster] Frame 1
function checkHit() {
var _local5 = false;
if (hitBP <= 0) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if ((_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) && (this.mc.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y < _parent.bgRow1._y) && (_parent.bgRow1.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow2._y) && (_parent.bgRow2.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow3._y) && (_parent.bgRow3.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow4._y) && (_parent.bgRow4.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow5._y) && (_parent.bgRow5.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else {
tagHit(_local4);
_local5 = true;
}
break;
}
_local4++;
}
} else {
hp = hp + (-hitBP);
if (hitTime <= 0) {
hitTime = hitLength;
}
hitBP = 0;
if (type == "friendster") {
var _local4 = 0;
while (_local4 < _root.deskSlots) {
if (_root.deskArray[_local4][1] == this._name) {
_root.deskArray[_local4][1] = null;
break;
}
_local4++;
}
}
}
if (hp <= 0) {
phase = "die";
phaseCount = 12;
_root.updateHP(2);
_root.kills++;
temp = 200;
if (bPopup) {
temp = 440;
}
_root.popupEnemyKilled(this._x, this._y - (temp * (this._yscale / 100)), 100);
stopSpeech();
if ((type == "facebook") || (type == "secondlife")) {
temp = 1;
} else if (type == "myspace") {
temp = random(2) + 1;
} else if (type == "friendster") {
temp = random(3) + 1;
}
if (_root.s_dx1_name == this._name) {
_root.sound_dx1.stop();
_root.sound_dx1.attachSound((("s_" + type) + "_hit_") + temp);
_root.sound_dx1.start(0.03, 0);
setSpeechVol(_root.sound_dx1, 1);
} else if (_root.s_dx2_name == this._name) {
_root.sound_dx2.stop();
_root.sound_dx2.attachSound((("s_" + type) + "_hit_") + temp);
_root.sound_dx2.start(0.03, 0);
setSpeechVol(_root.sound_dx2, 1);
} else if ((_root.s_dx1_name == "") && (_root.s_dx2_name == "")) {
_root.s_dx2_name = this._name;
_root.sound_dx2.attachSound((("s_" + type) + "_hit_") + temp);
_root.sound_dx2.start(0.03, 0);
setSpeechVol(_root.sound_dx2, 1);
}
}
if (hitTime > 0) {
hitTime--;
if ((hitTime % 5) > 2) {
colorT.redOffset = 90;
colorT.redMultiplier = 0.65;
colorT.greenMultiplier = 0.65;
colorT.blueMultiplier = 0.65;
trans.colorTransform = colorT;
} else {
colorT.redOffset = 0;
colorT.redMultiplier = 1;
colorT.greenMultiplier = 1;
colorT.blueMultiplier = 1;
trans.colorTransform = colorT;
}
}
return(_local5);
}
function poof() {
if (phase == "popup") {
_root.spawnFX("poof", this._x, this._y - (4 * this._xscale), this._xscale, this);
} else {
_root.spawnFX("poof", this._x, this._y - this._xscale, this._xscale, this);
}
this.removeMovieClip();
}
function scale() {
this._xscale = ((this._y * this._y) / 1536) * dir;
this._yscale = Math.abs(this._xscale);
if (phase == "walk_in") {
xVel = (xVelH * this._xscale) / 100;
}
}
function setSpeechVol(obj, mult) {
var _local2 = (((this._y - 227) / 2.65) * 0.7) + 30;
_local2 = _local2 * mult;
if (_local2 > 70) {
_local2 = 70;
} else if (_local2 < 30) {
_local2 = 30;
}
obj.setVolume(_local2);
}
function spawnBall() {
_root.ballNum++;
if (_root.ballNum > 4) {
_root.ballNum = 1;
}
temp = _parent.attachMovie("paperball", "noswap_ball" + _root.ballNum, _root.ballDepth + _root.ballNum);
temp._x = this._x;
if (sideSlot < 2) {
temp._y = this._y - 160;
if (type == "facebook") {
temp._y = this._y - 180;
} else if (type == "secondlife") {
temp._y = this._y - 150;
}
temp.scaleMult = 1.13;
} else {
temp._y = this._y - 246;
if (type == "facebook") {
temp._y = this._y - 266;
} else if (type == "secondlife") {
temp._y = this._y - 236;
}
temp.scaleMult = 1.11;
}
temp._xscale = (this._y * this._y) / 2048;
temp._yscale = temp._xscale;
if ((sideSlot == 0) || (sideSlot == 2)) {
temp.xVel = 2;
} else {
temp.xVel = -2;
}
}
function spawnMouth(soundName) {
if (type != "secondlife") {
_root.mouthNum++;
if (_root.mouthNum > 10) {
_root.mouthNum = 1;
}
temp = _parent.mcMouths.attachMovie("mouth_" + type, "mcMouth" + _root.mouthNum, _root.mouthDepth + _root.mouthNum);
mouthName = "mcMouth" + _root.mouthNum;
temp.gotoAndPlay(soundName);
}
}
function speak() {
if ((random(1000) < 15) && (_root.s_dx2_name != this._name)) {
if (_root.s_dx1_name == "") {
_root.s_dx1_name = this._name;
if (((type == "facebook") || (type == "friendster")) || (type == "myspace")) {
var _local3 = random(6) + 1;
} else if (type == "secondlife") {
var _local3 = random(4) + 1;
}
_root.sound_dx1.attachSound((("s_" + type) + "_taunt_") + _local3);
_root.sound_dx1.start(0, 0);
setSpeechVol(_root.sound_dx1, 1);
spawnMouth("taunt" + _local3);
}
} else if (((random(100) < 1) && (_root.s_dx1_name != this._name)) && (type != "secondlife")) {
if (_root.s_dx2_name == "") {
_root.s_dx2_name = this._name;
var _local3 = random(2) + 1;
_root.sound_dx2.attachSound((("s_" + type) + "_taunt_short_") + _local3);
_root.sound_dx2.start(0, 0);
if (_root.s_dx1_name == "") {
setSpeechVol(_root.sound_dx2, 1);
} else {
setSpeechVol(_root.sound_dx2, 0.5);
}
spawnMouth("taunt_short" + _local3);
}
}
}
function stopSpeech() {
if (_root.s_dx1_name == this._name) {
sound_dx1.stop();
s_dx1_name = "";
} else if (_root.s_dx2_name == this._name) {
sound_dx2.stop();
s_dx2_name = "";
}
}
function tagHit(num) {
if ((this._y > _root.hitArray[num]._y) || (_root.hitArray[num] == null)) {
_root.hitArray[num] = this;
}
}
function special_walkdown() {
if (walkPhase == 1) {
this.gotoAndStop("idleToWalk");
walkPhase = 2;
phaseCount = 9;
} else if (walkPhase == 2) {
if ((mc._currentframe > 13) && (mc._currentframe < 23)) {
yVel = ((2 * this._y) * this._y) / 68000;
this._x = this._x + xVel;
this._y = this._y + yVel;
if (this._y >= _root.deskBound) {
this._y = _root.deskBound;
}
this._xscale = ((this._y * this._y) / 1536) * flipNum;
this._yscale = Math.abs(this._xscale);
} else if (phaseCount <= 0) {
if (this._y >= _root.deskBound) {
walkPhase = 3;
phaseCount = 27;
this.gotoAndStop("jump");
flipNum = -flipNum;
this._xscale = Math.abs(this._xscale) * flipNum;
xVel = ((Math.random() * 2) + 1) * flipNum;
} else {
phaseCount = 33;
this.gotoAndStop("walk");
mc.gotoAndPlay(1);
mcHit.gotoAndPlay(1);
flipNum = -flipNum;
this._xscale = Math.abs(this._xscale) * flipNum;
xVel = ((Math.random() * 2) + 1) * flipNum;
}
}
checkHit();
} else if (walkPhase == 3) {
if ((mc._currentframe > 13) && (mc._currentframe < 23)) {
if (mc._currentframe == 19) {
name_num = int(this._name.substr(this._name.indexOf("_") + 1));
this._name = "noswap_" + this._name;
if (deskY < _root.deskSlots) {
this.swapDepths((_root.bgDeskDepth + _root.deskArray[deskY][0]) + 70);
} else {
this.swapDepths(_root.bgDeskDepth + deskY);
}
} else if (mc._currentframe == 14) {
temp = 0;
while (temp < _root.deskSlots) {
if (_root.deskArray[temp][1] == null) {
_root.deskArray[temp][1] = this._name;
break;
}
temp++;
}
if (temp < _root.deskSlots) {
deskY = temp;
this._y = (_root.deskBound + _root.deskArray[temp][0]) + 70;
} else {
this._y = _root.deskBound + deskY;
}
}
this._xscale = Math.abs(this._xscale * 1.04) * flipNum;
this._yscale = Math.abs(this._xscale);
}
checkHit();
if (phaseCount <= 0) {
walkPhase = 4;
this.gotoAndStop("annoy");
}
} else if (walkPhase == 4) {
checkHit();
if ((phaseCount % 6) == 0) {
if (_root.p1Damage > _root.p1DamageMax) {
_root.updateHP(-1);
}
}
}
}
stop();
hp = 80;
xVel = 0;
xVelH = 6.5;
yVel = 0;
yBound = random(20);
xBoundL = 300 + random(64);
xBoundR = 430 - random(60);
hitBP = 0;
midXdist = 0;
frontToBackRatio = 3;
dir = 1;
if (spawnHold > 0) {
this._visible = false;
}
mouthName = "";
if (phase == "idle") {
phaseCount = 0;
bPopup = false;
} else {
phase = "popup";
bPopup = true;
bNew = true;
this.gotoAndStop("popup");
sideSlot = random(4);
var i = 0;
while (i < 4) {
if (_root.sideArray[sideSlot] == null) {
_root.sideArray[sideSlot] = this._name;
if (sideSlot == 0) {
this._x = 210;
this._y = 251;
} else if (sideSlot == 1) {
this._x = 520;
this._y = 251;
} else if (sideSlot == 2) {
this._x = 120;
this._y = 305;
} else if (sideSlot == 3) {
this._x = 610;
this._y = 305;
}
break;
}
sideSlot++;
if (sideSlot > 3) {
sideSlot = 0;
}
i++;
}
phaseCount = 70;
if (spawnHold > 0) {
phaseCount = 69;
}
popupPause = 17;
if (i >= 4) {
phase = "idle";
phaseCount = 0;
bPopup = false;
this.gotoAndStop("idle");
}
scale();
}
hitTime = 0;
hitLength = 6;
var colorT = (new flash.geom.ColorTransform());
var trans = (new flash.geom.Transform(this));
trans.colorTransform = colorT;
this.onEnterFrame = function () {
if (_root.bReset) {
this.removeMovieClip();
} else if (_root.bFired || (_root.bWin)) {
poof();
}
if (!_global.bPaused) {
this.mc.play();
spawnHold--;
if (spawnHold == 1) {
this._visible = true;
this.mc.gotoAndPlay(1);
} else if (spawnHold <= 0) {
phaseCount--;
switch (phase) {
case "idle" :
if ((phaseCount <= 0) && (random(100) < 3)) {
phase = "walk_in";
this.gotoAndStop("walkSide");
if (this._x > 300) {
this.gotoAndStop("walkSideFlip");
dir = -1;
}
}
checkHit();
scale();
break;
case "walk_in" :
if (this._x < xBoundL) {
xVel = Math.abs(xVel);
} else if (this._x > xBoundR) {
xVel = -Math.abs(xVel);
} else {
if (dir < 0) {
this._x = xBoundR;
} else {
this._x = xBoundL;
}
xVel = 0;
phase = "wait";
phaseCount = 0;
midXdist = (this._x - (Stage.width / 2)) / (((this._y - _root.baseY) / _root.baseY) + 1);
this.gotoAndStop("idle");
dir = 1;
this._xscale = Math.abs(this._xscale);
}
this._x = this._x + xVel;
checkHit();
break;
case "wait" :
speak();
if ((phaseCount <= 0) && (random(100) < 10)) {
phase = "walk_down";
this.gotoAndStop("idleToWalk");
}
checkHit();
break;
case "walk_down" :
speak();
if (special_walkdown != undefined) {
special_walkdown();
} else {
this.gotoAndStop("walk");
if (this._y >= (_root.deskBound - yBound)) {
this._y = _root.deskBound - yBound;
xVel = 0;
yVel = 0;
phase = "annoy";
this.gotoAndStop("annoy");
} else {
yVel = (this._y * this._y) / 68000;
this._y = this._y + yVel;
this._x = ((((this._y - _root.baseY) / _root.baseY) + 1) * midXdist) + (Stage.width / 2);
}
scale();
checkHit();
}
break;
case "annoy" :
speak();
if (!checkHit()) {
if ((phaseCount % 7) == 0) {
if (_root.p1Damage > _root.p1DamageMax) {
_root.updateHP(-1);
}
}
}
break;
case "popup" :
speak();
checkHit();
if (phaseCount == 21) {
if (!bNew) {
this.mc.gotoAndPlay("throw");
}
bNew = false;
} else if (phaseCount <= 0) {
phaseCount = 30 + popupPause;
spawnBall();
}
break;
case "die" :
if (bPopup) {
this.gotoAndStop("diePopup");
} else if ((type == "friendster") && (walkPhase >= 3)) {
this.gotoAndStop("dieDesk");
} else if ((type == "secondlife") && (walkPhase >= 3)) {
temp = this.mc._currentframe;
this.gotoAndStop("die2");
this.mc.gotoAndStop(temp);
} else {
this.gotoAndStop("die");
}
if (phaseCount <= 0) {
_root.enemyCount--;
if (bPopup) {
_root.sideArray[sideSlot] = null;
}
this.removeMovieClip();
}
break;
case "disappear" :
}
}
if (_root.bFired && (phase != "disappear")) {
phase = "disappear";
stopSpeech();
}
} else {
this.mc.stop();
}
};
hp = 30;
hopX = 30;
hopY = 30;
walkPhase = 1;
flipNum = -1;
name_num = 0;
deskY = random(50) + _root.deskSlots;
type = "friendster";
Symbol 411 MovieClip [mouth_facebook] Frame 1
function end() {
if (this._name.substr(0, 7) == "mcMouth") {
this.removeMovieClip();
}
gotoAndStop ("idle");
}
if (this._name.substr(0, 7) == "mcMouth") {
}
this.onEnterFrame = function () {
if (this._name.substr(0, 7) != "mcMouth") {
if (_root.mcMain.mcMouths[_parent._parent._parent.mouthName] != undefined) {
this.gotoAndStop(_root.mcMain.mcMouths[_parent._parent._parent.mouthName]._currentframe);
} else {
this.gotoAndStop("idle");
}
}
};
Symbol 411 MovieClip [mouth_facebook] Frame 61
end();
Symbol 411 MovieClip [mouth_facebook] Frame 62
end();
Symbol 411 MovieClip [mouth_facebook] Frame 120
end();
Symbol 411 MovieClip [mouth_facebook] Frame 121
end();
Symbol 411 MovieClip [mouth_facebook] Frame 209
end();
Symbol 411 MovieClip [mouth_facebook] Frame 210
end();
Symbol 411 MovieClip [mouth_facebook] Frame 286
end();
Symbol 411 MovieClip [mouth_facebook] Frame 287
end();
Symbol 411 MovieClip [mouth_facebook] Frame 335
end();
Symbol 411 MovieClip [mouth_facebook] Frame 336
end();
Symbol 411 MovieClip [mouth_facebook] Frame 413
end();
Symbol 411 MovieClip [mouth_facebook] Frame 414
end();
Symbol 411 MovieClip [mouth_facebook] Frame 436
end();
Symbol 411 MovieClip [mouth_facebook] Frame 437
end();
Symbol 411 MovieClip [mouth_facebook] Frame 489
end();
Symbol 411 MovieClip [mouth_facebook] Frame 490
end();
Symbol 439 MovieClip Frame 82
gotoAndPlay ("pause");
Symbol 439 MovieClip Frame 89
gotoAndPlay ("loop");
Symbol 444 MovieClip [enemy_facebook] Frame 1
function checkHit() {
var _local5 = false;
if (hitBP <= 0) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if ((_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) && (this.mc.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y < _parent.bgRow1._y) && (_parent.bgRow1.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow2._y) && (_parent.bgRow2.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow3._y) && (_parent.bgRow3.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow4._y) && (_parent.bgRow4.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow5._y) && (_parent.bgRow5.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else {
tagHit(_local4);
_local5 = true;
}
break;
}
_local4++;
}
} else {
hp = hp + (-hitBP);
if (hitTime <= 0) {
hitTime = hitLength;
}
hitBP = 0;
if (type == "friendster") {
var _local4 = 0;
while (_local4 < _root.deskSlots) {
if (_root.deskArray[_local4][1] == this._name) {
_root.deskArray[_local4][1] = null;
break;
}
_local4++;
}
}
}
if (hp <= 0) {
phase = "die";
phaseCount = 12;
_root.updateHP(2);
_root.kills++;
temp = 200;
if (bPopup) {
temp = 440;
}
_root.popupEnemyKilled(this._x, this._y - (temp * (this._yscale / 100)), 100);
stopSpeech();
if ((type == "facebook") || (type == "secondlife")) {
temp = 1;
} else if (type == "myspace") {
temp = random(2) + 1;
} else if (type == "friendster") {
temp = random(3) + 1;
}
if (_root.s_dx1_name == this._name) {
_root.sound_dx1.stop();
_root.sound_dx1.attachSound((("s_" + type) + "_hit_") + temp);
_root.sound_dx1.start(0.03, 0);
setSpeechVol(_root.sound_dx1, 1);
} else if (_root.s_dx2_name == this._name) {
_root.sound_dx2.stop();
_root.sound_dx2.attachSound((("s_" + type) + "_hit_") + temp);
_root.sound_dx2.start(0.03, 0);
setSpeechVol(_root.sound_dx2, 1);
} else if ((_root.s_dx1_name == "") && (_root.s_dx2_name == "")) {
_root.s_dx2_name = this._name;
_root.sound_dx2.attachSound((("s_" + type) + "_hit_") + temp);
_root.sound_dx2.start(0.03, 0);
setSpeechVol(_root.sound_dx2, 1);
}
}
if (hitTime > 0) {
hitTime--;
if ((hitTime % 5) > 2) {
colorT.redOffset = 90;
colorT.redMultiplier = 0.65;
colorT.greenMultiplier = 0.65;
colorT.blueMultiplier = 0.65;
trans.colorTransform = colorT;
} else {
colorT.redOffset = 0;
colorT.redMultiplier = 1;
colorT.greenMultiplier = 1;
colorT.blueMultiplier = 1;
trans.colorTransform = colorT;
}
}
return(_local5);
}
function poof() {
if (phase == "popup") {
_root.spawnFX("poof", this._x, this._y - (4 * this._xscale), this._xscale, this);
} else {
_root.spawnFX("poof", this._x, this._y - this._xscale, this._xscale, this);
}
this.removeMovieClip();
}
function scale() {
this._xscale = ((this._y * this._y) / 1536) * dir;
this._yscale = Math.abs(this._xscale);
if (phase == "walk_in") {
xVel = (xVelH * this._xscale) / 100;
}
}
function setSpeechVol(obj, mult) {
var _local2 = (((this._y - 227) / 2.65) * 0.7) + 30;
_local2 = _local2 * mult;
if (_local2 > 70) {
_local2 = 70;
} else if (_local2 < 30) {
_local2 = 30;
}
obj.setVolume(_local2);
}
function spawnBall() {
_root.ballNum++;
if (_root.ballNum > 4) {
_root.ballNum = 1;
}
temp = _parent.attachMovie("paperball", "noswap_ball" + _root.ballNum, _root.ballDepth + _root.ballNum);
temp._x = this._x;
if (sideSlot < 2) {
temp._y = this._y - 160;
if (type == "facebook") {
temp._y = this._y - 180;
} else if (type == "secondlife") {
temp._y = this._y - 150;
}
temp.scaleMult = 1.13;
} else {
temp._y = this._y - 246;
if (type == "facebook") {
temp._y = this._y - 266;
} else if (type == "secondlife") {
temp._y = this._y - 236;
}
temp.scaleMult = 1.11;
}
temp._xscale = (this._y * this._y) / 2048;
temp._yscale = temp._xscale;
if ((sideSlot == 0) || (sideSlot == 2)) {
temp.xVel = 2;
} else {
temp.xVel = -2;
}
}
function spawnMouth(soundName) {
if (type != "secondlife") {
_root.mouthNum++;
if (_root.mouthNum > 10) {
_root.mouthNum = 1;
}
temp = _parent.mcMouths.attachMovie("mouth_" + type, "mcMouth" + _root.mouthNum, _root.mouthDepth + _root.mouthNum);
mouthName = "mcMouth" + _root.mouthNum;
temp.gotoAndPlay(soundName);
}
}
function speak() {
if ((random(1000) < 15) && (_root.s_dx2_name != this._name)) {
if (_root.s_dx1_name == "") {
_root.s_dx1_name = this._name;
if (((type == "facebook") || (type == "friendster")) || (type == "myspace")) {
var _local3 = random(6) + 1;
} else if (type == "secondlife") {
var _local3 = random(4) + 1;
}
_root.sound_dx1.attachSound((("s_" + type) + "_taunt_") + _local3);
_root.sound_dx1.start(0, 0);
setSpeechVol(_root.sound_dx1, 1);
spawnMouth("taunt" + _local3);
}
} else if (((random(100) < 1) && (_root.s_dx1_name != this._name)) && (type != "secondlife")) {
if (_root.s_dx2_name == "") {
_root.s_dx2_name = this._name;
var _local3 = random(2) + 1;
_root.sound_dx2.attachSound((("s_" + type) + "_taunt_short_") + _local3);
_root.sound_dx2.start(0, 0);
if (_root.s_dx1_name == "") {
setSpeechVol(_root.sound_dx2, 1);
} else {
setSpeechVol(_root.sound_dx2, 0.5);
}
spawnMouth("taunt_short" + _local3);
}
}
}
function stopSpeech() {
if (_root.s_dx1_name == this._name) {
sound_dx1.stop();
s_dx1_name = "";
} else if (_root.s_dx2_name == this._name) {
sound_dx2.stop();
s_dx2_name = "";
}
}
function tagHit(num) {
if ((this._y > _root.hitArray[num]._y) || (_root.hitArray[num] == null)) {
_root.hitArray[num] = this;
}
}
stop();
hp = 80;
xVel = 0;
xVelH = 6.5;
yVel = 0;
yBound = random(20);
xBoundL = 300 + random(64);
xBoundR = 430 - random(60);
hitBP = 0;
midXdist = 0;
frontToBackRatio = 3;
dir = 1;
if (spawnHold > 0) {
this._visible = false;
}
mouthName = "";
if (phase == "idle") {
phaseCount = 0;
bPopup = false;
} else {
phase = "popup";
bPopup = true;
bNew = true;
this.gotoAndStop("popup");
sideSlot = random(4);
var i = 0;
while (i < 4) {
if (_root.sideArray[sideSlot] == null) {
_root.sideArray[sideSlot] = this._name;
if (sideSlot == 0) {
this._x = 210;
this._y = 251;
} else if (sideSlot == 1) {
this._x = 520;
this._y = 251;
} else if (sideSlot == 2) {
this._x = 120;
this._y = 305;
} else if (sideSlot == 3) {
this._x = 610;
this._y = 305;
}
break;
}
sideSlot++;
if (sideSlot > 3) {
sideSlot = 0;
}
i++;
}
phaseCount = 70;
if (spawnHold > 0) {
phaseCount = 69;
}
popupPause = 17;
if (i >= 4) {
phase = "idle";
phaseCount = 0;
bPopup = false;
this.gotoAndStop("idle");
}
scale();
}
hitTime = 0;
hitLength = 6;
var colorT = (new flash.geom.ColorTransform());
var trans = (new flash.geom.Transform(this));
trans.colorTransform = colorT;
this.onEnterFrame = function () {
if (_root.bReset) {
this.removeMovieClip();
} else if (_root.bFired || (_root.bWin)) {
poof();
}
if (!_global.bPaused) {
this.mc.play();
spawnHold--;
if (spawnHold == 1) {
this._visible = true;
this.mc.gotoAndPlay(1);
} else if (spawnHold <= 0) {
phaseCount--;
switch (phase) {
case "idle" :
if ((phaseCount <= 0) && (random(100) < 3)) {
phase = "walk_in";
this.gotoAndStop("walkSide");
if (this._x > 300) {
this.gotoAndStop("walkSideFlip");
dir = -1;
}
}
checkHit();
scale();
break;
case "walk_in" :
if (this._x < xBoundL) {
xVel = Math.abs(xVel);
} else if (this._x > xBoundR) {
xVel = -Math.abs(xVel);
} else {
if (dir < 0) {
this._x = xBoundR;
} else {
this._x = xBoundL;
}
xVel = 0;
phase = "wait";
phaseCount = 0;
midXdist = (this._x - (Stage.width / 2)) / (((this._y - _root.baseY) / _root.baseY) + 1);
this.gotoAndStop("idle");
dir = 1;
this._xscale = Math.abs(this._xscale);
}
this._x = this._x + xVel;
checkHit();
break;
case "wait" :
speak();
if ((phaseCount <= 0) && (random(100) < 10)) {
phase = "walk_down";
this.gotoAndStop("idleToWalk");
}
checkHit();
break;
case "walk_down" :
speak();
if (special_walkdown != undefined) {
special_walkdown();
} else {
this.gotoAndStop("walk");
if (this._y >= (_root.deskBound - yBound)) {
this._y = _root.deskBound - yBound;
xVel = 0;
yVel = 0;
phase = "annoy";
this.gotoAndStop("annoy");
} else {
yVel = (this._y * this._y) / 68000;
this._y = this._y + yVel;
this._x = ((((this._y - _root.baseY) / _root.baseY) + 1) * midXdist) + (Stage.width / 2);
}
scale();
checkHit();
}
break;
case "annoy" :
speak();
if (!checkHit()) {
if ((phaseCount % 7) == 0) {
if (_root.p1Damage > _root.p1DamageMax) {
_root.updateHP(-1);
}
}
}
break;
case "popup" :
speak();
checkHit();
if (phaseCount == 21) {
if (!bNew) {
this.mc.gotoAndPlay("throw");
}
bNew = false;
} else if (phaseCount <= 0) {
phaseCount = 30 + popupPause;
spawnBall();
}
break;
case "die" :
if (bPopup) {
this.gotoAndStop("diePopup");
} else if ((type == "friendster") && (walkPhase >= 3)) {
this.gotoAndStop("dieDesk");
} else if ((type == "secondlife") && (walkPhase >= 3)) {
temp = this.mc._currentframe;
this.gotoAndStop("die2");
this.mc.gotoAndStop(temp);
} else {
this.gotoAndStop("die");
}
if (phaseCount <= 0) {
_root.enemyCount--;
if (bPopup) {
_root.sideArray[sideSlot] = null;
}
this.removeMovieClip();
}
break;
case "disappear" :
}
}
if (_root.bFired && (phase != "disappear")) {
phase = "disappear";
stopSpeech();
}
} else {
this.mc.stop();
}
};
hp = 30;
type = "facebook";
Symbol 459 MovieClip [mouth_myspace] Frame 1
function end() {
if (this._name.substr(0, 7) == "mcMouth") {
this.removeMovieClip();
}
gotoAndStop ("idle");
}
if (this._name.substr(0, 7) == "mcMouth") {
}
this.onEnterFrame = function () {
if (this._name.substr(0, 7) != "mcMouth") {
if (_root.mcMain.mcMouths[_parent._parent._parent.mouthName] != undefined) {
this.gotoAndStop(_root.mcMain.mcMouths[_parent._parent._parent.mouthName]._currentframe);
} else {
this.gotoAndStop("idle");
}
}
};
Symbol 459 MovieClip [mouth_myspace] Frame 59
end();
Symbol 459 MovieClip [mouth_myspace] Frame 60
end();
Symbol 459 MovieClip [mouth_myspace] Frame 110
end();
Symbol 459 MovieClip [mouth_myspace] Frame 111
end();
Symbol 459 MovieClip [mouth_myspace] Frame 196
end();
Symbol 459 MovieClip [mouth_myspace] Frame 197
end();
Symbol 459 MovieClip [mouth_myspace] Frame 297
end();
Symbol 459 MovieClip [mouth_myspace] Frame 298
end();
Symbol 459 MovieClip [mouth_myspace] Frame 380
end();
Symbol 459 MovieClip [mouth_myspace] Frame 381
end();
Symbol 459 MovieClip [mouth_myspace] Frame 477
end();
Symbol 459 MovieClip [mouth_myspace] Frame 478
end();
Symbol 459 MovieClip [mouth_myspace] Frame 532
end();
Symbol 459 MovieClip [mouth_myspace] Frame 533
end();
Symbol 459 MovieClip [mouth_myspace] Frame 596
end();
Symbol 459 MovieClip [mouth_myspace] Frame 597
end();
Symbol 499 MovieClip Frame 82
gotoAndPlay ("pause");
Symbol 499 MovieClip Frame 89
gotoAndPlay ("loop");
Symbol 509 MovieClip [enemy_myspace] Frame 1
function checkHit() {
var _local5 = false;
if (hitBP <= 0) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if ((_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) && (this.mc.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y < _parent.bgRow1._y) && (_parent.bgRow1.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow2._y) && (_parent.bgRow2.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow3._y) && (_parent.bgRow3.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow4._y) && (_parent.bgRow4.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow5._y) && (_parent.bgRow5.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else {
tagHit(_local4);
_local5 = true;
}
break;
}
_local4++;
}
} else {
hp = hp + (-hitBP);
if (hitTime <= 0) {
hitTime = hitLength;
}
hitBP = 0;
if (type == "friendster") {
var _local4 = 0;
while (_local4 < _root.deskSlots) {
if (_root.deskArray[_local4][1] == this._name) {
_root.deskArray[_local4][1] = null;
break;
}
_local4++;
}
}
}
if (hp <= 0) {
phase = "die";
phaseCount = 12;
_root.updateHP(2);
_root.kills++;
temp = 200;
if (bPopup) {
temp = 440;
}
_root.popupEnemyKilled(this._x, this._y - (temp * (this._yscale / 100)), 100);
stopSpeech();
if ((type == "facebook") || (type == "secondlife")) {
temp = 1;
} else if (type == "myspace") {
temp = random(2) + 1;
} else if (type == "friendster") {
temp = random(3) + 1;
}
if (_root.s_dx1_name == this._name) {
_root.sound_dx1.stop();
_root.sound_dx1.attachSound((("s_" + type) + "_hit_") + temp);
_root.sound_dx1.start(0.03, 0);
setSpeechVol(_root.sound_dx1, 1);
} else if (_root.s_dx2_name == this._name) {
_root.sound_dx2.stop();
_root.sound_dx2.attachSound((("s_" + type) + "_hit_") + temp);
_root.sound_dx2.start(0.03, 0);
setSpeechVol(_root.sound_dx2, 1);
} else if ((_root.s_dx1_name == "") && (_root.s_dx2_name == "")) {
_root.s_dx2_name = this._name;
_root.sound_dx2.attachSound((("s_" + type) + "_hit_") + temp);
_root.sound_dx2.start(0.03, 0);
setSpeechVol(_root.sound_dx2, 1);
}
}
if (hitTime > 0) {
hitTime--;
if ((hitTime % 5) > 2) {
colorT.redOffset = 90;
colorT.redMultiplier = 0.65;
colorT.greenMultiplier = 0.65;
colorT.blueMultiplier = 0.65;
trans.colorTransform = colorT;
} else {
colorT.redOffset = 0;
colorT.redMultiplier = 1;
colorT.greenMultiplier = 1;
colorT.blueMultiplier = 1;
trans.colorTransform = colorT;
}
}
return(_local5);
}
function poof() {
if (phase == "popup") {
_root.spawnFX("poof", this._x, this._y - (4 * this._xscale), this._xscale, this);
} else {
_root.spawnFX("poof", this._x, this._y - this._xscale, this._xscale, this);
}
this.removeMovieClip();
}
function scale() {
this._xscale = ((this._y * this._y) / 1536) * dir;
this._yscale = Math.abs(this._xscale);
if (phase == "walk_in") {
xVel = (xVelH * this._xscale) / 100;
}
}
function setSpeechVol(obj, mult) {
var _local2 = (((this._y - 227) / 2.65) * 0.7) + 30;
_local2 = _local2 * mult;
if (_local2 > 70) {
_local2 = 70;
} else if (_local2 < 30) {
_local2 = 30;
}
obj.setVolume(_local2);
}
function spawnBall() {
_root.ballNum++;
if (_root.ballNum > 4) {
_root.ballNum = 1;
}
temp = _parent.attachMovie("paperball", "noswap_ball" + _root.ballNum, _root.ballDepth + _root.ballNum);
temp._x = this._x;
if (sideSlot < 2) {
temp._y = this._y - 160;
if (type == "facebook") {
temp._y = this._y - 180;
} else if (type == "secondlife") {
temp._y = this._y - 150;
}
temp.scaleMult = 1.13;
} else {
temp._y = this._y - 246;
if (type == "facebook") {
temp._y = this._y - 266;
} else if (type == "secondlife") {
temp._y = this._y - 236;
}
temp.scaleMult = 1.11;
}
temp._xscale = (this._y * this._y) / 2048;
temp._yscale = temp._xscale;
if ((sideSlot == 0) || (sideSlot == 2)) {
temp.xVel = 2;
} else {
temp.xVel = -2;
}
}
function spawnMouth(soundName) {
if (type != "secondlife") {
_root.mouthNum++;
if (_root.mouthNum > 10) {
_root.mouthNum = 1;
}
temp = _parent.mcMouths.attachMovie("mouth_" + type, "mcMouth" + _root.mouthNum, _root.mouthDepth + _root.mouthNum);
mouthName = "mcMouth" + _root.mouthNum;
temp.gotoAndPlay(soundName);
}
}
function speak() {
if ((random(1000) < 15) && (_root.s_dx2_name != this._name)) {
if (_root.s_dx1_name == "") {
_root.s_dx1_name = this._name;
if (((type == "facebook") || (type == "friendster")) || (type == "myspace")) {
var _local3 = random(6) + 1;
} else if (type == "secondlife") {
var _local3 = random(4) + 1;
}
_root.sound_dx1.attachSound((("s_" + type) + "_taunt_") + _local3);
_root.sound_dx1.start(0, 0);
setSpeechVol(_root.sound_dx1, 1);
spawnMouth("taunt" + _local3);
}
} else if (((random(100) < 1) && (_root.s_dx1_name != this._name)) && (type != "secondlife")) {
if (_root.s_dx2_name == "") {
_root.s_dx2_name = this._name;
var _local3 = random(2) + 1;
_root.sound_dx2.attachSound((("s_" + type) + "_taunt_short_") + _local3);
_root.sound_dx2.start(0, 0);
if (_root.s_dx1_name == "") {
setSpeechVol(_root.sound_dx2, 1);
} else {
setSpeechVol(_root.sound_dx2, 0.5);
}
spawnMouth("taunt_short" + _local3);
}
}
}
function stopSpeech() {
if (_root.s_dx1_name == this._name) {
sound_dx1.stop();
s_dx1_name = "";
} else if (_root.s_dx2_name == this._name) {
sound_dx2.stop();
s_dx2_name = "";
}
}
function tagHit(num) {
if ((this._y > _root.hitArray[num]._y) || (_root.hitArray[num] == null)) {
_root.hitArray[num] = this;
}
}
stop();
hp = 80;
xVel = 0;
xVelH = 6.5;
yVel = 0;
yBound = random(20);
xBoundL = 300 + random(64);
xBoundR = 430 - random(60);
hitBP = 0;
midXdist = 0;
frontToBackRatio = 3;
dir = 1;
if (spawnHold > 0) {
this._visible = false;
}
mouthName = "";
if (phase == "idle") {
phaseCount = 0;
bPopup = false;
} else {
phase = "popup";
bPopup = true;
bNew = true;
this.gotoAndStop("popup");
sideSlot = random(4);
var i = 0;
while (i < 4) {
if (_root.sideArray[sideSlot] == null) {
_root.sideArray[sideSlot] = this._name;
if (sideSlot == 0) {
this._x = 210;
this._y = 251;
} else if (sideSlot == 1) {
this._x = 520;
this._y = 251;
} else if (sideSlot == 2) {
this._x = 120;
this._y = 305;
} else if (sideSlot == 3) {
this._x = 610;
this._y = 305;
}
break;
}
sideSlot++;
if (sideSlot > 3) {
sideSlot = 0;
}
i++;
}
phaseCount = 70;
if (spawnHold > 0) {
phaseCount = 69;
}
popupPause = 17;
if (i >= 4) {
phase = "idle";
phaseCount = 0;
bPopup = false;
this.gotoAndStop("idle");
}
scale();
}
hitTime = 0;
hitLength = 6;
var colorT = (new flash.geom.ColorTransform());
var trans = (new flash.geom.Transform(this));
trans.colorTransform = colorT;
this.onEnterFrame = function () {
if (_root.bReset) {
this.removeMovieClip();
} else if (_root.bFired || (_root.bWin)) {
poof();
}
if (!_global.bPaused) {
this.mc.play();
spawnHold--;
if (spawnHold == 1) {
this._visible = true;
this.mc.gotoAndPlay(1);
} else if (spawnHold <= 0) {
phaseCount--;
switch (phase) {
case "idle" :
if ((phaseCount <= 0) && (random(100) < 3)) {
phase = "walk_in";
this.gotoAndStop("walkSide");
if (this._x > 300) {
this.gotoAndStop("walkSideFlip");
dir = -1;
}
}
checkHit();
scale();
break;
case "walk_in" :
if (this._x < xBoundL) {
xVel = Math.abs(xVel);
} else if (this._x > xBoundR) {
xVel = -Math.abs(xVel);
} else {
if (dir < 0) {
this._x = xBoundR;
} else {
this._x = xBoundL;
}
xVel = 0;
phase = "wait";
phaseCount = 0;
midXdist = (this._x - (Stage.width / 2)) / (((this._y - _root.baseY) / _root.baseY) + 1);
this.gotoAndStop("idle");
dir = 1;
this._xscale = Math.abs(this._xscale);
}
this._x = this._x + xVel;
checkHit();
break;
case "wait" :
speak();
if ((phaseCount <= 0) && (random(100) < 10)) {
phase = "walk_down";
this.gotoAndStop("idleToWalk");
}
checkHit();
break;
case "walk_down" :
speak();
if (special_walkdown != undefined) {
special_walkdown();
} else {
this.gotoAndStop("walk");
if (this._y >= (_root.deskBound - yBound)) {
this._y = _root.deskBound - yBound;
xVel = 0;
yVel = 0;
phase = "annoy";
this.gotoAndStop("annoy");
} else {
yVel = (this._y * this._y) / 68000;
this._y = this._y + yVel;
this._x = ((((this._y - _root.baseY) / _root.baseY) + 1) * midXdist) + (Stage.width / 2);
}
scale();
checkHit();
}
break;
case "annoy" :
speak();
if (!checkHit()) {
if ((phaseCount % 7) == 0) {
if (_root.p1Damage > _root.p1DamageMax) {
_root.updateHP(-1);
}
}
}
break;
case "popup" :
speak();
checkHit();
if (phaseCount == 21) {
if (!bNew) {
this.mc.gotoAndPlay("throw");
}
bNew = false;
} else if (phaseCount <= 0) {
phaseCount = 30 + popupPause;
spawnBall();
}
break;
case "die" :
if (bPopup) {
this.gotoAndStop("diePopup");
} else if ((type == "friendster") && (walkPhase >= 3)) {
this.gotoAndStop("dieDesk");
} else if ((type == "secondlife") && (walkPhase >= 3)) {
temp = this.mc._currentframe;
this.gotoAndStop("die2");
this.mc.gotoAndStop(temp);
} else {
this.gotoAndStop("die");
}
if (phaseCount <= 0) {
_root.enemyCount--;
if (bPopup) {
_root.sideArray[sideSlot] = null;
}
this.removeMovieClip();
}
break;
case "disappear" :
}
}
if (_root.bFired && (phase != "disappear")) {
phase = "disappear";
stopSpeech();
}
} else {
this.mc.stop();
}
};
hp = 30;
type = "myspace";
Symbol 527 MovieClip Frame 60
stop();
Symbol 531 MovieClip Frame 80
gotoAndPlay ("pause");
Symbol 531 MovieClip Frame 87
gotoAndPlay ("loop");
Symbol 535 MovieClip Frame 15
stop();
Symbol 536 MovieClip Frame 52
stop();
Symbol 538 MovieClip [enemy_secondlife] Frame 1
function checkHit() {
var _local5 = false;
if (hitBP <= 0) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if ((_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) && (this.mc.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y < _parent.bgRow1._y) && (_parent.bgRow1.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow2._y) && (_parent.bgRow2.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow3._y) && (_parent.bgRow3.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow4._y) && (_parent.bgRow4.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow5._y) && (_parent.bgRow5.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else {
tagHit(_local4);
_local5 = true;
}
break;
}
_local4++;
}
} else {
hp = hp + (-hitBP);
if (hitTime <= 0) {
hitTime = hitLength;
}
hitBP = 0;
if (type == "friendster") {
var _local4 = 0;
while (_local4 < _root.deskSlots) {
if (_root.deskArray[_local4][1] == this._name) {
_root.deskArray[_local4][1] = null;
break;
}
_local4++;
}
}
}
if (hp <= 0) {
phase = "die";
phaseCount = 12;
_root.updateHP(2);
_root.kills++;
temp = 200;
if (bPopup) {
temp = 440;
}
_root.popupEnemyKilled(this._x, this._y - (temp * (this._yscale / 100)), 100);
stopSpeech();
if ((type == "facebook") || (type == "secondlife")) {
temp = 1;
} else if (type == "myspace") {
temp = random(2) + 1;
} else if (type == "friendster") {
temp = random(3) + 1;
}
if (_root.s_dx1_name == this._name) {
_root.sound_dx1.stop();
_root.sound_dx1.attachSound((("s_" + type) + "_hit_") + temp);
_root.sound_dx1.start(0.03, 0);
setSpeechVol(_root.sound_dx1, 1);
} else if (_root.s_dx2_name == this._name) {
_root.sound_dx2.stop();
_root.sound_dx2.attachSound((("s_" + type) + "_hit_") + temp);
_root.sound_dx2.start(0.03, 0);
setSpeechVol(_root.sound_dx2, 1);
} else if ((_root.s_dx1_name == "") && (_root.s_dx2_name == "")) {
_root.s_dx2_name = this._name;
_root.sound_dx2.attachSound((("s_" + type) + "_hit_") + temp);
_root.sound_dx2.start(0.03, 0);
setSpeechVol(_root.sound_dx2, 1);
}
}
if (hitTime > 0) {
hitTime--;
if ((hitTime % 5) > 2) {
colorT.redOffset = 90;
colorT.redMultiplier = 0.65;
colorT.greenMultiplier = 0.65;
colorT.blueMultiplier = 0.65;
trans.colorTransform = colorT;
} else {
colorT.redOffset = 0;
colorT.redMultiplier = 1;
colorT.greenMultiplier = 1;
colorT.blueMultiplier = 1;
trans.colorTransform = colorT;
}
}
return(_local5);
}
function poof() {
if (phase == "popup") {
_root.spawnFX("poof", this._x, this._y - (4 * this._xscale), this._xscale, this);
} else {
_root.spawnFX("poof", this._x, this._y - this._xscale, this._xscale, this);
}
this.removeMovieClip();
}
function scale() {
this._xscale = ((this._y * this._y) / 1536) * dir;
this._yscale = Math.abs(this._xscale);
if (phase == "walk_in") {
xVel = (xVelH * this._xscale) / 100;
}
}
function setSpeechVol(obj, mult) {
var _local2 = (((this._y - 227) / 2.65) * 0.7) + 30;
_local2 = _local2 * mult;
if (_local2 > 70) {
_local2 = 70;
} else if (_local2 < 30) {
_local2 = 30;
}
obj.setVolume(_local2);
}
function spawnBall() {
_root.ballNum++;
if (_root.ballNum > 4) {
_root.ballNum = 1;
}
temp = _parent.attachMovie("paperball", "noswap_ball" + _root.ballNum, _root.ballDepth + _root.ballNum);
temp._x = this._x;
if (sideSlot < 2) {
temp._y = this._y - 160;
if (type == "facebook") {
temp._y = this._y - 180;
} else if (type == "secondlife") {
temp._y = this._y - 150;
}
temp.scaleMult = 1.13;
} else {
temp._y = this._y - 246;
if (type == "facebook") {
temp._y = this._y - 266;
} else if (type == "secondlife") {
temp._y = this._y - 236;
}
temp.scaleMult = 1.11;
}
temp._xscale = (this._y * this._y) / 2048;
temp._yscale = temp._xscale;
if ((sideSlot == 0) || (sideSlot == 2)) {
temp.xVel = 2;
} else {
temp.xVel = -2;
}
}
function spawnMouth(soundName) {
if (type != "secondlife") {
_root.mouthNum++;
if (_root.mouthNum > 10) {
_root.mouthNum = 1;
}
temp = _parent.mcMouths.attachMovie("mouth_" + type, "mcMouth" + _root.mouthNum, _root.mouthDepth + _root.mouthNum);
mouthName = "mcMouth" + _root.mouthNum;
temp.gotoAndPlay(soundName);
}
}
function speak() {
if ((random(1000) < 15) && (_root.s_dx2_name != this._name)) {
if (_root.s_dx1_name == "") {
_root.s_dx1_name = this._name;
if (((type == "facebook") || (type == "friendster")) || (type == "myspace")) {
var _local3 = random(6) + 1;
} else if (type == "secondlife") {
var _local3 = random(4) + 1;
}
_root.sound_dx1.attachSound((("s_" + type) + "_taunt_") + _local3);
_root.sound_dx1.start(0, 0);
setSpeechVol(_root.sound_dx1, 1);
spawnMouth("taunt" + _local3);
}
} else if (((random(100) < 1) && (_root.s_dx1_name != this._name)) && (type != "secondlife")) {
if (_root.s_dx2_name == "") {
_root.s_dx2_name = this._name;
var _local3 = random(2) + 1;
_root.sound_dx2.attachSound((("s_" + type) + "_taunt_short_") + _local3);
_root.sound_dx2.start(0, 0);
if (_root.s_dx1_name == "") {
setSpeechVol(_root.sound_dx2, 1);
} else {
setSpeechVol(_root.sound_dx2, 0.5);
}
spawnMouth("taunt_short" + _local3);
}
}
}
function stopSpeech() {
if (_root.s_dx1_name == this._name) {
sound_dx1.stop();
s_dx1_name = "";
} else if (_root.s_dx2_name == this._name) {
sound_dx2.stop();
s_dx2_name = "";
}
}
function tagHit(num) {
if ((this._y > _root.hitArray[num]._y) || (_root.hitArray[num] == null)) {
_root.hitArray[num] = this;
}
}
function special_walkdown() {
if (walkPhase == 1) {
this.gotoAndStop("charge");
walkPhase = 2;
phaseCount = 30;
checkHit();
_root.addSound("s_secondlife_powerup", 0.32, 60, this._x, this._y);
} else if (walkPhase == 2) {
if (phaseCount <= 0) {
this.gotoAndStop("launch");
walkPhase = 3;
phaseCount = 20;
hp = 1;
}
checkHit();
} else if (walkPhase == 3) {
if (phaseCount < 0) {
yVel = (this._y * this._y) / 2833;
this._y = this._y + yVel;
if (this._y >= (_root.deskBound + 300)) {
this._y = _root.deskBound + 300;
walkPhase = 4;
phaseCount = 12;
if (_root.p1Damage > _root.p1DamageMax) {
_root.updateHP(-8);
}
}
checkHit();
} else {
checkHit();
}
this._xscale = (this._y * this._y) / 1536;
this._yscale = Math.abs(this._xscale);
} else if (walkPhase == 4) {
if (phaseCount <= 0) {
_root.enemyCount--;
this.removeMovieClip();
}
}
}
stop();
hp = 80;
xVel = 0;
xVelH = 6.5;
yVel = 0;
yBound = random(20);
xBoundL = 300 + random(64);
xBoundR = 430 - random(60);
hitBP = 0;
midXdist = 0;
frontToBackRatio = 3;
dir = 1;
if (spawnHold > 0) {
this._visible = false;
}
mouthName = "";
if (phase == "idle") {
phaseCount = 0;
bPopup = false;
} else {
phase = "popup";
bPopup = true;
bNew = true;
this.gotoAndStop("popup");
sideSlot = random(4);
var i = 0;
while (i < 4) {
if (_root.sideArray[sideSlot] == null) {
_root.sideArray[sideSlot] = this._name;
if (sideSlot == 0) {
this._x = 210;
this._y = 251;
} else if (sideSlot == 1) {
this._x = 520;
this._y = 251;
} else if (sideSlot == 2) {
this._x = 120;
this._y = 305;
} else if (sideSlot == 3) {
this._x = 610;
this._y = 305;
}
break;
}
sideSlot++;
if (sideSlot > 3) {
sideSlot = 0;
}
i++;
}
phaseCount = 70;
if (spawnHold > 0) {
phaseCount = 69;
}
popupPause = 17;
if (i >= 4) {
phase = "idle";
phaseCount = 0;
bPopup = false;
this.gotoAndStop("idle");
}
scale();
}
hitTime = 0;
hitLength = 6;
var colorT = (new flash.geom.ColorTransform());
var trans = (new flash.geom.Transform(this));
trans.colorTransform = colorT;
this.onEnterFrame = function () {
if (_root.bReset) {
this.removeMovieClip();
} else if (_root.bFired || (_root.bWin)) {
poof();
}
if (!_global.bPaused) {
this.mc.play();
spawnHold--;
if (spawnHold == 1) {
this._visible = true;
this.mc.gotoAndPlay(1);
} else if (spawnHold <= 0) {
phaseCount--;
switch (phase) {
case "idle" :
if ((phaseCount <= 0) && (random(100) < 3)) {
phase = "walk_in";
this.gotoAndStop("walkSide");
if (this._x > 300) {
this.gotoAndStop("walkSideFlip");
dir = -1;
}
}
checkHit();
scale();
break;
case "walk_in" :
if (this._x < xBoundL) {
xVel = Math.abs(xVel);
} else if (this._x > xBoundR) {
xVel = -Math.abs(xVel);
} else {
if (dir < 0) {
this._x = xBoundR;
} else {
this._x = xBoundL;
}
xVel = 0;
phase = "wait";
phaseCount = 0;
midXdist = (this._x - (Stage.width / 2)) / (((this._y - _root.baseY) / _root.baseY) + 1);
this.gotoAndStop("idle");
dir = 1;
this._xscale = Math.abs(this._xscale);
}
this._x = this._x + xVel;
checkHit();
break;
case "wait" :
speak();
if ((phaseCount <= 0) && (random(100) < 10)) {
phase = "walk_down";
this.gotoAndStop("idleToWalk");
}
checkHit();
break;
case "walk_down" :
speak();
if (special_walkdown != undefined) {
special_walkdown();
} else {
this.gotoAndStop("walk");
if (this._y >= (_root.deskBound - yBound)) {
this._y = _root.deskBound - yBound;
xVel = 0;
yVel = 0;
phase = "annoy";
this.gotoAndStop("annoy");
} else {
yVel = (this._y * this._y) / 68000;
this._y = this._y + yVel;
this._x = ((((this._y - _root.baseY) / _root.baseY) + 1) * midXdist) + (Stage.width / 2);
}
scale();
checkHit();
}
break;
case "annoy" :
speak();
if (!checkHit()) {
if ((phaseCount % 7) == 0) {
if (_root.p1Damage > _root.p1DamageMax) {
_root.updateHP(-1);
}
}
}
break;
case "popup" :
speak();
checkHit();
if (phaseCount == 21) {
if (!bNew) {
this.mc.gotoAndPlay("throw");
}
bNew = false;
} else if (phaseCount <= 0) {
phaseCount = 30 + popupPause;
spawnBall();
}
break;
case "die" :
if (bPopup) {
this.gotoAndStop("diePopup");
} else if ((type == "friendster") && (walkPhase >= 3)) {
this.gotoAndStop("dieDesk");
} else if ((type == "secondlife") && (walkPhase >= 3)) {
temp = this.mc._currentframe;
this.gotoAndStop("die2");
this.mc.gotoAndStop(temp);
} else {
this.gotoAndStop("die");
}
if (phaseCount <= 0) {
_root.enemyCount--;
if (bPopup) {
_root.sideArray[sideSlot] = null;
}
this.removeMovieClip();
}
break;
case "disappear" :
}
}
if (_root.bFired && (phase != "disappear")) {
phase = "disappear";
stopSpeech();
}
} else {
this.mc.stop();
}
};
hp = 30;
walkPhase = 1;
deskY = random(50) + _root.deskSlots;
type = "secondlife";
Symbol 545 MovieClip Frame 14
stop();
Symbol 549 MovieClip [bird] Frame 1
function checkHit() {
if (hitBP <= 0) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y < _parent.bgRow1._y) && (_parent.bgRow1.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow2._y) && (_parent.bgRow2.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow3._y) && (_parent.bgRow3.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow4._y) && (_parent.bgRow4.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else if ((this._y < _parent.bgRow5._y) && (_parent.bgRow5.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
} else {
if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
bHit = true;
}
break;
}
_local4++;
}
} else {
hp = hp + (-hitBP);
hitBP = 0;
var _local4 = 0;
while (_local4 < _root.deskSlots) {
if (_root.deskArray[_local4][1] == this._name) {
_root.deskArray[_local4][1] = null;
break;
}
_local4++;
}
}
if (hp <= 0) {
phase = "die";
phaseCount = 13;
_root.updateHP(1);
_root.kills++;
_root.popupEnemyKilled(this._x, this._y, 60);
}
if ((this._x < -150) || (this._x > 840)) {
this.removeMovieClip();
}
}
stop();
phase = "flying";
phaseCount = 0;
hp = 1;
hitBP = 0;
if (this._xscale < 0) {
xVel = -5;
} else {
xVel = 5;
}
this.onEnterFrame = function () {
if (_root.bReset) {
this.removeMovieClip();
} else if (_root.bFired || (_root.bWin)) {
if (phase == "flying") {
phase = "fired";
phaseCount = 10;
this.gotoAndStop("fired");
}
}
if (!_global.bPaused) {
this.mc.play();
phaseCount--;
switch (phase) {
case "flying" :
this._x = this._x + xVel;
checkHit();
break;
case "die" :
this.gotoAndStop("die");
if (phaseCount <= 0) {
this.removeMovieClip();
}
break;
case "fired" :
this._x = this._x + xVel;
this._alpha = this._alpha + -10;
if (phaseCount > 0) {
break;
}
this.removeMovieClip();
}
} else {
this.mc.stop();
}
};
Instance of Symbol 543 MovieClip "mc" in Symbol 549 MovieClip [bird] Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(this._totalframes) + 1);
}
Instance of Symbol 548 MovieClip "mc" in Symbol 549 MovieClip [bird] Frame 12
onClipEvent (load) {
this.gotoAndPlay(random(this._totalframes) + 1);
}
Symbol 550 MovieClip [birdpositions] Frame 1
stop();
Symbol 557 MovieClip [fx_hit1] Frame 8
this.removeMovieClip();
Symbol 564 MovieClip [fx_hit2] Frame 8
this.removeMovieClip();
Symbol 570 MovieClip [fx_hit_des] Frame 8
this.removeMovieClip();
Symbol 577 MovieClip [fx_poof] Frame 10
this.removeMovieClip();
Symbol 588 MovieClip [paperball] Frame 1
function checkHit() {
bHit = false;
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
phase = "hit";
scaleMult = 0.95;
life = 10;
xVel = (random(4) + 5) * ((2 * random(2)) - 1);
yVel = (-6 * _xscale) / 100;
_parent["bullet" + _local4].phase = "hit";
bHit = true;
_root.spawnFX("hit_des", this._x, this._y - 40, this._xscale / 2, null);
break;
}
_local4++;
}
return(bHit);
}
phase = "idle";
yVel = -7;
yAcc = 1.6;
scaleGoal = 200;
life = random(4) + 21;
rotVel = (random(14) + 5) * ((2 * random(1)) - 1);
this.onEnterFrame = function () {
if ((_root.bReset || (_root.bFired)) || (_root.bWin)) {
this.removeMovieClip();
}
if (!_global.bPaused) {
this.play();
life--;
if (phase == "idle") {
this._xscale = this._xscale * scaleMult;
this._yscale = this._xscale;
if (life <= 0) {
this.removeMovieClip();
} else if (life == 1) {
_root.updateHP(_root.sideDamageBP);
_root.spawnFX("hit", this._x, this._y + 10, 300, null);
} else {
checkHit();
}
yVel = yVel + yAcc;
this._y = this._y + yVel;
this._x = this._x + xVel;
this._rotation = this._rotation + rotVel;
} else if (phase == "hit") {
yVel = yVel + yAcc;
this._x = this._x + xVel;
this._y = this._y + yVel;
this._rotation = this._rotation + rotVel;
this._xscale = this._xscale * scaleMult;
this._yscale = this._xscale;
this._alpha = this._alpha + -10;
if (life <= 0) {
this.removeMovieClip();
}
}
} else {
this.stop();
}
};
Symbol 588 MovieClip [paperball] Frame 10
gotoAndPlay (2);
Symbol 599 MovieClip [boss_mouth] Frame 1
function end() {
gotoAndStop ("idle");
}
stop();
stop();
if (this._name == "mcBossMouth") {
this._visible = false;
}
this.onEnterFrame = function () {
if (this._name != "mcBossMouth") {
this.gotoAndStop(_root.mcMain.mcBossMouth._currentframe);
}
};
Symbol 599 MovieClip [boss_mouth] Frame 26
end();
Symbol 599 MovieClip [boss_mouth] Frame 27
end();
Symbol 599 MovieClip [boss_mouth] Frame 115
end();
Symbol 599 MovieClip [boss_mouth] Frame 116
end();
Symbol 599 MovieClip [boss_mouth] Frame 195
end();
Symbol 599 MovieClip [boss_mouth] Frame 196
end();
Symbol 599 MovieClip [boss_mouth] Frame 264
end();
Symbol 599 MovieClip [boss_mouth] Frame 265
end();
Symbol 599 MovieClip [boss_mouth] Frame 323
end();
Symbol 599 MovieClip [boss_mouth] Frame 324
end();
Symbol 599 MovieClip [boss_mouth] Frame 412
end();
Symbol 599 MovieClip [boss_mouth] Frame 413
end();
Symbol 599 MovieClip [boss_mouth] Frame 507
end();
Symbol 599 MovieClip [boss_mouth] Frame 508
end();
Symbol 599 MovieClip [boss_mouth] Frame 667
end();
Symbol 599 MovieClip [boss_mouth] Frame 668
end();
Symbol 599 MovieClip [boss_mouth] Frame 821
end();
Symbol 599 MovieClip [boss_mouth] Frame 822
end();
Symbol 599 MovieClip [boss_mouth] Frame 883
end();
Symbol 599 MovieClip [boss_mouth] Frame 884
end();
Symbol 602 MovieClip [bullet_staple] Frame 1
stop();
speed = 4;
phase = "idle";
gravity = 1.2;
yVel = (_root._ymouse - (Stage.height / 2)) / 4;
bHit = false;
var p = _root.getAngle((_parent.mcGun._x + _parent.mcGun.mc._x) + 30, _root._xmouse, (_parent.mcGun._y + _parent.mcGun.mc._y) + 30, _root._ymouse);
xDest = _root._xmouse;
yDest = _root._ymouse;
xVel = (xDest - (_parent.mcGun._x - 10)) / speed;
yVel = (yDest - (_parent.mcGun._y - 140)) / speed;
this._yscale = (yVel * 2) + 10;
scaleVel = -20;
rotVel = (random(20) + 12) * ((2 * random(2)) - 1);
xVelHit = (Math.random() * 14) - 3;
yVelHit = (Math.random() * -15) - 4;
life = 7;
bHit = false;
bHittable = false;
bp = 10;
if (_root.bRapidFire) {
bp = 15;
}
hitScale = 100;
yRatio = _yscale / _xscale;
this.onEnterFrame = function () {
if (_root.bReset) {
this.removeMovieClip();
}
if (!_global.bPaused) {
this.mc.play();
life--;
if (phase == "idle") {
this._x = this._x + xVel;
this._y = this._y + yVel;
this._xscale = this._xscale + scaleVel;
this._yscale = this._xscale * yRatio;
if (((Math.abs(this._x - xDest) < Math.abs(xVel)) && (Math.abs(this._y - yDest) < Math.abs(yVel))) && (life > 1)) {
life = 1;
bHittable = true;
this._x = xDest;
this._y = yDest;
}
if (life <= 0) {
this.removeMovieClip();
}
} else if (phase == "hit") {
this.gotoAndStop(2);
bHittable = false;
if (!bHit) {
bHit = true;
yVel = yVelHit;
this._alpha = 190;
hitScale = (this._xscale + 50) / 100;
}
this._alpha = this._alpha + -10;
if (this._alpha <= 0) {
this.removeMovieClip();
}
yVel = yVel + gravity;
this._x = this._x + (xVelHit * hitScale);
this._y = this._y + (yVel * hitScale);
this._rotation = this._rotation + rotVel;
}
} else {
this.mc.stop();
}
};
Symbol 615 MovieClip [popup_enemy_killed] Frame 15
angleToTally = Math.atan2(60 - this._y, 20 - this._x);
this._rotation = angleToTally * 57.23;
this._y = this._y + -40;
this._xscale = Math.sqrt(Math.pow(60 - this._y, 2) + Math.pow(20 - this._x, 2)) / 4;
if (this._xscale < 20) {
this._xscale = 20;
}
Symbol 615 MovieClip [popup_enemy_killed] Frame 20
_root.addKill();
Symbol 615 MovieClip [popup_enemy_killed] Frame 21
this.removeMovieClip();
Symbol 621 MovieClip Frame 36
stop();
Symbol 640 MovieClip [popup_rapidfire] Frame 43
this.removeMovieClip();
Symbol 646 MovieClip Frame 1
stop();
Symbol 647 MovieClip Frame 1
stop();
Symbol 648 MovieClip Frame 1
stop();
Symbol 651 MovieClip Frame 1
stop();
Symbol 662 MovieClip [google_hp] Frame 1
stop();
if (_global.bRematch) {
this.gotoAndPlay("init");
}
Symbol 662 MovieClip [google_hp] Frame 67
stop();
Symbol 662 MovieClip [google_hp] Frame 88
stop();
Symbol 662 MovieClip [google_hp] Frame 99
stop();
Symbol 669 Button
on (release) {
_parent.gotoAndPlay("close");
}
Symbol 672 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
this.gotoAndStop(int(_root.bMusic) + 1);
};
Symbol 676 Button
on (release) {
_quality = "LOW";
_root.qualityPreferred = "LOW";
}
Symbol 677 Button
on (release) {
_quality = "MEDIUM";
_root.qualityPreferred = "MEDIUM";
}
Symbol 678 Button
on (release) {
_quality = "HIGH";
_root.qualityPreferred = "HIGH";
}
Symbol 681 Button
on (release) {
_root.toggleMusic();
}
Symbol 682 MovieClip Frame 1
Symbol 684 MovieClip [popup_paused] Frame 1
bOpened = false;
_root.mcMain.noswap_buttonPause.buttonPause._visible = false;
Symbol 684 MovieClip [popup_paused] Frame 13
stop();
bOpened = true;
Symbol 684 MovieClip [popup_paused] Frame 14
bOpened = false;
Symbol 684 MovieClip [popup_paused] Frame 20
_root.mcMain.noswap_buttonPause.buttonPause._visible = true;
_root.unpauseGame();
Symbol 684 MovieClip [popup_paused] Frame 21
this.removeMovieClip();
Symbol 690 MovieClip [popup_day] Frame 3
_root.bReset = false;
Symbol 690 MovieClip [popup_day] Frame 41
_global.bPaused = false;
Symbol 690 MovieClip [popup_day] Frame 64
this.removeMovieClip();
Symbol 696 MovieClip Frame 244
stop();
Symbol 766 MovieClip Frame 246
this.gotoAndPlay(_currentframe - 2);
Symbol 767 MovieClip [boss] Frame 1
function checkHit() {
if (hitBP <= 0) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
break;
}
_local4++;
}
} else {
hp = hp + (-hitBP);
hitBP = 0;
}
if (hp <= 0) {
stopAllSounds();
fired();
_root.addSound("s_scratch", 0, 100, 360, this._y);
}
}
function fired() {
_root.bFired = true;
phase = "fired";
phaseCount = 238;
this.gotoAndStop("fired");
var _local4 = _parent.attachMovie("boss_fired_TOP", "noswap_bosstop", _root.bossTopDepth);
_local4._x = this._x;
_local4._y = this._y;
Mouse.show();
_parent.mcCursor._x = -200;
_parent.mcGun.gotoAndStop("end");
_parent.noswap_buttonPause.buttonPause.enabled = false;
}
function reset() {
phase = "idle";
this.gotoAndStop("idle");
idleTime = 150;
phaseCount = idleTime;
hp = 1;
hitBP = 0;
}
function spawnMouth(id) {
_parent.mcBossMouth.gotoAndPlay(id);
}
function end() {
if (phase == "yell") {
this.gotoAndStop("close");
phaseCount = 18;
} else {
this.gotoAndStop("idle");
}
phase = "end";
}
stop();
phase = "idle";
idleTime = 180;
phaseCount = idleTime;
hpStart = 15;
hp = hpStart;
hitBP = 0;
lastNum = new Array(0, 0, 0);
if (_global.bRematch) {
phase = "end";
this.gotoAndStop("idle");
}
this.onEnterFrame = function () {
if (!_global.bPaused) {
this.mc.play();
phaseCount--;
switch (phase) {
case "idle" :
if (phaseCount <= 0) {
phase = "yell";
this.gotoAndStop("open");
_root.addSound("s_door_open", 0.4, 90, 360, this._y);
var _local4 = random(5) + 1;
while (((_local4 == lastNum[0]) || (_local4 == lastNum[1])) || (_local4 == lastNum[2])) {
_local4 = random(5) + 1;
}
lastNum.pop();
lastNum.push(_local4);
var _local5 = 90;
if (_local4 == 1) {
phaseCount = 101;
} else if (_local4 == 2) {
phaseCount = 95;
} else if (_local4 == 3) {
phaseCount = 82;
} else if (_local4 == 4) {
phaseCount = 73;
} else if (_local4 == 5) {
phaseCount = 100;
} else {
phaseCount = 107;
}
_root.addSound("s_boss_taunt" + _local4, 0, _local5, 360, this._y);
spawnMouth("taunt" + _local4);
}
break;
case "yell" :
if (phaseCount <= 0) {
phase = "idle";
phaseCount = idleTime;
this.gotoAndStop("idle");
} else if (phaseCount == 18) {
this.gotoAndStop("close");
hp = hpStart;
_root.addSound("s_door_close", 0.16, 90, 360, this._y);
}
checkHit();
break;
case "die" :
this.gotoAndStop("die");
if (phaseCount <= 0) {
this.removeMovieClip();
}
break;
case "fired" :
if (phaseCount == 196) {
if (random(100) < 70) {
_root.addSound("s_boss_end1", 0, 90, 360, this._y);
spawnMouth("end1");
} else {
_root.addSound("s_boss_end2", 0, 90, 360, this._y);
spawnMouth("end2");
}
} else if (phaseCount == 160) {
this.swapDepths(_root.bossFiredDepth);
} else if (phaseCount == 55) {
_root.addSound("s_boss_fired", 0.33, 90, 360, this._y);
spawnMouth("fired");
} else if (phaseCount == 0) {
_root.gameLOSE();
}
break;
case "end" :
if (phaseCount > 0) {
break;
}
this.gotoAndStop("idle");
}
} else {
this.mc.stop();
}
};
Symbol 769 MovieClip Frame 1
this._visible = false;
Symbol 792 MovieClip Frame 1
function checkHit() {
var _local5 = false;
if (hitBP <= 0) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_root.mcMain["bullet" + _local4].bHittable && (this.mcHit.hitTest(_root.mcMain["bullet" + _local4].xDest, _root.mcMain["bullet" + _local4].yDest, true))) {
tagHit(_local4);
_local5 = true;
}
_local4++;
}
} else {
hp = hp + (-hitBP);
_parent._parent.hp = _parent._parent.hp + (-hitBP);
_parent._parent.hpOO = _parent._parent.hpOO + (-hitBP);
if (hp > 0) {
if (hitTime <= 0) {
hitTime = hitLength;
}
}
hitBP = 0;
_root.addSound("s_hit", 0, -1, 300, _parent._parent._y);
}
if (hp <= 0) {
phase = "hit";
this.gotoAndPlay("hit");
_parent["mcPulse" + num].gotoAndStop("end");
}
if (hitTime > 0) {
hitTime--;
if ((hitTime % 5) > 2) {
if (bRed) {
colorT.redOffset = 255;
colorT.blueOffset = 255;
colorT.greenOffset = 255;
colorT.redMultiplier = 1;
colorT.greenMultiplier = 1;
colorT.blueMultiplier = 1;
trans.colorTransform = colorT;
} else {
colorT.redOffset = 160;
colorT.redMultiplier = 0.65;
colorT.greenMultiplier = 0.65;
colorT.blueMultiplier = 0.65;
trans.colorTransform = colorT;
}
} else {
colorT.redOffset = 0;
colorT.blueOffset = 0;
colorT.greenOffset = 0;
colorT.redMultiplier = 1;
colorT.greenMultiplier = 1;
colorT.blueMultiplier = 1;
trans.colorTransform = colorT;
}
}
return(_local5);
}
function tagHit(num) {
if ((this._y > _root.hitArray[num]._y) || (_root.hitArray[num] == null)) {
_root.hitArray[num] = this;
}
}
stop();
if (_parent._parent.stage == 1) {
hp = 50;
} else {
hp = 10;
}
hitBP = 0;
phase = "idle";
hitTime = 0;
hitLength = 6;
var colorT = (new flash.geom.ColorTransform());
var trans = (new flash.geom.Transform(this));
trans.colorTransform = colorT;
this.onEnterFrame = function () {
if (!_global.bPaused) {
if (this._currentframe > 10) {
this.play();
}
switch (phase) {
case "idle" :
if ((_parent._parent.phase == "idle") || (_parent._parent.phase == "idleWait")) {
checkHit();
}
break;
case "charge" :
if ((_parent._parent.phase == "idle") || (_parent._parent.phase == "idleWait")) {
checkHit();
}
break;
case "hit" :
break;
case "blast" :
}
} else {
this.stop();
}
};
bRed = true;
num = 1;
Symbol 792 MovieClip Frame 92
this.gotoAndPlay(_currentframe - 2);
Symbol 792 MovieClip Frame 148
this.gotoAndPlay(_currentframe - 2);
Symbol 792 MovieClip Frame 159
this.gotoAndPlay(_currentframe - 2);
Symbol 792 MovieClip Frame 185
this.gotoAndPlay(_currentframe - 2);
Symbol 796 MovieClip Frame 1
function checkHit() {
var _local5 = false;
if (hitBP <= 0) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_root.mcMain["bullet" + _local4].bHittable && (this.mcHit.hitTest(_root.mcMain["bullet" + _local4].xDest, _root.mcMain["bullet" + _local4].yDest, true))) {
tagHit(_local4);
_local5 = true;
}
_local4++;
}
} else {
hp = hp + (-hitBP);
_parent._parent.hp = _parent._parent.hp + (-hitBP);
_parent._parent.hpOO = _parent._parent.hpOO + (-hitBP);
if (hp > 0) {
if (hitTime <= 0) {
hitTime = hitLength;
}
}
hitBP = 0;
_root.addSound("s_hit", 0, -1, 300, _parent._parent._y);
}
if (hp <= 0) {
phase = "hit";
this.gotoAndPlay("hit");
_parent["mcPulse" + num].gotoAndStop("end");
}
if (hitTime > 0) {
hitTime--;
if ((hitTime % 5) > 2) {
if (bRed) {
colorT.redOffset = 255;
colorT.blueOffset = 255;
colorT.greenOffset = 255;
colorT.redMultiplier = 1;
colorT.greenMultiplier = 1;
colorT.blueMultiplier = 1;
trans.colorTransform = colorT;
} else {
colorT.redOffset = 160;
colorT.redMultiplier = 0.65;
colorT.greenMultiplier = 0.65;
colorT.blueMultiplier = 0.65;
trans.colorTransform = colorT;
}
} else {
colorT.redOffset = 0;
colorT.blueOffset = 0;
colorT.greenOffset = 0;
colorT.redMultiplier = 1;
colorT.greenMultiplier = 1;
colorT.blueMultiplier = 1;
trans.colorTransform = colorT;
}
}
return(_local5);
}
function tagHit(num) {
if ((this._y > _root.hitArray[num]._y) || (_root.hitArray[num] == null)) {
_root.hitArray[num] = this;
}
}
stop();
if (_parent._parent.stage == 1) {
hp = 50;
} else {
hp = 10;
}
hitBP = 0;
phase = "idle";
hitTime = 0;
hitLength = 6;
var colorT = (new flash.geom.ColorTransform());
var trans = (new flash.geom.Transform(this));
trans.colorTransform = colorT;
this.onEnterFrame = function () {
if (!_global.bPaused) {
if (this._currentframe > 10) {
this.play();
}
switch (phase) {
case "idle" :
if ((_parent._parent.phase == "idle") || (_parent._parent.phase == "idleWait")) {
checkHit();
}
break;
case "charge" :
if ((_parent._parent.phase == "idle") || (_parent._parent.phase == "idleWait")) {
checkHit();
}
break;
case "hit" :
break;
case "blast" :
}
} else {
this.stop();
}
};
bRed = false;
num = 2;
Symbol 796 MovieClip Frame 92
this.gotoAndPlay(_currentframe - 2);
Symbol 796 MovieClip Frame 148
this.gotoAndPlay(_currentframe - 2);
Symbol 796 MovieClip Frame 159
this.gotoAndPlay(_currentframe - 2);
Symbol 796 MovieClip Frame 185
this.gotoAndPlay(_currentframe - 2);
Symbol 804 MovieClip Frame 1
gotoAndPlay ("end");
Symbol 804 MovieClip Frame 55
gotoAndPlay(_currentframe - 2);
Symbol 876 MovieClip Frame 139
gotoAndPlay ("loop");
Symbol 878 MovieClip [google] Frame 1
function checkHit() {
if (hitBP <= 0) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if ((phase == "idle") || (phase == "idleWait")) {
if (_parent["bullet" + _local4].bHittable && (this.mc.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true)) {
if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
hitX = _parent["bullet" + _local4].xDest;
}
break;
}
} else if (_parent["bullet" + _local4].bHittable && (this.mc.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
hitX = _parent["bullet" + _local4].xDest;
break;
}
_local4++;
}
} else {
hitBP = 0;
_root.addSound("s_google_ting", 0, -1, hitX, this._y);
}
}
function checkDead() {
if (hp <= 0) {
phase = "die";
phaseCount = 126;
this.gotoAndStop("die");
_root.bWin = true;
_root.sound_dxWorker.stop();
spawnSound("s_google_die", 0.6, -1, this._x, this._y);
_root.mcMain.noswap_buttonPause.buttonPause.enabled = false;
_root.sound_music.stop();
}
}
function exit() {
if (flightDir == "left") {
phase = "onRight";
this.gotoAndStop("exitL");
} else if (flightDir == "right") {
phase = "onLeft";
this.gotoAndStop("exitR");
}
phaseCount = 22;
wait = waitTime;
bPass = true;
spawnSound("s_google_exit", 0.367, -1, this._x, this._y);
}
function hitO() {
if (stage == 1) {
hpOO = 50;
} else {
hpOO = 10;
}
phase = "hit";
phaseCount = 20;
this.gotoAndStop("hit");
_root.sound_dxWorker.stop();
spawnSound("s_google_hit", 0.167, -1, this._x, this._y);
_root.kills++;
_root.popupEnemyKilled(this._x - (17 * (this._xscale / 100)), this._y - (70 * (this._yscale / 100)), 100);
}
function poof() {
phase = "poof";
phaseCount = 14;
this.gotoAndStop("poof");
}
function scale() {
this._xscale = (this._y * this._y) / 512;
this._yscale = Math.abs(this._xscale);
}
function spawnEnemy() {
if (enemySpawnTime == 1) {
_root.spawnEnemy(random(4) + 1, true, 0);
if (hp < (hpMax / 6)) {
enemySpawnTime = 80;
} else if (hp < (hpMax / 2)) {
enemySpawnTime = 180;
} else {
enemySpawnTime = 240;
}
}
}
function spawnOblast(num) {
var _local4 = _parent.attachMovie("O_blast" + num, "noswap_mcOblast" + num, _root["OblastDepth" + num]);
if (num == 1) {
_local4._x = this._x - (30 * (this._xscale / 100));
} else {
_local4._x = this._x - (1 * (this._xscale / 100));
}
_local4._y = this._y - (60 * (this._xscale / 100));
_local4._xscale = 38 * (this._xscale / 100);
_local4._yscale = _local4._xscale;
_root.updateHP(-5);
spawnSound("s_google_blast", 0.03, -1, this._x, this._y);
}
function spawnSound(id, offset, vol, x1, y1) {
var _local3 = _root.sound_dxWorker;
_local3.attachSound(id);
_local3.start(offset, 0);
_local3.setVolume(vol);
_local3.setPan(((x1 / 3.6) - 100) / 2);
if (vol == -1) {
y1 = (((y1 - 127) / 2.65) * 0.7) + 30;
if (y1 > 100) {
y1 = 100;
} else if (y1 < 50) {
y1 = 50;
}
_local3.setVolume(y1);
}
}
stop();
phase = "onRight";
waitTime = 80;
wait = waitTime;
phaseCount = 43;
this.gotoAndStop("enterL_pass");
bPass = true;
hpMax = 400;
hp = hpMax;
hitBP = 0;
this._y = 469;
flightDir = "left";
passes = 1;
passMax = 3;
stage = 1;
enemySpawnTime = 180;
hitX = 0;
lifeTime = 0;
hpOO = 50;
yArr = new Array(232, 251, 275, 305, 352, 469);
var colorT = (new flash.geom.ColorTransform());
var trans = (new flash.geom.Transform(this));
trans.colorTransform = colorT;
this.onEnterFrame = function () {
if (!_global.bPaused) {
this.mc.play();
this.mc.mcPulse1.play();
this.mc.mcPulse2.play();
phaseCount--;
wait--;
enemySpawnTime--;
lifeTime++;
if (hp < (hpMax / 4)) {
stage = 2;
passMax = 0;
waitTime = 10;
}
_parent.mcHUD.mcGoogleHP.mcBar.gotoAndStop(Math.floor((hp / hpMax) * 512) + 1);
if (_parent.mcHUD.mcGoogleHP.mcBar2._currentframe > _parent.mcHUD.mcGoogleHP.mcBar._currentframe) {
_parent.mcHUD.mcGoogleHP.mcBar2.prevFrame();
}
switch (phase) {
case "idle" :
this.gotoAndStop("idle");
_global.bRematch = false;
if (phaseCount <= 0) {
if (this.mc.mcO1.hp > 0) {
this.mc.mcO1.gotoAndPlay("blast");
this.mc.mcO1.phase = "blast";
spawnOblast(1);
}
if (this.mc.mcO2.hp > 0) {
this.mc.mcO2.gotoAndPlay("blast");
this.mc.mcO2.phase = "blast";
spawnOblast(2);
}
phase = "blast";
phaseCount = 11;
}
if (hpOO <= 0) {
hitO();
} else {
checkHit();
}
checkDead();
break;
case "idleWait" :
if (phaseCount <= 0) {
phase = "idle";
if (stage == 1) {
phaseCount = 80;
var _local5 = false;
if (this.mc.mcO1.hp > 0) {
this.mc.mcO1.gotoAndPlay("charge");
this.mc.mcO1.phase = "charge";
this.mc.mcPulse1.gotoAndPlay(2);
_local5 = true;
}
if (this.mc.mcO2.hp > 0) {
this.mc.mcO2.gotoAndPlay("charge");
this.mc.mcO2.phase = "charge";
this.mc.mcPulse2.gotoAndPlay(2);
_local5 = true;
}
if (_local5) {
spawnSound("s_google_charge", 0.167, -1, this._x, this._y);
}
} else {
phaseCount = 45;
var _local5 = false;
if (this.mc.mcO1.hp > 0) {
this.mc.mcO1.gotoAndPlay("chargeFast");
this.mc.mcO1.phase = "charge";
this.mc.mcPulse1.gotoAndPlay(7);
_local5 = true;
}
if (this.mc.mcO2.hp > 0) {
this.mc.mcO2.gotoAndPlay("chargeFast");
this.mc.mcO2.phase = "charge";
this.mc.mcPulse2.gotoAndPlay(7);
_local5 = true;
}
if (_local5) {
spawnSound("s_google_chargeFast", 0.33, -1, this._x, this._y);
}
}
}
if (hpOO <= 0) {
hitO();
} else {
checkHit();
}
checkDead();
break;
case "onRight" :
if (phaseCount <= 0) {
if (wait <= 0) {
this._visible = true;
if (bPass) {
if (random(3) && (passes < passMax)) {
bPass = true;
this.gotoAndStop("enterR_pass");
phaseCount = 43;
wait = waitTime;
this._y = yArr[random(yArr.length)];
flightDir = "right";
passes++;
spawnSound("s_google_pass", 0, -1, this._x - 200, this._y);
} else {
bPass = false;
this.gotoAndStop("enterR");
phaseCount = 38;
this._y = yArr[random(yArr.length - 1)];
flightDir = "right";
passes = 0;
spawnSound("s_google_enter", 0, -1, this._x - 200, this._y);
}
phase = "onLeft";
} else {
this.gotoAndStop("idle");
phase = "idleWait";
phaseCount = 30;
oHP1 = oHPmax;
oHP2 = oHPmax;
passes = 0;
}
} else {
this._visible = false;
}
}
checkHit();
break;
case "onLeft" :
if (phaseCount <= 0) {
if (wait <= 0) {
this._visible = true;
if (bPass) {
if (random(3) && (passes < passMax)) {
bPass = true;
this.gotoAndStop("enterL_pass");
phaseCount = 43;
wait = 70 + random(30);
this._y = yArr[random(yArr.length)];
flightDir = "left";
passes++;
spawnSound("s_google_pass", 0, -1, this._x + 200, this._y);
} else {
bPass = false;
this.gotoAndStop("enterL");
phaseCount = 38;
this._y = yArr[random(yArr.length - 1)];
flightDir = "left";
passes = 0;
spawnSound("s_google_enter", 0, -1, this._x + 200, this._y);
}
phase = "onRight";
} else {
this.gotoAndStop("idle");
phase = "idleWait";
phaseCount = 30;
oHP1 = oHPmax;
oHP2 = oHPmax;
passes = 0;
}
} else {
this._visible = false;
}
}
checkHit();
break;
case "blast" :
if (phaseCount <= 0) {
exit();
}
checkHit();
break;
case "hit" :
if (hp <= 0) {
phase = "die";
phaseCount = 126;
this.gotoAndStop("die");
_root.bWin = true;
_root.sound_dxWorker.stop();
spawnSound("s_google_die", 0.6, -1, this._x, this._y);
_root.mcMain.noswap_buttonPause.buttonPause.enabled = false;
} else if (phaseCount <= 0) {
exit();
}
break;
case "poof" :
if (phaseCount <= 0) {
this.removeMovieClip();
}
break;
case "die" :
if (phaseCount == 22) {
_root.addSound("s_music_win", 0, 90, 360, 0);
}
if (phaseCount > 0) {
break;
}
_root.gameWIN();
phase = "dead";
}
scale();
if (((phase != "die") && (phase != "dead")) && (phase != "poof")) {
spawnEnemy();
if (_root.bFired || (_root.bWin)) {
poof();
}
if (stage == 2) {
if ((lifeTime % 4) == 1) {
colorT.redOffset = 100;
colorT.blueOffset = 100;
colorT.greenOffset = 100;
colorT.redMultiplier = 1;
colorT.greenMultiplier = 1;
colorT.blueMultiplier = 1;
trans.colorTransform = colorT;
} else {
colorT.redOffset = 0;
colorT.blueOffset = 0;
colorT.greenOffset = 0;
colorT.redMultiplier = 1;
colorT.greenMultiplier = 1;
colorT.blueMultiplier = 1;
trans.colorTransform = colorT;
}
}
} else {
colorT.redOffset = 0;
colorT.blueOffset = 0;
colorT.greenOffset = 0;
colorT.redMultiplier = 1;
colorT.greenMultiplier = 1;
colorT.blueMultiplier = 1;
trans.colorTransform = colorT;
}
} else {
this.mc.stop();
this.mc.mcPulse1.stop();
this.mc.mcPulse2.stop();
}
};
Symbol 880 MovieClip [O_blast1] Frame 11
this.removeMovieClip();
Symbol 881 MovieClip [O_blast2] Frame 11
this.removeMovieClip();
Symbol 892 Button
on (release) {
_root.startGame();
}
Symbol 897 Button
on (release) {
_parent.buttPlay.enabled = false;
_parent.mcTag.buttLogo.enabled = false;
_parent.mcTag.buttURL.enabled = false;
_parent.mcEmbed.buttEmbed.enabled = false;
_parent.mcEmbed.buttEmbed._alpha = 50;
_root.mcMain.noswap_mcPlayAgain.mc.buttPlay.enabled = false;
gotoAndPlay ("open");
}
Symbol 910 MovieClip Frame 18
if (random(100) < 10) {
this.gotoAndPlay("blink");
} else {
this.gotoAndPlay(1);
}
Symbol 951 Button
on (release) {
getURL ("http://www.current.com/supernews", "_blank");
}
Symbol 956 Button
on (release) {
getURL ("http://www.girlshavecooties.com", "_blank");
}
Symbol 957 Button
on (release) {
getURL ("http://www.dustfilms.com", "_blank");
}
Symbol 958 Button
on (release) {
getURL ("http://www.pinkandaint.com", "_blank");
}
Symbol 959 Button
on (release) {
getURL ("http://www.current.com/supernews", "_blank");
}
Symbol 960 Button
on (release) {
getURL ("http://heardrum.org/", "_blank");
}
Symbol 961 Button
on (release) {
getURL ("http://www.sklomotion.com/", "_blank");
}
Symbol 962 Button
on (release) {
getURL ("http://www.myspace.com/joshisrad", "_blank");
}
Symbol 963 Button
on (release) {
getURL ("http://www.current.com", "_blank");
}
Symbol 964 Button
on (release) {
getURL ("http://www.kenmcintyre.com", "_blank");
}
Symbol 968 Button
on (release) {
gotoAndPlay ("close");
}
Symbol 971 MovieClip Frame 1
stop();
Symbol 971 MovieClip Frame 15
stop();
Symbol 971 MovieClip Frame 23
_parent.buttPlay.enabled = true;
_parent.mcTag.buttLogo.enabled = true;
_parent.mcTag.buttURL.enabled = true;
_parent.mcEmbed.buttEmbed.enabled = true;
_parent.mcEmbed.buttEmbed._alpha = 100;
_root.mcMain.noswap_mcPlayAgain.mc.buttPlay.enabled = true;
Symbol 973 Button
on (release) {
_parent.buttPlay.enabled = false;
_parent.buttPlay._alpha = 50;
_parent.mcTag.buttLogo.enabled = false;
_parent.mcTag.buttURL.enabled = false;
_parent.mcCredits.buttCredits.enabled = false;
_parent.mcCredits.buttCredits._alpha = 50;
_root.mcMain.noswap_mcPlayAgain.mc.buttPlay.enabled = false;
gotoAndPlay ("open");
}
Symbol 986 MovieClip Frame 1
stop();
Symbol 986 MovieClip Frame 4
stop();
Symbol 992 Button
on (press) {
gotoAndStop (1);
}
Symbol 993 MovieClip Frame 1
stop();
if (copied) {
mcCopied.gotoAndPlay("out");
}
copied = false;
textEmbed.onSetFocus = function () {
Selection.setSelection(0, 600);
System.setClipboard(textEmbed.text);
mcCopied.gotoAndPlay("in");
copied = true;
};
this.onEnterFrame = function () {
var _local1 = Selection.getFocus();
if (_local1.substr(_local1.lastIndexOf(".") + 1) == "textEmbed") {
Selection.setSelection(0, 600);
} else if (_local1.substr(_local1.lastIndexOf(".") + 1) == "textEmbed2") {
Selection.setSelection(0, 600);
}
};
Symbol 993 MovieClip Frame 2
if (copied) {
mcCopied.gotoAndPlay("out");
}
copied = false;
textEmbed2.onSetFocus = function () {
Selection.setSelection(0, 600);
System.setClipboard(textEmbed2.text);
mcCopied.gotoAndPlay("in");
copied = true;
};
Symbol 995 Button
on (release) {
gotoAndPlay ("close");
}
Symbol 998 MovieClip Frame 1
stop();
Symbol 998 MovieClip Frame 15
stop();
Symbol 998 MovieClip Frame 23
_parent.buttPlay.enabled = true;
_parent.buttPlay._alpha = 100;
_parent.mcTag.buttLogo.enabled = true;
_parent.mcTag.buttURL.enabled = true;
_parent.mcCredits.buttCredits.enabled = true;
_parent.mcCredits.buttCredits._alpha = 100;
_root.mcMain.noswap_mcPlayAgain.mc.buttPlay.enabled = true;
Symbol 1008 Button
on (release) {
gotoAndPlay ("end");
}
Symbol 1022 MovieClip Frame 1
stop();
Symbol 1022 MovieClip Frame 277
stop();
this._visible = false;
_root.startGame2();
Symbol 1038 Button
on (release) {
getURL ("http://current.com/items/76366762_gates_vs_jobs", "_blank");
}
Symbol 1042 Button
on (release) {
getURL ("http://www.current.com/supernews", "_blank");
}
Symbol 1050 Button
on (release) {
getURL ("http://current.com/items/76346842_the-great-immigration-debate-of-1621.htm", "_blank");
}
Symbol 1053 Button
on (release) {
getURL ("http://current.com/tags/88902097_supernews-larry-king/", "_blank");
}
Symbol 1057 Button
on (release) {
getURL ("http://current.com/items/88280851_becks-strikes-the-usa.htm", "_blank");
}
Symbol 1060 Button
on (release) {
getURL ("http://current.com/items/76347302_osama-bin-lohan.htm", "_blank");
}
Symbol 1063 Button
on (release) {
getURL ("http://current.com/items/88823939_rambo_vs_terror_pt_1", "_blank");
}
Symbol 1067 Button
on (release) {
getURL ("http://current.com/items/89891774_twouble-with-twitters.htm", "_blank");
}
Symbol 1070 Button
on (release) {
getURL ("http://current.com/tags/88907466_texting-your-way-through-life/", "_blank");
}
Symbol 1073 Button
on (release) {
getURL ("http://current.com/supernews/", "_blank");
}
Symbol 1076 Button
on (release) {
getURL ("http://current.com/items/90014580_terrorism-in-1776.htm", "_blank");
}
Symbol 1079 Button
on (release) {
getURL ("http://current.com/tags/88876314_friend-request/", "_blank");
}
Symbol 1084 Button
on (release) {
getURL ("http://current.com/tags/88878076_project-britney/", "_blank");
}
Symbol 1095 MovieClip Frame 2
Symbol 1095 MovieClip Frame 790
this.gotoAndPlay("loop");
Symbol 1096 MovieClip [popup_WIN] Frame 112
var mc = _root.mcMain.attachMovie("popup_play_again", "noswap_mcPlayAgain", _root.playAgainDepth);
mc._y = 60;
_root.endtag();
Symbol 1096 MovieClip [popup_WIN] Frame 226
gotoAndPlay ("loop");
Symbol 1096 MovieClip [popup_WIN] Frame 245
_root.resetGame();
this.removeMovieClip();
Symbol 1102 Button
on (release) {
_root.mcMain.noswap_mcEndMsg.gotoAndPlay("reset");
}
Symbol 1103 MovieClip Frame 1
Symbol 1104 MovieClip [popup_play_again] Frame 13
stop();
Symbol 1104 MovieClip [popup_play_again] Frame 14
bOpened = false;
Symbol 1104 MovieClip [popup_play_again] Frame 20
_root.resetGame();
Symbol 1104 MovieClip [popup_play_again] Frame 21
stop();
Symbol 1122 Button
on (release) {
gotoAndPlay ("yes");
}
Symbol 1127 Button
on (release) {
gotoAndPlay ("no");
}
Symbol 1130 Button
on (release) {
this.gotoAndPlay("yes");
}
Symbol 1131 MovieClip [popup_LOSE] Frame 54
if (_root.phase > 1) {
this.gotoAndPlay("retry");
}
Symbol 1131 MovieClip [popup_LOSE] Frame 74
stop();
var mc = _root.mcMain.attachMovie("popup_play_again", "noswap_mcPlayAgain", _root.playAgainDepth);
mc._y = 60;
_root.endtag();
Symbol 1131 MovieClip [popup_LOSE] Frame 110
_root.resetGame();
this.removeMovieClip();
Symbol 1131 MovieClip [popup_LOSE] Frame 150
_root.addSound("s_rematch", 0, 90, 360, 0);
Symbol 1131 MovieClip [popup_LOSE] Frame 169
stop();
Symbol 1131 MovieClip [popup_LOSE] Frame 176
_root.addSound("s_rematch_yes", 0, 90, 360, 0);
Symbol 1131 MovieClip [popup_LOSE] Frame 191
_root.rematch();
this.removeMovieClip();
Symbol 1131 MovieClip [popup_LOSE] Frame 198
_root.addSound("s_rematch_no", 0, 90, 360, 0);
Symbol 1131 MovieClip [popup_LOSE] Frame 205
this.gotoAndPlay("tag");
Symbol 1132 MovieClip [popup_wipe] Frame 17
this.removeMovieClip();
Symbol 1132 MovieClip [popup_wipe] Frame 32
stop();
Symbol 1256 MovieClip Frame 1
stop();
Symbol 1268 MovieClip Frame 1
this._visible = false;
Symbol 1273 MovieClip Frame 1
this._visible = false;
Symbol 1278 MovieClip Frame 1
this._visible = false;
Symbol 1283 MovieClip Frame 1
this._visible = false;
Symbol 1288 MovieClip Frame 1
this._visible = false;
Symbol 1293 MovieClip Frame 1
this._visible = false;
Symbol 1298 MovieClip Frame 14
stop();
Symbol 1299 MovieClip Frame 1
function checkHit() {
if ((hitBP <= 0) && (mcHit != undefined)) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
break;
}
_local4++;
}
} else if (hitBP > 0) {
hp = hp + (-hitBP);
hitBP = 0;
if (!(bDestroyable && (hp <= 0))) {
this.gotoAndPlay("hit");
_root.addSound(("s_des_" + type) + "_hit", 0.03, 50, this._x, this._y);
}
}
if (((hp <= 0) && (bDestroyable)) && (!bDead)) {
bDead = true;
this.gotoAndPlay("die");
_root.addSound(("s_des_" + type) + "_kill", 0.03, 50, this._x, this._y);
}
}
function tagHit(num) {
if ((this._y > _root.hitArray[num]._y) || (_root.hitArray[num] == null)) {
_root.hitArray[num] = this;
}
}
stop();
hitBP = 0;
hp = 30;
bDestroyable = false;
bDead = false;
bDead2 = false;
this.onEnterFrame = function () {
if (!_global.bPaused) {
if (!bDead2) {
this.play();
}
checkHit();
} else {
this.stop();
}
};
type = "plant";
Symbol 1299 MovieClip Frame 7
gotoAndStop ("idle");
Symbol 1299 MovieClip Frame 8
gotoAndStop ("idle");
Symbol 1304 MovieClip Frame 1
this._visible = false;
Symbol 1311 MovieClip Frame 1
function checkHit() {
if ((hitBP <= 0) && (mcHit != undefined)) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
break;
}
_local4++;
}
} else if (hitBP > 0) {
hp = hp + (-hitBP);
hitBP = 0;
if (!(bDestroyable && (hp <= 0))) {
this.gotoAndPlay("hit");
_root.addSound(("s_des_" + type) + "_hit", 0.03, 50, this._x, this._y);
}
}
if (((hp <= 0) && (bDestroyable)) && (!bDead)) {
bDead = true;
this.gotoAndPlay("die");
_root.addSound(("s_des_" + type) + "_kill", 0.03, 50, this._x, this._y);
}
}
function tagHit(num) {
if ((this._y > _root.hitArray[num]._y) || (_root.hitArray[num] == null)) {
_root.hitArray[num] = this;
}
}
stop();
hitBP = 0;
hp = 30;
bDestroyable = false;
bDead = false;
bDead2 = false;
this.onEnterFrame = function () {
if (!_global.bPaused) {
if (!bDead2) {
this.play();
}
checkHit();
} else {
this.stop();
}
};
bDestroyable = true;
type = "rolodex";
Symbol 1311 MovieClip Frame 7
gotoAndStop ("idle");
Symbol 1311 MovieClip Frame 8
gotoAndStop ("idle");
Symbol 1311 MovieClip Frame 24
if (!bDead) {
gotoAndStop ("idle");
}
Symbol 1311 MovieClip Frame 38
bDead2 = true;
Symbol 1311 MovieClip Frame 40
stop();
Symbol 1314 MovieClip Frame 1
function checkHit() {
if ((hitBP <= 0) && (mcHit != undefined)) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
break;
}
_local4++;
}
} else if (hitBP > 0) {
hp = hp + (-hitBP);
hitBP = 0;
if (!(bDestroyable && (hp <= 0))) {
this.gotoAndPlay("hit");
_root.addSound(("s_des_" + type) + "_hit", 0.03, 50, this._x, this._y);
}
}
if (((hp <= 0) && (bDestroyable)) && (!bDead)) {
bDead = true;
this.gotoAndPlay("die");
_root.addSound(("s_des_" + type) + "_kill", 0.03, 50, this._x, this._y);
}
}
function tagHit(num) {
if ((this._y > _root.hitArray[num]._y) || (_root.hitArray[num] == null)) {
_root.hitArray[num] = this;
}
}
stop();
hitBP = 0;
hp = 30;
bDestroyable = false;
bDead = false;
bDead2 = false;
this.onEnterFrame = function () {
if (!_global.bPaused) {
if (!bDead2) {
this.play();
}
checkHit();
} else {
this.stop();
}
};
bDestroyable = true;
type = "calendar2";
Symbol 1314 MovieClip Frame 7
gotoAndStop ("idle");
Symbol 1314 MovieClip Frame 8
gotoAndStop ("idle");
Symbol 1314 MovieClip Frame 13
if (!bDead) {
gotoAndStop ("idle");
}
Symbol 1314 MovieClip Frame 31
bDead2 = true;
Symbol 1314 MovieClip Frame 33
stop();
Symbol 1326 MovieClip Frame 1
function checkHit() {
if ((hitBP <= 0) && (mcHit != undefined)) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
break;
}
_local4++;
}
} else if (hitBP > 0) {
hp = hp + (-hitBP);
hitBP = 0;
if (!(bDestroyable && (hp <= 0))) {
this.gotoAndPlay("hit");
_root.addSound(("s_des_" + type) + "_hit", 0.03, 50, this._x, this._y);
}
}
if (((hp <= 0) && (bDestroyable)) && (!bDead)) {
bDead = true;
this.gotoAndPlay("die");
_root.addSound(("s_des_" + type) + "_kill", 0.03, 50, this._x, this._y);
}
}
function tagHit(num) {
if ((this._y > _root.hitArray[num]._y) || (_root.hitArray[num] == null)) {
_root.hitArray[num] = this;
}
}
stop();
hitBP = 0;
hp = 30;
bDestroyable = false;
bDead = false;
bDead2 = false;
this.onEnterFrame = function () {
if (!_global.bPaused) {
if (!bDead2) {
this.play();
}
checkHit();
} else {
this.stop();
}
};
bDestroyable = true;
type = "monitor";
Symbol 1326 MovieClip Frame 7
gotoAndStop ("idle");
Symbol 1326 MovieClip Frame 8
gotoAndStop ("idle");
Symbol 1326 MovieClip Frame 14
if (!bDead) {
gotoAndStop ("idle");
}
Symbol 1326 MovieClip Frame 28
bDead2 = true;
Symbol 1326 MovieClip Frame 30
stop();
Symbol 1336 MovieClip Frame 1
function checkHit() {
if ((hitBP <= 0) && (mcHit != undefined)) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
break;
}
_local4++;
}
} else if (hitBP > 0) {
hp = hp + (-hitBP);
hitBP = 0;
if (!(bDestroyable && (hp <= 0))) {
this.gotoAndPlay("hit");
_root.addSound(("s_des_" + type) + "_hit", 0.03, 50, this._x, this._y);
}
}
if (((hp <= 0) && (bDestroyable)) && (!bDead)) {
bDead = true;
this.gotoAndPlay("die");
_root.addSound(("s_des_" + type) + "_kill", 0.03, 50, this._x, this._y);
}
}
function tagHit(num) {
if ((this._y > _root.hitArray[num]._y) || (_root.hitArray[num] == null)) {
_root.hitArray[num] = this;
}
}
stop();
hitBP = 0;
hp = 30;
bDestroyable = false;
bDead = false;
bDead2 = false;
this.onEnterFrame = function () {
if (!_global.bPaused) {
if (!bDead2) {
this.play();
}
checkHit();
} else {
this.stop();
}
};
bDestroyable = true;
type = "monitor";
Symbol 1336 MovieClip Frame 7
gotoAndStop ("idle");
Symbol 1336 MovieClip Frame 8
gotoAndStop ("idle");
Symbol 1336 MovieClip Frame 14
gotoAndStop ("idle");
Symbol 1336 MovieClip Frame 30
bDead2 = true;
Symbol 1336 MovieClip Frame 32
stop();
Symbol 1337 MovieClip Frame 1
function checkHit() {
if ((hitBP <= 0) && (mcHit != undefined)) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
break;
}
_local4++;
}
} else if (hitBP > 0) {
hp = hp + (-hitBP);
hitBP = 0;
if (!(bDestroyable && (hp <= 0))) {
this.gotoAndPlay("hit");
_root.addSound(("s_des_" + type) + "_hit", 0.03, 50, this._x, this._y);
}
}
if (((hp <= 0) && (bDestroyable)) && (!bDead)) {
bDead = true;
this.gotoAndPlay("die");
_root.addSound(("s_des_" + type) + "_kill", 0.03, 50, this._x, this._y);
}
}
function tagHit(num) {
if ((this._y > _root.hitArray[num]._y) || (_root.hitArray[num] == null)) {
_root.hitArray[num] = this;
}
}
stop();
hitBP = 0;
hp = 30;
bDestroyable = false;
bDead = false;
bDead2 = false;
this.onEnterFrame = function () {
if (!_global.bPaused) {
if (!bDead2) {
this.play();
}
checkHit();
} else {
this.stop();
}
};
bDestroyable = true;
type = "monitor";
Symbol 1337 MovieClip Frame 8
gotoAndStop ("idle");
Symbol 1337 MovieClip Frame 9
gotoAndStop ("idle");
Symbol 1337 MovieClip Frame 15
gotoAndStop ("idle");
Symbol 1337 MovieClip Frame 31
bDead2 = true;
Symbol 1337 MovieClip Frame 33
stop();
Symbol 1344 MovieClip Frame 1
function checkHit() {
if ((hitBP <= 0) && (mcHit != undefined)) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
break;
}
_local4++;
}
} else if (hitBP > 0) {
hp = hp + (-hitBP);
hitBP = 0;
if (!(bDestroyable && (hp <= 0))) {
this.gotoAndPlay("hit");
_root.addSound(("s_des_" + type) + "_hit", 0.03, 50, this._x, this._y);
}
}
if (((hp <= 0) && (bDestroyable)) && (!bDead)) {
bDead = true;
this.gotoAndPlay("die");
_root.addSound(("s_des_" + type) + "_kill", 0.03, 50, this._x, this._y);
}
}
function tagHit(num) {
if ((this._y > _root.hitArray[num]._y) || (_root.hitArray[num] == null)) {
_root.hitArray[num] = this;
}
}
stop();
hitBP = 0;
hp = 30;
bDestroyable = false;
bDead = false;
bDead2 = false;
this.onEnterFrame = function () {
if (!_global.bPaused) {
if (!bDead2) {
this.play();
}
checkHit();
} else {
this.stop();
}
};
bDestroyable = true;
type = "cup";
Symbol 1344 MovieClip Frame 7
gotoAndStop ("idle");
Symbol 1344 MovieClip Frame 8
gotoAndStop ("idle");
Symbol 1344 MovieClip Frame 16
if (!bDead) {
gotoAndStop ("idle");
}
Symbol 1344 MovieClip Frame 27
bDead2 = true;
Symbol 1344 MovieClip Frame 29
stop();
Symbol 1347 MovieClip Frame 1
function checkHit() {
if ((hitBP <= 0) && (mcHit != undefined)) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
break;
}
_local4++;
}
} else if (hitBP > 0) {
hp = hp + (-hitBP);
hitBP = 0;
if (!(bDestroyable && (hp <= 0))) {
this.gotoAndPlay("hit");
_root.addSound(("s_des_" + type) + "_hit", 0.03, 50, this._x, this._y);
}
}
if (((hp <= 0) && (bDestroyable)) && (!bDead)) {
bDead = true;
this.gotoAndPlay("die");
_root.addSound(("s_des_" + type) + "_kill", 0.03, 50, this._x, this._y);
}
}
function tagHit(num) {
if ((this._y > _root.hitArray[num]._y) || (_root.hitArray[num] == null)) {
_root.hitArray[num] = this;
}
}
stop();
hitBP = 0;
hp = 30;
bDestroyable = false;
bDead = false;
bDead2 = false;
this.onEnterFrame = function () {
if (!_global.bPaused) {
if (!bDead2) {
this.play();
}
checkHit();
} else {
this.stop();
}
};
bDestroyable = true;
hp = 20;
type = "pencil";
Symbol 1347 MovieClip Frame 7
gotoAndStop ("idle");
Symbol 1347 MovieClip Frame 8
gotoAndStop ("idle");
Symbol 1347 MovieClip Frame 21
if (!bDead) {
stop();
}
Symbol 1347 MovieClip Frame 41
bDead2 = true;
Symbol 1347 MovieClip Frame 43
stop();
Symbol 1368 MovieClip Frame 1
function checkHit() {
if ((hitBP <= 0) && (mcHit != undefined)) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
break;
}
_local4++;
}
} else if (hitBP > 0) {
hp = hp + (-hitBP);
hitBP = 0;
if (!(bDestroyable && (hp <= 0))) {
this.gotoAndPlay("hit");
_root.addSound(("s_des_" + type) + "_hit", 0.03, 50, this._x, this._y);
}
}
if (((hp <= 0) && (bDestroyable)) && (!bDead)) {
bDead = true;
this.gotoAndPlay("die");
_root.addSound(("s_des_" + type) + "_kill", 0.03, 50, this._x, this._y);
}
}
function tagHit(num) {
if ((this._y > _root.hitArray[num]._y) || (_root.hitArray[num] == null)) {
_root.hitArray[num] = this;
}
}
function setDay(day) {
switch (day) {
case 1 :
dayName = "Monday";
break;
case 2 :
dayName = "Tuesday";
break;
case 3 :
dayName = "Wednesday";
break;
case 4 :
dayName = "Thursday";
break;
case 5 :
dayName = "Friday";
}
mc.textDay.text = dayName;
_root.dayName = dayName;
}
function setMonth(month) {
switch (month) {
case 0 :
mc.textMonth.text = "JAN";
break;
case 1 :
mc.textMonth.text = "FEB";
break;
case 2 :
mc.textMonth.text = "MAR";
break;
case 3 :
mc.textMonth.text = "APR";
break;
case 4 :
mc.textMonth.text = "MAY";
break;
case 5 :
mc.textMonth.text = "JUN";
break;
case 6 :
mc.textMonth.text = "JUL";
break;
case 7 :
mc.textMonth.text = "AUG";
break;
case 8 :
mc.textMonth.text = "SEP";
break;
case 9 :
mc.textMonth.text = "OCT";
break;
case 10 :
mc.textMonth.text = "NOV";
break;
case 11 :
mc.textMonth.text = "DEC";
}
}
function setCalendar() {
dateDay = date.getDay();
currDate = date.getDate();
currMonth = date.getMonth();
prevMonthDays = 31;
if (((((currMonth == 2) || (currMonth == 4)) || (currMonth == 6)) || (currMonth == 9)) || (currMonth == 11)) {
prevMonthDays = 30;
}
if (currDate < 1) {
currDate = currDate + prevMonthDays;
currMonth--;
if (currMonth < 0) {
currMonth = 11;
}
}
mc.textDate.text = currDate;
setDay(currDay);
setMonth(currMonth);
}
stop();
hitBP = 0;
hp = 30;
bDestroyable = false;
bDead = false;
bDead2 = false;
this.onEnterFrame = function () {
if (!_global.bPaused) {
if (!bDead2) {
this.play();
}
checkHit();
} else {
this.stop();
}
};
bDestroyable = false;
var date = new Date();
currDay = date.getDay();
dayName = "Monday";
setCalendar();
bDestroyable = true;
type = "calendar";
Symbol 1368 MovieClip Frame 7
gotoAndStop ("idle");
Symbol 1368 MovieClip Frame 8
gotoAndStop ("idle");
Symbol 1368 MovieClip Frame 25
if (!bDead) {
gotoAndStop ("idle");
}
Symbol 1368 MovieClip Frame 39
bDead2 = true;
Symbol 1368 MovieClip Frame 41
stop();
Symbol 1420 MovieClip Frame 1
function checkHit() {
if ((hitBP <= 0) && (mcHit != undefined)) {
var _local4 = 0;
while (_local4 < _root.bulletMax) {
if (_parent["bullet" + _local4].bHittable && (this.mcHit.hitTest(_parent["bullet" + _local4].xDest, _parent["bullet" + _local4].yDest, true))) {
if ((this._y > _root.hitArray[_local4]._y) || (_root.hitArray[_local4] == null)) {
_root.hitArray[_local4] = this;
}
break;
}
_local4++;
}
} else if (hitBP > 0) {
hp = hp + (-hitBP);
hitBP = 0;
if (!(bDestroyable && (hp <= 0))) {
this.gotoAndPlay("hit");
_root.addSound(("s_des_" + type) + "_hit", 0.03, 50, this._x, this._y);
}
}
if (((hp <= 0) && (bDestroyable)) && (!bDead)) {
bDead = true;
this.gotoAndPlay("die");
_root.addSound(("s_des_" + type) + "_kill", 0.03, 50, this._x, this._y);
}
}
function tagHit(num) {
if ((this._y > _root.hitArray[num]._y) || (_root.hitArray[num] == null)) {
_root.hitArray[num] = this;
}
}
stop();
hitBP = 0;
hp = 30;
bDestroyable = false;
bDead = false;
bDead2 = false;
this.onEnterFrame = function () {
if (!_global.bPaused) {
if (!bDead2) {
this.play();
}
checkHit();
} else {
this.stop();
}
};
bDestroyable = true;
type = "water";
Symbol 1420 MovieClip Frame 8
gotoAndStop ("idle");
Symbol 1420 MovieClip Frame 9
gotoAndStop ("idle");
Symbol 1420 MovieClip Frame 63
if (!bDead) {
gotoAndStop ("idle");
}
Symbol 1420 MovieClip Frame 85
bDead2 = true;
Symbol 1420 MovieClip Frame 106
stop();
Symbol 1422 MovieClip Frame 1
stop();
this._visible = false;
Symbol 1427 Button
on (release) {
if (!_global.bPaused) {
_root.pauseGame();
}
}
Symbol 1428 MovieClip Frame 1
buttonPause.enabled = false;
Symbol 1440 MovieClip Frame 6
_parent.gotoAndStop("idle");
Symbol 1483 MovieClip Frame 18
_parent.gotoAndStop("idle");
Symbol 1484 MovieClip Frame 23
gotoAndPlay ("loop");
Symbol 1485 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (!_global.bPaused) {
this.mc.play();
} else {
this.mc.stop();
}
};
Symbol 1488 MovieClip Frame 1
stop();
Symbol 1516 MovieClip Frame 1
stop();
Symbol 1517 MovieClip Frame 1
stop();
Symbol 1518 MovieClip Frame 1
stop();
Symbol 1518 MovieClip Frame 18
gotoAndStop ("idle");
Symbol 1553 MovieClip Frame 1
stop();
Symbol 1553 MovieClip Frame 20
gotoAndStop ("idle");
Symbol 1553 MovieClip Frame 31
gotoAndPlay ("rapidfireloop");
Symbol 1553 MovieClip Frame 40
gotoAndPlay ("rapidfireloop");
Symbol 1567 MovieClip Frame 1
stop();
Symbol 1578 MovieClip Frame 1
var vcam = (new flash.geom.Transform(this));
var camera = (new flash.geom.Transform(_root));
fscommand ("allowscale", true);
mcWindow._visible = false;
fullWindow = true;
keyWindow = 34;
windowPressed = false;
keyQH = 51;
keyQM = 50;
keyQL = 49;
keyQH2 = 99;
keyQM2 = 98;
keyQL2 = 97;
qHPressed = false;
qMPressed = false;
qLPressed = false;
count = 0;
bBugSuccess = false;
this.onEnterFrame = function () {
_root.filters = this.filters;
var _local3 = vcam.matrix;
camera.colorTransform = vcam.colorTransform;
_local3.invert();
_local3.translate(Stage.width * 0.5, Stage.height * 0.5);
camera.matrix = _local3;
if (Key.isDown(keyQH) || (Key.isDown(keyQH2))) {
if (!qHPressed) {
qHPressed = true;
_quality = "HIGH";
_root.qualityPreferred = "HIGH";
}
} else {
qHPressed = false;
}
if (Key.isDown(keyQM) || (Key.isDown(keyQM2))) {
if (!qMPressed) {
qMPressed = true;
_quality = "MEDIUM";
_root.qualityPreferred = "MEDIUM";
}
} else {
qMPressed = false;
}
if (Key.isDown(keyQL) || (Key.isDown(keyQL2))) {
if (!qLPressed) {
qLPressed = true;
_quality = "LOW";
_root.qualityPreferred = "LOW";
}
} else {
qLPressed = false;
}
if ((!bBugSuccess) && ((count % 60) == 0)) {
textBug.text = "Watch SuperNews! Every Thursday 11/10c on Current!";
loadVariables ("http://www.girlshavecooties.com/flash/snw.txt", mcBugHolder);
if (((mcBugHolder.bug != undefined) && (mcBugHolder.bug != null)) && (mcBugHolder.bug != "")) {
textBug.text = mcBugHolder.bug;
bBugSuccess = true;
}
}
count++;
};
Symbol 1579 MovieClip Frame 1
stop();
Symbol 1579 MovieClip Frame 15
play();
Symbol 1579 MovieClip Frame 156
gotoAndStop ("idle");