Frame 1
stop();
bonusAdd = 0;
bonusGive = false;
Stage.scaleMode = "noScale";
n = 0;
_global.shoot = function () {
n++;
if ((((n == 50) || (n == 400)) || (n == 1000)) || (n == 5000)) {
if (n == 5000) {
_root.spawn.attachMovie("menuBalls", "ball" + n, _root.spawn.getNextHighestDepth(), {_x:(225 + random(200)) - 100, _y:500, dx:random(10) - 5, dy:-5, _xscale:400, _yscale:400, n:1000, _currentframe:2});
_root.spawn["ball" + n].gotoAndStop(2);
} else {
_root.spawn.attachMovie("menuBalls", "ball" + n, _root.spawn.getNextHighestDepth(), {_x:(225 + random(200)) - 100, _y:500, dx:random(10) - 5, dy:-5, _xscale:400, _yscale:400, n:n, _currentframe:2});
_root.spawn["ball" + n].gotoAndStop(2);
}
} else {
_root.spawn.attachMovie("menuBalls", "ball" + n, _root.spawn.getNextHighestDepth(), {_x:(225 + random(200)) - 100, _y:500, dx:random(10) - 5, dy:-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);
}
__com_mochibot__("bd46e227", this, 10301, true);
Instance of Symbol 20 MovieClip in Frame 1
onClipEvent (load) {
title_text = "Play";
this.rollArea.onRelease = function () {
_root.gotoAndStop(2);
};
}
Instance of Symbol 20 MovieClip in Frame 1
onClipEvent (load) {
title_text = "Hi Scores";
this.rollArea.onRelease = function () {
getURL ("http://www.armorbot.com/mytable/?id=979", "_blank");
};
}
Instance of Symbol 20 MovieClip in Frame 1
onClipEvent (load) {
title_text = "AlexHeaton.co.uk";
this.rollArea.onRelease = function () {
getURL ("http://www.alexheaton.co.uk", "_blank");
};
}
Instance of Symbol 27 MovieClip "ball1" in Frame 1
onClipEvent (load) {
dx = 0;
dy = 0;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 34 MovieClip in Frame 2
onClipEvent (load) {
_root.bg._visible = false;
}
on (rollOver) {
text._alpha = 100;
}
on (press) {
if (_root.bg._visible == false) {
_root.bg._visible = true;
} else {
_root.bg._visible = false;
}
}
Instance of Symbol 20 MovieClip in Frame 2
onClipEvent (load) {
title_text = "Continue";
this.rollArea.onRelease = function () {
_root.gotoAndStop(3);
};
}
Frame 3
n = 10;
riseNow = false;
fallNow = false;
Stage.scaleMode = "noScale";
this.onEnterFrame = function () {
i = 1;
while (i < n) {
j = 1;
while (j < n) {
if (((i != j) && (_root["ball" + i].inside != false)) && (_root["ball" + j].inside != false)) {
distx = _root["ball" + j]._x - _root["ball" + i]._x;
disty = _root["ball" + j]._y - _root["ball" + i]._y;
dist = Math.sqrt((distx * distx) + (disty * disty));
if (dist <= 30) {
theta = Math.atan2(disty, distx);
nx = Math.cos(theta);
ny = Math.sin(theta);
x = _root["ball" + i].dx - _root["ball" + j].dx;
y = _root["ball" + i].dy - _root["ball" + j].dy;
ndot = (x * nx) + (y * ny);
ix = nx * ndot;
iy = ny * ndot;
distx2 = (-_root["ball" + j]._x) + _root["ball" + i]._x;
disty2 = (-_root["ball" + j]._y) + _root["ball" + i]._y;
dist2 = (distx * distx) + (disty * disty);
theta2 = Math.atan2(disty2, distx2);
nx2 = Math.cos(theta2);
ny2 = Math.sin(theta2);
x2 = (-_root["ball" + i].dx) + _root["ball" + j].dx;
y2 = (-_root["ball" + i].dy) + _root["ball" + j].dy;
ndot2 = (x2 * nx2) + (y2 * ny2);
ix2 = nx2 * ndot2;
iy2 = ny2 * ndot2;
_root["ball" + i].dx = _root["ball" + i].dx - ix;
_root["ball" + i].dy = _root["ball" + i].dy - iy;
_root["ball" + i]._x = _root["ball" + i]._x + _root["ball" + i].dx;
_root["ball" + i]._y = _root["ball" + i]._y + _root["ball" + i].dy;
movex = (Math.cos(theta) * (30 - dist)) / 2;
movey = (Math.sin(theta) * (30 - dist)) / 2;
_root["ball" + i]._x = _root["ball" + i]._x - movex;
_root["ball" + i]._y = _root["ball" + i]._y - movey;
_root["ball" + j]._x = _root["ball" + j]._x + movex;
_root["ball" + j]._y = _root["ball" + j]._y + movey;
_root["ball" + j].dx = _root["ball" + j].dx - ix2;
_root["ball" + j].dy = _root["ball" + j].dy - iy2;
_root["ball" + j]._x = _root["ball" + j]._x + _root["ball" + j].dx;
_root["ball" + j]._y = _root["ball" + j]._y + _root["ball" + j].dy;
}
}
j++;
}
i++;
}
};
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);
}
__com_mochibot__("979b93ea", this, 10301, true);
Instance of Symbol 40 MovieClip "bg" in Frame 3
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 43 MovieClip "area" in Frame 3
onClipEvent (load) {
dy = 0;
dy2 = 0;
glow = new flash.filters.GlowFilter(0, 100, 3, 3, 1, 3, false, false);
fall = 60;
counter = 0;
score = 0;
}
onClipEvent (enterFrame) {
_root.tent = score;
if (_root.ball1.inside == true) {
score = score + 1;
}
if ((_root.fallNow == true) && ((counter++) > 50)) {
if ((_xscale - dy) > fall) {
dy = dy + 0.05;
_yscale = (_xscale - dy);
_xscale = (_xscale - dy);
} else {
_xscale = fall;
dy = dy * -0.4;
}
dy = dy * 0.98;
}
if (_root.riseNow == true) {
_root.fallNow = false;
if ((dy2 + _xscale) <= 100) {
_yscale = (_xscale + dy2);
_xscale = (_xscale + dy2);
dy2 = dy2 + 0.005;
_root.ball1._xscale = (_root.ball1._yscale = _xscale);
} else {
with (_root.ball1) {
_xscale = (_yscale = 100);
inside = true;
fallDist = 100;
fallRate = 0;
}
counter = 0;
score = 0;
_root.riseNow = false;
_root.maxim = 6;
_yscale = 100;
_xscale = 100;
dy2 = 0;
}
}
this.filters = [glow];
this.blur = 0.8 * (_xscale - fall);
this.glow.blurX = (this.glow.blurY = this.blur);
this.glow.strength = 1;
}
Instance of Symbol 45 MovieClip "ball1" in Frame 3
onClipEvent (load) {
dx = 0;
dy = 0;
a = 0.5;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
dx = dx + ((a * _xscale) / 100);
}
if (Key.isDown(37)) {
dx = dx - ((a * _xscale) / 100);
}
if (Key.isDown(38)) {
dy = dy - ((a * _xscale) / 100);
}
if (Key.isDown(40)) {
dy = dy + ((a * _xscale) / 100);
}
}
Instance of Symbol 34 MovieClip in Frame 3
on (rollOver) {
text._alpha = 100;
}
on (press) {
if (_root.bg._visible == false) {
_root.bg._visible = true;
} else {
_root.bg._visible = false;
}
}
Instance of Symbol 47 MovieClip in Frame 3
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.fallNow == true) {
_alpha = (_alpha - ((_alpha - 100) / 10));
} else {
_alpha = (_alpha - ((_alpha - 0) / 10));
}
if (_alpha < 1) {
_visible = false;
} else {
_visible = true;
}
}
Frame 4
stop();
MochiAd.showTimedAd({id:"68604e769a185a87", res:"450x450"});
Frame 5
score = tent;
delete this.onEnterFrame;
stop();
Instance of Symbol 20 MovieClip in Frame 5
onClipEvent (load) {
title_text = "Submit Score";
this.rollArea.onRelease = function () {
if ((_root.name != "Name") && (_root.score != 0)) {
var _local3 = _root.name;
while (_local3.charAt(0) == " ") {
_local3 = _local3.slice(1);
}
if (_root.bonusGive == true) {
if (bonusAdd == 3000) {
_local3 = " " + _local3;
} else {
_local3 = " " + _local3;
}
_root.score = _root.score + _root.bonusAdd;
_root.bonusAddr = _root.bonusAdd;
_root.bonusAdd = 0;
_root.friend_button._visible = true;
_root.friend_button._alpha = 360;
_root.friend_button.onEnterFrame = function () {
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this._visible = false;
}
};
}
ab20_09 = new LoadVars();
ab20_09.z = _local3;
ab20_09.x = _root.score;
ab20_09.c = 970;
ab20_09.v = "RHUPYX";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
ab20_09 = new LoadVars();
ab20_09.z = _local3;
ab20_09.x = ab20.encodeNum(_root.score);
ab20_09.c = 979;
ab20_09.v = "ERELIO";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
_root.score = 0;
_root.scoreboard.gotoAndPlay(2);
_root.name_button.onEnterFrame = (_root.score_button.onEnterFrame = (this._parent.onEnterFrame = function () {
this._alpha = this._alpha - 3;
if (this._alpha < 0) {
this._visible = false;
}
}));
_root.menu_button._visible = true;
_root.menu_button.onEnterFrame = function () {
this._alpha = this._alpha + 3;
if (this._alpha > 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
}
};
}
Instance of Symbol 91 MovieClip "friend_button" in Frame 5
onClipEvent (load) {
_alpha = 0;
_visible = false;
}
Instance of Symbol 20 MovieClip "menu_button" in Frame 5
onClipEvent (load) {
_alpha = 0;
_visible = false;
title_text = "Main Menu";
this.rollArea.onRelease = function () {
_root.gotoAndStop(1);
};
}
Symbol 9 MovieClip [menuBalls] Frame 1
dx = (Math.random() - Math.random()) * 20;
dy = ((Math.random() - Math.random()) * 10) - 20;
r = _width / 2;
this.onEnterFrame = function () {
dy = dy + 0.4;
if (((_x - r) < 0) || ((_x + r) > 450)) {
dx = dx * -1;
}
dy = dy * 0.99;
_y = (_y + dy);
_x = (_x + dx);
if ((_y > 500) || (_root._currentframe != 1)) {
removeMovieClip(this);
}
};
stop();
Symbol 9 MovieClip [menuBalls] Frame 2
stop();
Instance of Symbol 8 MovieClip in Symbol 9 MovieClip [menuBalls] Frame 2
on (press) {
_root.bonusAdd = _parent.n;
_root.bonusGive = true;
_parent.onEnterFrame = function () {
_parent._rotation = _parent._rotation + 10;
_parent._alpha = _parent._alpha - 8;
_parent._xscale = (_parent._yscale = _parent._xscale + 4);
if (_parent._alpha < 5) {
removeMovieClip(this);
}
};
}
Symbol 19 MovieClip Frame 1
glow = new flash.filters.GlowFilter(0, 80, 3, 3, 1, 3, false, false);
this.filters = [glow];
vb = 0;
Tblur = 3;
blur = 3;
this.onRollOver = function () {
Tblur = 8;
if (_root._currentframe == 1) {
shoot();
}
};
this.onRollOut = function () {
Tblur = 3;
};
this.onPress = function () {
Tblur = 5;
};
this.onReleaseOutside = function () {
Tblur = 3;
};
this.onEnterFrame = function () {
d = this.Tblur - this.blur;
this.vb = this.vb + (d / 1.5);
this.blur = this.blur + vb;
this.vb = this.vb * 0.5;
this.glow.blurX = (this.glow.blurY = this.blur);
this.glow.strength = 2 / Math.sqrt(this.blur);
_parent.internal.filters = [this.glow];
_parent.internal._xscale = (_parent.internal._yscale = (100 + blur) - 4);
};
Symbol 92 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function showPreloaderAd(options) {
var _local29 = {clip:_root, ad_timeout:1000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812};
options = _parseOptions(options, _local29);
var _local15 = options.clip;
var _local25 = 500;
var _local28 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(undefined);
}
_local15.stop();
var mc = _local15._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local16 = _getRes(options);
var _local5 = _local16[0];
var _local14 = _local16[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local8 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local8._x = 10;
_local8._y = _local14 - 20;
var _local24 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local26 = options.outline;
delete options.outline;
var _local6 = _local8.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local8.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local24);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local7 = _local8.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local26, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local5 - 20, 0);
_local7.lineTo(_local5 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local25;
chk.ad_timeout = _local28;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local15 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd"};
options = _parseOptions(options, _local15);
var _local6 = options.clip;
var _local12 = 11000;
var _local14 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(undefined);
}
_local6.stop();
var mc = _local6._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local7 = _getRes(options);
var _local16 = _local7[0];
var _local13 = _local7[1];
mc._x = _local16 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local12;
chk.ad_timeout = _local14;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
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 _loadCommunicator(options) {
var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.4";
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.4";
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 93 MovieClip [__Packages.ab20] Frame 0
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Instance of Symbol 33 MovieClip "text" in Symbol 34 MovieClip Frame 1
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
if (!_parent.hitTest(_root._xmouse, _root._ymouse, false)) {
_alpha = (_alpha - ((_alpha - 0) / 50));
}
}
Symbol 39 MovieClip Frame 1
this.r = this._width / 2;
dx = (Math.random() - Math.random()) * 0.3;
dy = (Math.random() - Math.random()) * 0.3;
s = 130;
this.onEnterFrame = function () {
_x = (_x + dx);
_y = (_y + dy);
if ((_x - r) < 0) {
dx = dx * -1;
_x = r;
}
if ((_x + r) > s) {
dx = dx * -1;
_x = (s - r);
}
if ((_y - r) < 0) {
dy = dy * -1;
_y = r;
}
if ((_y + r) > s) {
dy = dy * -1;
_y = (s - r);
}
};
Symbol 45 MovieClip Frame 1
r = _width / 2;
rr = r;
decay = 0.96;
h = 450;
inside = true;
fallRate = 0;
fallDist = 100;
this.onEnterFrame = function () {
r = _width / 2;
if (((_y - r) > 0) && ((_y + r) <= h)) {
} else {
dy = dy * -1;
if ((_y - r) < 0) {
_y = (0 + r);
} else if ((_y + r) > h) {
_y = (h - r);
}
_y = (_y + dy);
}
if (((_x - r) > 0) && ((_x + r) <= h)) {
} else {
dx = dx * -1;
if ((_x - r) < 0) {
_x = (0 + r);
} else if ((_x + r) > h) {
_x = (h - r);
}
_x = (_x + dx);
}
if ((!inside) && (hitTest(_root.area))) {
l = _root.area._x - (_root.area._width / 2);
ri = _root.area._x + (_root.area._width / 2);
t = _root.area._y - (_root.area._height / 2);
b = _root.area._y + (_root.area._height / 2);
if (_root.area._xscale > 71) {
if ((_y - r) < t) {
dy = dy * -1;
_y = (t - r);
} else if ((_y + r) > b) {
dy = dy * -1;
_y = (b + r);
} else if ((_x - r) < l) {
dx = dx * -1;
_x = (l - r);
} else if ((_x + r) > ri) {
dx = dx * -1;
_x = (ri + r);
}
} else {
_root.fallNow = false;
_root.riseNow = true;
}
}
this._x = this._x + this.dx;
this._y = this._y + this.dy;
dx = dx * decay;
dy = dy * decay;
if (inside) {
} else {
fallRate = fallRate + 0.2;
fallDist = fallDist - fallRate;
fallRate = fallRate * 0.97;
if (fallDist < 60) {
fallRate = fallRate * -0.9;
fallDist = 60;
}
_yscale = fallDist;
_xscale = fallDist;
r = (_xscale / 100) * rr;
}
if (!hitTest(_root.area)) {
inside = false;
_root.fallNow = true;
_root.riseNow = false;
_root.maxim = 6;
}
};
Instance of Symbol 20 MovieClip "play" in Symbol 47 MovieClip Frame 1
onClipEvent (load) {
title_text = "Submit Your Score\t";
this.rollArea.onRelease = function () {
_root.gotoAndStop(4);
};
}
Symbol 49 MovieClip Frame 1
this.dx = random(10) - 5;
this.dy = random(10) - 5;
r = 15;
h = 450;
_root.maxim = 6;
stop();
this.onEnterFrame = function () {
if (((this._x + r) < h) && ((this._x - r) > 0)) {
this._x = this._x + this.dx;
} else {
this.dx = this.dx * -1;
this._x = this._x + dx;
if ((_x - r) < 0) {
_x = (2 + r);
}
if ((_x + r) > h) {
_x = ((h - 2) - r);
}
}
if (((this._y + r) < h) && ((this._y - r) > 0)) {
this._y = this._y + this.dy;
} else {
this.dy = this.dy * -1;
this._y = this._y + dy;
if ((_y - r) < 0) {
_y = (2 + r);
}
if ((_y + r) > h) {
_y = ((h - 2) - r);
}
}
v = Math.sqrt((dx * dx) + (dy * dy));
if (v < _root.maxim) {
dx = dx * 1.01;
dy = dy * 1.01;
} else if (v > _root.maxim) {
dx = dx * 0.98;
dy = dy * 0.98;
}
_root.maxim = _root.maxim * 1.00006;
trace(_root.maxim);
};
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 79
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
__top10_send__.hid = 979;
__top10_send__.kid = "ERELIO";
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
i = 1;
while (i < 11) {
_root.scoreboard[("_name" + i) + "_"].text = __top10_receive__["name" + i];
_root.scoreboard[("_score" + i) + "_"].text = __top10_receive__["score" + i];
loading._visible = false;
i++;
}
}
};
stop();