Frame 1
function klink() {
getURL ("http://www.kabomb.net", "_blank");
}
function slink() {
getURL ("http://www.armorgames.com", "_blank");
}
_global.ins = false;
cm = new ContextMenu();
cm.hideBuiltInItems();
cm.builtInItems.quality = true;
cm1 = new ContextMenuItem("Kabomb.net", klink);
cm2 = new ContextMenuItem("ArmorGames", slink);
cm.customItems.push(cm1, cm2);
_root.menu = cm;
Frame 2
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
Frame 3
if (_root.percentLoaded == 100) {
gotoAndPlay (4);
} else {
gotoAndPlay (2);
}
Frame 4
stop();
Frame 5
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;
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);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&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);
}
_root.createEmptyMovieClip("theme_mc", _root.getNextHighestDepth());
var theme = new Sound(theme_mc);
theme.attachSound("theme");
theme.setVolume(20);
theme.start(0, 99999);
_global.sound = true;
__com_mochibot__("8cba3237", this, 10301, true);
Frame 6
stop();
Frame 7
_global.ins = true;
Frame 8
function add_object(amc) {
objects_array.push(amc);
amc.in_arr = objects_array[objects_array.length - 1];
}
function remove_object(rmc) {
oa_length2 = objects_array.length;
fv = 0;
while (fv < oa_length2) {
if (rmc.in_arr == objects_array[fv]) {
rmc.removeMovieClip();
objects_array.splice(fv, 1);
}
fv++;
}
}
function clear_objects_array() {
oa_length = objects_array.length;
fv = 0;
while (fv < oa_length) {
objects_array[0].removeMovieClip();
objects_array.splice(0, 1);
fv++;
}
gotoAndStop (9);
}
function make_sound(sound_var, linkage) {
if (_global.sound) {
sound_var = new Sound(sounds_mc);
sound_var.attachSound(linkage);
sound_var.start(0, 1);
}
}
function explode(x, y, frame) {
make_sound(bombsound, "explode");
b = 0;
while (b < 3) {
i++;
var _local4 = attachMovie("base", "b" + i, i);
_local4._x = (x + (Math.random() * 50)) - 25;
_local4._y = (y + (Math.random() * 50)) - 25;
_local4.gotoAndStop(frame);
add_object(_local4);
_local4.onEnterFrame = function () {
if (!gpause) {
this._xscale = this._xscale + 3;
this._yscale = this._yscale + 3;
this._alpha = this._alpha - 3;
if (this._alpha <= 0) {
remove_object(this);
}
}
};
b++;
}
f = 0;
while (f < 10) {
i++;
var _local2 = attachMovie("fire", "f" + i, i);
_local2._xscale = (Math.random() * 50) + 50;
_local2._yscale = _local2._xscale;
_local2._x = x;
_local2._y = y;
_local2._rotation = Math.random() * 360;
_local2.speed = (Math.random() * 4) + 2;
_local2.alpha = Math.random() + 2.5;
_local2.gotoAndStop(frame);
add_object(_local2);
_local2.onEnterFrame = function () {
if (!gpause) {
this._x = this._x + (Math.sin(this._rotation * (Math.PI/180)) * this.speed);
this._y = this._y + (Math.cos(this._rotation * (Math.PI/180)) * (-this.speed));
this._alpha = this._alpha - this.alpha;
if (this._alpha <= 0) {
remove_object(this);
}
}
};
f++;
}
s = 0;
while (s < 5) {
i++;
var _local3 = attachMovie("spark", "s" + i, i);
_local3._xscale = (Math.random() * 50) + 50;
_local3._yscale = _local2._xscale;
_local3._x = x;
_local3._y = y;
_local3.rot = Math.random() * 360;
_local3.speed = (Math.random() * 4) + 2;
_local3.alpha = Math.random() + 2.5;
add_object(_local3);
_local3.onEnterFrame = function () {
if (!gpause) {
this._x = this._x + (Math.sin(this.rot * (Math.PI/180)) * this.speed);
this._y = this._y + (Math.cos(this.rot * (Math.PI/180)) * (-this.speed));
this._alpha = this._alpha - this.alpha;
if (this._alpha <= 0) {
remove_object(this);
}
}
};
s++;
}
}
stop();
i = 0;
echance = 50;
radius = _root.faic._width / 2;
fxto = 0;
fyto = -radius;
xspeed = 0;
yspeed = 0;
bounce = -13;
gravity = 0.5;
friction = 0.99;
speed = 0.5;
maxspeed = 5;
faic_frame = 1;
bfmc_frame = faic_frame;
p_initx = _root.paused_mc._x;
var objects_array = new Array();
objects_array.push(_root.level_over_mc);
objects_array.push(_root.paused_mc);
cpossible = 1;
combo = 0;
scombo = 0;
_global.high_combo = 0;
gpause = false;
srlse = false;
score = 0;
starget = 100;
lives = 7;
level = 1;
level_over = false;
multicolour = 0;
mcolour = false;
_root.level_over_mc.swapDepths(10001);
_root.paused_mc.swapDepths(10002);
_root.createEmptyMovieClip("sounds_mc", _root.getNextHighestDepth());
onEnterFrame = function () {
if (!gpause) {
if (i > 10000) {
i = 0;
}
if (random(echance) == 0) {
i++;
var _local4 = attachMovie("enemy", "e" + i, i);
_local4.etype = random(cpossible) + 1;
_local4.gotoAndStop(_local4.etype);
if (random(2) == 0) {
_local4.dir = -1;
} else {
_local4.dir = 1;
}
_local4.faicial.gotoAndStop(random(_local4.faicial._totalframes) + 1);
_local4.radius = _local4._width / 2;
if (_local4.dir == 1) {
_local4.xto = radius;
_local4._x = -_local4.radius;
} else {
_local4.xto = -radius;
_local4._x = Stage.width + _local4.radius;
}
_local4._y = (Math.random() * (Stage.height / 1.5)) + (Stage.height - (Stage.height / 1.5));
_local4.speed = Math.random() + 1;
add_object(_local4);
_local4.onEnterFrame = function () {
if (!gpause) {
this._x = this._x + (this.speed * this.dir);
if (this.dir == 1) {
if (this._x > (Stage.width + this.radius)) {
remove_object(this);
}
} else if (this._x < (-this.radius)) {
remove_object(this);
}
this.angle = Math.atan2(this._y - _root.faic._y, this._x - _root.faic._x);
this.xto = Math.sin(-1.5707963267949 - this.angle) * this.radius;
this.yto = Math.cos(-1.5707963267949 - this.angle) * this.radius;
this.faicial._x = this.faicial._x + ((this.xto - this.faicial._x) / 10);
this.faicial._y = this.faicial._y + ((this.yto - this.faicial._y) / 10);
if (_root.faic.hitTest(this)) {
if ((this.etype != faic_frame) && (!mcolour)) {
combo = 0;
scombo = 0;
lives--;
} else {
combo++;
scombo++;
if (combo > _global.high_combo) {
_global.high_combo++;
}
score = score + scombo;
}
yspeed = bounce;
explode(this._x, this._y, this.etype);
remove_object(this);
}
}
};
}
lvl_txt = level;
hc_txt = _global.high_combo;
_root.lives_mc.gotoAndStop(lives);
if (lives <= 0) {
_root.clear_objects_array();
}
txto = (score / starget) * 120;
_root.target_mc.bar._x = _root.target_mc.bar._x + ((txto - _root.target_mc.bar._x) / 10);
if (score >= starget) {
_root.target_mc.bar._x = 120;
score = starget;
gpause = true;
level_over = true;
level++;
cpossible++;
scombo = 0;
if (cpossible > 4) {
cpossible = 4;
}
score = 0;
starget = starget + 50;
echance = echance - 5;
if (echance < 40) {
echance = 40;
}
}
if (multicolour > 0) {
multicolour--;
faic_frame = 5;
mcolour = true;
}
if (multicolour == 0) {
multicolour = -1;
mcolour = false;
faic_frame = bfmc_frame;
}
if (combo > 1) {
_root.combo_mc._visible = true;
_root.combo_mc.combo_txt = combo + "x Combo!";
} else {
_root.combo_mc._visible = false;
}
if (!mcolour) {
if (Key.isDown(65)) {
faic_frame = 1;
}
if (Key.isDown(83) && (cpossible >= 2)) {
faic_frame = 2;
}
if (Key.isDown(68) && (cpossible >= 3)) {
faic_frame = 3;
}
if (Key.isDown(70) && (cpossible >= 4)) {
faic_frame = 4;
}
}
_root.asdf.gotoAndStop(faic_frame);
_root.faic.head.gotoAndStop(faic_frame);
yspeed = yspeed + gravity;
if (Key.isDown(37)) {
fxto = -radius;
xspeed = xspeed - speed;
} else if (Key.isDown(39)) {
fxto = radius;
xspeed = xspeed + speed;
} else {
xspeed = xspeed * friction;
fxto = 0;
}
if (yspeed < 0) {
fyto = (-2 * radius) + 10;
} else {
fyto = -radius;
}
if (_root.faic._y > (Stage.height + (radius * 2))) {
combo = 0;
scombo = 0;
yspeed = 0;
_root.faic._y = (-radius) * 2;
}
if (xspeed > maxspeed) {
xspeed = maxspeed;
}
if (xspeed < (-maxspeed)) {
xspeed = -maxspeed;
}
if (_root.faic._x > (Stage.width - radius)) {
_root.faic._x = Stage.width - radius;
}
if (_root.faic._x < radius) {
_root.faic._x = radius;
}
_root.faic._x = _root.faic._x + xspeed;
_root.faic._y = _root.faic._y + yspeed;
_root.faic.faicial._x = _root.faic.faicial._x + ((fxto - _root.faic.faicial._x) / 10);
_root.faic.faicial._y = _root.faic.faicial._y + ((fyto - _root.faic.faicial._y) / 10);
}
if (!level_over) {
_root.level_over_mc._alpha = 0;
_root.level_over_mc.continue_btn.enabled = false;
if ((srlse == false) && (Key.isDown(32))) {
srlse = true;
}
if ((!Key.isDown(32)) && (srlse == true)) {
srlse = false;
if (gpause) {
gpause = false;
} else {
gpause = true;
}
}
if (gpause) {
_root.paused_mc._alpha = _root.paused_mc._alpha + 10;
_root.combo_mc._visible = false;
_root.paused_mc._x = p_initx;
_root.paused_mc.continue_btn.onRelease = function () {
gpause = false;
};
if (_root.paused_mc._alpha >= 100) {
_root.paused_mc._alpha = 100;
}
} else {
_root.paused_mc._x = Stage.width + _root.paused_mc._width;
_root.paused_mc._alpha = 0;
}
} else {
_root.level_over_mc._alpha = _root.level_over_mc._alpha + 5;
_root.combo_mc._visible = false;
if (_root.level_over_mc._alpha >= 100) {
_root.level_over_mc._alpha = 100;
}
if ((srlse == false) && (Key.isDown(32))) {
srlse = true;
}
if ((!Key.isDown(32)) && (srlse == true)) {
srlse = false;
level_over = false;
gpause = false;
}
_root.level_over_mc.continue_btn.enabled = true;
_root.level_over_mc.continue_btn.onRelease = function () {
level_over = false;
gpause = false;
};
}
};
Frame 9
stop();
score = _global.high_combo * level;
submit = false;
name_in_txt = "Insert Name Here";
scores_txt = (((_global.high_combo + newline) + level) + newline) + score;
submit_btn.onRelease = function () {
ab20_09 = new LoadVars();
ab20_09.z = hs_name;
ab20_09.x = score;
ab20_09.c = 1110;
ab20_09.v = "PGMQMQ";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
getURL ("http://www.armorbot.com/mytable/?id=1110", "_blank");
submit_btn.enabled = false;
submit_btn._alpha = 75;
};
onEnterFrame = function () {
hs_name = name_in_txt;
};
Symbol 31 MovieClip [enemy] Frame 1
stop();
Symbol 51 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 58 MovieClip Frame 81
_root.play();
_root.play();
Symbol 67 Button
on (release) {
getURL ("http://www.kabomb.net", "_blank");
}
Symbol 68 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 72 Button
on (release) {
if (_global.ins == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
}
Symbol 77 Button
on (release) {
gotoAndStop (7);
}
Symbol 82 Button
on (release) {
getURL ("http://www.kabomb.net", "_blank");
}
Symbol 99 MovieClip Frame 1
onEnterFrame = function () {
score_txt = _global.high_combo;
};
submit_btn.onRelease = function () {
submit_btn.enabled = false;
submit_btn._alpha = 75;
};
Symbol 102 MovieClip Frame 1
stop();
Symbol 115 Button
on (release) {
_root._quality = "high";
}
Symbol 120 Button
on (release) {
_root._quality = "medium";
}
Symbol 124 Button
on (release) {
_root._quality = "low";
}
Symbol 129 MovieClip Frame 1
stop();
_global.sound = true;
_root.theme.setVolume(20);
this.onRelease = function () {
gotoAndStop (2);
};
Symbol 129 MovieClip Frame 2
stop();
_global.sound = false;
_root.theme.setVolume(0);
this.onRelease = function () {
gotoAndStop (1);
};
Symbol 134 Button
on (release) {
_root.clear_objects_array();
}
Symbol 135 MovieClip Frame 1
onEnterFrame = function () {
score_txt = _global.high_combo;
};
submit_btn.onRelease = function () {
submit_btn.enabled = false;
submit_btn._alpha = 75;
};
Symbol 155 Button
on (release) {
getURL ("http://www.kabomb.net", "_blank");
}
Symbol 157 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 168 Button
on (release) {
gotoAndStop (8);
}
Symbol 173 Button
on (release) {
gotoAndStop (6);
}