Frame 1
MochiAd.showPreloaderAd({id:"1930273a30afd688", res:"400x500"});
stop();
Frame 2
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
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__("9af987d2", this, 10301, true);
Instance of Symbol 65 MovieClip in Frame 3
on (release) {
getURL ("http://www.kongregate.com/?gamereferral=orbavoidance2", "_self");
}
Frame 4
if (!tSound) {
tSound = new Sound();
tSound.attachSound("backing");
tSound.start();
}
stop();
Instance of Symbol 68 MovieClip in Frame 4
on (press) {
_root.gotoAndStop("game");
}
Instance of Symbol 79 MovieClip in Frame 4
on (release) {
getURL ("http://www.kongregate.com/?gamereferral=orbavoidance2", "_self");
}
Instance of Symbol 94 MovieClip in Frame 4
on (press) {
nextFrame();
}
Frame 5
blobs = 0;
score = 0;
level = 1;
blocks = "";
orbs = "";
Instance of Symbol 125 MovieClip in Frame 5
on (press) {
nextFrame();
}
Frame 6
_root.scoreBox.text = _root.score;
_root.kongregateServices.connect();
_root.kongregateScores.submit(_root.score);
if (_root.bEx) {
_root.kongregateStats.submit("Block Explode Score", _root.score);
} else {
_root.kongregateStats.submit("Block Permanent Score", _root.score);
}
Instance of Symbol 129 MovieClip in Frame 6
onClipEvent (load) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 79 MovieClip in Frame 6
on (release) {
getURL ("http://www.kongregate.com/?gamereferral=orbavoidance2", "_self");
}
Instance of Symbol 132 MovieClip in Frame 6
on (press) {
_root.gotoAndStop("menu");
}
Symbol 12 MovieClip Frame 1
stop();
Symbol 13 MovieClip [blob] Frame 8
this.removeMovieClip();
Symbol 14 MovieClip [spark_base] Frame 1
if (!i) {
i = 1;
xVel = (Math.random() * 30) - 15;
if (xVel > 0) {
xVel = xVel + 10;
}
if (xVel < 0) {
xVel = xVel - 10;
}
yVel = (Math.random() * 30) - 15;
if (yVel > 0) {
yVel = yVel + 10;
}
if (yVel < 0) {
yVel = yVel - 10;
}
grav = 1;
enable_phys = true;
fric = 100;
drawLayer = this.createEmptyMovieClip("", 1);
drawLayer.lineStyle(2, 16777011, 90);
drawLayer.moveTo(0, 0);
drawLayer.lineTo(-xVel, -yVel);
}
if (enable_phys) {
this._x = this._x + xVel;
this._y = this._y + yVel;
}
if ((((_x < -30) || (_x > (Stage.width + 30))) || (_y < -30)) || (_y > (Stage.height + 30))) {
this.removeMovieClip();
}
Symbol 15 MovieClip Frame 1
if (trail_on) {
if (!rnd) {
rnd = (Math.random() * 10000) + 10000;
}
drawLayer = _root.createEmptyMovieClip("drawlayer", i + rnd);
drawLayer.lineStyle(0);
drawLayer.moveTo((_parent._x + (_parent._width / 2)) - _parent.xVel, (_parent._y + (_parent._height / 2)) - _parent.yVel);
drawLayer.lineTo(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 2));
i++;
if ((!i) || (i > 10)) {
i = 1;
}
}
Symbol 16 MovieClip [orb] Frame 1
function makeDot(xV, yV) {
b = _root.attachMovie("blob", "blob", _root.getNextHighestDepth());
b._x = xV;
b._y = yV;
b.gfx.gotoAndStop(oType);
}
if (!stop_doing_it) {
if (_root.controller.newOrb(this)) {
stop_doing_it = true;
_root.blobs++;
}
}
if (_root.oTr) {
makeDot((((oX - _x) / 4) * 2) + _x, (((oY - _y) / 4) * 2) + _y);
makeDot((((oX - _x) / 4) * 3) + _x, (((oY - _y) / 4) * 3) + _y);
makeDot(((oX - _x) / 4) + _x, ((oY - _y) / 4) + _y);
oX = _x;
oY = _y;
makeDot(oX, oY);
} else {
gotoAndStop (3);
}
Symbol 16 MovieClip [orb] Frame 2
gotoAndPlay (1);
Symbol 18 MovieClip [star] Frame 1
if (!setup) {
setup = true;
xVel = (Math.random() * 2) - 1;
yVel = (Math.random() * 2) - 1;
}
_x = (_x + ((xVel = xVel + ((xVel > 0) ? 1 : -1))));
_y = (_y + ((yVel = yVel + ((yVel > 0) ? 1 : -1))));
if ((_x >= 430) || (_x <= -30)) {
this.removeMovieClip();
}
Symbol 136 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 34 MovieClip Frame 1
_root.stop();
Symbol 34 MovieClip Frame 180
_root.play();
Symbol 38 Button
on (release) {
getURL ("http://kongregate.com/", "_blank");
}
Symbol 65 MovieClip Frame 1
_root.stop();
Symbol 65 MovieClip Frame 180
_root.play();
Symbol 86 MovieClip Frame 1
_root.bEx = true;
stop();
Instance of Symbol 83 MovieClip in Symbol 86 MovieClip Frame 1
on (press) {
_parent.gotoAndStop(2);
}
Symbol 86 MovieClip Frame 2
_root.bEx = false;
Instance of Symbol 83 MovieClip in Symbol 86 MovieClip Frame 2
on (press) {
_parent.gotoAndStop(1);
}
Symbol 90 MovieClip Frame 1
_root.oTr = true;
stop();
Instance of Symbol 83 MovieClip in Symbol 90 MovieClip Frame 1
on (press) {
_parent.gotoAndStop(2);
}
Symbol 90 MovieClip Frame 2
_root.oTr = false;
Instance of Symbol 83 MovieClip in Symbol 90 MovieClip Frame 2
on (press) {
_parent.gotoAndStop(1);
}
Symbol 94 MovieClip Frame 1
_root.tSound.start(0, 99);
stop();
Symbol 94 MovieClip Frame 2
_root.tSound.stop();
stop();
Symbol 94 MovieClip Frame 3
gotoAndStop (1);
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 5
stop();
Symbol 110 MovieClip [box] Frame 1
if (!added) {
_root.controller.newBlock(this);
added = true;
active = false;
}
Symbol 110 MovieClip [box] Frame 15
active = true;
Symbol 110 MovieClip [box] Frame 16
gotoAndPlay (15);
Symbol 110 MovieClip [box] Frame 17
active = false;
Symbol 110 MovieClip [box] Frame 30
this.removeMovieClip();
Symbol 111 MovieClip Frame 1
function newOrb(orb) {
if (!_root.orbs) {
_root.orbs = new Array();
}
_root.orbs.push(orb);
if (!orb.xVel) {
orb.xVel = 0;
}
if (!orb.yVel) {
orb.yVel = 0;
}
type = Math.ceil(Math.random() * 10);
orb.oType = type;
orb.gfx.gotoAndStop(type);
return(true);
}
function newBlock(block) {
if (!_root.blocks) {
_root.blocks = new Array();
}
_root.blocks.push(block);
type = Math.ceil(Math.random() * 2);
if (block != _root.core_block) {
block.oType = type;
block.gfx.gotoAndStop(type);
} else {
block.oType = 4;
block.gfx.gotoAndStop(4);
}
}
function checkBlocks(p) {
o = _root.orbs[p];
r = 0;
while (r < _root.blocks.length) {
block = _root.blocks[r];
if (o.hitTest(block) && (block.active)) {
_root.blobs = _root.blobs - 1;
if (((Math.random() * 100) > 0) && (_root.core_block != block)) {
if (block.oType == 2) {
i = 1;
while (i <= ((_root.level / 3) + 1)) {
No = _root.objLayer.attachMovie("orb", ("nName" + i) + "a", _root.objLayer.getNextHighestDepth());
No._x = o._x;
No._y = o._y;
No.xVel = (30 * Math.random()) - 15;
No.yVel = (30 * Math.random()) - 15;
i++;
}
}
if ((((block.oType == 1) && ((Math.random() * 100) > 95)) && (_root.bEx)) || (block.oType != 1)) {
_root.blocks.splice(r, 1);
trace("removingblock!");
block.gotoAndPlay(17);
}
}
if (_root.combo._currentframe != 50) {
_root.combo.gotoAndStop(_root.combo._currentframe + 1);
}
_root.score = _root.score + _root.combo._currentframe;
i = 1;
while (i <= 5) {
nMC = _root.attachMovie("spark_base", "sparkGFX" + Math.random(), Math.random() * 100);
nMC._x = o._x;
nMC._y = o._y;
i++;
}
_root.orbs.splice(p, 1);
i = 1;
while (i <= 10) {
_root.createEmptyMovieClip("drawlayer", o.pro.rnd + i);
i++;
}
trace("removing!");
o.removeMovieClip();
return(true);
}
r++;
}
}
function moveToward(mX, mY, obj) {
if (obj == "MOUSE") {
tX = _root._xmouse;
tY = _root._ymouse;
} else {
tX = obj._x;
tY = obj._y;
}
mX = tX - mX;
mY = tY - mY;
dist = Math.sqrt((mX * mX) + (mY * mY));
t = new Array();
t.X = mX / dist;
t.Y = mY / dist;
return(t);
}
i = 0;
while (i < _root.orbs.length) {
o = _root.orbs[i];
if (o && (o != "")) {
try {
with (o) {
_x = _x + (((xVel * 2) / 3) * (1 + (_root.score / 4000)));
_y = _y + (((yVel * 2) / 3) * (1 + (_root.score / 4000)));
t = _root.controller.moveToward(_x, _y, "MOUSE");
xVel = xVel + t.X;
yVel = yVel + t.Y;
xVel = xVel * (0.85 + (oType / 100));
yVel = yVel * (0.85 + (oType / 100));
}
} catch(error) {
_root.orbs.splice(i, 1);
trace("removing!");
o.removeMovieClip();
}
if (o.hitTest(_root._xmouse, _root._ymouse, false)) {
_root.gotoAndStop("end");
}
checkBlocks(i);
} else {
_root.orbs.splice(i, 1);
i = 1;
while (i <= 10) {
_root.createEmptyMovieClip("drawlayer", o.pro.rnd + i);
i++;
}
trace("removing!");
o.removeMovieClip();
}
i++;
}
i = 0;
while (i < _root.blocks.length) {
o = _root.blocks[i];
if (o && (o.active)) {
if (o.oType == 3) {
if (!o.setup) {
o.xVel = 0;
o.yVel = 0;
}
if ((Math.random() * 1000) > 998) {
i = 1;
while (i <= 15) {
No = _root.objLayer.attachMovie("orb", ("nName" + i) + "a", _root.objLayer.getNextHighestDepth());
No._x = o._x;
No._y = o._y;
No.xVel = (30 * Math.random()) - 15;
No.yVel = (30 * Math.random()) - 15;
i++;
}
_root.blocks.splice(r, 1);
trace("removingblock!");
block.gotoAndPlay(17);
}
o.xVel = o.xVel + ((Math.random() - 0.5) * 10);
o.yVel = o.yVel + ((Math.random() - 0.5) * 10);
o._x = o._x + o.xVel;
o._y = o._y + o.yVel;
}
if (o.hitTest(_root._xmouse, _root._ymouse, false)) {
_root.gotoAndStop("end");
}
}
i++;
}
if (comboCount < 10) {
comboCount = comboCount + 1;
} else {
_root.combo.gotoAndStop(_root.combo._currentframe - 1);
comboCount = 0;
}
_root.scoret.text = _root.score;
if (String(_root.blocks) == "") {
_root.g_status = "noblock";
} else {
_root.g_status = "normal";
}
if (_root.g_status == "noblock") {
_root.score = _root.score + 1;
o = _root.objLayer.attachMovie("box", "nBox" + i, _root.objLayer.getNextHighestDepth());
o._x = (Math.random() * (Stage.width - 100)) + 50;
o._y = (Math.random() * (Stage.height - 100)) + 50;
}
Symbol 111 MovieClip Frame 2
with (_root) {
if ((!blobs) || (blobs == 0)) {
level++;
blobs = 0;
_root.orbs = "";
i = 1;
o = _root.objLayer.attachMovie("orb", "nName" + i, i + 999);
if ((Math.random() * 2) > 1) {
o._x = Stage.width;
}
o._y = Math.random() * Stage.height;
i = 1;
while (i <= level) {
o = _root.objLayer.attachMovie("orb", "nName" + i, i + 1000);
if ((Math.random() * 2) > 1) {
o._x = Stage.width;
}
o._y = Math.random() * Stage.height;
i++;
}
if (!_root.blocks[level]) {
o = _root.objLayer.attachMovie("box", "nBox" + i, i + 2000);
o._x = (Math.random() * (Stage.width - 100)) + 50;
o._y = (Math.random() * (Stage.height - 100)) + 50;
}
}
}
gotoAndPlay (1);
Symbol 120 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 1
_root.controller.play();
stop();
Symbol 125 MovieClip Frame 2
_root.controller.stop();
stop();
Symbol 125 MovieClip Frame 3
gotoAndStop (1);
Symbol 127 MovieClip Frame 1
if (!i) {
i = 0;
}
if (i < 5) {
_root.objLayer.filters = "";
_root.objLayer.filters = [new flash.filters.BlurFilter(i, i, 3)];
i = i + 1;
}