Frame 1
readyon = false;
firstpop = false;
missedonce = false;
funpopped = false;
epicpopped = false;
retrycounter = 0;
finalscore = 0;
startinglevel = 0;
stop();
function sendHiScore() {
trace("sending");
loadVariablesNum ("http://gamefilez.mofunzone.com/game_scores/balloonator/mfz.php?" + tallyscore, 0);
}
function sendScore() {
trace(PLAYER_NAME);
getURL ((((("http://www.MoFunZone.com/game_scores/balloonator/highscore.php?" + PLAYER_NAME) + "/") + EPOCH_TIME) + "/") + YEAR, "_blank");
}
now = new Date();
EPOCH_TIME = now.getTime();
YEAR = 2010;
loadVariablesNum ("http://gamefilez.mofunzone.com/game_scores/balloonator/mfz2.php", 0);
function goTo() {
getURL ("http://www.MoFunZone.com");
}
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
newMenu.customItems.push(new ContextMenuItem("MoFunZone.com - Play More Games", goTo));
this.menu = newMenu;
Frame 3
_quality = "HIGH";
var totalscore = 0;
var playedonce = false;
var retrypressed = false;
var hurtsound = new Sound(this);
hurtsound.attachSound("hurtsound");
var winsound = new Sound(this);
winsound.attachSound("winsound");
var fleshsound = new Sound(this);
fleshsound.attachSound("fleshsound");
var hoversound = new Sound(this);
hoversound.attachSound("hoversound");
var gunshot = new Sound(this);
gunshot.attachSound("gunshot");
soundPlay = new Sound(this);
max = 3;
min = 1;
rndClip = Math.round(Math.random() * (max - min)) + min;
soundPlay.attachSound(rndClip);
wavecomplete.removeMovieClip();
player.removeMovieClip();
var pushbutton = false;
var topBorder = 0;
var leftBorder = 0;
var botBorder = map_mc._height;
var rightBorder = map_mc._width;
var transitioncounter = 0;
var game = false;
bgsound = new Sound(this);
bgsound.attachSound("bgsound");
bgsound.start(0, 1000);
stop();
Instance of Symbol 195 MovieClip in Frame 3
on (release) {
_root.gunshot.start(0, 1);
Mouse.hide();
_root.gotoAndStop("main");
}
on (rollOver) {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 195 MovieClip in Frame 3
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
_root.gunshot.start(0, 1);
getURL ("http://www.mofunzone.com", "_blank");
}
on (rollOver) {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 195 MovieClip in Frame 3
on (press) {
_root.gunshot.start(0, 1);
getURL ("http://www.mofunzone.com/game_scores/balloonator/highscores.shtml", "_blank");
}
on (rollOver) {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 188 MovieClip in Frame 3
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
getURL ("http://www.mofunzone.com", "_blank");
}
Instance of Symbol 195 MovieClip in Frame 3
on (press) {
_root.gunshot.start(0, 1);
getURL ("http://www.mofunzone.com/online_games/balloonator.shtml", "_blank");
}
on (rollOver) {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Frame 4
MoFunZoneAPI.MFZEasyAPI.hideLoginStatus();
MoFunZoneAPI.MFZEasyAPI.autoBring();
_root.attachMovie("wavecomplete", "wavecomplete", 999, {_x:-400, _y:0});
function play_level(level) {
flashblack.gotoAndPlay(2);
wavecomplete._x = -400;
hostages = 0;
unlocknumber = 0;
_root.sendscore = false;
hostageskilled = 0;
_root.saveOnce = false;
playedonce = false;
player._alpha = 100;
bg_mc._x = 0;
_root.createEmptyMovieClip("field", 3);
_root.createEmptyMovieClip("field2", 2);
lose_anyway = false;
number_of_mobs = (((((mobs_on_stage[_root.level_to_play] + blue_mobs_on_stage[_root.level_to_play]) + yellow_mobs_on_stage[_root.level_to_play]) + purple_mobs_on_stage[_root.level_to_play]) + orange_mobs_on_stage[_root.level_to_play]) + pink_mobs_on_stage[_root.level_to_play]) + black_mobs_on_stage[_root.level_to_play];
mobs_destroyed = 0;
mobs_to_destroy = to_destroy[_root.level_to_play];
player_exploded = false;
player_started = false;
_root.collision_array = new Array();
field.attachMovie("howmany", "howmany", field.getNextHighestDepth());
field.howmany.txt.text = (("Target: " + mobs_destroyed) + "/") + mobs_to_destroy;
field.howmany._x = 12;
field.howmany._y = 440;
_root.attachMovie("intro", "intro", _root.getNextHighestDepth(), {_x:200, _y:275});
_root.intro.levname.text = ("Level " + (_root.level_to_play + 1)) + "/25";
_root.intro.levnotes.text = descriptions[_root.level_to_play];
x = 1;
while (x <= number_of_mobs) {
startx = Math.random() * 400;
starty = Math.random() * 550;
if (x <= mobs_on_stage[_root.level_to_play]) {
mob = field.attachMovie("enemy1", "mobs_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:startx, _y:starty});
mob.untouchable = false;
mob.inc = 0;
mob.bomb = false;
mob.boss = false;
mob.spawn = 0;
mob.mycolor = 1;
} else if (x <= (mobs_on_stage[_root.level_to_play] + blue_mobs_on_stage[_root.level_to_play])) {
mob = field.attachMovie("enemy4", "mobs_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:startx, _y:starty});
mob.untouchable = false;
mob.inc = 0;
mob.bomb = false;
mob.boss = true;
mob.spawn = 0;
mob.mycolor = 4;
} else if (x <= ((mobs_on_stage[_root.level_to_play] + blue_mobs_on_stage[_root.level_to_play]) + orange_mobs_on_stage[_root.level_to_play])) {
mob = field.attachMovie("enemy5", "mobs_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:startx, _y:starty});
mob.untouchable = false;
mob.inc = 0.7853982;
mob.bomb = false;
mob.boss = true;
mob.spawn = 2;
mob.mycolor = 4;
} else if (x <= (((mobs_on_stage[_root.level_to_play] + blue_mobs_on_stage[_root.level_to_play]) + orange_mobs_on_stage[_root.level_to_play]) + yellow_mobs_on_stage[_root.level_to_play])) {
mob = field.attachMovie("enemy2", "mobs_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:startx, _y:starty});
mob.untouchable = false;
mob.inc = 0.7853982;
mob.bomb = false;
mob.boss = false;
mob.spawn = 0;
mob.mycolor = 2;
} else if (x <= ((((mobs_on_stage[_root.level_to_play] + blue_mobs_on_stage[_root.level_to_play]) + orange_mobs_on_stage[_root.level_to_play]) + yellow_mobs_on_stage[_root.level_to_play]) + pink_mobs_on_stage[_root.level_to_play])) {
mob = field.attachMovie("enemy6", "mobs_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:startx, _y:starty});
mob.untouchable = false;
mob.bomb = true;
mob.boss = false;
mob.inc = 0;
mob.spawn = 0;
mob.mycolor = 6;
} else if (x <= (((((mobs_on_stage[_root.level_to_play] + blue_mobs_on_stage[_root.level_to_play]) + orange_mobs_on_stage[_root.level_to_play]) + yellow_mobs_on_stage[_root.level_to_play]) + pink_mobs_on_stage[_root.level_to_play]) + black_mobs_on_stage[_root.level_to_play])) {
mob = field.attachMovie("enemy7", "mobs_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:startx, _y:starty});
mob.untouchable = false;
mob.inc = 0;
mob.bomb = false;
mob.boss = false;
mob.spawn = 3;
mob.mycolor = 7;
} else {
mob = field.attachMovie("enemy3", "mobs_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:startx, _y:starty});
mob.untouchable = false;
mob.inc = 0;
mob.bomb = false;
mob.boss = false;
mob.spawn = 1;
mob.mycolor = 3;
}
mob.cacheAsBitmap();
mob.dir = 225;
mob.randomnum = Math.floor(Math.random() * 1.5) + 2;
mob.onEnterFrame = function () {
field.howmany.swapDepths(field.getNextHighestDepth());
this.xspeed = this.randomnum * Math.cos(this.dir);
this.yspeed = this.randomnum * Math.sin(this.dir);
if (!this.stay) {
this._x = this._x + this.xspeed;
this._y = this._y + this.yspeed;
}
if (_root.level_to_play < 31) {
if (this._x >= 420) {
this._x = this._x - 440;
}
if (this._x <= -20) {
this._x = this._x + 420;
}
if (this._y >= 590) {
this._y = this._y - 590;
}
if (this._y <= -20) {
this._y = this._y + 590;
}
} else {
if (this._x >= 420) {
this.dir = (Math.random() * 2) * 3.141593;
this._x = this._x - 10;
this._rotation = (this.dir * 180) / Math.PI;
}
if (this._x <= 40) {
this.dir = (Math.random() * 2) * 3.141593;
this._x = this._x + 10;
this._rotation = (this.dir * 180) / Math.PI;
}
if (this._y >= 570) {
this.dir = (Math.random() * 2) * 3.141593;
this._y = this._y - 10;
this._rotation = (this.dir * 180) / Math.PI;
}
if (this._y <= 40) {
this.dir = (Math.random() * 2) * 3.141593;
this._y = this._y + 10;
this._rotation = (this.dir * 180) / Math.PI;
}
}
for (i in _root.collision_array) {
x_pos = eval (_root.collision_array[i])._x;
y_pos = eval (_root.collision_array[i])._y;
if ((((x_pos > 400) || (y_pos > 550)) || (x_pos < 0)) || (y_pos < 0)) {
eval (_root.collision_array[i]).removeMovieClip();
_root.collision_array.splice(i, 1);
continue;
}
wid = eval (_root.collision_array[i])._width;
dist_x = this._x - x_pos;
dist_y = this._y - y_pos;
distance = Math.sqrt((dist_x * dist_x) + (dist_y * dist_y));
if (distance < ((this._width + wid) / 2)) {
attachDeath(this, this._x, this._y, this.dir);
shaker.play();
if (!firstpop) {
firstpopper();
firstpop = true;
}
mobs_destroyed = mobs_destroyed + 1;
if (this.untouchable) {
hostageskilled = hostageskilled + 1;
lose_anyway = true;
}
field.howmany.txt.text = (("Target: " + mobs_destroyed) + "/") + mobs_to_destroy;
eval (_root.collision_array[i]).removeMovieClip();
if ((((!this.untouchable) && (!this.spawn)) && (!this.bomb)) && (!this.boss)) {
x = 1;
while (x <= 4) {
if (!this.inc) {
bul = field.attachMovie("mbullet", "pbullet_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:this._x, _y:this._y});
} else {
bul = field.attachMovie("gbullet", "pbullet_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
bul.dir = ((3.141593 * x) / 2) + this.inc;
_root.collision_array.push(bul);
bul.onEnterFrame = function () {
this._xspeed = 6 * Math.cos(this.dir);
this._yspeed = 6 * Math.sin(this.dir);
this._x = this._x + this._xspeed;
this._y = this._y + this._yspeed;
this._rotation = (this.dir * 180) / Math.PI;
};
x++;
}
}
if ((this.spawn == 1) && (!this.bomb)) {
x = 1;
while (x <= 8) {
bul = field.attachMovie("cbullet", "bullet_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:this._x, _y:this._y});
bul.dir = (3.141593 * x) / 4;
_root.collision_array.push(bul);
bul.onEnterFrame = function () {
this._xspeed = 6 * Math.cos(this.dir);
this._yspeed = 6 * Math.sin(this.dir);
this._x = this._x + this._xspeed;
this._y = this._y + this._yspeed;
this._rotation = (this.dir * 180) / Math.PI;
};
x++;
}
}
if ((this.spawn == 2) && (!this.bomb)) {
x = 1;
while (x <= 16) {
bul = field.attachMovie("cbullet", "bullet_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:this._x, _y:this._y});
bul.dir = (3.141593 * x) / 8;
_root.collision_array.push(bul);
bul.onEnterFrame = function () {
this._xspeed = 6 * Math.cos(this.dir);
this._yspeed = 6 * Math.sin(this.dir);
this._x = this._x + this._xspeed;
this._y = this._y + this._yspeed;
this._rotation = (this.dir * 180) / Math.PI;
};
x++;
}
}
if ((this.spawn == 3) && (!this.bomb)) {
x = 1;
while (x <= 2) {
bul = field.attachMovie("cbullet", "bullet_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:this._x, _y:this._y});
bul.dir = (3.141593 * x) / 1;
_root.collision_array.push(bul);
bul.onEnterFrame = function () {
this._xspeed = 6 * Math.cos(this.dir);
this._yspeed = 6 * Math.sin(this.dir);
this._x = this._x + this._xspeed;
this._y = this._y + this._yspeed;
this._rotation = (this.dir * 180) / Math.PI;
};
x++;
}
}
if ((!this.spawn) && (this.bomb)) {
x = 1;
while (x <= 3) {
bul = field.attachMovie("bbullet", "bullet_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:this._x, _y:this._y});
bul.dir = (3.141593 * x) / 4;
bul.counter = 0;
_root.collision_array.push(bul);
bul.onEnterFrame = function () {
this.counter++;
if (this.counter >= 70) {
eval (_root.collision_array[i]).removeMovieClip();
_root.collision_array.splice(i, 1);
}
};
x++;
}
}
this.removeMovieClip();
_root.collision_array.splice(i, 1);
}
}
};
x++;
}
field.onMouseDown = function () {
if ((player_started && (!player_exploded)) && (!pushbutton)) {
gunshot.start(0, 1);
player_exploded = true;
x = 1;
while (x <= 4) {
bul = field.attachMovie("cbullet", "pbullet_" + field.getNextHighestDepth(), field.getNextHighestDepth(), {_x:player._x, _y:player._y});
bul.dir = (3.141593 * x) / 2;
_root.collision_array.push(bul);
bul.onEnterFrame = function () {
this._xspeed = 6 * Math.cos(this.dir);
this._yspeed = 6 * Math.sin(this.dir);
this._x = this._x + this._xspeed;
this._y = this._y + this._yspeed;
this._rotation = (this.dir * 180) / Math.PI;
};
x++;
}
Mouse.show();
player._alpha = 0;
}
if (!player_started) {
_root.intro.removeMovieClip();
player_started = true;
}
};
}
function attachDeath(xhitter, _mobX, _mobY, _mobDir) {
if (xhitter.mycolor == 1) {
field2.attachMovie("enemydeath1", "enemyd1" + xhitter._name, field2.getNextHighestDepth());
field2["enemyd1" + xhitter._name]._x = _mobX;
field2["enemyd1" + xhitter._name]._y = _mobY;
field2["enemyd1" + xhitter._name]._rotation = (_mobDir * 180) / Math.PI;
} else if (xhitter.mycolor == 2) {
field2.attachMovie("enemydeath2", "enemyd2" + xhitter._name, field2.getNextHighestDepth());
field2["enemyd2" + xhitter._name]._x = _mobX;
field2["enemyd2" + xhitter._name]._y = _mobY;
field2["enemyd2" + xhitter._name]._rotation = (_mobDir * 180) / Math.PI;
} else if (xhitter.mycolor == 3) {
field2.attachMovie("enemydeath3", "enemyd3" + xhitter._name, field2.getNextHighestDepth());
field2["enemyd3" + xhitter._name]._x = _mobX;
field2["enemyd3" + xhitter._name]._y = _mobY;
field2["enemyd3" + xhitter._name]._rotation = (_mobDir * 180) / Math.PI;
} else if (xhitter.mycolor == 4) {
field2.attachMovie("enemydeath4", "enemyd4" + xhitter._name, field2.getNextHighestDepth());
field2["enemyd4" + xhitter._name]._x = _mobX;
field2["enemyd4" + xhitter._name]._y = _mobY;
field2["enemyd4" + xhitter._name]._rotation = (_mobDir * 180) / Math.PI;
} else if (xhitter.mycolor == 5) {
field2.attachMovie("enemydeath5", "enemyd5" + xhitter._name, field2.getNextHighestDepth());
field2["enemyd5" + xhitter._name]._x = _mobX;
field2["enemyd5" + xhitter._name]._y = _mobY;
field2["enemyd5" + xhitter._name]._rotation = (_mobDir * 180) / Math.PI;
} else if (xhitter.mycolor == 6) {
field2.attachMovie("enemydeath6", "enemyd6" + xhitter._name, field2.getNextHighestDepth());
field2["enemyd6" + xhitter._name]._x = _mobX;
field2["enemyd6" + xhitter._name]._y = _mobY;
field2["enemyd6" + xhitter._name]._rotation = (_mobDir * 180) / Math.PI;
} else if (xhitter.mycolor == 7) {
field2.attachMovie("enemydeath7", "enemyd7" + xhitter._name, field2.getNextHighestDepth());
field2["enemyd7" + xhitter._name]._x = _mobX;
field2["enemyd7" + xhitter._name]._y = _mobY;
field2["enemyd7" + xhitter._name]._rotation = (_mobDir * 180) / Math.PI;
}
}
function saveUnlock() {
if (_root.level_to_play == 0) {
unlock2 = 1;
}
if (_root.level_to_play == 1) {
unlock3 = 1;
}
if (_root.level_to_play == 2) {
unlock4 = 1;
}
if (_root.level_to_play == 3) {
unlock5 = 1;
}
if (_root.level_to_play == 4) {
unlock6 = 1;
}
if (_root.level_to_play == 5) {
unlock7 = 1;
}
if (_root.level_to_play == 6) {
unlock8 = 1;
}
if (_root.level_to_play == 7) {
unlock9 = 1;
}
if (_root.level_to_play == 8) {
unlock10 = 1;
}
if (_root.level_to_play == 9) {
unlock11 = 1;
}
if (_root.level_to_play == 10) {
unlock12 = 1;
}
if (_root.level_to_play == 11) {
unlock13 = 1;
}
if (_root.level_to_play == 12) {
unlock14 = 1;
}
if (_root.level_to_play == 13) {
unlock15 = 1;
}
if (_root.level_to_play == 14) {
unlock16 = 1;
}
if (_root.level_to_play == 15) {
unlock17 = 1;
}
if (_root.level_to_play == 16) {
unlock18 = 1;
}
if (_root.level_to_play == 17) {
unlock19 = 1;
}
if (_root.level_to_play == 18) {
unlock20 = 1;
}
if (_root.level_to_play == 19) {
unlock21 = 1;
}
if (_root.level_to_play == 20) {
unlock22 = 1;
}
if (_root.level_to_play == 21) {
unlock23 = 1;
}
if (_root.level_to_play == 22) {
unlock24 = 1;
}
if (_root.level_to_play == 23) {
unlock25 = 1;
}
if (_root.level_to_play == 24) {
unlock26 = 1;
}
if (_root.level_to_play == 25) {
unlock27 = 1;
}
if (_root.level_to_play == 26) {
unlock28 = 1;
}
if (_root.level_to_play == 27) {
unlock29 = 1;
}
if (_root.level_to_play == 28) {
unlock30 = 1;
}
_root.saveGame();
}
function saveMedal() {
if (_root.level_to_play == 0) {
medal1 = _root.unlocknumber;
}
if (_root.level_to_play == 1) {
medal2 = _root.unlocknumber;
}
if (_root.level_to_play == 2) {
medal3 = _root.unlocknumber;
}
if (_root.level_to_play == 3) {
medal4 = _root.unlocknumber;
}
if (_root.level_to_play == 4) {
medal5 = _root.unlocknumber;
}
if (_root.level_to_play == 5) {
medal6 = _root.unlocknumber;
}
if (_root.level_to_play == 6) {
medal7 = _root.unlocknumber;
}
if (_root.level_to_play == 7) {
medal8 = _root.unlocknumber;
}
if (_root.level_to_play == 8) {
medal9 = _root.unlocknumber;
}
if (_root.level_to_play == 9) {
medal10 = _root.unlocknumber;
}
if (_root.level_to_play == 10) {
medal11 = _root.unlocknumber;
}
if (_root.level_to_play == 11) {
medal12 = _root.unlocknumber;
}
if (_root.level_to_play == 12) {
medal13 = _root.unlocknumber;
}
if (_root.level_to_play == 13) {
medal14 = _root.unlocknumber;
}
if (_root.level_to_play == 14) {
medal15 = _root.unlocknumber;
}
if (_root.level_to_play == 15) {
medal16 = _root.unlocknumber;
}
if (_root.level_to_play == 16) {
medal17 = _root.unlocknumber;
}
if (_root.level_to_play == 17) {
medal18 = _root.unlocknumber;
}
if (_root.level_to_play == 18) {
medal19 = _root.unlocknumber;
}
if (_root.level_to_play == 19) {
medal20 = _root.unlocknumber;
}
if (_root.level_to_play == 20) {
medal21 = _root.unlocknumber;
}
if (_root.level_to_play == 21) {
medal22 = _root.unlocknumber;
}
if (_root.level_to_play == 22) {
medal23 = _root.unlocknumber;
}
if (_root.level_to_play == 23) {
medal24 = _root.unlocknumber;
}
if (_root.level_to_play == 24) {
medal25 = _root.unlocknumber;
}
if (_root.level_to_play == 25) {
medal26 = _root.unlocknumber;
}
if (_root.level_to_play == 26) {
medal27 = _root.unlocknumber;
}
if (_root.level_to_play == 27) {
medal28 = _root.unlocknumber;
}
if (_root.level_to_play == 28) {
medal29 = _root.unlocknumber;
}
if (_root.level_to_play == 29) {
medal30 = _root.unlocknumber;
}
}
function clearLocks() {
if (unlock1 == 1) {
title.cover1.gotoAndStop(2);
}
if (unlock2 == 1) {
title.cover2.gotoAndStop(2);
}
if (unlock3 == 1) {
title.cover3.gotoAndStop(2);
}
if (unlock4 == 1) {
title.cover4.gotoAndStop(2);
}
if (unlock5 == 1) {
title.cover5.gotoAndStop(2);
}
if (unlock6 == 1) {
title.cover6.gotoAndStop(2);
}
if (unlock7 == 1) {
title.cover7.gotoAndStop(2);
}
if (unlock8 == 1) {
title.cover8.gotoAndStop(2);
}
if (unlock9 == 1) {
title.cover9.gotoAndStop(2);
}
if (unlock10 == 1) {
title.cover10.gotoAndStop(2);
}
if (unlock11 == 1) {
title.cover11.gotoAndStop(2);
}
if (unlock12 == 1) {
title.cover12.gotoAndStop(2);
}
if (unlock13 == 1) {
title.cover13.gotoAndStop(2);
}
if (unlock14 == 1) {
title.cover14.gotoAndStop(2);
}
if (unlock15 == 1) {
title.cover15.gotoAndStop(2);
}
if (unlock16 == 1) {
title.cover16.gotoAndStop(2);
}
if (unlock17 == 1) {
title.cover17.gotoAndStop(2);
}
if (unlock18 == 1) {
title.cover18.gotoAndStop(2);
}
if (unlock19 == 1) {
title.cover19.gotoAndStop(2);
}
if (unlock20 == 1) {
title.cover20.gotoAndStop(2);
}
if (unlock21 == 1) {
title.cover21.gotoAndStop(2);
}
if (unlock22 == 1) {
title.cover22.gotoAndStop(2);
}
if (unlock23 == 1) {
title.cover23.gotoAndStop(2);
}
if (unlock24 == 1) {
title.cover24.gotoAndStop(2);
}
if (unlock25 == 1) {
title.cover25.gotoAndStop(2);
}
if (unlock26 == 1) {
title.cover26.gotoAndStop(2);
}
if (unlock27 == 1) {
title.cover27.gotoAndStop(2);
}
if (unlock28 == 1) {
title.cover28.gotoAndStop(2);
}
if (unlock29 == 1) {
title.cover29.gotoAndStop(2);
}
if (unlock30 == 1) {
title.cover30.gotoAndStop(2);
}
if (medal1 == 1) {
title.medal1.gotoAndStop(2);
}
if (medal1 == 2) {
title.medal1.gotoAndStop(3);
}
if (medal1 == 3) {
title.medal1.gotoAndStop(4);
}
if (medal2 == 1) {
title.medal2.gotoAndStop(2);
}
if (medal2 == 2) {
title.medal2.gotoAndStop(3);
}
if (medal2 == 3) {
title.medal2.gotoAndStop(4);
}
if (medal3 == 1) {
title.medal3.gotoAndStop(2);
}
if (medal3 == 2) {
title.medal3.gotoAndStop(3);
}
if (medal3 == 3) {
title.medal3.gotoAndStop(4);
}
if (medal4 == 1) {
title.medal4.gotoAndStop(2);
}
if (medal4 == 2) {
title.medal4.gotoAndStop(3);
}
if (medal4 == 3) {
title.medal4.gotoAndStop(4);
}
if (medal5 == 1) {
title.medal5.gotoAndStop(2);
}
if (medal5 == 2) {
title.medal5.gotoAndStop(3);
}
if (medal5 == 3) {
title.medal5.gotoAndStop(4);
}
if (medal6 == 1) {
title.medal6.gotoAndStop(2);
}
if (medal6 == 2) {
title.medal6.gotoAndStop(3);
}
if (medal6 == 3) {
title.medal6.gotoAndStop(4);
}
if (medal7 == 1) {
title.medal7.gotoAndStop(2);
}
if (medal7 == 2) {
title.medal7.gotoAndStop(3);
}
if (medal7 == 3) {
title.medal7.gotoAndStop(4);
}
if (medal8 == 1) {
title.medal8.gotoAndStop(2);
}
if (medal8 == 2) {
title.medal8.gotoAndStop(3);
}
if (medal8 == 3) {
title.medal8.gotoAndStop(4);
}
if (medal9 == 1) {
title.medal9.gotoAndStop(2);
}
if (medal9 == 2) {
title.medal9.gotoAndStop(3);
}
if (medal9 == 3) {
title.medal9.gotoAndStop(4);
}
if (medal10 == 1) {
title.medal10.gotoAndStop(2);
}
if (medal10 == 2) {
title.medal10.gotoAndStop(3);
}
if (medal10 == 3) {
title.medal10.gotoAndStop(4);
}
if (medal11 == 1) {
title.medal11.gotoAndStop(2);
}
if (medal11 == 2) {
title.medal11.gotoAndStop(3);
}
if (medal11 == 3) {
title.medal11.gotoAndStop(4);
}
if (medal12 == 1) {
title.medal12.gotoAndStop(2);
}
if (medal12 == 2) {
title.medal12.gotoAndStop(3);
}
if (medal12 == 3) {
title.medal12.gotoAndStop(4);
}
if (medal13 == 1) {
title.medal13.gotoAndStop(2);
}
if (medal13 == 2) {
title.medal13.gotoAndStop(3);
}
if (medal13 == 3) {
title.medal13.gotoAndStop(4);
}
if (medal14 == 1) {
title.medal14.gotoAndStop(2);
}
if (medal14 == 2) {
title.medal14.gotoAndStop(3);
}
if (medal14 == 3) {
title.medal14.gotoAndStop(4);
}
if (medal15 == 1) {
title.medal15.gotoAndStop(2);
}
if (medal15 == 2) {
title.medal15.gotoAndStop(3);
}
if (medal15 == 3) {
title.medal15.gotoAndStop(4);
}
if (medal16 == 1) {
title.medal16.gotoAndStop(2);
}
if (medal16 == 2) {
title.medal16.gotoAndStop(3);
}
if (medal16 == 3) {
title.medal16.gotoAndStop(4);
}
if (medal17 == 1) {
title.medal17.gotoAndStop(2);
}
if (medal17 == 2) {
title.medal17.gotoAndStop(3);
}
if (medal17 == 3) {
title.medal17.gotoAndStop(4);
}
if (medal18 == 1) {
title.medal18.gotoAndStop(2);
}
if (medal18 == 2) {
title.medal18.gotoAndStop(3);
}
if (medal18 == 3) {
title.medal18.gotoAndStop(4);
}
if (medal19 == 1) {
title.medal19.gotoAndStop(2);
}
if (medal19 == 2) {
title.medal19.gotoAndStop(3);
}
if (medal19 == 3) {
title.medal19.gotoAndStop(4);
}
if (medal20 == 1) {
title.medal20.gotoAndStop(2);
}
if (medal20 == 2) {
title.medal20.gotoAndStop(3);
}
if (medal20 == 3) {
title.medal20.gotoAndStop(4);
}
if (medal21 == 1) {
title.medal21.gotoAndStop(2);
}
if (medal21 == 2) {
title.medal21.gotoAndStop(3);
}
if (medal21 == 3) {
title.medal21.gotoAndStop(4);
}
if (medal22 == 1) {
title.medal22.gotoAndStop(2);
}
if (medal22 == 2) {
title.medal22.gotoAndStop(3);
}
if (medal22 == 3) {
title.medal22.gotoAndStop(4);
}
if (medal23 == 1) {
title.medal23.gotoAndStop(2);
}
if (medal23 == 2) {
title.medal23.gotoAndStop(3);
}
if (medal23 == 3) {
title.medal23.gotoAndStop(4);
}
if (medal24 == 1) {
title.medal24.gotoAndStop(2);
}
if (medal24 == 2) {
title.medal24.gotoAndStop(3);
}
if (medal24 == 3) {
title.medal24.gotoAndStop(4);
}
if (medal25 == 1) {
title.medal25.gotoAndStop(2);
}
if (medal25 == 2) {
title.medal25.gotoAndStop(3);
}
if (medal25 == 3) {
title.medal25.gotoAndStop(4);
}
if (medal26 == 1) {
title.medal26.gotoAndStop(2);
}
if (medal26 == 2) {
title.medal26.gotoAndStop(3);
}
if (medal26 == 3) {
title.medal26.gotoAndStop(4);
}
if (medal27 == 1) {
title.medal27.gotoAndStop(2);
}
if (medal27 == 2) {
title.medal27.gotoAndStop(3);
}
if (medal27 == 3) {
title.medal27.gotoAndStop(4);
}
if (medal28 == 1) {
title.medal28.gotoAndStop(2);
}
if (medal28 == 2) {
title.medal28.gotoAndStop(3);
}
if (medal28 == 3) {
title.medal28.gotoAndStop(4);
}
if (medal29 == 1) {
title.medal29.gotoAndStop(2);
}
if (medal29 == 2) {
title.medal29.gotoAndStop(3);
}
if (medal29 == 3) {
title.medal29.gotoAndStop(4);
}
if (medal30 == 1) {
title.medal30.gotoAndStop(2);
}
if (medal30 == 2) {
title.medal30.gotoAndStop(3);
}
if (medal30 == 3) {
title.medal30.gotoAndStop(4);
}
}
_quality = "LOW";
var trans = 40;
wavecomplete._x = -400;
finalscore = 0;
playedonce = false;
level_to_play = 0;
bg_mc.cacheAsBitmap();
_root.onEnterFrame = function () {
_root.title.totalscore.text = "Score: " + totalscore;
clearLocks();
if (_root.level_to_play >= 0) {
bg_mc.gotoAndStop(1);
}
if (_root.level_to_play >= 6) {
bg_mc.gotoAndStop(2);
}
if (_root.level_to_play >= 13) {
bg_mc.gotoAndStop(3);
}
if (_root.level_to_play >= 19) {
bg_mc.gotoAndStop(4);
}
if (_root.level_to_play >= 25) {
bg_mc.gotoAndStop(5);
}
if (game) {
if (((_root.collision_array.length == 0) || (mobs_destroyed == number_of_mobs)) && (player_exploded)) {
if (!playedonce) {
if (_root.level_to_play <= 31) {
bg_mc._x = bg_mc._x + trans;
wavecomplete._x = wavecomplete._x + trans;
field._x = field._x + trans;
field2._x = field2._x + trans;
container_mc._x = container_mc._x + trans;
if (bg_mc._x >= 440) {
wavecomplete._x = 0;
Mouse.show();
playedonce = true;
if (mobs_destroyed == 0) {
if (!missedonce) {
missit();
missedonce = true;
}
}
if (mobs_destroyed == number_of_mobs) {
if (!missedonce2) {
perfectpopping();
missedonce2 = true;
}
}
}
}
}
}
}
};
function playSelected() {
game = true;
gunshot.start(0, 1);
title.removeMovieClip();
play_level(_root.level_to_play);
}
_quality = "LOW";
var hurtsound = new Sound(this);
hurtsound.attachSound("hurtsound");
var topBorder = 0;
var leftBorder = 0;
var botBorder = map_mc._height;
var rightBorder = map_mc._width;
var transitioncounter = 0;
stop();
sendscore = false;
music = new Sound(this);
music.attachSound("music");
music.start(0, 1000);
game = false;
_root.attachMovie("container_mc", "container_mc", 1);
_root.attachMovie("title", "title", 2);
_root.attachMovie("player", "player", 4);
var mobs_on_stage = new Array(0, 0, 0, 12, 15, 5, 15, 15, 10, 15, 10, 0, 8, 0, 0, 5, 1, 0, 0, 5, 21, 1, 4, 0, 0);
var blue_mobs_on_stage = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 10, 20, 8, 0, 20, 5, 1, 0, 10, 5, 9, 7, 20, 0, 15);
var orange_mobs_on_stage = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 5, 0, 0, 0, 5, 0, 2, 0, 0, 12);
var yellow_mobs_on_stage = new Array(0, 10, 30, 0, 0, 0, 15, 15, 10, 0, 10, 0, 8, 15, 0, 5, 0, 0, 0, 5, 0, 1, 4, 1, 0);
var purple_mobs_on_stage = new Array(0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 10, 8, 15, 0, 5, 1, 0, 0, 5, 0, 0, 4, 0, 0);
var pink_mobs_on_stage = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 20, 5, 0, 0, 0, 25, 0);
var black_mobs_on_stage = new Array(15, 10, 0, 0, 10, 20, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0);
var to_destroy = new Array(4, 12, 25, 9, 20, 20, 24, 30, 20, 20, 25, 28, 29, 30, 10, 25, 3, 22, 25, 10, 28, 10, 27, 25, 27);
var descriptions = new Array();
descriptions[0] = "Use your mouse to aim and click to shoot 4 darts horizontally and vertically. The '-' symbol means this balloon will spit 2 darts to the left and to the right.";
descriptions[1] = "You're right, poppin' balloons has never been infectiously fun! Try hitting the balloons with most darts inside first.";
descriptions[2] = "You'd usually associate X's with error, but these X's are needed indeed.";
descriptions[3] = "Seeing '+' is always a good thing. Hope it does good on this one.";
descriptions[4] = "Aren't you glad to see the positive vibes is greater than the negative ones.";
descriptions[5] = "Oh no! You don't have to be pessismistic, great things come to those that hope for them.";
descriptions[6] = "At last, an easy feat to prep you of the things ahead.";
descriptions[7] = "Hmm, wonder what that red * balloon does? You need to set clear goals to reach great distances.";
descriptions[8] = "You knew it, getting your chances higher is even better than hitting one target and missing the rest.";
descriptions[9] = "OMG, not black and zeroes! One thing is for sure, the only way to go around them is not through them.";
descriptions[10] = "It's like a party! There are also those who are killjoys!";
descriptions[11] = "There always come a time where you have to overcome a great challenge. Only those that are capable are made to face such challenge.";
descriptions[12] = "And after them is a celebration of fireworks.";
descriptions[13] = "During those celebrations, you feel that everything's perfect.";
descriptions[14] = "Until another adversary comes along, and all you have previously known becomes useless. Till you discover a new tool to overcome it.";
descriptions[15] = "Now you have everything you need to leap on any obstacle.";
descriptions[16] = "...but you will always be proven wrong by a few others.";
descriptions[17] = "Then you'll turn to them and shout, 'No, you are all wrong!'.";
descriptions[18] = "All negatives and zeroes exist only in a loser's imagination.";
descriptions[19] = "It's another celebration not just of victory but overcoming the fear of defeat.";
descriptions[20] = "With positivity there is a clearer goal ahead.";
descriptions[21] = "Even if the cards laid down are few, you can easily pick the winning cards.";
descriptions[22] = "The reason is not because you've picked the best cards, but because you can always come up of the best combination out of the worst.";
descriptions[23] = "No distraction will stop you from achieving your goals.";
descriptions[24] = "Because you know when to seize the right opportunity.";
player.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
flashblack.swapDepths(_root.getNextHighestDepth());
if (!sendscore) {
wavecomplete.swapDepths(_root.getNextHighestDepth());
}
player.swapDepths(_root.getNextHighestDepth());
level_to_playcounter = level_to_play + 1;
field.howmany.levelno.text = "LEVEL " + level_to_playcounter;
};
title.button_mc1.onRelease = function () {
if (!game) {
_root.level_to_play = startinglevel;
playSelected();
}
};
var i = 0;
while (i < 31) {
title["button_mc" + i].onRollOver = function () {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
};
title["button_mc" + i].onRollOut = function () {
this.gotoAndStop(1);
};
title["button_mc" + i].onReleaseOutside = function () {
this.gotoAndStop(1);
};
i++;
}
var i = 0;
while (i < 31) {
title["cover" + i].onRelease = function () {
};
i++;
}
Symbol 9 MovieClip [blood_mc] Frame 5
stop();
Symbol 35 MovieClip [fps] Frame 1
fps = 30;
var timeinit = new Date();
var lasttime = timeinit.getMilliseconds();
onEnterFrame = function () {
this.swapDepths(_root.getNextHighestDepth());
var _local3 = new Date();
timepassed = (((_local3.getMilliseconds() - lasttime) >= 0) ? (_local3.getMilliseconds() - lasttime) : (1000 + (_local3.getMilliseconds() - lasttime)));
fps = Math.round(10000 / timepassed) / 10;
lasttime = _local3.getMilliseconds();
};
Symbol 41 MovieClip [bbullet] Frame 33
stop();
Symbol 69 MovieClip Frame 11
_parent.gotoAndStop(2);
Symbol 79 MovieClip Frame 1
this.onEnterFrame = function () {
bytesloaded = Math.round(_root.getBytesLoaded());
bytestotal = Math.round(_root.getBytesTotal());
percent = bytesloaded / bytestotal;
barmask._xscale = percent * 100;
};
Symbol 111 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 111 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 122 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 122 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 130 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 130 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 138 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 138 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 146 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 146 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 154 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 154 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 162 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 162 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 170 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 170 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.gotoAndStop(2);
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 171 MovieClip Frame 133
stop();
Symbol 177 MovieClip Frame 133
_root.gotoAndStop("title");
stop();
Symbol 178 MovieClip Frame 1
stop();
_root.stop();
shiftamt = 17;
isloaded = false;
this.onEnterFrame = function () {
bytesloaded = Math.round(_root.getBytesLoaded());
bytestotal = Math.round(_root.getBytesTotal());
percent = bytesloaded / bytestotal;
if (bytesloaded == bytestotal) {
isloaded = true;
}
};
this.onRelease = function () {
getURL ("http://www.mofunzone.com/", "_blank");
};
Symbol 324 MovieClip [__Packages.MoFunZoneAPI.MFZDisplayConfig] Frame 0
class MoFunZoneAPI.MFZDisplayConfig
{
function MFZDisplayConfig () {
workspaceWidth = 550;
workspaceHeight = 400;
autoPosition = "cc";
bringToTop = false;
dialogScale = 1;
}
var workspaceWidth = 550;
var workspaceHeight = 400;
var autoPosition = "cc";
var bringToTop = false;
var dialogScale = 1;
}
Symbol 325 MovieClip [__Packages.MoFunZoneAPI.MFZAchievementConfig] Frame 0
class MoFunZoneAPI.MFZAchievementConfig
{
var gameID, testMode;
function MFZAchievementConfig () {
gameID = "";
testMode = true;
}
}
Symbol 326 MovieClip [__Packages.MoFunZoneAPI.MFZResource] Frame 0
class MoFunZoneAPI.MFZResource
{
static var _resourceconfig, _intervalId, _debug, _topleveltimeline;
function MFZResource () {
}
static function getAPI() {
return(_resource);
}
static function readyCallBack(funtionPointer) {
_readyFuntion = funtionPointer;
}
static function achievementreport() {
_resource.screenwidth = _resourceconfig.workspaceWidth;
_resource.screenheight = _resourceconfig.workspaceHeight;
_resource.dialogpositionmode = _resourceconfig.autoPosition;
_resource.dialogscale = _resourceconfig.dialogScale;
_resource.bring = _resourceconfig.bringToTop;
_resource.setupSystemPosition();
clearInterval(_intervalId);
if (_readyFuntion != null) {
_readyFuntion(true);
}
}
static function setupinterval(target_mc) {
_intervalId = setInterval(achievementreport, 1000);
}
static function loadResource(resource_address, topleveltimeline, config, debug) {
System.security.allowDomain("*");
_debug = debug;
if (_resource != null) {
return(undefined);
}
_resourceconfig = config;
_topleveltimeline = topleveltimeline;
_resource = topleveltimeline.createEmptyMovieClip("mfz_api_resources", topleveltimeline.getNextHighestDepth());
var _local1 = new Object();
_local1.onLoadComplete = setupinterval;
_local1.onLoadError = function (target_mc) {
if (MoFunZoneAPI.MFZResource._readyFuntion != null) {
MoFunZoneAPI.MFZResource._readyFuntion(false);
}
};
_local1.onLoadProgress = function (target, bytesLoaded, bytesTotal) {
};
var _local2 = new MovieClipLoader();
_local2.addListener(_local1);
_local2.loadClip(resource_address, _resource);
}
static var _resource = null;
static var _readyFuntion = null;
}
Symbol 327 MovieClip [__Packages.MoFunZoneAPI.MFZUserLogin] Frame 0
class MoFunZoneAPI.MFZUserLogin
{
static var _intervalId, _resourceAPI, _debug;
function MFZUserLogin () {
}
static function getUserName() {
if (_resource != null) {
return(_resource.username);
}
return(null);
}
static function getGender() {
if (_resource != null) {
return(_resource.gender);
}
return(null);
}
static function getEXP() {
if (_resource != null) {
return(_resource.exp);
}
return(null);
}
static function readyCallBack(funtionPointer) {
_readyFuntion = funtionPointer;
}
static function achievementreport() {
clearInterval(_intervalId);
_resource.resourceAPI = _resourceAPI;
_resource._readyFuntion = _readyFuntion;
_resource.getUserLogin();
}
static function setupinterval(target_mc) {
_intervalId = setInterval(achievementreport, 1000);
}
static function loadUserName(user_address, resource, debug) {
System.security.allowDomain("*");
_debug = debug;
_resourceAPI = resource;
_resource = _resourceAPI.createEmptyMovieClip("mfz_api_userinfo", _resourceAPI.getNextHighestDepth());
var _local1 = new Object();
_local1.onLoadComplete = setupinterval;
_local1.onLoadError = function (target_mc) {
if (MoFunZoneAPI.MFZUserLogin._readyFuntion != null) {
MoFunZoneAPI.MFZUserLogin._readyFuntion(false);
}
};
_local1.onLoadProgress = function (target, bytesLoaded, bytesTotal) {
};
var _local2 = new MovieClipLoader();
_local2.addListener(_local1);
_local2.loadClip(user_address, _resource);
}
static function loadMe(file, config, ready, classlist) {
readyCallBack(ready);
loadUserName(file, classlist[0].getAPI());
}
static var _resource = null;
static var _readyFuntion = null;
}
Symbol 328 MovieClip [__Packages.MoFunZoneAPI.MFZEasyAPI] Frame 0
class MoFunZoneAPI.MFZEasyAPI
{
static var systemcount, _readyCallBack;
function MFZEasyAPI () {
}
static function autoBring() {
if (MoFunZoneAPI.MFZResource.getAPI() != null) {
MoFunZoneAPI.MFZResource.getAPI().autoBring();
}
}
static function stopBring() {
if (MoFunZoneAPI.MFZResource.getAPI() != null) {
MoFunZoneAPI.MFZResource.getAPI().stopBring();
}
}
static function showNotifyDialog(wordmessage) {
if (MoFunZoneAPI.MFZResource.getAPI() != null) {
MoFunZoneAPI.MFZResource.getAPI().showNotifyDialog(wordmessage);
}
}
static function getUserName() {
return(MoFunZoneAPI.MFZUserLogin.getUserName());
}
static function getGender() {
return(MoFunZoneAPI.MFZUserLogin.getGender());
}
static function getEXP() {
return(MoFunZoneAPI.MFZUserLogin.getEXP());
}
static function hideLoginStatus() {
if (MoFunZoneAPI.MFZUserLogin.getUserName() != null) {
MoFunZoneAPI.MFZResource.getAPI().hideLogin();
}
}
static function showLoginStatus() {
if (MoFunZoneAPI.MFZUserLogin.getUserName() != null) {
MoFunZoneAPI.MFZResource.getAPI().showLogin();
}
}
static function success(id) {
if (MoFunZoneAPI.MFZAchievement.getAchievement() != null) {
MoFunZoneAPI.MFZAchievement.success(id);
}
}
static function configDisplay(screenWidth, screenHeight, position, dialogSize) {
displayconfig = new MoFunZoneAPI.MFZDisplayConfig();
displayconfig.workspaceWidth = screenWidth;
displayconfig.workspaceHeight = screenHeight;
displayconfig.autoPosition = position;
displayconfig.bringToTop = false;
displayconfig.dialogScale = dialogSize;
}
static function configAchievement(gameid, test) {
achievementconfig = new MoFunZoneAPI.MFZAchievementConfig();
achievementconfig.testMode = test;
achievementconfig.gameID = gameid;
}
static function downloadAPI(main_time_line) {
if (displayconfig == null) {
trace("API Download : Call configDisplay( ) before downloadAPI()");
return(undefined);
}
if (userInfoEnabled) {
turnOnSystem(MoFunZoneAPI.MFZUserLogin, null, "http://www.mofunzone.com/api/as2/user_info.swf");
}
if (achievementEnabled) {
if (achievementconfig != null) {
turnOnSystem(MoFunZoneAPI.MFZAchievement, achievementconfig, "http://www.mofunzone.com/api/as2/achievement.swf");
} else {
trace("achievementEnabled : Call configAchievement() before downloadAPI()");
return(undefined);
}
}
connectToSystem(main_time_line, "http://www.mofunzone.com/api/as2/resources.swf");
}
static function connectToSystem(maintimeline, guiswf) {
function ready(r) {
MoFunZoneAPI.MFZEasyAPI.systemcount++;
if ((MoFunZoneAPI.MFZEasyAPI.systemcount == MoFunZoneAPI.MFZEasyAPI.apilist.length) || (MoFunZoneAPI.MFZEasyAPI.apilist.length == 0)) {
if (MoFunZoneAPI.MFZEasyAPI._readyCallBack != null) {
MoFunZoneAPI.MFZEasyAPI._readyCallBack(true);
}
} else {
MoFunZoneAPI.MFZEasyAPI.apilist[MoFunZoneAPI.MFZEasyAPI.systemcount].api.loadMe(MoFunZoneAPI.MFZEasyAPI.apilist[MoFunZoneAPI.MFZEasyAPI.systemcount].file, MoFunZoneAPI.MFZEasyAPI.apilist[MoFunZoneAPI.MFZEasyAPI.systemcount].config, ready, MoFunZoneAPI.MFZEasyAPI.apineed);
}
}
function readyGUI(success) {
if (success) {
if (MoFunZoneAPI.MFZEasyAPI.apilist.length > 0) {
MoFunZoneAPI.MFZEasyAPI.apilist[MoFunZoneAPI.MFZEasyAPI.systemcount].api.loadMe(MoFunZoneAPI.MFZEasyAPI.apilist[MoFunZoneAPI.MFZEasyAPI.systemcount].file, MoFunZoneAPI.MFZEasyAPI.apilist[MoFunZoneAPI.MFZEasyAPI.systemcount].config, ready, MoFunZoneAPI.MFZEasyAPI.apineed);
} else {
MoFunZoneAPI.MFZEasyAPI._readyCallBack(true);
}
} else {
MoFunZoneAPI.MFZEasyAPI._readyCallBack(false);
}
}
systemcount = 0;
if (displayconfig == null) {
trace("MFZ GUI/Display Resource create error: call configDisplay() first");
return(undefined);
}
MoFunZoneAPI.MFZResource.readyCallBack(readyGUI);
MoFunZoneAPI.MFZResource.loadResource(guiswf, maintimeline, displayconfig);
}
static function readyCallBack(callback) {
_readyCallBack = callback;
}
static function turnOnSystem(API, config, swffile) {
apilist.push({api:API, config:config, file:swffile});
}
static var apilist = new Array();
static var displayconfig = new MoFunZoneAPI.MFZDisplayConfig();
static var displayConfig = displayconfig;
static var achievementconfig = new MoFunZoneAPI.MFZAchievementConfig();
static var achievementConfig = achievementconfig;
static var userInfoEnabled = false;
static var achievementEnabled = false;
static var apineed = new Array(MoFunZoneAPI.MFZResource, MoFunZoneAPI.MFZUserLogin);
}
Symbol 329 MovieClip [__Packages.MoFunZoneAPI.MFZAchievement] Frame 0
class MoFunZoneAPI.MFZAchievement
{
static var _intervalId, _resourceAPI, _config, _username, _debug;
function MFZAchievement () {
}
static function getAchievement() {
return(_resource);
}
static function readyCallBack(funtionPointer) {
_readyFuntion = funtionPointer;
}
static function success(gameid) {
if (_resource != null) {
_resource.success(gameid);
}
}
static function achievementreport() {
clearInterval(_intervalId);
_resource.resourceAPI = _resourceAPI;
_resource._readyFuntion = _readyFuntion;
_resource.gameid = _config.gameID;
_resource.test = _config.testMode;
_resource.username = _username;
_resource.loadAchievement();
}
static function setupinterval(target_mc) {
_intervalId = setInterval(achievementreport, 1000);
}
static function loadAchievement(achievement_address, config, resource, username, debug) {
System.security.allowDomain("*");
_debug = debug;
_resourceAPI = resource;
_username = username;
_config = config;
_resource = _resourceAPI.createEmptyMovieClip("mfz_api_achievement", _resourceAPI.getNextHighestDepth());
var _local1 = new Object();
_local1.onLoadComplete = setupinterval;
_local1.onLoadError = function (target_mc) {
if (MoFunZoneAPI.MFZAchievement._readyFuntion != null) {
MoFunZoneAPI.MFZAchievement._readyFuntion(false);
}
};
_local1.onLoadProgress = function (target, bytesLoaded, bytesTotal) {
};
var _local2 = new MovieClipLoader();
_local2.addListener(_local1);
_local2.loadClip(achievement_address, _resource);
}
static function loadMe(file, config, ready, classlist) {
readyCallBack(ready);
loadAchievement(file, MoFunZoneAPI.MFZAchievementConfig(config), classlist[0].getAPI(), classlist[1].getUserName());
}
static var _resource = null;
static var _readyFuntion = null;
}
Symbol 181 MovieClip [cbullet] Frame 1
stop();
Symbol 182 MovieClip [gbullet] Frame 1
stop();
Symbol 183 MovieClip [mbullet] Frame 1
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 2
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 1
tryagainbtn.onEnterFrame = function () {
modtext.text = ("You popped " + _root.mobs_destroyed) + " balloons! Great job!";
};
stop();
nextbtn.onRelease = function () {
Mouse.hide();
_root.retrycounter = 0;
_root.gunshot.start(0, 1);
_root.finalscore = _root.finalscore + _root.totalscore;
_root.playedonce = false;
_root.level_to_play++;
_root.flashblack.swapDepths(_root.getNextHighestDepth());
_root.play_level(_root.level_to_play);
_root.wavecomplete._x = -400;
};
Instance of Symbol 195 MovieClip in Symbol 213 MovieClip Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
_root.gunshot.start(0, 1);
getURL ("http://www.mofunzone.com", "_blank");
}
on (rollOver) {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 199 MovieClip "tryagainbtn" in Symbol 213 MovieClip Frame 1
on (rollOver) {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 201 MovieClip "nextbtn" in Symbol 213 MovieClip Frame 1
on (rollOver) {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 203 MovieClip "menubtn" in Symbol 213 MovieClip Frame 1
on (rollOver) {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Symbol 213 MovieClip Frame 2
tryagainbtn.onEnterFrame = function () {
modtext.text = ("You only popped " + _root.mobs_destroyed) + " balloons! Don't give up!";
};
Symbol 213 MovieClip Frame 3
sendscore.onEnterFrame = function () {
modtext.text = ("You popped " + _root.mobs_destroyed) + " balloons! Great job!";
if (_root.tallyscore >= 60000) {
if (!_root.epicpopped) {
_root.epicpopping();
_root.epicpopped = true;
}
} else if (!_root.funpopped) {
_root.poppingfun();
_root.funpopped = true;
}
};
Symbol 215 MovieClip [wavecomplete] Frame 1
stop();
sentoncescore = false;
saveonce = false;
_root.unlocknumber = 0;
savelevel = 0;
savelevelprev = 0;
playedonce = false;
Mouse.show();
buttoncontainer.onEnterFrame = function () {
if (_root.level_to_play == 0) {
buttoncontainer.scoretip.text = "Each popped balloon gives you 100 score!";
} else {
buttoncontainer.scoretip.text = "";
}
saveleveltxt.text = savelevel;
unlock2.text = _root.title.cover2.unlock;
thislevelenemies = _root.mobs_destroyed - _root.hostageskilled;
modtext.text = (thislevelenemies + "/") + _root.totalratio;
modtext2.text = (_root.hostageskilled + "/") + _root.hostages;
moddestext.text = _root.number_of_mobs;
scoretxt.text = _root.score;
_root.tallyscore = _root.finalscore + _root.totalscore;
finalscoretxt.text = "Total Score:" + _root.tallyscore;
_root.totalscore2 = _root.totalscore + _root.score;
_root.totalratio = _root.number_of_mobs - _root.hostages;
if (_root.mobs_destroyed >= _root.mobs_to_destroy) {
_root.totalscore = _root.mobs_destroyed * 100;
}
if ((_root.mobs_destroyed < _root.mobs_to_destroy) || (_root.lose_anyway)) {
buttoncontainer.gotoAndStop(2);
_root.totalscore = 0;
} else if (_root.level_to_play < 24) {
buttoncontainer.gotoAndStop(1);
} else {
buttoncontainer.gotoAndStop(3);
_root.sendHiScore();
}
};
buttoncontainer.menubtn.onRelease = function () {
_root.field.removeMovieClip();
_root.field2.removeMovieClip();
_root.wavecomplete._x = -800;
_root.gunshot.start(0, 1);
_root.gotoAndStop("title");
};
buttoncontainer.tryagainbtn.onRelease = function () {
if (_root.retrycounter >= 6) {
_root.cantgetenough();
_root.retrycounter = -999;
}
_root.retrycounter = _root.retrycounter + 1;
_root.play_level(_root.level_to_play);
_root.gunshot.start(0, 1);
_root.flashblack.swapDepths(_root.getNextHighestDepth());
Mouse.hide();
};
Instance of Symbol 188 MovieClip in Symbol 215 MovieClip [wavecomplete] Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
getURL ("http://www.mofunzone.com", "_blank");
}
Symbol 217 MovieClip [pbullet] Frame 1
stop();
Symbol 221 MovieClip [enemy1] Frame 1
stop();
Symbol 225 MovieClip [enemy2] Frame 1
stop();
Symbol 229 MovieClip [enemy3] Frame 1
stop();
Symbol 233 MovieClip [enemy4] Frame 1
stop();
Symbol 237 MovieClip [enemy5] Frame 1
stop();
Symbol 243 MovieClip [enemy6] Frame 1
stop();
Symbol 254 MovieClip Frame 6
stop();
Symbol 256 MovieClip [enemydeath1] Frame 1
counter = 0;
this.onEnterFrame = function () {
counter++;
if (counter > 15) {
this._x++;
this.removeMovieClip();
}
};
Symbol 257 MovieClip [enemydeath2] Frame 1
counter = 0;
this.onEnterFrame = function () {
counter++;
if (counter > 15) {
this._x++;
this.removeMovieClip();
}
};
Symbol 258 MovieClip [enemydeath3] Frame 1
counter = 0;
this.onEnterFrame = function () {
counter++;
if (counter > 15) {
this._x++;
this.removeMovieClip();
}
};
Symbol 259 MovieClip [enemydeath4] Frame 1
counter = 0;
this.onEnterFrame = function () {
counter++;
if (counter > 15) {
this._x++;
this.removeMovieClip();
}
};
Symbol 260 MovieClip [enemydeath5] Frame 1
counter = 0;
this.onEnterFrame = function () {
counter++;
if (counter > 15) {
this._x++;
this.removeMovieClip();
}
};
Symbol 261 MovieClip [enemydeath6] Frame 1
counter = 0;
this.onEnterFrame = function () {
counter++;
if (counter > 15) {
this._x++;
this.removeMovieClip();
}
};
Symbol 265 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 2
stop();
Symbol 269 MovieClip [enemy7] Frame 1
stop();
Symbol 273 MovieClip Frame 6
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
stop();
Symbol 279 MovieClip Frame 1
Selection.setFocus("playerName");
Symbol 283 MovieClip [title] Frame 1
_root.player._alpha = 0;
this.onEnterFrame = function () {
if (inputName.playerName != "Type your name here") {
enterbutton.enabled = true;
enterbutton.gotoAndStop(1);
} else {
enterbutton.enabled = false;
enterbutton.gotoAndStop(3);
}
};
enterbutton.onRelease = function () {
_root.PLAYER_NAME = inputName.playerSend.text;
trace(_root.PLAYER_NAME);
startbtn._visible = true;
_root.gunshot.start(0, 1);
this._visible = false;
inputName._visible = false;
};
Instance of Symbol 265 MovieClip "button_mc1" in Symbol 283 MovieClip [title] Frame 1
on (release) {
_root.gunshot.start(0, 1);
Mouse.hide();
_root.gotoAndStop("main");
}
on (rollOver) {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 277 MovieClip "enterbutton" in Symbol 283 MovieClip [title] Frame 1
on (rollOver) {
_root.hoversound.start(0, 1);
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Instance of Symbol 282 MovieClip in Symbol 283 MovieClip [title] Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
getURL ("http://www.mofunzone.com", "_blank");
}
Symbol 292 MovieClip Frame 1
stop();
Symbol 298 MovieClip [howmany] Frame 1
this.onEnterFrame = function () {
if (_quality == "MEDIUM") {
qualitybtn.qualitytext.text = "MED";
}
if (_quality == "LOW") {
qualitybtn.qualitytext.text = "LOW";
}
if (_quality == "HIGH") {
qualitybtn.qualitytext.text = "HI";
}
};
Instance of Symbol 292 MovieClip "Btn_Mute" in Symbol 298 MovieClip [howmany] Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
_root.clicksound.start(0, 1);
_root.pushbutton = true;
if (!_root.player_exploded) {
Mouse.hide();
_root.player._alpha = 100;
}
if (_root.bgsound.getVolume() != 0) {
this.gotoAndStop(2);
_root.oldVolume = _root.bgsound.getVolume();
_root.slider.slidebar.onEnterFrame = null;
_root.bgsound.setVolume(0);
} else {
this.gotoAndStop(1);
_root.slider.slidebar.onEnterFrame = _root.adjustVolume;
_root.bgsound.setVolume(_root.oldVolume);
}
}
on (rollOver) {
if (!_root.player_exploded) {
Mouse.show();
_root.player._alpha = 0;
}
_root.pushbutton = true;
_root.hoversound.start(0, 1);
}
on (rollOut) {
if (!_root.player_exploded) {
Mouse.hide();
_root.player._alpha = 100;
}
_root.pushbutton = false;
}
on (releaseOutside) {
if (!_root.player_exploded) {
Mouse.hide();
_root.player._alpha = 0;
}
_root.pushbutton = false;
}
Instance of Symbol 297 MovieClip in Symbol 298 MovieClip [howmany] Frame 1
onClipEvent (load) {
this.tabEnabled = false;
}
on (release) {
getURL ("http://www.mofunzone.com", "_blank");
}
on (rollOver) {
if (!_root.player_exploded) {
Mouse.show();
_root.player._alpha = 0;
}
_root.pushbutton = true;
_root.hoversound.start(0, 1);
}
on (rollOut) {
if (!_root.player_exploded) {
Mouse.hide();
_root.player._alpha = 100;
}
_root.pushbutton = false;
}
on (releaseOutside) {
if (!_root.player_exploded) {
Mouse.hide();
_root.player._alpha = 0;
}
_root.pushbutton = false;
}
Symbol 301 MovieClip [enemydeath7] Frame 1
counter = 0;
this.onEnterFrame = function () {
counter++;
if (counter > 15) {
this._x++;
this.removeMovieClip();
}
};
Symbol 315 MovieClip Frame 85
gotoAndPlay (10);
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 2
_root.field._x = _root.field._x + 2;
_root.field2._x = _root.field2._x + 2;
_root.bg_mc._x = _root.bg_mc._x + 2;
_root.container_mc._x = _root.container_mc._x + 2;
Symbol 316 MovieClip Frame 3
_root.field._x = _root.field._x - 2;
_root.field2._x = _root.field2._x - 2;
_root.bg_mc._x = _root.bg_mc._x - 2;
_root.container_mc._x = _root.container_mc._x - 2;
Symbol 316 MovieClip Frame 4
_root.field._x = _root.field._x + 2;
_root.field2._x = _root.field2._x + 2;
_root.container_mc._x = _root.container_mc._x + 2;
Symbol 316 MovieClip Frame 5
_root.field._x = _root.field._x - 2;
_root.field2._x = _root.field2._x - 2;
_root.container_mc._x = _root.container_mc._x - 2;
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 2
chain1.play();
chain2.play();
chain3.play();
chain4.play();
Symbol 323 MovieClip Frame 16
gotoAndStop (1);