Frame 1
function klink() {
getURL ("http://www.kabomb.net", "_blank");
}
function dlink() {
getURL ("http://bea-d.be/deseo.htm", "_blank");
}
var cm = new ContextMenu();
cm.hideBuiltInItems();
cm.builtInItems.quality = true;
cm1 = new ContextMenuItem("Visit Kabomb", klink);
cm2 = new ContextMenuItem("Music by Deseo", dlink);
cm3.separatorBefore = true;
cm.customItems.push(cm1, cm2);
_root.menu = cm;
Instance of Symbol 54 MovieClip in Frame 2
onClipEvent (load) {
this._visible = false;
}
Frame 3
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__("ea65ed24", this, 10301, true);
MochiAd.showTimedAd({id:"6502ee9fbc452b6a", res:"500x500"});
Frame 4
_root.createEmptyMovieClip("music_mc", _root.getNextHighestDepth());
var theme = new Sound(music_mc);
theme.attachSound("theme");
theme.setVolume(100);
theme.start(0, 0);
theme.onSoundComplete = function () {
theme.start(0, 0);
};
var mute_music = false;
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (mouseDown) {
getURL ("http://www.kabomb.net", "_blank");
}
Frame 7
stop();
var savefile = SharedObject.getLocal("Zwingo");
if (savefile.data.xp == undefined) {
continue_btn.enabled = false;
continue_btn._alpha = 75;
} else {
continue_btn.enabled = true;
continue_btn._alpha = 100;
}
Frame 8
function load_data() {
if (savefile.data.xp != undefined) {
xp = savefile.data.xp;
txp = savefile.data.txp;
speed_lvl = savefile.data.speed_lvl;
size_lvl = savefile.data.size_lvl;
boundary_lvl = savefile.data.boundary_lvl;
ring_lvl = savefile.data.ring_lvl;
level = savefile.data.level;
}
}
function save_data() {
savefile.data.xp = xp;
savefile.data.txp = txp;
savefile.data.speed_lvl = speed_lvl;
savefile.data.size_lvl = size_lvl;
savefile.data.boundary_lvl = boundary_lvl;
savefile.data.ring_lvl = ring_lvl;
savefile.data.level = level;
savefile.flush();
}
function remove_mcs() {
balls_mc.removeMovieClip();
boss_mc.removeMovieClip();
overlay.removeMovieClip();
bball.removeMovieClip();
ball.removeMovieClip();
string.removeMovieClip();
pointer.removeMovieClip();
effects_mc.removeMovieClip();
msg_mc.removeMovieClip();
osd_mc.removeMovieClip();
}
function level_up() {
level++;
if (level > 50) {
remove_mcs();
_root.gotoAndPlay("game_complete");
} else {
set_var_to_lvl();
osd_mc.gotoAndStop(3);
etotal = 0;
espawned = 0;
atcount = 0;
bball.xspeed = (bball.yspeed = 0);
bball._x = sw / 2;
bball._y = sh / 2;
gpause = true;
save_data();
}
}
function set_var_to_lvl() {
osd_mc.level_txt = "Level " + level;
emax_scale = ((level - 1) * 8.16326530612245) + 100;
emax_speed = ((level - 1) * 0.102040816326531) + 5;
emax = level + 10;
if (level >= 10) {
emin = 2;
}
if (level >= 40) {
emin = 3;
}
if ((level / 10) == Math.round(level / 10)) {
boss_lvl = true;
bspawn = false;
} else {
boss_lvl = false;
}
}
function init_boss() {
var _local1 = boss_mc.attachMovie("boss_lib", "boss", boss_mc.getNextHighestDepth());
}
function abs_rotation(crotation) {
if (crotation > 360) {
crotation = crotation - 360;
}
if (crotation <= 0) {
crotation = crotation + 360;
}
return(crotation);
}
function ease_rotation(crotation, rto, espeed) {
rdiff = crotation - rto;
if (rdiff > 180) {
rdiff = rdiff - 360;
}
if (rdiff < -180) {
rdiff = rdiff + 360;
}
crotation = crotation - (rdiff / (20 - espeed));
return(crotation);
}
function spawn_ball(boss_ball) {
espawned++;
etotal++;
var _local2 = _root.balls_mc.attachMovie("eball", "eball" + _root.balls_mc.getNextHighestDepth(), _root.balls_mc.getNextHighestDepth());
_local2.rotation = Math.random() * 360;
_local2.speed = (Math.random() * (emax_speed - emin_speed)) + emin_speed;
_local2.scale_pc = 1 - (_local2.speed / emax_speed);
_local2.escale = (_local2.scale_pc * (emax_scale - 100)) + 100;
_local2.boss = boss_ball;
balls.push(_local2);
}
function next_level() {
var _local1 = new Date();
tinit = _local1.getTime();
gmessage("Level " + level);
rdiff = Math.random() * 360;
if ((level / 10) == Math.round(level / 10)) {
boss_lvl = true;
bspawn = false;
} else {
boss_lvl = false;
}
save_data();
}
function do_effect(amount, scale, x, y) {
fv = 0;
while (fv < amount) {
id = effects_mc.getNextHighestDepth();
var _local1 = effects_mc.attachMovie("effect", "effect" + id, id);
_local1._x = x;
_local1._y = y;
_local1._xscale = (_local1._yscale = (Math.random() * scale) + (scale / 2));
_local1._rotation = Math.random() * 360;
fv++;
}
}
function collision(mc1, mc2) {
cxdiff = mc1._x - mc2._x;
cydiff = mc1._y - mc2._y;
dist = Math.sqrt((cxdiff * cxdiff) + (cydiff * cydiff));
if (dist < (mc2.radius + mc1.radius)) {
mc1.hit = (mc2.hit = true);
var _local15 = Math.atan2(cydiff, cxdiff);
var _local5 = Math.cos(_local15);
var _local4 = Math.sin(_local15);
var _local7 = (_local5 * mc2.xspeed) + (_local4 * mc2.yspeed);
var _local12 = (_local5 * mc2.yspeed) - (_local4 * mc2.xspeed);
var _local8 = (_local5 * mc1.xspeed) + (_local4 * mc1.yspeed);
var _local11 = (_local5 * mc1.yspeed) - (_local4 * mc1.xspeed);
var _local16 = (_local7 * mc2.mass) + (_local8 * mc1.mass);
var _local6 = _local7 - _local8;
if (!mute_music) {
var _local9 = new Sound(_root.sound_fx);
if ((mc1 == boss_mc.boss) || (mc2 == boss_mc.boss)) {
_local9.attachSound("bhit");
} else {
_local9.attachSound("hit");
}
_local9.start(0, 0);
Vvolume = Math.abs(_local6) * 8;
_local9.setVolume(Vvolume);
}
if (_local6 > 20) {
do_effect(Math.abs(_local6) / 3, (Math.abs(_local6) * 2) + 50, mc1._x - (_local5 * mc1.radius), mc1._y - (_local4 * mc1.radius));
if ((mc1 == boss_mc.boss) || (mc2 == boss_mc.boss)) {
xp = xp + Math.round(_local6 * 10);
txp = txp + Math.round(_local6 * 10);
_root.osd_mc.xp_mc._xscale = (_root.osd_mc.xp_mc._yscale = 100 + ((_local6 * 10) / _root.level));
boss_mc.boss.health = boss_mc.boss.health - (_local6 / (level / 3));
}
}
_local7 = (_local16 - (mc1.mass * _local6)) / (mc2.mass + mc1.mass);
_local8 = _local6 + _local7;
mc2.xspeed = (_local5 * _local7) - (_local4 * _local12);
mc2.yspeed = (_local5 * _local12) + (_local4 * _local7);
mc1.xspeed = (_local5 * _local8) - (_local4 * _local11);
mc1.yspeed = (_local5 * _local11) + (_local4 * _local8);
var _local13 = (((mc2.radius + mc1.radius) - dist) / 2) + 1;
var _local14 = _local5 * _local13;
var _local10 = _local4 * _local13;
mc2._x = mc2._x - _local14;
mc2._y = mc2._y - _local10;
mc1._x = mc1._x + _local14;
mc1._y = mc1._y + _local10;
}
}
function die() {
dead = true;
Mouse.show();
}
function gmessage(gtext) {
msg_count = 0;
msg_mc.msg_txt = gtext;
msg = true;
msg_init = tcount;
}
function get_time() {
var _local1 = new Date();
return(_local1.getTime());
}
function do_pause() {
tpause = get_time();
}
function do_unpause() {
tinit = tinit + (get_time() - tpause);
}
var savefile = SharedObject.getLocal("Zwingo");
stop();
Mouse.hide();
var sw = 500;
var sh = 500;
var balls = new Array();
var mballs = new Array();
var boundary_radius = 75;
boundary._width = (boundary._height = boundary_radius * 0.5);
var dead = false;
var gpause = false;
var xp = 0;
var txp = 0;
var xp_to = 0;
var dcount = 0;
var level = 1;
var lives = 3;
var etotal = 0;
var emin = 1;
var emax = 10;
var espawned = 0;
var rdiff = (Math.random() * 360);
var boss_lvl = false;
var bspawn = false;
osd_mc.boss._visible = false;
var emax_speed = 5;
var emin_speed = 5;
var emax_scale = 100;
var speed_lvl = 1;
var size_lvl = 1;
var boundary_lvl = 1;
var ring_lvl = 1;
mballs.push(bball);
mballs.push(ball);
_root.createEmptyMovieClip("balls_mc", _root.getNextHighestDepth());
_root.createEmptyMovieClip("boss_mc", _root.getNextHighestDepth());
overlay.swapDepths(_root.getNextHighestDepth());
bball.swapDepths(_root.getNextHighestDepth());
ball.swapDepths(_root.getNextHighestDepth());
string.swapDepths(_root.getNextHighestDepth());
pointer.swapDepths(_root.getNextHighestDepth());
_root.createEmptyMovieClip("effects_mc", _root.getNextHighestDepth());
msg_mc.swapDepths(_root.getNextHighestDepth());
osd_mc.swapDepths(_root.getNextHighestDepth());
_root.createEmptyMovieClip("fader_mc", _root.getNextHighestDepth());
_root.music_mc.swapDepths(_root.getNextHighestDepth());
theme.onSoundComplete = function () {
theme.start(0, 0);
};
Mouse.addListener(mlist);
_root.createEmptyMovieClip("sound_fx", _root.getNextHighestDepth());
msg_mc._alpha = 0;
var msg = false;
var msg_count = 0;
var msg_init = 0;
atcount = 0;
tcount = 0;
tinit = get_time();
tpause = 0;
load_data();
set_var_to_lvl();
gmessage("Level " + level);
xpt_xscale = 0;
xpt_yscale = 0;
onEnterFrame = function () {
if (mute_music) {
theme.setVolume(0);
} else {
theme.setVolume(100);
}
if ((!dead) && (!_root.gpause)) {
Mouse.hide();
osd_mc.gotoAndStop(1);
atcount = atcount + 0.0416666666666667;
tcount = Math.round(atcount * 10) / 10;
xpt_xscale = xpt_xscale + ((100 - osd_mc.xp_mc._xscale) / 10);
xpt_yscale = xpt_yscale + ((100 - osd_mc.xp_mc._yscale) / 10);
xpt_xscale = xpt_xscale * 0.9;
xpt_yscale = xpt_yscale * 0.9;
osd_mc.xp_mc._xscale = osd_mc.xp_mc._xscale + xpt_xscale;
osd_mc.xp_mc._yscale = osd_mc.xp_mc._yscale + xpt_yscale;
xp_to = xp_to + ((xp - xp_to) / 10);
osd_mc.xp_mc.xp_txt = Math.round(xp_to) + "xp";
boundary_radius = 75 + ((boundary_lvl - 1) * 8.33333333333333);
boundary._width = (boundary._height = boundary_radius * 2);
if (msg) {
if (tcount < 3) {
if (msg_mc._alpha < 100) {
msg_mc._alpha = msg_mc._alpha + 5;
}
} else if (msg_mc._alpha > 0) {
msg_mc._alpha = msg_mc._alpha - 5;
} else {
msg_count = 0;
msg = false;
}
}
pointer._x = _root._xmouse;
pointer._y = _root._ymouse;
dshadow._xscale = (dshadow._yscale = ball._xscale);
dshadow._x = (sw / 2) + ((ball._x - (sw / 2)) * 1.1);
dshadow._y = (sh / 2) + ((ball._y - (sh / 2)) * 1.1);
string._x = pointer._x;
string._y = pointer._y;
xdiff = ball._x - pointer._x;
ydiff = ball._y - pointer._y;
dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
string._rotation = 0;
string._width = dist;
if (string._width < 2) {
string._width = 2;
}
sangle = (Math.atan2(ydiff, xdiff) * 180) / Math.PI;
string._rotation = sangle;
fv = 0;
while (fv < balls.length) {
collision(balls[fv], ball);
collision(balls[fv], bball);
fv2 = 0;
while (fv2 < fv) {
collision(balls[fv], balls[fv2]);
fv2++;
}
fv++;
}
if (!boss_lvl) {
if (tcount >= 3) {
if ((balls.length < emin) && (espawned < emax)) {
spawn_ball(false);
}
if (random(200) == 0) {
spawn_ball(false);
}
}
if ((espawned >= emax) && (etotal == 0)) {
level_up();
}
osd_mc.boss._visible = false;
} else {
if ((tcount > 3) && (!bspawn)) {
bspawn = true;
init_boss();
}
if ((tcount > 3) && (random(200) == 0)) {
spawn_ball(true);
}
osd_mc.boss._visible = true;
osd_mc.boss.bar._x = ((boss_mc.boss.health / 100) * osd_mc.boss.bar._width) - osd_mc.boss.bar._width;
}
} else {
Mouse.show();
}
if (dead) {
dcount++;
if (dcount > 12) {
remove_mcs();
gotoAndPlay ("game_over_frame");
}
}
};
Frame 9
hs_txt = txp + "xp";
onEnterFrame = function () {
point = less;
};
Frame 29
_root.stop();
Frame 30
hs_txt = txp + " seconds";
fader_mc.removeMovieClip();
Frame 50
_root.stop();
Symbol 14 Button
on (release) {
_root.gotoAndStop(_root._currentframe + 2);
}
Symbol 15 MovieClip Frame 1
_root.stop();
loaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (loaded == 100) {
gotoAndStop (3);
} else {
bar.gotoAndStop(Math.round(loaded));
}
Symbol 15 MovieClip Frame 2
gotoAndPlay (1);
Symbol 20 Button
on (release) {
getURL ("http://bea-d.be/deseo.htm", "_blank");
}
Symbol 34 Button
on (release) {
getURL ("http://www.kabomb.net", "_blank");
}
Symbol 38 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 213 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
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.adLoaded = function (width, height) {
};
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 _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
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 = getVersion();
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 = getVersion();
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 44 MovieClip [boss_lib] Frame 1
this._x = Stage.width / 2;
this._y = 0;
var xspeed = 0;
var yspeed = 5;
var bmode = 1;
var health = 100;
var in_stage = false;
var radius = 25;
var mass = _root.level;
var rto = (((Math.atan2(this._y - _root.bball._y, this._x - _root.bball._x) * 180) / Math.PI) - 90);
onEnterFrame = function () {
if ((!_root.dead) && (!_root.gpause)) {
if (bmode == 1) {
_x = (_x + xspeed);
_y = (_y + yspeed);
cxdiff = _x - (_root.sw / 2);
cydiff = _y - (_root.sh / 2);
dist = Math.sqrt((cxdiff * cxdiff) + (cydiff * cydiff));
if ((dist < (225 - radius)) && (!in_stage)) {
in_stage = true;
}
if (health > 0) {
if ((dist > (225 - radius)) && (in_stage)) {
var _local8 = Math.atan2(cydiff, cxdiff);
var _local4 = Math.cos(_local8);
var _local3 = Math.sin(_local8);
var _local5 = (_local4 * xspeed) + (_local3 * yspeed);
var _local6 = (_local4 * yspeed) - (_local3 * xspeed);
var _local11 = -_local5;
_local5 = _local11;
xspeed = (_local4 * _local5) - (_local3 * _local6);
yspeed = (_local4 * _local6) + (_local3 * _local5);
var _local7 = (225 - radius) - dist;
var _local10 = _local4 * _local7;
var _local9 = _local3 * _local7;
_x = (_x + _local10);
_y = (_y + _local9);
}
xspeed = xspeed + (((Math.cos(((rto + 90) * Math.PI) / 180) * -7) - xspeed) / 100);
yspeed = yspeed + (((Math.sin(((rto + 90) * Math.PI) / 180) * -7) - yspeed) / 100);
} else if ((dist > (225 + radius)) && (_root.etotal == 0)) {
_root.xp = _root.xp + (_root.level * 10);
_root.txp = _root.txp + (_root.level * 10);
_root.level_up();
this.removeMovieClip();
}
}
rto = ((Math.atan2(this._y - _root.bball._y, this._x - _root.bball._x) * 180) / Math.PI) - 90;
head._rotation = _root.ease_rotation(head._rotation, rto, 0);
_root.collision(this, _root.ball);
_root.collision(this, _root.bball);
}
};
Symbol 47 MovieClip [eball] Frame 1
function remove() {
_root.etotal--;
_root.xp = _root.xp + Math.round(speed * mass);
_root.txp = _root.txp + Math.round(speed * mass);
_root.osd_mc.xp_mc._xscale = (_root.osd_mc.xp_mc._yscale = 100 + ((speed * mass) / (_root.level / 3)));
fv = 0;
while (fv < _root.balls.length) {
if (this == _root.balls[fv]) {
_root.balls.splice(fv, 1);
break;
}
fv++;
}
this.removeMovieClip();
}
this.gotoAndStop(random(this._totalframes) + 1);
ball_type = random(5) + 1;
var speed;
var xspeed;
var yspeed;
var boss;
var escale;
var init_speed;
var radius;
var mass;
var density = (escale / 100);
density = density * (1 + ((_root.level / 50) * 4));
radius = 15 * (escale / 100);
mass = (radius / _root.ball.init_radius) * density;
this._xscale = (this._yscale = escale);
var rotation;
rotation = rotation * (Math.PI/180);
if (boss) {
this._x = _root.boss_mc.boss._x;
this._y = _root.boss_mc.boss._y;
this._xscale = (this._yscale = (Math.random() * 66) + 100);
} else {
this._x = (_root.sw / 2) + (Math.sin(rotation) * (225 + radius));
this._y = (_root.sh / 2) + (Math.cos(rotation) * (-(225 + radius)));
}
var bball_angle = Math.atan2(_root.bball._y - this._y, _root.bball._x - this._x);
deg = (bball_angle * 180) / Math.PI;
deg = _root.abs_rotation(deg + 90);
bball_angle = (deg * Math.PI) / 180;
init_speed = speed;
xspeed = Math.sin(bball_angle) * init_speed;
yspeed = Math.cos(bball_angle) * (-init_speed);
if (ball_type == 5) {
init_speed = init_speed + 2;
if (random(2) == 0) {
rotation = bball_angle + (Math.PI/2);
} else {
rotation = bball_angle - (Math.PI/2);
}
xspeed = Math.sin(rotation) * init_speed;
yspeed = Math.cos(rotation) * (-init_speed);
}
if (ball_type == 6) {
rotation = deg + 90;
rotation = _root.abs_rotation(rotation);
xspeed = Math.sin(rotation) * init_speed;
yspeed = Math.cos(rotation) * (-init_speed);
}
onEnterFrame = function () {
if ((!_root.dead) && (!_root.gpause)) {
if (ball_type == 5) {
if (!hit) {
bball_angle = Math.atan2(_root.bball._y - this._y, _root.bball._x - this._x) + (Math.PI/2);
xspeed = xspeed + (((Math.sin(bball_angle) * init_speed) - xspeed) / 30);
yspeed = yspeed + (((Math.cos(bball_angle) * (-init_speed)) - yspeed) / 30);
}
}
if (ball_type == 6) {
if (!hit) {
bball_angle = Math.atan2(_root.bball._y - this._y, _root.bball._x - this._x);
rto = ((bball_angle * 180) / Math.PI) + 90;
rto = _root.abs_rotation(rto);
rotation = _root.ease_rotation(rotation, rto, init_speed);
xspeed = Math.sin((rotation * Math.PI) / 180) * init_speed;
yspeed = Math.cos((rotation * Math.PI) / 180) * (-init_speed);
}
}
xdiff = (_root.sw / 2) - this._x;
ydiff = (_root.sh / 2) - this._y;
dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
if (dist > ((225 + radius) + 10)) {
remove();
}
this._x = this._x + xspeed;
this._y = this._y + yspeed;
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
}
};
Symbol 50 MovieClip [effect] Frame 21
this.removeMovieClip();
Symbol 69 MovieClip Frame 1
_root.stop();
Symbol 69 MovieClip Frame 200
_root.play();
Symbol 79 MovieClip Frame 1
_root.stop();
Symbol 79 MovieClip Frame 171
_root.play();
Symbol 83 MovieClip Frame 1
_root.stop();
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
trace(domain);
site_txt = domain;
Symbol 83 MovieClip Frame 240
_root.play();
Symbol 86 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 91 Button
on (release) {
this.nextFrame();
}
Symbol 101 Button
on (release) {
this.prevFrame();
}
Symbol 111 MovieClip Frame 1
stop();
Symbol 112 Button
on (release) {
var savefile = SharedObject.getLocal("Zwingo");
savefile.clear();
_root.play();
}
Symbol 114 Button
on (release) {
_root.play();
}
Symbol 117 MovieClip Frame 1
var xspeed = 0;
var yspeed = 0;
var radius = 25;
var mass = (radius / _root.ball.init_radius);
var fric = 0.85;
onEnterFrame = function () {
if ((!_root.dead) && (!_root.gpause)) {
radius = 25 + ((_root.ring_lvl - 1) * 4);
this._xscale = (this._yscale = (radius / 25) * 100);
mass = radius / _root.ball.init_radius;
xspeed = xspeed * fric;
yspeed = yspeed * fric;
this._x = this._x + xspeed;
this._y = this._y + yspeed;
xdiff = (_root.sw / 2) - this._x;
ydiff = (_root.sh / 2) - this._y;
dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
if (dist > (_root.boundary_radius + this.radius)) {
_root.die();
}
}
};
Symbol 120 Button
on (release) {
if (!_root.dead) {
_root.gpause = true;
gotoAndStop (2);
}
}
Symbol 132 Button
on (release) {
if (!_root.dead) {
_root.gpause = false;
gotoAndStop (1);
}
}
Symbol 137 Button
on (release) {
_root._quality = "high";
}
Symbol 140 Button
on (release) {
_root._quality = "medium";
}
Symbol 143 Button
on (release) {
_root._quality = "low";
}
Symbol 148 MovieClip Frame 1
onEnterFrame = function () {
if (_root.mute_music) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
var mute_music;
this.onRelease = function () {
if (!_root.mute_music) {
_root.mute_music = true;
gotoAndStop (2);
} else {
_root.mute_music = false;
gotoAndStop (1);
}
};
Symbol 156 Button
on (release) {
_root.gpause = false;
_root.next_level();
}
Symbol 163 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 1
function set_costs() {
speed_cost = Math.abs(100 * Math.pow(2, _root.speed_lvl - 1));
size_cost = Math.abs(120 * Math.pow(2, _root.size_lvl - 1));
boundary_cost = Math.abs(210 * Math.pow(2, _root.boundary_lvl - 1));
ring_cost = Math.abs(290 * Math.pow(2, _root.ring_lvl - 1));
speed_cost_txt = speed_cost + "xp";
size_cost_txt = size_cost + "xp";
boundary_cost_txt = boundary_cost + "xp";
ring_cost_txt = ring_cost + "xp";
speed_lvl_txt = _root.speed_lvl;
size_lvl_txt = _root.size_lvl;
boundary_lvl_txt = _root.boundary_lvl;
ring_lvl_txt = _root.ring_lvl;
if (speed_cost > _root.xp) {
speed_btn.gotoAndStop(2);
}
if (size_cost > _root.xp) {
size_btn.gotoAndStop(2);
}
if (boundary_cost > _root.xp) {
boundary_btn.gotoAndStop(2);
}
if (ring_cost > _root.xp) {
ring_btn.gotoAndStop(2);
}
xp_txt = ("Points - " + _root.xp) + "xp";
lvl_txt = "Level " + _root.level;
_root.save_data();
}
stop();
set_costs();
speed_btn.onRelease = function () {
if (_root.xp >= speed_cost) {
_root.speed_lvl++;
_root.xp = _root.xp - speed_cost;
set_costs();
}
};
size_btn.onRelease = function () {
if (_root.xp >= size_cost) {
_root.size_lvl++;
_root.xp = _root.xp - size_cost;
set_costs();
}
};
boundary_btn.onRelease = function () {
if (_root.xp >= boundary_cost) {
_root.boundary_lvl++;
_root.xp = _root.xp - boundary_cost;
set_costs();
}
};
ring_btn.onRelease = function () {
if (_root.xp >= ring_cost) {
_root.ring_lvl++;
_root.xp = _root.xp - ring_cost;
set_costs();
}
};
var klis = new Object();
klis.onKeyDown = function () {
if (Key.isDown(32)) {
_root.gpause = false;
_root.next_level();
}
};
Key.addListener(klis);
Symbol 178 MovieClip Frame 1
stop();
prlse = true;
Mouse.hide();
onEnterFrame = function () {
txp_txt = _root.txp + "xp";
if (!_root.dead) {
if (Key.isDown(80) && (prlse)) {
prlse = false;
}
if ((!Key.isDown(80)) && (!prlse)) {
prlse = true;
_root.gpause = true;
_root.do_pause();
gotoAndStop (2);
}
}
};
Symbol 178 MovieClip Frame 2
stop();
prlse = true;
Mouse.show();
onEnterFrame = function () {
if (!_root.dead) {
if (Key.isDown(80) && (prlse)) {
prlse = false;
}
if ((!Key.isDown(80)) && (!prlse)) {
prlse = true;
_root.gpause = false;
_root.do_unpause();
gotoAndStop (1);
}
}
};
Symbol 178 MovieClip Frame 3
onEnterFrame = function () {
point = less;
};
Symbol 179 MovieClip Frame 1
var xspeed = 0;
var yspeed = 0;
var fric = 0.9;
var speed = 50;
var init_radius = 15;
var radius = init_radius;
var mass = (radius / init_radius);
var maxspeed = 30;
onEnterFrame = function () {
if ((!_root.dead) && (!_root.gpause)) {
radius = init_radius + (((_root.size_lvl - 1) / 9) * init_radius);
this._xscale = (this._yscale = (radius / 15) * 100);
mass = radius / init_radius;
speed = 50 - ((_root.speed_lvl - 1) * 2.5);
maxspeed = 30 + ((_root.speed_lvl - 1) * 2);
xspeed = xspeed + ((_root.pointer._x - this._x) / speed);
yspeed = yspeed + ((_root.pointer._y - this._y) / speed);
xspeed = xspeed * fric;
yspeed = yspeed * fric;
if (this._x < (this._width / 2)) {
xspeed = Math.abs(xspeed);
}
if (this._x > (_root.sw - (this._width / 2))) {
xspeed = -Math.abs(xspeed);
}
if (this._y < (this._height / 2)) {
yspeed = Math.abs(yspeed);
}
if (this._y > (_root.sh - (this._height / 2))) {
yspeed = -Math.abs(yspeed);
}
if (Math.sqrt((xspeed * xspeed) + (yspeed * yspeed)) > maxspeed) {
angle = Math.atan2(yspeed, xspeed);
xspeed = Math.cos(angle) * maxspeed;
yspeed = Math.sin(angle) * maxspeed;
}
this._x = this._x + xspeed;
this._y = this._y + yspeed;
cxdiff = this._x - (_root.sw / 2);
cydiff = this._y - (_root.sh / 2);
dist = Math.sqrt((cxdiff * cxdiff) + (cydiff * cydiff));
if (dist > (225 - radius)) {
var angle = Math.atan2(cydiff, cxdiff);
var _local4 = Math.cos(angle);
var _local3 = Math.sin(angle);
var _local5 = (_local4 * xspeed) + (_local3 * yspeed);
var _local6 = (_local4 * yspeed) - (_local3 * xspeed);
var _local10 = -_local5;
_local5 = _local10;
xspeed = (_local4 * _local5) - (_local3 * _local6);
yspeed = (_local4 * _local6) + (_local3 * _local5);
var _local7 = (225 - radius) - dist;
var _local9 = _local4 * _local7;
var _local8 = _local3 * _local7;
this._x = this._x + _local9;
this._y = this._y + _local8;
}
}
};
Symbol 194 Button
on (release) {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = par3;
par227.c2NvcmUx = par4 + "Z";
par227.c2NvcmUx = par227.c2NvcmUx.split("0").join("U");
par227.c2NvcmUx = par227.c2NvcmUx.split("").join("A");
par227.c2NvcmUx = par227.c2NvcmUx.split("AU").join("Y");
par227.c2NvcmUx = par227.c2NvcmUx.split("A1").join("B");
par227.c2NvcmUx = par227.c2NvcmUx.split(".").join("N");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/as3_v0.php", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = hs_name_txt;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.txp;
__rankz_send__("MTcwNGolZSVhJW4lcw==", "RnNHUU1menM=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
submit_btn.enabled = false;
submit_btn._alpha = 75;
}
Symbol 196 Button
on (release) {
getURL ("http://rankz.armorbot.com/zwingo/", "_blank");
}
Symbol 202 Button
on (release) {
var savefile = SharedObject.getLocal("Zwingo");
savefile.clear();
gotoAndStop (8);
}
Symbol 204 Button
on (release) {
gotoAndStop ("menu_screen");
}
Symbol 205 Button
on (release) {
_root.gotoAndStop("game_frame");
}
Symbol 211 Button
on (release) {
gotoAndStop ("menu_screen");
}