Frame 1
mochi.MochiServices.connect("6b7da8f4f7970e47");
Frame 2
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__("aeb664c8", this, 10301, true);
stop();
Frame 3
stopAllSounds();
var muteMusic = 0;
var muteSound = 0;
Frame 4
stop();
if (highScore == undefined) {
highScore = 0;
}
stopAllSounds();
loopSound = new Sound(this);
loopSound.attachSound("loopSound");
if (muteMusic == 0) {
loopSound.start(0.015, 999);
}
popSound = new Sound(this);
popSound.attachSound("pop");
puSound = new Sound(this);
puSound.attachSound("powerUp");
beepSound = new Sound(this);
beepSound.attachSound("beep");
explosionSound = new Sound(this);
explosionSound.attachSound("explosion");
pop2Sound = new Sound(this);
pop2Sound.attachSound("pop2");
fart1Sound = new Sound(this);
fart1Sound.attachSound("fart1");
fart2Sound = new Sound(this);
fart2Sound.attachSound("fart2");
fart3Sound = new Sound(this);
fart3Sound.attachSound("fart3");
fart4Sound = new Sound(this);
fart4Sound.attachSound("fart4");
fart5Sound = new Sound(this);
fart5Sound.attachSound("fart5");
fart6Sound = new Sound(this);
fart6Sound.attachSound("fart6");
fart7Sound = new Sound(this);
fart7Sound.attachSound("fart7");
fart8Sound = new Sound(this);
fart8Sound.attachSound("fart8");
fart9Sound = new Sound(this);
fart9Sound.attachSound("fart9");
fart10Sound = new Sound(this);
fart10Sound.attachSound("fart10");
fart11Sound = new Sound(this);
fart11Sound.attachSound("fart11");
fart12Sound = new Sound(this);
fart12Sound.attachSound("fart12");
death1Sound = new Sound(this);
death1Sound.attachSound("death1");
death2Sound = new Sound(this);
death2Sound.attachSound("death2");
death3Sound = new Sound(this);
death3Sound.attachSound("death3");
startFart = new Sound(this);
startFart.attachSound("startFart");
Instance of Symbol 152 MovieClip "playMore" in Frame 4
on (release) {
getURL ("http://www.urbaniacs.com", "_blank");
}
Frame 5
stop();
Instance of Symbol 253 MovieClip "introMovie_mc" in Frame 5
onClipEvent (load) {
var score2 = 0;
}
onClipEvent (enterFrame) {
score2++;
}
Instance of Symbol 258 MovieClip in Frame 5
on (release) {
_root.nextFrame();
}
Frame 6
function createEnemy1() {
duplicateMovieClip (_root.enemy1_mc, ("enemy1_" + enemy1i) + "_mc", 10000 + enemy1i);
_root[("enemy1_" + enemy1i) + "_mc"]._x = random(980) - 100;
_root[("enemy1_" + enemy1i) + "_mc"]._y = random(600) - 100;
enemy1i++;
}
function createEnemy2() {
duplicateMovieClip (_root.enemy2_mc, ("enemy2_" + enemy2i) + "_mc", 20000 + enemy2i);
_root[("enemy2_" + enemy2i) + "_mc"]._x = random(980) - 100;
_root[("enemy2_" + enemy2i) + "_mc"]._y = random(600) - 100;
enemy2i++;
}
function createEnemy3() {
duplicateMovieClip (_root.enemy3_mc, ("enemy3_" + enemy3i) + "_mc", 30000 + enemy3i);
_root[("enemy3_" + enemy3i) + "_mc"]._x = random(980) - 100;
_root[("enemy3_" + enemy3i) + "_mc"]._y = random(600) - 100;
enemy3i++;
}
function createEnemy4() {
if (enemy4Dead == 1) {
_root.enemy4_mc._x = random(980) - 100;
_root.enemy4_mc._y = random(600) - 100;
enemy4_mc.xspeed = ((Math.random() * 2) * _root.vars.enemySpeed) - _root.vars.enemySpeed;
enemy4_mc.yspeed = ((Math.random() * 2) * _root.vars.enemySpeed) - _root.vars.enemySpeed;
enemy4Dead = 0;
if ((_root.enemy4_mc._x > 0) && (_root.enemy4_mc._x < 550)) {
enemy4Dead = 1;
_root.createEnemy4();
}
if ((_root.enemy4_mc._y > 0) && (_root.enemy4_mc._y < 400)) {
enemy4Dead = 1;
_root.createEnemy4();
}
}
}
function eraseEnemies() {
i = 1;
while (i < _root.enemy1i) {
removeMovieClip(_root[("enemy1_" + i) + "_mc"]);
i++;
}
i = 1;
while (i < _root.enemy2i) {
removeMovieClip(("enemy2_" + i) + "_mc");
i++;
}
i = 1;
while (i < _root.enemy3i) {
removeMovieClip(("enemy3_" + i) + "_mc");
i++;
}
i = 1;
while (i < _root.enemy4i) {
_root.enemy4_mc._x = 1000;
_root.enemy4_mc._y = 1000;
_root.enemy4Dead = 1;
i++;
}
}
function dropScore(mc) {
var _local2 = _root.vars.comboScore - 5;
if (_local2 > 0) {
_local2 = Math.ceil(_local2 / 2);
var _local4 = aboveAll.scores.getNextHighestDepth();
var _local3 = aboveAll.scores.attachMovie("earning", "earning" + _local4, _local4);
_local3._x = mc._x;
_local3._y = mc._y;
_local3.c.display_txt.text = "+" + _local2;
_root.score = _root.score + _local2;
}
}
function makeGasBubble() {
var _local6 = Math.ceil(Math.random() * 6);
var _local3 = _root.aboveAll.gasLevel;
var _local5 = _local3.getNextHighestDepth();
var _local4 = "gas0" + (_local6 - 1);
var _local2 = _local3.attachMovie(_local4, _local4 + _local5, _local5);
_local2._rotation = random(360);
_local2._x = _root.dude_mc._x;
_local2._y = _root.dude_mc._y;
_local2._xscale = _local2._xscale + ((Math.random() * 20) - 10);
_local2._yscale = _local2._yscale + ((Math.random() * 20) - 10);
}
function removeBlast() {
removeMovieClip(blast);
}
stop();
var timer = 0;
var enemy1i = 1;
var enemy2i = 1;
var enemy3i = 1;
var chance1 = 0;
var chance2 = 0;
var chance3 = 150;
var chance4 = 0;
var enemy4Dead = 1;
var levelLength = 1000;
var pauseGame = 0;
var enemy1Timer = 0;
var EMSTimer = 0;
var startEMS = 30;
var EMS = startEMS;
var aboveAll = _root.createEmptyMovieClip("aboveAll", 90000);
aboveAll.createEmptyMovieClip("gasLevel", 1);
aboveAll.createEmptyMovieClip("scores", 2);
onEnterFrame = function () {
if (_root.pauseGame == 0) {
timer++;
enemy1Timer++;
EMSTimer++;
chance2++;
chance3++;
chance4++;
}
if (EMSTimer >= 80) {
EMSTimer = 0;
EMS = EMS - (EMS / 40);
}
if (enemy1Timer >= EMS) {
enemy1Timer = 0;
createEnemy1();
}
if (chance2 >= 300) {
chance2 = 0;
createEnemy2();
}
if (chance3 >= 300) {
chance3 = 0;
createEnemy3();
}
if (chance4 >= 200) {
chance4 = 0;
createEnemy4();
}
};
Instance of Symbol 218 MovieClip "enemy1_mc" in Frame 6
onClipEvent (load) {
xspeed = ((Math.random() * 2) * _root.vars.enemySpeed) - _root.vars.enemySpeed;
yspeed = ((Math.random() * 2) * _root.vars.enemySpeed) - _root.vars.enemySpeed;
if ((_x > 0) && (_x < 780)) {
_root.createEnemy1();
removeMovieClip(this);
}
if ((_y > 0) && (_y < 400)) {
_root.createEnemy1();
removeMovieClip(this);
}
}
on (release) {
trace(i);
}
onClipEvent (enterFrame) {
if (this._name != "enemy1_mc") {
if ((xspeed >= 0) && (yspeed >= 0)) {
_rotation = 45;
}
if ((xspeed >= 0) && (yspeed <= 0)) {
_rotation = 135;
}
if ((xspeed <= 0) && (yspeed <= 0)) {
_rotation = 225;
}
if ((xspeed <= 0) && (yspeed >= 0)) {
_rotation = 315;
}
_rotation = (360 - _rotation);
if (_rotation == 360) {
_rotation = 0;
}
_rotation = (_rotation + 180);
if (_rotation > 360) {
_rotation = (_rotation - 360);
}
i = Math.abs(xspeed) / Math.abs(yspeed);
if (i > 1.5) {
if ((xspeed * yspeed) > 0) {
_rotation = (_rotation - 15);
} else {
_rotation = (_rotation + 15);
}
}
if (i < 0.75) {
if ((xspeed * yspeed) > 0) {
_rotation = (_rotation + 15);
} else {
_rotation = (_rotation - 15);
}
}
if (_root.pauseGame == 0) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (_x < (10 + (_width / 2))) {
xspeed = Math.abs(xspeed);
xspeed = xspeed + 0.01;
}
if (_x > ((780 - (_width / 2)) - 10)) {
xspeed = Math.abs(xspeed) * -1;
xspeed = xspeed - 0.01;
}
if (_y < (10 + (_width / 2))) {
yspeed = Math.abs(yspeed);
yspeed = yspeed + 0.01;
}
if (_y > ((400 - (_height / 2)) - 10)) {
yspeed = Math.abs(yspeed) * -1;
yspeed = yspeed - 0.01;
}
}
if (Math.sqrt(Math.pow(Math.abs(_y - _root.dude_mc._y), 2) + Math.pow(Math.abs(_x - _root.dude_mc._x), 2)) < ((_width / 2) + (_root.dude_mc._width / 3))) {
if (_currentframe == 1) {
if ((_root.dude_mc._currentframe > 1) && (_root.dude_mc._currentframe <= 13)) {
_root.vars.enemiesKilled++;
if (_root.muteSound == 0) {
_root.popSound.start(0, 1);
}
xspeed = 0;
yspeed = 0;
_root.vars.comboScore++;
if (_root.vars.comboScore > 1) {
_root.comboshow.combo = _root.vars.comboScore;
_root.comboshow.gotoAndPlay(2);
}
play();
} else if (_root.dude_mc._currentframe < 18) {
_root.EMS = _root.startEMS;
enemy1Timer = 0;
_root.dude_mc.xspeed = 0;
_root.dude_mc.yspeed = 0;
if (_root.muteSound == 0) {
_root.explosionSound.start(0, 1);
}
_root.dude_mc.gotoAndPlay(18);
}
}
}
if (Math.sqrt(Math.pow(Math.abs(_y - _root.enemy4_mc._y), 2) + Math.pow(Math.abs(_x - _root.enemy4_mc._x), 2)) < ((_width / 2) + (_root.enemy4_mc._width / 2))) {
if ((_root.enemy4_mc.activated == 1) && (_root.enemy4_mc.health > 0)) {
if (_currentframe == 1) {
if (_root.muteSound == 0) {
_root.explosionSound.start(0, 1);
}
_root.comboBump_mc.comboBump2_mc.play();
_root.vars.comboScore++;
_root.enemy4_mc._width = _root.enemy4_mc._width * 0.8;
_root.enemy4_mc._height = _root.enemy4_mc._height * 0.8;
_root.vars.enemiesKilled++;
xspeed = 0;
yspeed = 0;
play();
_root.enemy4_mc.health--;
}
}
}
}
}
Instance of Symbol 259 MovieClip "enemy2_mc" in Frame 6
onClipEvent (load) {
xspeed = ((Math.random() * 2) * _root.vars.puSpeed) - _root.vars.puSpeed;
yspeed = ((Math.random() * 2) * _root.vars.puSpeed) - _root.vars.puSpeed;
if ((_x > 0) && (_x < 780)) {
_root.createEnemy2();
removeMovieClip(this);
}
if ((_y > 0) && (_y < 400)) {
_root.createEnemy2();
removeMovieClip(this);
}
}
onClipEvent (enterFrame) {
if (this._name != "enemy2_mc") {
if (_root.pauseGame == 0) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
if (_root.pauseGame == 0) {
if (_x < (10 + (_width / 2))) {
xspeed = Math.abs(xspeed);
xspeed = xspeed + 0.01;
}
if (_x > ((780 - (_width / 2)) - 10)) {
xspeed = Math.abs(xspeed) * -1;
xspeed = xspeed - 0.01;
}
if (_y < (10 + (_width / 2))) {
yspeed = Math.abs(yspeed);
yspeed = yspeed + 0.01;
}
if (_y > ((400 - (_height / 2)) - 10)) {
yspeed = Math.abs(yspeed) * -1;
yspeed = yspeed - 0.01;
}
}
if (Math.sqrt(Math.pow(Math.abs(_y - _root.dude_mc._y), 2) + Math.pow(Math.abs(_x - _root.dude_mc._x), 2)) < ((_width / 2) + (_root.dude_mc._width / 2))) {
if (_currentframe == 1) {
if (_root.dude_mc._currentframe <= 17) {
if (_root.muteSound == 0) {
_root.puSound.start(0, 1);
}
xspeed = 0;
yspeed = 0;
play();
if (_root.power_mc._width < 700) {
_root.power_mc.maxWidth = _root.power_mc.maxWidth + 10;
_root.power_mc._width = _root.power_mc._width + 10;
_root.powerHolder_mc._width = _root.powerHolder_mc._width + 10;
_root.shadowHolder_mc._width = _root.shadowHolder_mc._width + 10;
}
}
}
}
}
}
Instance of Symbol 260 MovieClip "enemy3_mc" in Frame 6
onClipEvent (load) {
xspeed = ((Math.random() * 2) * _root.vars.puSpeed) - _root.vars.puSpeed;
yspeed = ((Math.random() * 2) * _root.vars.puSpeed) - _root.vars.puSpeed;
if ((_x > 0) && (_x < 780)) {
_root.createEnemy3();
removeMovieClip(this);
}
if ((_y > 0) && (_y < 400)) {
_root.createEnemy3();
removeMovieClip(this);
}
}
onClipEvent (enterFrame) {
if (this._name != "enemy3_mc") {
if (_root.pauseGame == 0) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
if (_root.pauseGame == 0) {
if (_x < (10 + (_width / 2))) {
xspeed = Math.abs(xspeed);
xspeed = xspeed + 0.01;
}
if (_x > ((780 - (_width / 2)) - 10)) {
xspeed = Math.abs(xspeed) * -1;
xspeed = xspeed - 0.01;
}
if (_y < (10 + (_width / 2))) {
yspeed = Math.abs(yspeed);
yspeed = yspeed + 0.01;
}
if (_y > ((400 - (_height / 2)) - 10)) {
yspeed = Math.abs(yspeed) * -1;
yspeed = yspeed - 0.01;
}
}
if (Math.sqrt(Math.pow(Math.abs(_y - _root.dude_mc._y), 2) + Math.pow(Math.abs(_x - _root.dude_mc._x), 2)) < ((_width / 2) + (_root.dude_mc._width / 2))) {
if (_currentframe == 1) {
if (_root.dude_mc._currentframe <= 17) {
if (_root.muteSound == 0) {
_root.puSound.start(0, 1);
}
xspeed = 0;
yspeed = 0;
play();
_root.power_mc._width = _root.power_mc.maxWidth;
}
}
}
}
}
Instance of Symbol 263 MovieClip "enemy4_mc" in Frame 6
onClipEvent (load) {
var activated = 0;
var health = 5;
}
onClipEvent (enterFrame) {
if (_root.enemy4Dead == 0) {
if (_root.pauseGame == 0) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
}
if (_root.pauseGame == 0) {
if (_x < (10 + (_width / 2))) {
xspeed = Math.abs(xspeed);
xspeed = xspeed + 0.01;
}
if (_x > ((780 - (_width / 2)) - 10)) {
xspeed = Math.abs(xspeed) * -1;
xspeed = xspeed - 0.01;
}
if (_y < (10 + (_width / 2))) {
yspeed = Math.abs(yspeed);
yspeed = yspeed + 0.01;
}
if (_y > ((400 - (_height / 2)) - 10)) {
yspeed = Math.abs(yspeed) * -1;
yspeed = yspeed - 0.01;
}
}
if (Math.sqrt(Math.pow(Math.abs(_y - _root.dude_mc._y), 2) + Math.pow(Math.abs(_x - _root.dude_mc._x), 2)) < ((_width / 2) + (_root.dude_mc._width / 2))) {
if (_currentframe == 1) {
if (_root.dude_mc._currentframe <= 17) {
if (_root.muteSound == 0) {
_root.beepSound.start(0.1, 1);
}
_width = (_width * 2);
_height = (_height * 2);
activated = 1;
gotoAndPlay (2);
}
}
}
if (activated == 1) {
xspeed = 0;
yspeed = 0;
}
if (health <= 0) {
gotoAndStop (1);
activated = 0;
_xscale = 100;
_yscale = 100;
_root.enemy4_mc._x = 1000;
_root.enemy4_mc._y = 1000;
_root.enemy4Dead = 1;
health = 5;
}
if (activated == 0) {
if (_currentframe >= 2) {
_currentframe = 1;
}
}
}
}
Instance of Symbol 76 MovieClip [gas01] "gaslet1" in Frame 6
onClipEvent (load) {
if (_name != "gaslet1") {
_rotation = random(360);
_x = _root.dude_mc._x;
_y = _root.dude_mc._y;
_xscale = (_xscale + ((Math.random() * 20) - 10));
_yscale = (_yscale + ((Math.random() * 20) - 10));
}
}
Instance of Symbol 73 MovieClip [gas02] "gaslet2" in Frame 6
onClipEvent (load) {
if (_name != "gaslet2") {
_rotation = random(360);
_x = _root.dude_mc._x;
_y = _root.dude_mc._y;
_xscale = (_xscale + ((Math.random() * 20) - 10));
_yscale = (_yscale + ((Math.random() * 20) - 10));
}
}
Instance of Symbol 70 MovieClip [gas03] "gaslet3" in Frame 6
onClipEvent (load) {
if (_name != "gaslet3") {
_rotation = random(360);
_x = _root.dude_mc._x;
_y = _root.dude_mc._y;
_xscale = (_xscale + ((Math.random() * 20) - 10));
_yscale = (_yscale + ((Math.random() * 20) - 10));
}
}
Instance of Symbol 67 MovieClip [gas04] "gaslet4" in Frame 6
onClipEvent (load) {
if (_name != "gaslet4") {
_rotation = random(360);
_x = _root.dude_mc._x;
_y = _root.dude_mc._y;
_xscale = (_xscale + ((Math.random() * 20) - 10));
_yscale = (_yscale + ((Math.random() * 20) - 10));
}
}
Instance of Symbol 64 MovieClip [gas05] "gaslet5" in Frame 6
onClipEvent (load) {
if (_name != "gaslet5") {
_rotation = random(360);
_x = _root.dude_mc._x;
_y = _root.dude_mc._y;
_xscale = (_xscale + ((Math.random() * 20) - 10));
_yscale = (_yscale + ((Math.random() * 20) - 10));
}
}
Instance of Symbol 61 MovieClip [gas06] "gaslet6" in Frame 6
onClipEvent (load) {
if (_name != "gaslet6") {
_rotation = random(360);
_x = _root.dude_mc._x;
_y = _root.dude_mc._y;
_xscale = (_xscale + ((Math.random() * 20) - 10));
_yscale = (_yscale + ((Math.random() * 20) - 10));
}
}
Instance of Symbol 278 MovieClip "dude_mc" in Frame 6
onClipEvent (load) {
var dudeSpeed = 3;
var xspeed = 0;
var yspeed = 0;
var friction = 0.8;
_root.comboBump_mc.gotoAndPlay(11);
}
onClipEvent (enterFrame) {
if (Math.abs(xspeed) < 0.01) {
xspeed = 0;
}
if (Math.abs(yspeed) < 0.01) {
yspeed = 0;
}
if ((Math.abs(xspeed) > 0) || (Math.abs(yspeed) > 0)) {
if ((xspeed > 0) && (yspeed > 0)) {
_rotation = 45;
}
if ((xspeed > 0) && (yspeed < 0)) {
_rotation = 135;
}
if ((xspeed < 0) && (yspeed < 0)) {
_rotation = 225;
}
if ((xspeed < 0) && (yspeed > 0)) {
_rotation = 315;
}
_rotation = (360 - _rotation);
if (_rotation == 360) {
_rotation = 0;
}
_rotation = (_rotation + 180);
if (_rotation > 360) {
_rotation = (_rotation - 360);
}
i = Math.abs(xspeed) / Math.abs(yspeed);
if (i > 1.5) {
if ((xspeed * yspeed) > 0) {
_rotation = (_rotation - 15);
} else {
_rotation = (_rotation + 15);
}
}
if (i > 3) {
if ((xspeed * yspeed) > 0) {
_rotation = (_rotation - 15);
} else {
_rotation = (_rotation + 15);
}
}
if (i > 5) {
if ((xspeed * yspeed) > 0) {
_rotation = (_rotation - 15);
} else {
_rotation = (_rotation + 15);
}
}
if (i < 0.75) {
if ((xspeed * yspeed) > 0) {
_rotation = (_rotation + 15);
} else {
_rotation = (_rotation - 15);
}
}
if (i < 0.5) {
if ((xspeed * yspeed) > 0) {
_rotation = (_rotation + 15);
} else {
_rotation = (_rotation - 15);
}
}
if (i < 0.3) {
if ((xspeed * yspeed) > 0) {
_rotation = (_rotation + 15);
} else {
_rotation = (_rotation - 15);
}
}
if ((xspeed == 0) && (yspeed > 0)) {
_rotation = 180;
}
if ((xspeed == 0) && (yspeed < 0)) {
_rotation = 0;
}
if ((xspeed < 0) && (yspeed == 0)) {
_rotation = 270;
}
if ((xspeed > 0) && (yspeed == 0)) {
_rotation = 90;
}
}
if (Key.isDown(38)) {
} else if (Key.isDown(40)) {
} else if (Key.isDown(37)) {
} else if (Key.isDown(39)) {
} else {
_root.dude_mc.elephant.gotoAndPlay(3);
}
if (_root.pauseGame == 0) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * friction;
yspeed = yspeed * friction;
}
if (Math.abs(xspeed) < 0.01) {
xspeed = 0;
}
if (Math.abs(yspeed) < 0.01) {
yspeed = 0;
}
if (_root.pauseGame == 0) {
if (_currentframe <= 17) {
if (Key.isDown(38)) {
yspeed = yspeed - dudeSpeed;
}
if (Key.isDown(40)) {
yspeed = yspeed + dudeSpeed;
}
if (Key.isDown(37)) {
xspeed = xspeed - dudeSpeed;
}
if (Key.isDown(39)) {
xspeed = xspeed + dudeSpeed;
}
}
}
if (_root.pauseGame == 0) {
if (Key.isDown(32)) {
if (this._currentframe == 1) {
if (_root.power_mc._width > 5) {
gotoAndPlay (2);
}
}
_root.power_mc.used = 1;
} else {
_root.vars.comboScore = 0;
if (_currentframe >= 2) {
if (_currentframe <= 14) {
gotoAndPlay (14);
}
} else {
gotoAndStop (1);
}
_root.power_mc.used = 0;
}
}
if (_x < (10 + (base_mc._width / 2))) {
_x = (10 + (base_mc._width / 2));
}
if (_x > ((780 - (base_mc._width / 2)) - 10)) {
_x = ((780 - (base_mc._width / 2)) - 10);
}
if (_y < (10 + (base_mc._width / 2))) {
_y = (10 + (base_mc._width / 2));
}
if (_y > ((400 - (base_mc._height / 2)) - 10)) {
_y = ((400 - (base_mc._height / 2)) - 10);
}
if (_root.power_mc._width < 5) {
if (_root.comboBump_mc._currentframe < 11) {
_root.comboBump_mc.gotoAndPlay(11);
}
_root.vars.comboScore = 0;
if ((_currentframe < 18) && (_currentframe > 1)) {
gotoAndStop (1);
}
}
if (_root.pauseGame == 1) {
stop();
}
if (_root.pauseGame == 0) {
if ((_currentframe > 1) && (_currentframe < 14)) {
if ((Math.abs(xspeed) > 2) || (Math.abs(yspeed) > 2)) {
_root.makeGasBubble();
}
}
}
}
Instance of Symbol 284 MovieClip "explosion" in Frame 6
onClipEvent (load) {
}
Instance of Symbol 288 MovieClip "vars" in Frame 6
onClipEvent (load) {
_root.comboValue = 10;
var enemyAmount = 1;
_root.score = 0;
var enemiesKilled = 0;
var enemySpeed = 7;
var puSpeed = 3;
var comboScore = 0;
var maxCombo = 0;
_root.totalScore = 0;
var gameFrame = 6;
var scoreSquasher = 1;
var updateScoreOn = 4;
}
onClipEvent (enterFrame) {
if (_root.pauseGame == 0) {
if (_root._currentframe == gameFrame) {
scoreSquasher++;
if (scoreSquasher >= updateScoreOn) {
_root.score = _root.score + 1;
scoreSquasher = 1;
}
}
if (enemyAmount > 0.01) {
enemyAmount = enemyAmount * 0.9985;
}
enemySpeed = enemySpeed + 0.002;
}
if (comboScore > maxCombo) {
maxCombo = comboScore;
}
trace(_root.score);
_root.combo_txt.text = maxCombo;
_root.score_txt.text = _root.score;
_root.totalScore = (_root.score + (maxCombo * _root.comboValue)) + enemiesKilled;
}
Instance of Symbol 294 MovieClip "power_mc" in Frame 6
onClipEvent (load) {
var used = 0;
var maxWidth = 345;
}
onClipEvent (enterFrame) {
if (_root.pauseGame == 0) {
if (used == 1) {
_width = (_width - 4);
} else if (_width < maxWidth) {
_width = (_width + 1);
}
}
}
Frame 7
function resetGame() {
trace("called");
Key.removeListener(keyListener_obj);
_root.EMS = startEMS;
_root.score = 0;
_root.totalScore = 0;
_root.vars.enemyAmount = 1;
_root.vars.enemySpeed = 3;
_root.vars.enemiesKilled = 0;
_root.vars.maxCombo = 0;
_root.vars.scoreSquasher = 1;
_root.gotoAndStop("game");
}
restart_btn.onRelease = function () {
resetGame();
};
var defaultName = "Your Name Here";
var defaultName2 = "Enter Name";
name_txt.text = ((playername == undefined) ? (defaultName) : (playername));
submitScore_btn.enabled = true;
submitScore_btn.onRelease = function () {
if ((name_txt.text != defaultName) && (name_txt.text != defaultName2)) {
var _local2 = name_txt.text;
_root.playername = _local2;
gotoAndPlay ("submit");
} else {
warning.play();
name_txt.text = defaultName2;
}
};
var f_obj = new Object();
f_obj.onSetFocus = function (name_txt) {
trace("test");
};
name_txt.addListener(f_obj);
Instance of Symbol 312 MovieClip in Frame 7
onClipEvent (load) {
justScore_txt.text = "survival score: " + _root.score;
bonus_txt.text = "combo bonus: " + (_root.vars.maxCombo * _root.comboValue);
hench_txt.text = "hechlings gassed: " + _root.vars.enemiesKilled;
score_txt.text = _root.totalScore;
}
Instance of Symbol 152 MovieClip "playMore" in Frame 7
on (release) {
getURL ("http://www.urbaniacs.com", "_blank");
}
Frame 8
Key.removeListener(keyListener_obj);
submitScore_btn.enabled = false;
Frame 13
stop();
cover.onRelease = function () {
};
cover.useHandCursor = false;
mochi.MochiScores.showLeaderboard({boardID:"eb64481c980372c9", score:_root.totalScore, name:_root.playername});
Frame 17
var keyListener_obj = new Object();
keyListener_obj.onKeyDown = function () {
if (!(Key.getCode() === 82)) {
} else {
resetGame();
Key.removeListener(keyListener_obj);
}
};
Key.addListener(keyListener_obj);
stop();
Symbol 30 MovieClip [blast] Frame 9
_root.removeBlast();
Symbol 48 MovieClip Frame 10
stop();
Symbol 53 MovieClip [earning] Frame 20
removeMovieClip(this);
Symbol 61 MovieClip [gas06] Frame 50
removeMovieClip(this);
Symbol 64 MovieClip [gas05] Frame 50
removeMovieClip(this);
Symbol 67 MovieClip [gas04] Frame 50
removeMovieClip(this);
Symbol 70 MovieClip [gas03] Frame 50
removeMovieClip(this);
Symbol 73 MovieClip [gas02] Frame 50
removeMovieClip(this);
Symbol 76 MovieClip [gas01] Frame 50
removeMovieClip(this);
Symbol 330 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.31");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 331 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 137 MovieClip Frame 70
gotoUrb_btn.onRelease = function () {
getURL ("http://www.urbaniacs.com", "_blank");
};
Symbol 137 MovieClip Frame 165
_root.play();
stop();
Symbol 143 Button
on (release) {
gotoAndStop ("game");
if (_root.muteSound == 0) {
pop2Sound.start(0, 1);
}
}
Symbol 148 Button
on (release) {
gotoAndStop ("instructions");
if (_root.muteSound == 0) {
pop2Sound.start(0, 1);
}
}
Instance of Symbol 107 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 2
stop();
Symbol 165 MovieClip Frame 3
stop();
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 2
stop();
Instance of Symbol 160 MovieClip in Symbol 174 MovieClip Frame 1
on (release) {
_root.options_mc.play();
}
Instance of Symbol 166 MovieClip "quality_btn" in Symbol 174 MovieClip Frame 1
on (release) {
if (_root._quality == "HIGH") {
quality_mc.gotoAndStop(2);
_root._quality = "LOW";
} else if (quality_mc._currentframe == 2) {
quality_mc.gotoAndStop(3);
_root._quality = "MEDIUM";
} else if (quality_mc._currentframe == 3) {
quality_mc.gotoAndStop(1);
_root._quality = "HIGH";
}
}
Instance of Symbol 171 MovieClip in Symbol 174 MovieClip Frame 1
on (release) {
if (_root.muteSound == 0) {
_root.muteSound = 1;
muteSound_mc.gotoAndStop(2);
} else {
_root.muteSound = 0;
muteSound_mc.gotoAndStop(1);
}
}
Instance of Symbol 173 MovieClip in Symbol 174 MovieClip Frame 1
on (release) {
if (_root.muteMusic == 0) {
_root.muteMusic = 1;
stopAllSounds();
muteMusic_mc.gotoAndStop(2);
} else {
muteMusic_mc.gotoAndStop(1);
_root.muteMusic = 0;
_root.loopSound.start(0.015, 999);
}
}
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 20
stop();
Symbol 175 MovieClip Frame 40
gotoAndStop (1);
Symbol 218 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 2
_root.dropScore(this);
Symbol 218 MovieClip Frame 33
removeMovieClip(this);
Instance of Symbol 218 MovieClip "enemy1_mc" in Symbol 253 MovieClip Frame 487
onClipEvent (enterFrame) {
this.play();
}
Instance of Symbol 218 MovieClip "enemy1_mc" in Symbol 253 MovieClip Frame 1299
onClipEvent (enterFrame) {
this.play();
}
Instance of Symbol 218 MovieClip "enemy1_mc" in Symbol 253 MovieClip Frame 1344
onClipEvent (enterFrame) {
this.play();
}
Instance of Symbol 218 MovieClip "enemy1_mc" in Symbol 253 MovieClip Frame 1390
onClipEvent (enterFrame) {
this.play();
}
Instance of Symbol 218 MovieClip "enemy1_mc" in Symbol 253 MovieClip Frame 1435
onClipEvent (enterFrame) {
this.play();
}
Instance of Symbol 218 MovieClip "enemy1_mc" in Symbol 253 MovieClip Frame 1481
onClipEvent (enterFrame) {
this.play();
}
Symbol 253 MovieClip Frame 1958
_root.gotoAndStop("menu");
Symbol 256 Button
on (release) {
_root.gotoAndStop("menu");
_root.eraseEnemies();
}
Symbol 259 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 10
removeMovieClip(this);
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 10
removeMovieClip(this);
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 25
gotoAndPlay (2);
Symbol 277 MovieClip Frame 10
stop();
Symbol 278 MovieClip Frame 1
stop();
go = 1;
gogo = 1;
Symbol 278 MovieClip Frame 2
i = random(12);
if (gogo == 1) {
if (_root.power_mc._width > 5) {
var expl = _root.attachMovie("blast", "blast", 1);
i = 12;
expl._x = _x;
expl._y = _y;
expl.follow = this;
expl.onEnterFrame = function () {
this._rotation = this.follow._rotation;
this._x = this.follow._x;
this._y = this.follow._y;
};
gogo = 0;
}
}
if (go == 1) {
if (_root.power_mc._width > 5) {
if (_root.muteSound == 1) {
go = 0;
}
}
}
if (_root.muteSound == 0) {
if (_root.power_mc._width > 5) {
if (go == 1) {
if (i == 0) {
_root.fart1Sound.onSoundComplete = function () {
go = 1;
};
_root.fart1Sound.start(0, 1);
go = 0;
}
if (i == 1) {
_root.fart2Sound.onSoundComplete = function () {
go = 1;
};
_root.fart2Sound.start(0, 1);
go = 0;
}
if (i == 2) {
_root.fart3Sound.onSoundComplete = function () {
go = 1;
};
_root.fart3Sound.start(0, 1);
go = 0;
}
if (i == 3) {
_root.fart4Sound.onSoundComplete = function () {
go = 1;
};
_root.fart4Sound.start(0, 1);
go = 0;
}
if (i == 4) {
_root.fart5Sound.onSoundComplete = function () {
go = 1;
};
_root.fart5Sound.start(0, 1);
go = 0;
}
if (i == 5) {
_root.fart6Sound.onSoundComplete = function () {
go = 1;
};
_root.fart6Sound.start(0, 1);
go = 0;
}
if (i == 6) {
_root.fart7Sound.onSoundComplete = function () {
go = 1;
};
_root.fart7Sound.start(0, 1);
go = 0;
}
if (i == 7) {
_root.fart8Sound.onSoundComplete = function () {
go = 1;
};
_root.fart8Sound.start(0, 1);
go = 0;
}
if (i == 8) {
_root.fart9Sound.onSoundComplete = function () {
go = 1;
};
_root.fart9Sound.start(0, 1);
go = 0;
}
if (i == 9) {
_root.fart10Sound.onSoundComplete = function () {
go = 1;
};
_root.fart10Sound.start(0, 1);
go = 0;
}
if (i == 10) {
_root.fart11Sound.onSoundComplete = function () {
go = 1;
};
_root.fart11Sound.start(0, 1);
go = 0;
}
if (i == 11) {
_root.fart12Sound.onSoundComplete = function () {
go = 1;
};
_root.fart12Sound.start(0, 1);
go = 0;
}
if (i == 12) {
_root.startFart.onSoundComplete = function () {
go = 1;
};
_root.startFart.start(0);
go = 0;
}
}
}
}
Symbol 278 MovieClip Frame 3
i = random(12);
if (gogo == 1) {
if (_root.power_mc._width > 5) {
_root.explosion._x = _root.dude_mc._x - 5;
_root.explosion._y = _root.dude_mc._y - 40;
_root.explosion.play();
gogo = 0;
}
}
if (go == 1) {
if (_root.power_mc._width > 5) {
if (_root.muteSound == 1) {
go = 0;
}
}
}
if (_root.muteSound == 0) {
if (_root.power_mc._width > 5) {
if (go == 1) {
if (i == 0) {
_root.fart1Sound.onSoundComplete = function () {
go = 1;
};
_root.fart1Sound.start(0, 1);
go = 0;
}
if (i == 1) {
_root.fart2Sound.onSoundComplete = function () {
go = 1;
};
_root.fart2Sound.start(0, 1);
go = 0;
}
if (i == 2) {
_root.fart3Sound.onSoundComplete = function () {
go = 1;
};
_root.fart3Sound.start(0, 1);
go = 0;
}
if (i == 3) {
_root.fart4Sound.onSoundComplete = function () {
go = 1;
};
_root.fart4Sound.start(0, 1);
go = 0;
}
if (i == 4) {
_root.fart5Sound.onSoundComplete = function () {
go = 1;
};
_root.fart5Sound.start(0, 1);
go = 0;
}
if (i == 5) {
_root.fart6Sound.onSoundComplete = function () {
go = 1;
};
_root.fart6Sound.start(0, 1);
go = 0;
}
if (i == 6) {
_root.fart7Sound.onSoundComplete = function () {
go = 1;
};
_root.fart7Sound.start(0, 1);
go = 0;
}
if (i == 7) {
_root.fart8Sound.onSoundComplete = function () {
go = 1;
};
_root.fart8Sound.start(0, 1);
go = 0;
}
if (i == 8) {
_root.fart9Sound.onSoundComplete = function () {
go = 1;
};
_root.fart9Sound.start(0, 1);
go = 0;
}
if (i == 9) {
_root.fart10Sound.onSoundComplete = function () {
go = 1;
};
_root.fart10Sound.start(0, 1);
go = 0;
}
if (i == 10) {
_root.fart11Sound.onSoundComplete = function () {
go = 1;
};
_root.fart11Sound.start(0, 1);
go = 0;
}
if (i == 11) {
_root.fart12Sound.onSoundComplete = function () {
go = 1;
};
_root.fart12Sound.start(0, 1);
go = 0;
}
}
}
}
Symbol 278 MovieClip Frame 4
i = random(12);
if (gogo == 1) {
if (_root.power_mc._width > 5) {
_root.explosion._x = _root.dude_mc._x - 5;
_root.explosion._y = _root.dude_mc._y - 40;
_root.explosion.play();
gogo = 0;
}
}
if (go == 1) {
if (_root.power_mc._width > 5) {
if (_root.muteSound == 1) {
go = 0;
}
}
}
if (_root.muteSound == 0) {
if (_root.power_mc._width > 5) {
if (go == 1) {
if (i == 0) {
_root.fart1Sound.onSoundComplete = function () {
go = 1;
};
_root.fart1Sound.start(0, 1);
go = 0;
}
if (i == 1) {
_root.fart2Sound.onSoundComplete = function () {
go = 1;
};
_root.fart2Sound.start(0, 1);
go = 0;
}
if (i == 2) {
_root.fart3Sound.onSoundComplete = function () {
go = 1;
};
_root.fart3Sound.start(0, 1);
go = 0;
}
if (i == 3) {
_root.fart4Sound.onSoundComplete = function () {
go = 1;
};
_root.fart4Sound.start(0, 1);
go = 0;
}
if (i == 4) {
_root.fart5Sound.onSoundComplete = function () {
go = 1;
};
_root.fart5Sound.start(0, 1);
go = 0;
}
if (i == 5) {
_root.fart6Sound.onSoundComplete = function () {
go = 1;
};
_root.fart6Sound.start(0, 1);
go = 0;
}
if (i == 6) {
_root.fart7Sound.onSoundComplete = function () {
go = 1;
};
_root.fart7Sound.start(0, 1);
go = 0;
}
if (i == 7) {
_root.fart8Sound.onSoundComplete = function () {
go = 1;
};
_root.fart8Sound.start(0, 1);
go = 0;
}
if (i == 8) {
_root.fart9Sound.onSoundComplete = function () {
go = 1;
};
_root.fart9Sound.start(0, 1);
go = 0;
}
if (i == 9) {
_root.fart10Sound.onSoundComplete = function () {
go = 1;
};
_root.fart10Sound.start(0, 1);
go = 0;
}
if (i == 10) {
_root.fart11Sound.onSoundComplete = function () {
go = 1;
};
_root.fart11Sound.start(0, 1);
go = 0;
}
if (i == 11) {
_root.fart12Sound.onSoundComplete = function () {
go = 1;
};
_root.fart12Sound.start(0, 1);
go = 0;
}
}
}
}
Symbol 278 MovieClip Frame 5
i = random(12);
if (gogo == 1) {
if (_root.power_mc._width > 5) {
_root.explosion._x = _root.dude_mc._x - 5;
_root.explosion._y = _root.dude_mc._y - 40;
_root.explosion.play();
gogo = 0;
}
}
if (go == 1) {
if (_root.power_mc._width > 5) {
if (_root.muteSound == 1) {
go = 0;
}
}
}
if (_root.muteSound == 0) {
if (_root.power_mc._width > 5) {
if (go == 1) {
if (i == 0) {
_root.fart1Sound.onSoundComplete = function () {
go = 1;
};
_root.fart1Sound.start(0, 1);
go = 0;
}
if (i == 1) {
_root.fart2Sound.onSoundComplete = function () {
go = 1;
};
_root.fart2Sound.start(0, 1);
go = 0;
}
if (i == 2) {
_root.fart3Sound.onSoundComplete = function () {
go = 1;
};
_root.fart3Sound.start(0, 1);
go = 0;
}
if (i == 3) {
_root.fart4Sound.onSoundComplete = function () {
go = 1;
};
_root.fart4Sound.start(0, 1);
go = 0;
}
if (i == 4) {
_root.fart5Sound.onSoundComplete = function () {
go = 1;
};
_root.fart5Sound.start(0, 1);
go = 0;
}
if (i == 5) {
_root.fart6Sound.onSoundComplete = function () {
go = 1;
};
_root.fart6Sound.start(0, 1);
go = 0;
}
if (i == 6) {
_root.fart7Sound.onSoundComplete = function () {
go = 1;
};
_root.fart7Sound.start(0, 1);
go = 0;
}
if (i == 7) {
_root.fart8Sound.onSoundComplete = function () {
go = 1;
};
_root.fart8Sound.start(0, 1);
go = 0;
}
if (i == 8) {
_root.fart9Sound.onSoundComplete = function () {
go = 1;
};
_root.fart9Sound.start(0, 1);
go = 0;
}
if (i == 9) {
_root.fart10Sound.onSoundComplete = function () {
go = 1;
};
_root.fart10Sound.start(0, 1);
go = 0;
}
if (i == 10) {
_root.fart11Sound.onSoundComplete = function () {
go = 1;
};
_root.fart11Sound.start(0, 1);
go = 0;
}
if (i == 11) {
_root.fart12Sound.onSoundComplete = function () {
go = 1;
};
_root.fart12Sound.start(0, 1);
go = 0;
}
}
}
}
Symbol 278 MovieClip Frame 6
i = random(12);
if (gogo == 1) {
if (_root.power_mc._width > 5) {
_root.explosion._x = _root.dude_mc._x - 5;
_root.explosion._y = _root.dude_mc._y - 40;
_root.explosion.play();
gogo = 0;
}
}
if (go == 1) {
if (_root.power_mc._width > 5) {
if (_root.muteSound == 1) {
go = 0;
}
}
}
if (_root.muteSound == 0) {
if (_root.power_mc._width > 5) {
if (go == 1) {
if (i == 0) {
_root.fart1Sound.onSoundComplete = function () {
go = 1;
};
_root.fart1Sound.start(0, 1);
go = 0;
}
if (i == 1) {
_root.fart2Sound.onSoundComplete = function () {
go = 1;
};
_root.fart2Sound.start(0, 1);
go = 0;
}
if (i == 2) {
_root.fart3Sound.onSoundComplete = function () {
go = 1;
};
_root.fart3Sound.start(0, 1);
go = 0;
}
if (i == 3) {
_root.fart4Sound.onSoundComplete = function () {
go = 1;
};
_root.fart4Sound.start(0, 1);
go = 0;
}
if (i == 4) {
_root.fart5Sound.onSoundComplete = function () {
go = 1;
};
_root.fart5Sound.start(0, 1);
go = 0;
}
if (i == 5) {
_root.fart6Sound.onSoundComplete = function () {
go = 1;
};
_root.fart6Sound.start(0, 1);
go = 0;
}
if (i == 6) {
_root.fart7Sound.onSoundComplete = function () {
go = 1;
};
_root.fart7Sound.start(0, 1);
go = 0;
}
if (i == 7) {
_root.fart8Sound.onSoundComplete = function () {
go = 1;
};
_root.fart8Sound.start(0, 1);
go = 0;
}
if (i == 8) {
_root.fart9Sound.onSoundComplete = function () {
go = 1;
};
_root.fart9Sound.start(0, 1);
go = 0;
}
if (i == 9) {
_root.fart10Sound.onSoundComplete = function () {
go = 1;
};
_root.fart10Sound.start(0, 1);
go = 0;
}
if (i == 10) {
_root.fart11Sound.onSoundComplete = function () {
go = 1;
};
_root.fart11Sound.start(0, 1);
go = 0;
}
if (i == 11) {
_root.fart12Sound.onSoundComplete = function () {
go = 1;
};
_root.fart12Sound.start(0, 1);
go = 0;
}
}
}
}
Symbol 278 MovieClip Frame 7
i = random(12);
if (gogo == 1) {
if (_root.power_mc._width > 5) {
_root.explosion._x = _root.dude_mc._x - 5;
_root.explosion._y = _root.dude_mc._y - 40;
_root.explosion.play();
gogo = 0;
}
}
if (go == 1) {
if (_root.power_mc._width > 5) {
if (_root.muteSound == 1) {
go = 0;
}
}
}
if (_root.muteSound == 0) {
if (_root.power_mc._width > 5) {
if (go == 1) {
if (i == 0) {
_root.fart1Sound.onSoundComplete = function () {
go = 1;
};
_root.fart1Sound.start(0, 1);
go = 0;
}
if (i == 1) {
_root.fart2Sound.onSoundComplete = function () {
go = 1;
};
_root.fart2Sound.start(0, 1);
go = 0;
}
if (i == 2) {
_root.fart3Sound.onSoundComplete = function () {
go = 1;
};
_root.fart3Sound.start(0, 1);
go = 0;
}
if (i == 3) {
_root.fart4Sound.onSoundComplete = function () {
go = 1;
};
_root.fart4Sound.start(0, 1);
go = 0;
}
if (i == 4) {
_root.fart5Sound.onSoundComplete = function () {
go = 1;
};
_root.fart5Sound.start(0, 1);
go = 0;
}
if (i == 5) {
_root.fart6Sound.onSoundComplete = function () {
go = 1;
};
_root.fart6Sound.start(0, 1);
go = 0;
}
if (i == 6) {
_root.fart7Sound.onSoundComplete = function () {
go = 1;
};
_root.fart7Sound.start(0, 1);
go = 0;
}
if (i == 7) {
_root.fart8Sound.onSoundComplete = function () {
go = 1;
};
_root.fart8Sound.start(0, 1);
go = 0;
}
if (i == 8) {
_root.fart9Sound.onSoundComplete = function () {
go = 1;
};
_root.fart9Sound.start(0, 1);
go = 0;
}
if (i == 9) {
_root.fart10Sound.onSoundComplete = function () {
go = 1;
};
_root.fart10Sound.start(0, 1);
go = 0;
}
if (i == 10) {
_root.fart11Sound.onSoundComplete = function () {
go = 1;
};
_root.fart11Sound.start(0, 1);
go = 0;
}
if (i == 11) {
_root.fart12Sound.onSoundComplete = function () {
go = 1;
};
_root.fart12Sound.start(0, 1);
go = 0;
}
}
}
}
Symbol 278 MovieClip Frame 8
i = random(12);
if (gogo == 1) {
if (_root.power_mc._width > 5) {
_root.explosion._x = _root.dude_mc._x - 5;
_root.explosion._y = _root.dude_mc._y - 40;
_root.explosion.play();
gogo = 0;
}
}
if (go == 1) {
if (_root.power_mc._width > 5) {
if (_root.muteSound == 1) {
go = 0;
}
}
}
if (_root.muteSound == 0) {
if (_root.power_mc._width > 5) {
if (go == 1) {
if (i == 0) {
_root.fart1Sound.onSoundComplete = function () {
go = 1;
};
_root.fart1Sound.start(0, 1);
go = 0;
}
if (i == 1) {
_root.fart2Sound.onSoundComplete = function () {
go = 1;
};
_root.fart2Sound.start(0, 1);
go = 0;
}
if (i == 2) {
_root.fart3Sound.onSoundComplete = function () {
go = 1;
};
_root.fart3Sound.start(0, 1);
go = 0;
}
if (i == 3) {
_root.fart4Sound.onSoundComplete = function () {
go = 1;
};
_root.fart4Sound.start(0, 1);
go = 0;
}
if (i == 4) {
_root.fart5Sound.onSoundComplete = function () {
go = 1;
};
_root.fart5Sound.start(0, 1);
go = 0;
}
if (i == 5) {
_root.fart6Sound.onSoundComplete = function () {
go = 1;
};
_root.fart6Sound.start(0, 1);
go = 0;
}
if (i == 6) {
_root.fart7Sound.onSoundComplete = function () {
go = 1;
};
_root.fart7Sound.start(0, 1);
go = 0;
}
if (i == 7) {
_root.fart8Sound.onSoundComplete = function () {
go = 1;
};
_root.fart8Sound.start(0, 1);
go = 0;
}
if (i == 8) {
_root.fart9Sound.onSoundComplete = function () {
go = 1;
};
_root.fart9Sound.start(0, 1);
go = 0;
}
if (i == 9) {
_root.fart10Sound.onSoundComplete = function () {
go = 1;
};
_root.fart10Sound.start(0, 1);
go = 0;
}
if (i == 10) {
_root.fart11Sound.onSoundComplete = function () {
go = 1;
};
_root.fart11Sound.start(0, 1);
go = 0;
}
if (i == 11) {
_root.fart12Sound.onSoundComplete = function () {
go = 1;
};
_root.fart12Sound.start(0, 1);
go = 0;
}
}
}
}
Symbol 278 MovieClip Frame 9
i = random(12);
if (gogo == 1) {
if (_root.power_mc._width > 5) {
_root.explosion._x = _root.dude_mc._x - 5;
_root.explosion._y = _root.dude_mc._y - 40;
_root.explosion.play();
gogo = 0;
}
}
if (go == 1) {
if (_root.power_mc._width > 5) {
if (_root.muteSound == 1) {
go = 0;
}
}
}
if (_root.muteSound == 0) {
if (_root.power_mc._width > 5) {
if (go == 1) {
if (i == 0) {
_root.fart1Sound.onSoundComplete = function () {
go = 1;
};
_root.fart1Sound.start(0, 1);
go = 0;
}
if (i == 1) {
_root.fart2Sound.onSoundComplete = function () {
go = 1;
};
_root.fart2Sound.start(0, 1);
go = 0;
}
if (i == 2) {
_root.fart3Sound.onSoundComplete = function () {
go = 1;
};
_root.fart3Sound.start(0, 1);
go = 0;
}
if (i == 3) {
_root.fart4Sound.onSoundComplete = function () {
go = 1;
};
_root.fart4Sound.start(0, 1);
go = 0;
}
if (i == 4) {
_root.fart5Sound.onSoundComplete = function () {
go = 1;
};
_root.fart5Sound.start(0, 1);
go = 0;
}
if (i == 5) {
_root.fart6Sound.onSoundComplete = function () {
go = 1;
};
_root.fart6Sound.start(0, 1);
go = 0;
}
if (i == 6) {
_root.fart7Sound.onSoundComplete = function () {
go = 1;
};
_root.fart7Sound.start(0, 1);
go = 0;
}
if (i == 7) {
_root.fart8Sound.onSoundComplete = function () {
go = 1;
};
_root.fart8Sound.start(0, 1);
go = 0;
}
if (i == 8) {
_root.fart9Sound.onSoundComplete = function () {
go = 1;
};
_root.fart9Sound.start(0, 1);
go = 0;
}
if (i == 9) {
_root.fart10Sound.onSoundComplete = function () {
go = 1;
};
_root.fart10Sound.start(0, 1);
go = 0;
}
if (i == 10) {
_root.fart11Sound.onSoundComplete = function () {
go = 1;
};
_root.fart11Sound.start(0, 1);
go = 0;
}
if (i == 11) {
_root.fart12Sound.onSoundComplete = function () {
go = 1;
};
_root.fart12Sound.start(0, 1);
go = 0;
}
}
}
}
Symbol 278 MovieClip Frame 10
i = random(12);
if (gogo == 1) {
if (_root.power_mc._width > 5) {
_root.explosion._x = _root.dude_mc._x - 5;
_root.explosion._y = _root.dude_mc._y - 40;
_root.explosion.play();
gogo = 0;
}
}
if (go == 1) {
if (_root.power_mc._width > 5) {
if (_root.muteSound == 1) {
go = 0;
}
}
}
if (_root.muteSound == 0) {
if (_root.power_mc._width > 5) {
if (go == 1) {
if (i == 0) {
_root.fart1Sound.onSoundComplete = function () {
go = 1;
};
_root.fart1Sound.start(0, 1);
go = 0;
}
if (i == 1) {
_root.fart2Sound.onSoundComplete = function () {
go = 1;
};
_root.fart2Sound.start(0, 1);
go = 0;
}
if (i == 2) {
_root.fart3Sound.onSoundComplete = function () {
go = 1;
};
_root.fart3Sound.start(0, 1);
go = 0;
}
if (i == 3) {
_root.fart4Sound.onSoundComplete = function () {
go = 1;
};
_root.fart4Sound.start(0, 1);
go = 0;
}
if (i == 4) {
_root.fart5Sound.onSoundComplete = function () {
go = 1;
};
_root.fart5Sound.start(0, 1);
go = 0;
}
if (i == 5) {
_root.fart6Sound.onSoundComplete = function () {
go = 1;
};
_root.fart6Sound.start(0, 1);
go = 0;
}
if (i == 6) {
_root.fart7Sound.onSoundComplete = function () {
go = 1;
};
_root.fart7Sound.start(0, 1);
go = 0;
}
if (i == 7) {
_root.fart8Sound.onSoundComplete = function () {
go = 1;
};
_root.fart8Sound.start(0, 1);
go = 0;
}
if (i == 8) {
_root.fart9Sound.onSoundComplete = function () {
go = 1;
};
_root.fart9Sound.start(0, 1);
go = 0;
}
if (i == 9) {
_root.fart10Sound.onSoundComplete = function () {
go = 1;
};
_root.fart10Sound.start(0, 1);
go = 0;
}
if (i == 10) {
_root.fart11Sound.onSoundComplete = function () {
go = 1;
};
_root.fart11Sound.start(0, 1);
go = 0;
}
if (i == 11) {
_root.fart12Sound.onSoundComplete = function () {
go = 1;
};
_root.fart12Sound.start(0, 1);
go = 0;
}
}
}
}
Symbol 278 MovieClip Frame 11
i = random(12);
if (gogo == 1) {
if (_root.power_mc._width > 5) {
_root.explosion._x = _root.dude_mc._x - 5;
_root.explosion._y = _root.dude_mc._y - 40;
_root.explosion.play();
gogo = 0;
}
}
if (go == 1) {
if (_root.power_mc._width > 5) {
if (_root.muteSound == 1) {
go = 0;
}
}
}
if (_root.muteSound == 0) {
if (_root.power_mc._width > 5) {
if (go == 1) {
if (i == 0) {
_root.fart1Sound.onSoundComplete = function () {
go = 1;
};
_root.fart1Sound.start(0, 1);
go = 0;
}
if (i == 1) {
_root.fart2Sound.onSoundComplete = function () {
go = 1;
};
_root.fart2Sound.start(0, 1);
go = 0;
}
if (i == 2) {
_root.fart3Sound.onSoundComplete = function () {
go = 1;
};
_root.fart3Sound.start(0, 1);
go = 0;
}
if (i == 3) {
_root.fart4Sound.onSoundComplete = function () {
go = 1;
};
_root.fart4Sound.start(0, 1);
go = 0;
}
if (i == 4) {
_root.fart5Sound.onSoundComplete = function () {
go = 1;
};
_root.fart5Sound.start(0, 1);
go = 0;
}
if (i == 5) {
_root.fart6Sound.onSoundComplete = function () {
go = 1;
};
_root.fart6Sound.start(0, 1);
go = 0;
}
if (i == 6) {
_root.fart7Sound.onSoundComplete = function () {
go = 1;
};
_root.fart7Sound.start(0, 1);
go = 0;
}
if (i == 7) {
_root.fart8Sound.onSoundComplete = function () {
go = 1;
};
_root.fart8Sound.start(0, 1);
go = 0;
}
if (i == 8) {
_root.fart9Sound.onSoundComplete = function () {
go = 1;
};
_root.fart9Sound.start(0, 1);
go = 0;
}
if (i == 9) {
_root.fart10Sound.onSoundComplete = function () {
go = 1;
};
_root.fart10Sound.start(0, 1);
go = 0;
}
if (i == 10) {
_root.fart11Sound.onSoundComplete = function () {
go = 1;
};
_root.fart11Sound.start(0, 1);
go = 0;
}
if (i == 11) {
_root.fart12Sound.onSoundComplete = function () {
go = 1;
};
_root.fart12Sound.start(0, 1);
go = 0;
}
}
}
}
Symbol 278 MovieClip Frame 12
i = random(12);
if (gogo == 1) {
if (_root.power_mc._width > 5) {
_root.explosion._x = _root.dude_mc._x - 5;
_root.explosion._y = _root.dude_mc._y - 40;
_root.explosion.play();
gogo = 0;
}
}
if (go == 1) {
if (_root.power_mc._width > 5) {
if (_root.muteSound == 1) {
go = 0;
}
}
}
if (_root.muteSound == 0) {
if (_root.power_mc._width > 5) {
if (go == 1) {
if (i == 0) {
_root.fart1Sound.onSoundComplete = function () {
go = 1;
};
_root.fart1Sound.start(0, 1);
go = 0;
}
if (i == 1) {
_root.fart2Sound.onSoundComplete = function () {
go = 1;
};
_root.fart2Sound.start(0, 1);
go = 0;
}
if (i == 2) {
_root.fart3Sound.onSoundComplete = function () {
go = 1;
};
_root.fart3Sound.start(0, 1);
go = 0;
}
if (i == 3) {
_root.fart4Sound.onSoundComplete = function () {
go = 1;
};
_root.fart4Sound.start(0, 1);
go = 0;
}
if (i == 4) {
_root.fart5Sound.onSoundComplete = function () {
go = 1;
};
_root.fart5Sound.start(0, 1);
go = 0;
}
if (i == 5) {
_root.fart6Sound.onSoundComplete = function () {
go = 1;
};
_root.fart6Sound.start(0, 1);
go = 0;
}
if (i == 6) {
_root.fart7Sound.onSoundComplete = function () {
go = 1;
};
_root.fart7Sound.start(0, 1);
go = 0;
}
if (i == 7) {
_root.fart8Sound.onSoundComplete = function () {
go = 1;
};
_root.fart8Sound.start(0, 1);
go = 0;
}
if (i == 8) {
_root.fart9Sound.onSoundComplete = function () {
go = 1;
};
_root.fart9Sound.start(0, 1);
go = 0;
}
if (i == 9) {
_root.fart10Sound.onSoundComplete = function () {
go = 1;
};
_root.fart10Sound.start(0, 1);
go = 0;
}
if (i == 10) {
_root.fart11Sound.onSoundComplete = function () {
go = 1;
};
_root.fart11Sound.start(0, 1);
go = 0;
}
if (i == 11) {
_root.fart12Sound.onSoundComplete = function () {
go = 1;
};
_root.fart12Sound.start(0, 1);
go = 0;
}
}
}
}
Symbol 278 MovieClip Frame 13
gotoAndPlay (2);
Symbol 278 MovieClip Frame 17
gotoAndStop (1);
Symbol 278 MovieClip Frame 18
Symbol 278 MovieClip Frame 49
if (_root.highScore < (_root.vars.score + (_root.vars.maxCombo * 50))) {
_root.highScore = _root.vars.score + (_root.vars.maxCombo * 50);
}
_root.eraseEnemies();
_root.gotoAndStop("results");
removeMovieClip(this);
Symbol 284 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 12
_root.explosion._x = -1000;
_root.explosion._y = -1000;
Symbol 297 MovieClip Frame 1
combo = "Combo x" + _parent.combo;
Symbol 297 MovieClip Frame 2
gotoAndPlay (1);
Symbol 298 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 42
stop();
Symbol 304 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 2
_root.pauseGame = 1;
Symbol 304 MovieClip Frame 10
stop();
Symbol 304 MovieClip Frame 20
_root.pauseGame = 0;
gotoAndStop (1);
Symbol 315 Button
on (release) {
_root.EMS = startEMS;
_root.vars.score = 0;
_root.vars.enemyAmount = 1;
_root.vars.enemySpeed = 3;
_root.vars.enemiesKilled = 0;
_root.vars.maxCombo = 0;
_root.gotoAndStop("menu");
}
Symbol 321 MovieClip Frame 1
stop();