Frame 1
MochiAd.showPreloaderAd({id:"ecaa904c921ac301", res:"800x630"});
Frame 2
stop();
stop();
Instance of Symbol 11 MovieClip in Frame 2
on (release) {
_root.gotoAndStop(4);
}
Instance of Symbol 17 MovieClip in Frame 3
onClipEvent (load) {
stopAllSounds();
gotoAndPlay (2);
}
Frame 4
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__("c6e0fb61", this, 10301, true);
Mouse.show();
stop();
Instance of Symbol 33 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (4);
dx = _x - _root.center._x;
dy = _y - _root.center._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
ra = Math.atan2(dy, dx);
r = (ra / Math.PI) * 180;
}
onClipEvent (enterFrame) {
r = r + _root.center.spin;
_x = (_root.center._x + (Math.cos((r / 180) * Math.PI) * dis));
_y = (_root.center._y + (Math.sin((r / 180) * Math.PI) * dis));
}
Instance of Symbol 33 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (1);
dx = _x - _root.center._x;
dy = _y - _root.center._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
ra = Math.atan2(dy, dx);
r = (ra / Math.PI) * 180;
}
onClipEvent (enterFrame) {
r = r + _root.center.spin;
_x = (_root.center._x + (Math.cos((r / 180) * Math.PI) * dis));
_y = (_root.center._y + (Math.sin((r / 180) * Math.PI) * dis));
}
Instance of Symbol 33 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (1);
dx = _x - _root.center._x;
dy = _y - _root.center._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
ra = Math.atan2(dy, dx);
r = (ra / Math.PI) * 180;
}
onClipEvent (enterFrame) {
r = r + _root.center.spin;
_x = (_root.center._x + (Math.cos((r / 180) * Math.PI) * dis));
_y = (_root.center._y + (Math.sin((r / 180) * Math.PI) * dis));
}
Instance of Symbol 33 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (2);
dx = _x - _root.center._x;
dy = _y - _root.center._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
ra = Math.atan2(dy, dx);
r = (ra / Math.PI) * 180;
}
onClipEvent (enterFrame) {
r = r + _root.center.spin;
_x = (_root.center._x + (Math.cos((r / 180) * Math.PI) * dis));
_y = (_root.center._y + (Math.sin((r / 180) * Math.PI) * dis));
}
Instance of Symbol 33 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (2);
dx = _x - _root.center._x;
dy = _y - _root.center._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
ra = Math.atan2(dy, dx);
r = (ra / Math.PI) * 180;
}
onClipEvent (enterFrame) {
r = r + _root.center.spin;
_x = (_root.center._x + (Math.cos((r / 180) * Math.PI) * dis));
_y = (_root.center._y + (Math.sin((r / 180) * Math.PI) * dis));
}
Instance of Symbol 33 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (2);
dx = _x - _root.center._x;
dy = _y - _root.center._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
ra = Math.atan2(dy, dx);
r = (ra / Math.PI) * 180;
}
onClipEvent (enterFrame) {
r = r + _root.center.spin;
_x = (_root.center._x + (Math.cos((r / 180) * Math.PI) * dis));
_y = (_root.center._y + (Math.sin((r / 180) * Math.PI) * dis));
}
Instance of Symbol 33 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (3);
dx = _x - _root.center._x;
dy = _y - _root.center._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
ra = Math.atan2(dy, dx);
r = (ra / Math.PI) * 180;
}
onClipEvent (enterFrame) {
r = r + _root.center.spin;
_x = (_root.center._x + (Math.cos((r / 180) * Math.PI) * dis));
_y = (_root.center._y + (Math.sin((r / 180) * Math.PI) * dis));
}
Instance of Symbol 33 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (3);
dx = _x - _root.center._x;
dy = _y - _root.center._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
ra = Math.atan2(dy, dx);
r = (ra / Math.PI) * 180;
}
onClipEvent (enterFrame) {
r = r + _root.center.spin;
_x = (_root.center._x + (Math.cos((r / 180) * Math.PI) * dis));
_y = (_root.center._y + (Math.sin((r / 180) * Math.PI) * dis));
}
Instance of Symbol 33 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (3);
dx = _x - _root.center._x;
dy = _y - _root.center._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
ra = Math.atan2(dy, dx);
r = (ra / Math.PI) * 180;
}
onClipEvent (enterFrame) {
r = r + _root.center.spin;
_x = (_root.center._x + (Math.cos((r / 180) * Math.PI) * dis));
_y = (_root.center._y + (Math.sin((r / 180) * Math.PI) * dis));
}
Instance of Symbol 33 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (3);
dx = _x - _root.center._x;
dy = _y - _root.center._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
ra = Math.atan2(dy, dx);
r = (ra / Math.PI) * 180;
}
onClipEvent (enterFrame) {
r = r + _root.center.spin;
_x = (_root.center._x + (Math.cos((r / 180) * Math.PI) * dis));
_y = (_root.center._y + (Math.sin((r / 180) * Math.PI) * dis));
}
Instance of Symbol 33 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (3);
dx = _x - _root.center._x;
dy = _y - _root.center._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
ra = Math.atan2(dy, dx);
r = (ra / Math.PI) * 180;
}
onClipEvent (enterFrame) {
r = r + _root.center.spin;
_x = (_root.center._x + (Math.cos((r / 180) * Math.PI) * dis));
_y = (_root.center._y + (Math.sin((r / 180) * Math.PI) * dis));
}
Instance of Symbol 33 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (3);
dx = _x - _root.center._x;
dy = _y - _root.center._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
ra = Math.atan2(dy, dx);
r = (ra / Math.PI) * 180;
}
onClipEvent (enterFrame) {
r = r + _root.center.spin;
_x = (_root.center._x + (Math.cos((r / 180) * Math.PI) * dis));
_y = (_root.center._y + (Math.sin((r / 180) * Math.PI) * dis));
}
Instance of Symbol 33 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (5);
dx = _x - _root.center._x;
dy = _y - _root.center._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
ra = Math.atan2(dy, dx);
r = (ra / Math.PI) * 180;
}
onClipEvent (enterFrame) {
r = r + _root.center.spin;
_x = (_root.center._x + (Math.cos((r / 180) * Math.PI) * dis));
_y = (_root.center._y + (Math.sin((r / 180) * Math.PI) * dis));
}
Instance of Symbol 33 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (4);
dx = _x - _root.center._x;
dy = _y - _root.center._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
ra = Math.atan2(dy, dx);
r = (ra / Math.PI) * 180;
}
onClipEvent (enterFrame) {
r = r + _root.center.spin;
_x = (_root.center._x + (Math.cos((r / 180) * Math.PI) * dis));
_y = (_root.center._y + (Math.sin((r / 180) * Math.PI) * dis));
}
Instance of Symbol 33 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (4);
dx = _x - _root.center._x;
dy = _y - _root.center._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
ra = Math.atan2(dy, dx);
r = (ra / Math.PI) * 180;
}
onClipEvent (enterFrame) {
r = r + _root.center.spin;
_x = (_root.center._x + (Math.cos((r / 180) * Math.PI) * dis));
_y = (_root.center._y + (Math.sin((r / 180) * Math.PI) * dis));
}
Instance of Symbol 33 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop (1);
dx = _x - _root.center._x;
dy = _y - _root.center._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
ra = Math.atan2(dy, dx);
r = (ra / Math.PI) * 180;
}
onClipEvent (enterFrame) {
r = r + _root.center.spin;
_x = (_root.center._x + (Math.cos((r / 180) * Math.PI) * dis));
_y = (_root.center._y + (Math.sin((r / 180) * Math.PI) * dis));
}
Instance of Symbol 43 MovieClip in Frame 4
onClipEvent (enterFrame) {
this._rotation = this._rotation + 0.2;
}
Instance of Symbol 45 MovieClip in Frame 4
onClipEvent (load) {
_rotation = 13;
}
onClipEvent (enterFrame) {
_rotation = (_rotation - 0.2);
}
Instance of Symbol 45 MovieClip in Frame 4
onClipEvent (load) {
_rotation = 13;
}
onClipEvent (enterFrame) {
_rotation = (_rotation - 0.2);
}
Instance of Symbol 45 MovieClip in Frame 4
onClipEvent (load) {
_rotation = 13;
}
onClipEvent (enterFrame) {
_rotation = (_rotation - 0.2);
}
Instance of Symbol 45 MovieClip in Frame 4
onClipEvent (load) {
_rotation = 13;
}
onClipEvent (enterFrame) {
_rotation = (_rotation - 0.2);
}
Instance of Symbol 47 MovieClip "center" in Frame 4
onClipEvent (load) {
spin = 0.07;
movement = true;
_visible = false;
}
onClipEvent (enterFrame) {
if (movement == true) {
spin = 0.07;
} else {
spin = 0;
}
}
Instance of Symbol 33 MovieClip in Frame 5
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 33 MovieClip in Frame 5
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 33 MovieClip in Frame 5
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 33 MovieClip in Frame 5
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 33 MovieClip in Frame 5
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 33 MovieClip in Frame 5
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 33 MovieClip in Frame 5
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 59 MovieClip in Frame 5
on (press) {
_root.gotoAndStop(4);
}
Frame 6
stop();
Instance of Symbol 124 MovieClip in Frame 6
onClipEvent (load) {
slev = SharedObject.getLocal("lev");
if (slev.data.level == null) {
slev.data.level = 1;
}
level = slev.data.level;
trace(slev.data.level);
k = 1;
i = 0;
while (i < 5) {
u = 0;
while (u < 6) {
duplicateMovieClip (this.ls, ("ls" + u) + i, k);
this[("ls" + u) + i]._x = (u * 100) + 20;
this[("ls" + u) + i]._y = (i * 70) + 20;
this[("ls" + u) + i].gotoAndStop(k);
this[("ls" + u) + i]._height = 60;
this[("ls" + u) + i]._width = 70;
this[("ls" + u) + i].txt.text = "" + k;
this[("ls" + u) + i].k = k;
if (k <= level) {
this[("ls" + u) + i].onRelease = function () {
_root.level = this.k;
_root.gotoAndStop(7);
};
} else {
this[("ls" + u) + i]._alpha = 20;
}
k++;
u++;
}
i++;
}
}
Frame 7
Mouse.hide();
_root.fc = 2;
_quality = "medium";
sinl = new Array();
i = 0;
while (i < 3601) {
sinl[i] = Math.sin(((i / 10) / 180) * Math.PI);
i++;
}
cosl = new Array();
i = 0;
while (i < 3601) {
cosl[i] = Math.cos(((i / 10) / 180) * Math.PI);
i++;
}
stop();
Instance of Symbol 14 MovieClip "backgroun" in Frame 7
onClipEvent (load) {
gotoAndStop(random(3) + 1);
}
onClipEvent (enterFrame) {
if (_root.varr.level < 10) {
gotoAndStop (1);
} else if (_root.varr.level < 20) {
gotoAndStop (2);
} else if (_root.varr.level < 30) {
gotoAndStop (4);
}
}
Instance of Symbol 129 MovieClip "enemy" in Frame 7
onClipEvent (load) {
function shooot() {
if ((_root.varr.lvlstart == 1) && (_root.varr.lvlend != 1)) {
duplicateMovieClip (_root.ball, "b" + _root.fc, _root.fc);
_root["b" + _root.fc]._y = this._y;
_root["b" + _root.fc]._x = _x;
_root["b" + _root.fc].angle = ((r - 180) / 180) * Math.PI;
cc = random(2) + 1;
if (cc == 1) {
_root["b" + _root.fc].frame = random(_root.varr.ncolours[_root.varr.level]) + 1;
} else {
_root["b" + _root.fc].frame = 12;
}
_root.fc++;
}
}
shot = 0;
targetr = random(120) + 40;
if (directions == 1) {
r = 278;
r2 = 180;
acel = 0.05;
u = Math.sqrt((targetr * 2) * acel);
}
if (directions == 2) {
r = 262;
r2 = 0;
acel = 0.05;
u = Math.sqrt((targetr * 2) * acel);
}
}
onClipEvent (enterFrame) {
if ((_name != "enemy") && (_root.varr.pauses != 1)) {
this.pointer._rotation = r - 180;
xxs = _x - _root.playarea._x;
if (directions == 1) {
if (xxs > 45) {
r = r + u;
u = u - acel;
_x = (_root.playarea._x + ((Math.cos((r / 180) * Math.PI) * 548.5) / 2));
_y = (_root.playarea._y + ((Math.sin((r / 180) * Math.PI) * 548.5) / 2));
if ((u < 0) && (shot == 0)) {
shooot();
shot = 1;
}
} else {
if (shot == 1) {
r2 = r2 + 10;
if (r2 > 180) {
removeMovieClip(this);
}
} else {
r2 = r2 - 10;
}
_x = (_root.rightramp._x + (Math.cos((r2 / 180) * Math.PI) * 65));
_y = (_root.rightramp._y + (Math.sin((r2 / 180) * Math.PI) * 65));
}
}
if (directions == 2) {
if (xxs < -45) {
r = r - u;
u = u - acel;
_x = (_root.playarea._x + ((Math.cos((r / 180) * Math.PI) * 548.5) / 2));
_y = (_root.playarea._y + ((Math.sin((r / 180) * Math.PI) * 548.5) / 2));
if ((u < 0) && (shot == 0)) {
if (_root.sounds == true) {
_root.s2.gotoAndPlay(2);
}
shooot();
shot = 1;
}
} else {
if (shot == 1) {
r2 = r2 - 10;
if (r2 < 0) {
removeMovieClip(this);
}
} else {
r2 = r2 + 10;
}
_x = (_root.leftramp._x + (Math.cos((r2 / 180) * Math.PI) * 65));
_y = (_root.leftramp._y + (Math.sin((r2 / 180) * Math.PI) * 65));
}
}
}
}
Instance of Symbol 140 MovieClip "point" in Frame 7
onClipEvent (load) {
function position() {
if (md == 1) {
delta_x = _root._xmouse - _root.playarea._x;
delta_y = _root._ymouse - _root.playarea._y;
ra = Math.atan2(delta_y, delta_x);
_x = (_root.playarea._x + ((Math.cos(ra) * 538.5) / 2));
_y = (_root.playarea._y + ((Math.sin(ra) * 538.5) / 2));
this.gear._rotation = (-1 * ((ra / Math.PI) * 180)) * 11.25;
r = (ra / Math.PI) * 180;
this.pointer._rotation = r - 180;
}
if (md == 2) {
delta_x = _root._xmouse - _x;
delta_y = _root._ymouse - _y;
ra = Math.atan2(delta_y, delta_x);
r = (ra / Math.PI) * 180;
this.pointer._rotation = r;
}
}
frame = 1;
md = 1;
shoot = 0;
timer = 25;
}
onClipEvent (mouseDown) {
ddx = _root.sb1._x - _root._xmouse;
ddy = _root.sb1._y - _root._ymouse;
dis = Math.sqrt((ddx * ddx) + (ddy * ddy));
trace(dis);
if (((_root.varr.lvlend == 0) && (_root.varr.pauses != 1)) && (dis < 320)) {
md = 2;
md2 = 2;
} else {
nots = 1;
}
}
onClipEvent (mouseUp) {
ddx = _root.sb1._x - _root._xmouse;
ddy = _root.sb1._y - _root._ymouse;
dis = Math.sqrt((ddx * ddx) + (ddy * ddy));
if (((_root.varr.lvlend == 0) && (_root.varr.pauses != 1)) && (nots != 1)) {
shoot = 1;
md2 = 1;
} else {
nots = 0;
}
}
onClipEvent (enterFrame) {
if ((_root.varr.pauses == 0) && (_root.varr.gameover == false)) {
timer--;
position();
if (shoot == 1) {
shoot = 0;
if (timer < 0) {
timer = 7;
if (_root.sounds == true) {
_root.s2.gotoAndPlay(2);
}
duplicateMovieClip (_root.ball, "b" + _root.fc, _root.fc);
_root["b" + _root.fc]._y = _y;
_root["b" + _root.fc]._x = _x;
_root["b" + _root.fc].angle = ra;
_root["b" + _root.fc].frame = frame;
_root.fc++;
frame = _root.varr.nextball;
_root.varr.bgo = 1;
}
}
this.ball.gotoAndStop(frame);
}
}
onClipEvent (mouseMove) {
duplicateMovieClip (_root.trail1, "trail" + _root.fc, _root.fc);
_root["trail" + _root.fc]._x = (_x + random(5)) - 2;
_root["trail" + _root.fc]._y = (_y + random(5)) - 2;
_root.fc++;
if ((md2 == 1) && (shoot == 0)) {
md = 1;
}
}
Instance of Symbol 144 MovieClip "playarea" in Frame 7
onClipEvent (load) {
i = 0;
while (i < 360) {
duplicateMovieClip (this.rail, "r" + i, i);
this["r" + i]._x = Math.cos((i / 180) * Math.PI) * 288;
this["r" + i]._y = Math.sin((i / 180) * Math.PI) * 288;
this["r" + i]._rotation = i - 90;
i++;
}
}
Instance of Symbol 33 MovieClip "ball" in Frame 7
onClipEvent (load) {
function movement() {
_x = (_x + (Math.cos(angle) * 6));
_y = (_y + (Math.sin(angle) * 6));
}
function removeballs() {
e = 0;
while (e < _root.varr.bubble.length) {
if (_root["sb" + _root.varr.bubble[e]].frame == colour) {
_root.varr["lines" + _root["sb" + balls[e]].ver][_root["sb" + balls[e]].ho] = null;
duplicateMovieClip (_root.disa, "disa" + _root.fc, _root.fc);
_root["disa" + _root.fc]._x = _root["sb" + _root.varr.bubble[e]]._x;
_root["disa" + _root.fc]._y = _root["sb" + _root.varr.bubble[e]]._y;
_root.fc++;
removeMovieClip(_root["sb" + _root.varr.bubble[e]]);
_root.varr.bubble.splice(e, 1);
e--;
}
e++;
}
}
function center() {
dx = _x - _root.sb1._x;
dy = _y - _root.sb1._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
if (dis < 35) {
if (frame == 12) {
removeMovieClip(this);
}
if (frame < 9) {
ra = Math.atan2(dy, dx);
r = (ra / Math.PI) * 180;
if (r < 0) {
r = r + 360;
}
if (r > 360) {
r = r - 360;
}
tr = r - _root.sb1.r;
if (tr < 0) {
tr = tr + 360;
}
if (tr > 360) {
tr = tr - 360;
}
ang = Math.round(tr / 60) * 60;
duplicateMovieClip (_root.sball, "sb" + _root.fc, _root.fc);
_root["sb" + _root.fc]._x = _root.sb1._x + (Math.cos((ang / 180) * Math.PI) * 35);
_root["sb" + _root.fc]._y = _root.sb1._y + (Math.sin((ang / 180) * Math.PI) * 35);
_root["sb" + _root.fc].id = _root.fc;
ang = Math.round(tr / 60);
_root["sb" + _root.fc].frame = frame;
switch (ang) {
case 1 :
_root["sb" + _root.fc].ho = 9;
_root["sb" + _root.fc].ver = 10;
break;
case 2 :
_root["sb" + _root.fc].ho = 8;
_root["sb" + _root.fc].ver = 10;
break;
case 3 :
_root["sb" + _root.fc].ho = 8;
_root["sb" + _root.fc].ver = 9;
break;
case 4 :
_root["sb" + _root.fc].ho = 8;
_root["sb" + _root.fc].ver = 8;
break;
case 5 :
_root["sb" + _root.fc].ho = 9;
_root["sb" + _root.fc].ver = 8;
break;
case 6 :
_root["sb" + _root.fc].ho = 10;
_root["sb" + _root.fc].ver = 9;
break;
case 0 :
_root["sb" + _root.fc].ho = 10;
_root["sb" + _root.fc].ver = 9;
}
_root["sb" + _root.fc].ver = _root["sb" + _root.fc].ver + 2;
_root.fc++;
removeMovieClip(this);
} else {
if (frame == 9) {
_root.sb1.checked = 1;
duplicateMovieClip (_root.ex, "ex" + _root.fc, _root.fc);
_root["ex" + _root.fc]._x = _x;
_root["ex" + _root.fc]._y = _y;
_root.fc++;
if (_root.sounds == true) {
_root.s3.gotoAndPlay(2);
}
kk = 0;
while (kk < _root.varr.bubble.length) {
dx = _x - _root["sb" + _root.varr.bubble[kk]]._x;
dy = _y - _root["sb" + _root.varr.bubble[kk]]._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
if (dis < 100) {
_root.varr["lines" + _root["sb" + balls[kk]].ver][_root["sb" + balls[kk]].ho] = null;
duplicateMovieClip (_root.disa, "disa" + _root.fc, _root.fc);
_root["disa" + _root.fc]._x = _root["sb" + _root.varr.bubble[kk]]._x;
_root["disa" + _root.fc]._y = _root["sb" + _root.varr.bubble[kk]]._y;
_root.fc++;
removeMovieClip(_root["sb" + _root.varr.bubble[kk]]);
_root.varr.bubble.splice(kk, 1);
kk--;
_root.varr.addscore = _root.varr.addscore + 3;
_root.scounter.scorechange = 1;
}
kk++;
}
removeMovieClip(this);
}
if (frame == 11) {
if (dis < 35) {
removeMovieClip(this);
}
}
}
}
}
function otherballs() {
u = 0;
while (u < _root.varr.bubble.length) {
dx = _x - _root["sb" + _root.varr.bubble[u]]._x;
dy = _y - _root["sb" + _root.varr.bubble[u]]._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
if (dis < 35) {
if ((frame < 9) || (frame == 12)) {
ra = Math.atan2(dy, dx);
r = (ra / Math.PI) * 180;
if (r < 0) {
r = r + 360;
}
if (r > 360) {
r = r - 360;
}
tr = r - _root.sb1.r;
if (tr < 0) {
tr = tr + 360;
}
if (tr > 360) {
tr = tr - 360;
}
ang = Math.round(tr / 60) * 60;
duplicateMovieClip (_root.sball, "sb" + _root.fc, _root.fc);
_root["sb" + _root.fc]._x = _root["sb" + _root.varr.bubble[u]].origx + (Math.cos((ang / 180) * Math.PI) * 35);
_root["sb" + _root.fc]._y = _root["sb" + _root.varr.bubble[u]].origy + (Math.sin((ang / 180) * Math.PI) * 35);
_root["sb" + _root.fc].id = _root.fc;
ang = Math.round(tr / 60);
t1 = _root["sb" + _root.varr.bubble[u]].ver;
t2 = Math.round(_root["sb" + _root.varr.bubble[u]].ver / 2) * 2;
_root["sb" + _root.fc].frame = frame;
switch (ang) {
case 1 :
_root["sb" + _root.fc].ho = _root["sb" + _root.varr.bubble[u]].ho;
_root["sb" + _root.fc].ver = _root["sb" + _root.varr.bubble[u]].ver + 1;
break;
case 2 :
_root["sb" + _root.fc].ho = _root["sb" + _root.varr.bubble[u]].ho - 1;
_root["sb" + _root.fc].ver = _root["sb" + _root.varr.bubble[u]].ver + 1;
break;
case 3 :
_root["sb" + _root.fc].ho = _root["sb" + _root.varr.bubble[u]].ho - 1;
_root["sb" + _root.fc].ver = _root["sb" + _root.varr.bubble[u]].ver;
break;
case 4 :
_root["sb" + _root.fc].ho = _root["sb" + _root.varr.bubble[u]].ho - 1;
_root["sb" + _root.fc].ver = _root["sb" + _root.varr.bubble[u]].ver - 1;
break;
case 5 :
_root["sb" + _root.fc].ho = _root["sb" + _root.varr.bubble[u]].ho;
_root["sb" + _root.fc].ver = _root["sb" + _root.varr.bubble[u]].ver - 1;
break;
case 6 :
_root["sb" + _root.fc].ho = _root["sb" + _root.varr.bubble[u]].ho + 1;
_root["sb" + _root.fc].ver = _root["sb" + _root.varr.bubble[u]].ver;
break;
case 0 :
_root["sb" + _root.fc].ho = _root["sb" + _root.varr.bubble[u]].ho + 1;
_root["sb" + _root.fc].ver = _root["sb" + _root.varr.bubble[u]].ver;
}
if ((((t1 == t2) && (ang != 3)) && (ang != 6)) && (ang != 0)) {
_root["sb" + _root.fc].ho++;
}
_root.fc++;
removeMovieClip(this);
} else {
if (frame == 9) {
_root.sb1.checked = 1;
duplicateMovieClip (_root.ex, "ex" + _root.fc, _root.fc);
_root["ex" + _root.fc]._x = _x;
_root["ex" + _root.fc]._y = _y;
_root.fc++;
if (_root.sounds == true) {
_root.s3.gotoAndPlay(2);
}
kk = 0;
while (kk < _root.varr.bubble.length) {
dx = _x - _root["sb" + _root.varr.bubble[kk]]._x;
dy = _y - _root["sb" + _root.varr.bubble[kk]]._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
if (dis < 100) {
_root.varr["lines" + _root["sb" + balls[kk]].ver][_root["sb" + balls[kk]].ho] = null;
duplicateMovieClip (_root.disa, "disa" + _root.fc, _root.fc);
_root["disa" + _root.fc]._x = _root["sb" + _root.varr.bubble[kk]]._x;
_root["disa" + _root.fc]._y = _root["sb" + _root.varr.bubble[kk]]._y;
_root.fc++;
removeMovieClip(_root["sb" + _root.varr.bubble[kk]]);
_root.varr.bubble.splice(kk, 1);
kk--;
_root.varr.addscore = _root.varr.addscore + 3;
_root.scounter.scorechange = 1;
}
kk++;
}
removeMovieClip(this);
}
if (frame == 10) {
_root.sb1.checked = 1;
colour = _root["sb" + _root.varr.bubble[u]].frame;
if (_root.sounds == true) {
_root.s5.gotoAndPlay(2);
}
removeballs();
removeMovieClip(this);
}
if (frame == 11) {
kk = 0;
while (kk < _root.varr.bubble.length) {
dx = _x - _root["sb" + _root.varr.bubble[kk]]._x;
dy = _y - _root["sb" + _root.varr.bubble[kk]]._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
if (_root.sounds == true) {
_root.s4.gotoAndPlay(2);
}
if (dis < 35) {
_root.varr.addscore = _root.varr.addscore + 3;
_root.scounter.scorechange = 1;
_root.sb1.checked = 1;
_root.varr["lines" + _root["sb" + balls[kk]].ver][_root["sb" + balls[kk]].ho] = null;
hg = 0;
while (hg < 4) {
duplicateMovieClip (_root.bprt, "prt" + _root.fc, _root.fc);
switch (hg) {
case 0 :
_root["prt" + _root.fc]._x = _root["sb" + _root.varr.bubble[kk]]._x;
_root["prt" + _root.fc]._y = _root["sb" + _root.varr.bubble[kk]]._y + 8;
_root["prt" + _root.fc]._rotation = 0;
_root["prt" + _root.fc].id = 1;
break;
case 1 :
_root["prt" + _root.fc]._x = _root["sb" + _root.varr.bubble[kk]]._x;
_root["prt" + _root.fc]._y = _root["sb" + _root.varr.bubble[kk]]._y - 8;
_root["prt" + _root.fc]._rotation = 180;
_root["prt" + _root.fc].id = 3;
break;
case 2 :
_root["prt" + _root.fc]._x = _root["sb" + _root.varr.bubble[kk]]._x + 8;
_root["prt" + _root.fc]._y = _root["sb" + _root.varr.bubble[kk]]._y;
_root["prt" + _root.fc]._rotation = 270;
_root["prt" + _root.fc].id = 4;
break;
case 3 :
_root["prt" + _root.fc]._x = _root["sb" + _root.varr.bubble[kk]]._x - 8;
_root["prt" + _root.fc]._y = _root["sb" + _root.varr.bubble[kk]]._y;
_root["prt" + _root.fc]._rotation = 90;
_root["prt" + _root.fc].id = 2;
}
_root["prt" + _root.fc].gotoAndStop(_root["sb" + _root.varr.bubble[kk]]._currentframe);
_root.fc++;
hg++;
}
removeMovieClip(_root["sb" + _root.varr.bubble[kk]]);
_root.varr.bubble.splice(kk, 1);
kk--;
}
kk++;
}
}
}
}
u++;
}
}
function outside() {
dx = _x - _root.sb1._x;
dy = _y - _root.sb1._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
if (dis > 280) {
if (eshoto != 1) {
angle = Math.atan2(dy, dx) - Math.PI;
if (frame == 11) {
removeMovieClip(this);
}
}
} else {
eshoto = 0;
}
}
function closest() {
}
if (_name == "ball") {
_visible = false;
} else {
_visible = true;
}
gotoAndStop(frame);
if (frame == null) {
removeMovieClip(this);
}
}
onClipEvent (enterFrame) {
if (_root.varr == null) {
removeMovieClip(this);
}
if (_root.varr.pauses == 0) {
if (_name != "ball") {
n = 0;
while (n < 2) {
if ((_root.varr.lvlstart == 1) && (_root.varr.lvlend != 1)) {
} else {
removeMovieClip(this);
}
if (_root.varr.lvlend != 1) {
center();
otherballs();
}
if (mm != 1) {
movement();
outside();
}
n++;
}
}
}
}
Instance of Symbol 146 MovieClip "varr" in Frame 7
onClipEvent (load) {
function draws() {
tbadd = 0;
maintime = 120;
times2 = 30;
i = 0;
while (i < (this["verticals" + level].length - 1)) {
v2 = Math.round(this["verticals" + level][i] / 2) * 2;
duplicateMovieClip (_root.sball, "sb" + _root.fc, _root.fc);
_root["sb" + _root.fc]._y = (starty + (30 * this["verticals" + level][i])) + 10;
_root["sb" + _root.fc].ver = this["verticals" + level][i];
_root["sb" + _root.fc].ho = this["horizontals" + level][i];
_root["sb" + _root.fc].frame = this["colours" + level][i];
_root["sb" + _root.fc].started = 1;
bubble[bubble.length] = _root.fc;
_root["sb" + _root.fc].id = _root.fc;
if (v2 == this["verticals" + level][i]) {
_root["sb" + _root.fc]._x = (startx + (35 * this["horizontals" + level][i])) + 17.5;
} else {
_root["sb" + _root.fc]._x = startx + (35 * this["horizontals" + level][i]);
}
_root.fc++;
i++;
}
comb = 0;
jj = level / 2;
kk = Math.round(level / 2);
if (kk == jj) {
_root.sb1.rot = spinspeed[level];
} else {
_root.sb1.rot = spinspeed[level] * -1;
}
colorsinplay.splice(0, 10);
f = 0;
while (f < ncolours[level]) {
colorsinplay[f] = f + 1;
f++;
}
currentball = 1;
_root.outring._xscale = ringsize[level] * 35;
_root.outring._yscale = ringsize[level] * 35;
_root.outring.dis = (ringsize[level] * 35) / 2;
if (slev.data.level < level) {
slev.data.level = level;
}
slev.flush();
}
function scoreadd() {
if (addscore > 10000) {
scores = scores + 1000;
addscore = addscore - 1000;
scorethislevel = scorethislevel + 1000;
}
if (addscore > 1000) {
scores = scores + 100;
addscore = addscore - 100;
scorethislevel = scorethislevel + 100;
} else if (addscore > 100) {
scores = scores + 10;
addscore = addscore - 10;
scorethislevel = scorethislevel + 10;
} else if (addscore > 10) {
scores = scores + 5;
scorethislevel = scorethislevel + 5;
addscore = addscore - 5;
} else if (addscore > 0) {
scores = scores + 1;
scorethislevel = scorethislevel + 1;
addscore = addscore - 1;
}
}
function createenemy() {
nxtee = random(2);
if (nxtee == 1) {
_root.e2a.go = 1;
} else {
_root.e2b.go = 1;
}
}
function setho() {
ho3[0] = ho2 + 1;
ho3[1] = ho2 + adno;
ho3[2] = (ho2 - 1) + adno;
ho3[3] = ho2 - 1;
ho3[4] = (ho2 - 1) + adno;
ho3[5] = ho2 + adno;
ho3[6] = ho2 + 1;
}
function setver() {
ver3[0] = ver2;
ver3[1] = ver2 + 1;
ver3[2] = ver2 + 1;
ver3[3] = ver2;
ver3[4] = ver2 - 1;
ver3[5] = ver2 - 1;
ver3[6] = ver2;
}
function timebase() {
date = new Date();
msec = date.getMilliseconds();
_root.tbase = msec - lsec;
lsec = msec;
}
slev = SharedObject.getLocal("lev");
if (_name == "varr") {
_visible = false;
} else {
_visible = true;
}
lives = 5;
allclear = false;
pauses = 0;
currentball = 0;
changelevel = 0;
countdown = 0;
nextball = 2;
scores = 6;
scorethislevel = 0;
lvlend = 0;
comb = 0;
fc = 4;
bubble = new Array();
dbubble = new Array();
startx = ((_root.playarea._x - 291.1) + 1) - 26;
starty = ((_root.playarea._y - 291.1) + 20.5) - 70;
gameover = false;
i = 0;
while (i < 22) {
this["lines" + i] = new Array();
ddraw = 1;
i++;
}
enemytime = new Array(0, 0, 400, 400, 300, 250, 300, 300, 300, 0, 300, 0, 250, 250, 250, 200, 0, 0, 250, 150, 200, 160, 150, 220, 120, 200, 130, 180, 110, 1600, 120);
ringsize = new Array(0, 13, 15, 13, 13, 13, 15, 13, 13, 13, 13, 16, 13, 13, 12, 15, 15, 15, 15, 14, 13, 13, 15, 15, 15, 15, 15, 15, 15, 15, 15);
spinspeed = new Array(0, 0.1, 0.1, 0.3, 0.3, 0.3, 0.3, 0.5, 0.4, 0.4, 0.6, 2, 0.7, 0.7, 0.6, 0.6, 0.6, 0.7, 0.6, 0.8, 0.6, 1.2, 0.6, 0.8, 0.6, 0.7, 1.1, 0.9, 0.9, 0.8, 1);
ncolours = new Array(0, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8);
colorsinplay = new Array();
horizontals1 = new Array(7, 8, 6, 7, 8, 8, 12, 5, 6, 7, 8, 10, 11, 12, 13, 9, 12, 10, 10, 11, 0);
verticals1 = new Array(7, 7, 8, 8, 9, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 13, 14, 15, 0);
colours1 = new Array(1, 1, 1, 2, 2, 2, 1, 3, 3, 3, 3, 3, 3, 3, 1, 2, 1, 2, 2, 2, 0);
ballorder1 = new Array(3, 2, 1, 2, 3, 9, 2, 10);
horizontals2 = new Array(7, 6, 7, 6, 8, 5, 8, 12, 5, 6, 7, 8, 10, 11, 12, 13, 5, 8, 12, 6, 8, 6, 7, 7, 0);
verticals2 = new Array(7, 8, 8, 9, 9, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13, 14, 14, 15, 0);
colours2 = new Array(2, 3, 2, 3, 2, 3, 2, 3, 1, 1, 1, 1, 1, 1, 1, 3, 3, 2, 3, 3, 2, 3, 2, 2, 0);
ballorder2 = new Array(11, 9);
horizontals3 = new Array(8, 8, 9, 6, 9, 11, 6, 7, 8, 10, 11, 12, 6, 8, 11, 9, 9, 10, 0);
verticals3 = new Array(7, 8, 9, 10, 10, 10, 11, 11, 11, 11, 11, 11, 12, 12, 12, 13, 14, 15, 0);
colours3 = new Array(3, 3, 3, 1, 3, 1, 3, 3, 3, 2, 2, 2, 1, 2, 1, 2, 2, 2, 0);
horizontals4 = new Array(8, 9, 9, 9, 6, 8, 11, 6, 7, 8, 10, 11, 12, 6, 9, 11, 9, 8, 9, 9, 0);
verticals4 = new Array(6, 7, 8, 9, 10, 10, 10, 11, 11, 11, 11, 11, 11, 12, 12, 12, 13, 14, 15, 16, 0);
colours4 = new Array(3, 3, 3, 2, 4, 2, 4, 3, 1, 1, 1, 1, 3, 4, 3, 4, 3, 2, 2, 2, 0);
horizontals5 = new Array(7, 7, 8, 9, 10, 11, 6, 8, 11, 6, 11, 5, 9, 10, 6, 10, 6, 7, 8, 9, 10, 0);
verticals5 = new Array(8, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 12, 12, 12, 13, 13, 14, 14, 14, 14, 14, 0);
colours5 = new Array(3, 4, 2, 2, 2, 1, 4, 3, 4, 1, 4, 1, 4, 1, 1, 1, 3, 3, 3, 2, 4, 0);
horizontals6 = new Array(6, 11, 7, 11, 7, 8, 9, 10, 8, 10, 11, 7, 8, 9, 11, 6, 7, 8, 12, 7, 8, 9, 11, 8, 9, 10, 11, 7, 10, 11, 11, 0);
verticals6 = new Array(6, 6, 7, 7, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 13, 14, 14, 15, 16, 0);
colours6 = new Array(1, 3, 4, 2, 1, 1, 1, 3, 4, 2, 1, 2, 1, 3, 2, 2, 4, 3, 3, 2, 3, 1, 2, 4, 2, 4, 3, 3, 1, 4, 3, 0);
horizontals7 = new Array(7, 8, 9, 6, 7, 10, 6, 8, 9, 10, 12, 5, 7, 9, 10, 12, 5, 6, 7, 8, 11, 12, 13, 5, 7, 9, 10, 12, 6, 8, 9, 10, 12, 7, 10, 11, 9, 10, 11, 0);
verticals7 = new Array(7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 15, 15, 15, 0);
colours7 = new Array(4, 5, 5, 3, 2, 3, 1, 1, 1, 1, 5, 3, 1, 3, 4, 5, 4, 2, 1, 3, 4, 3, 1, 5, 5, 3, 4, 4, 5, 5, 5, 5, 3, 3, 3, 4, 5, 5, 1, 0);
horizontals8 = new Array(9, 11, 6, 8, 9, 10, 7, 8, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 6, 7, 8, 10, 11, 12, 13, 5, 6, 7, 8, 9, 10, 11, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 9, 0);
verticals8 = new Array(7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 15, 0);
colours8 = new Array(2, 2, 5, 3, 3, 3, 3, 1, 1, 3, 2, 5, 3, 1, 4, 4, 1, 3, 3, 1, 4, 4, 1, 3, 2, 5, 3, 1, 4, 4, 1, 3, 3, 1, 1, 1, 3, 2, 5, 3, 3, 3, 3, 2, 2, 0);
horizontals9 = new Array(10, 11, 7, 8, 9, 11, 12, 6, 7, 10, 6, 8, 9, 10, 12, 5, 7, 9, 10, 12, 5, 6, 7, 8, 11, 12, 13, 5, 7, 9, 10, 12, 6, 8, 9, 10, 12, 7, 10, 11, 6, 7, 9, 10, 11, 6, 7, 0);
verticals9 = new Array(6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 15, 15, 15, 15, 15, 16, 16, 0);
colours9 = new Array(2, 4, 4, 5, 5, 3, 2, 3, 2, 3, 1, 1, 1, 1, 5, 3, 1, 3, 4, 5, 4, 2, 1, 3, 4, 3, 1, 5, 5, 3, 4, 4, 5, 5, 5, 5, 3, 3, 3, 4, 2, 3, 5, 5, 1, 4, 2, 0);
horizontals10 = new Array(7, 9, 11, 6, 7, 8, 9, 10, 7, 8, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 6, 7, 8, 10, 11, 12, 13, 5, 6, 7, 8, 9, 10, 11, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 7, 9, 0);
verticals10 = new Array(7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 15, 15, 0);
colours10 = new Array(6, 2, 2, 5, 6, 3, 3, 3, 3, 6, 1, 3, 2, 5, 3, 1, 6, 4, 1, 3, 3, 1, 4, 6, 6, 6, 6, 5, 3, 1, 6, 4, 1, 3, 3, 6, 1, 1, 3, 2, 5, 6, 3, 3, 6, 2, 6, 2, 0);
horizontals11 = new Array(13, 14, 15, 8, 9, 14, 8, 10, 11, 12, 13, 14, 15, 8, 9, 14, 14, 15, 13, 0);
verticals11 = new Array(8, 9, 9, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13, 14, 0);
colours11 = new Array(2, 3, 4, 6, 6, 2, 6, 6, 5, 5, 5, 5, 1, 6, 6, 2, 3, 4, 2, 0);
horizontals12 = new Array(7, 8, 9, 10, 11, 10, 11, 8, 9, 10, 12, 7, 9, 10, 12, 8, 11, 13, 6, 8, 9, 10, 7, 8, 7, 8, 9, 0);
verticals12 = new Array(7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 13, 13, 14, 14, 14, 0);
colours12 = new Array(3, 2, 3, 2, 3, 6, 2, 2, 3, 6, 3, 2, 6, 4, 2, 3, 1, 3, 4, 5, 4, 1, 1, 5, 4, 1, 4, 0);
horizontals14 = new Array(11, 7, 8, 9, 10, 11, 10, 11, 7, 8, 9, 10, 12, 7, 9, 10, 12, 8, 11, 13, 6, 8, 9, 10, 11, 7, 8, 7, 8, 9, 0);
verticals14 = new Array(6, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 14, 14, 14, 0);
colours14 = new Array(7, 3, 2, 3, 2, 3, 7, 2, 7, 2, 7, 7, 3, 2, 7, 7, 2, 3, 1, 3, 4, 7, 4, 1, 7, 1, 5, 4, 1, 4, 0);
horizontals13 = new Array(7, 8, 9, 10, 10, 11, 9, 11, 7, 8, 12, 8, 9, 8, 10, 6, 7, 8, 0);
verticals13 = new Array(8, 8, 8, 8, 9, 9, 10, 10, 11, 11, 11, 12, 12, 13, 13, 14, 14, 15, 0);
colours13 = new Array(5, 2, 5, 7, 7, 5, 7, 2, 6, 6, 5, 7, 6, 7, 6, 3, 7, 3, 0);
horizontals15 = new Array(7, 8, 9, 10, 8, 10, 11, 8, 9, 11, 7, 8, 10, 11, 12, 7, 8, 9, 8, 9, 10, 6, 7, 7, 8, 0);
verticals15 = new Array(8, 8, 8, 8, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 13, 13, 13, 14, 14, 15, 15, 0);
colours15 = new Array(5, 2, 5, 7, 3, 7, 5, 3, 7, 2, 6, 6, 3, 3, 5, 4, 7, 6, 7, 4, 6, 3, 7, 2, 3, 0);
horizontals16 = new Array(9, 8, 9, 5, 6, 7, 8, 10, 11, 12, 13, 5, 7, 10, 12, 6, 8, 10, 12, 6, 8, 9, 11, 4, 5, 6, 7, 11, 12, 13, 14, 6, 8, 9, 11, 6, 8, 10, 12, 5, 7, 10, 12, 5, 6, 7, 8, 10, 11, 12, 13, 8, 9, 9, 0);
verticals16 = new Array(5, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 0);
colours16 = new Array(4, 8, 8, 4, 8, 3, 3, 3, 3, 8, 4, 8, 2, 1, 8, 3, 2, 1, 3, 3, 2, 1, 3, 4, 8, 3, 4, 4, 3, 8, 4, 3, 7, 6, 3, 3, 7, 6, 3, 8, 7, 6, 8, 4, 8, 3, 3, 3, 3, 8, 4, 8, 8, 4, 0);
horizontals17 = new Array(9, 11, 9, 11, 10, 12, 5, 7, 10, 12, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 5, 7, 10, 12, 6, 8, 6, 8, 7, 9, 0);
verticals17 = new Array(7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 14, 14, 15, 15, 0);
colours17 = new Array(5, 5, 2, 2, 5, 5, 3, 3, 2, 2, 3, 7, 7, 7, 7, 7, 7, 7, 7, 5, 4, 4, 5, 5, 3, 3, 4, 4, 3, 3, 0);
horizontals18 = new Array(6, 7, 8, 9, 10, 11, 7, 11, 7, 8, 9, 10, 8, 9, 10, 8, 9, 7, 8, 10, 11, 8, 9, 8, 10, 7, 10, 7, 8, 9, 10, 11, 6, 7, 8, 9, 10, 11, 0);
verticals18 = new Array(6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 9, 9, 9, 10, 10, 11, 11, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 0);
colours18 = new Array(4, 8, 4, 4, 8, 4, 8, 8, 4, 1, 1, 4, 8, 1, 8, 4, 4, 2, 3, 3, 2, 7, 7, 8, 8, 7, 7, 8, 1, 1, 1, 8, 7, 8, 7, 7, 8, 7, 0);
horizontals19 = new Array(8, 10, 6, 8, 9, 11, 7, 9, 11, 7, 8, 9, 10, 7, 8, 10, 11, 7, 8, 9, 10, 7, 9, 11, 6, 8, 9, 11, 8, 10, 0);
verticals19 = new Array(7, 7, 8, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 14, 14, 14, 14, 15, 15, 0);
colours19 = new Array(3, 2, 7, 3, 2, 1, 5, 3, 4, 7, 2, 3, 1, 6, 7, 3, 6, 2, 7, 1, 3, 4, 7, 5, 2, 1, 7, 3, 1, 3, 0);
horizontals20 = new Array(7, 8, 9, 10, 11, 6, 7, 8, 9, 10, 11, 6, 7, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 7, 8, 9, 10, 11, 0);
verticals20 = new Array(7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 0);
colours20 = new Array(7, 3, 4, 7, 2, 3, 2, 5, 3, 1, 4, 7, 4, 1, 4, 2, 6, 3, 4, 3, 2, 3, 8, 8, 3, 1, 4, 6, 5, 7, 8, 8, 8, 8, 8, 8, 2, 5, 6, 1, 5, 6, 8, 8, 3, 1, 5, 4, 3, 4, 5, 3, 2, 4, 6, 7, 6, 4, 1, 5, 1, 4, 3, 7, 6, 3, 0);
horizontals21 = new Array(7, 8, 9, 10, 11, 12, 13, 7, 8, 9, 6, 7, 8, 10, 7, 8, 9, 8, 9, 10, 11, 12, 13, 7, 0);
verticals21 = new Array(8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 0);
colours21 = new Array(4, 5, 3, 1, 3, 7, 2, 6, 8, 8, 3, 5, 8, 8, 1, 8, 8, 2, 1, 6, 3, 4, 2, 4, 0);
horizontals22 = new Array(7, 10, 8, 10, 8, 9, 9, 7, 8, 9, 10, 5, 6, 7, 8, 10, 11, 12, 13, 7, 8, 9, 10, 9, 8, 9, 8, 10, 7, 10, 0);
verticals22 = new Array(6, 6, 7, 7, 8, 8, 9, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 13, 14, 14, 15, 15, 16, 16, 0);
colours22 = new Array(1, 4, 4, 1, 1, 4, 3, 7, 8, 8, 7, 6, 6, 6, 3, 3, 6, 6, 6, 7, 8, 8, 7, 3, 2, 5, 5, 2, 2, 5, 0);
horizontals23 = new Array(6, 7, 10, 11, 6, 7, 11, 12, 7, 10, 8, 9, 10, 4, 7, 8, 9, 10, 13, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 4, 7, 8, 9, 10, 13, 8, 9, 10, 7, 10, 6, 7, 11, 12, 6, 7, 10, 11, 0);
verticals23 = new Array(6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 9, 9, 9, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 0);
colours23 = new Array(7, 8, 8, 7, 8, 3, 2, 8, 3, 2, 3, 7, 2, 8, 7, 3, 2, 7, 8, 7, 1, 1, 1, 1, 6, 6, 6, 6, 7, 8, 7, 4, 5, 7, 8, 4, 7, 5, 4, 5, 8, 4, 5, 8, 7, 8, 8, 7, 0);
horizontals24 = new Array(7, 8, 9, 10, 6, 7, 11, 6, 8, 9, 10, 12, 5, 7, 9, 10, 12, 6, 7, 8, 11, 12, 13, 5, 7, 9, 10, 12, 6, 8, 9, 10, 12, 6, 7, 11, 7, 8, 9, 10, 0);
verticals24 = new Array(7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 15, 15, 15, 15, 0);
colours24 = new Array(3, 8, 3, 8, 8, 4, 3, 3, 2, 2, 7, 8, 8, 2, 1, 2, 3, 7, 7, 1, 2, 4, 8, 8, 5, 1, 2, 3, 3, 5, 5, 7, 8, 8, 4, 3, 3, 8, 3, 8, 0);
horizontals25 = new Array(8, 9, 8, 9, 8, 10, 9, 10, 13, 7, 10, 11, 13, 6, 8, 9, 11, 12, 5, 6, 7, 8, 9, 10, 11, 12, 11, 11, 10, 0);
verticals25 = new Array(6, 7, 8, 8, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 14, 15, 16, 0);
colours25 = new Array(3, 7, 6, 3, 4, 7, 1, 3, 5, 6, 1, 7, 2, 4, 1, 1, 3, 5, 7, 3, 7, 3, 7, 3, 7, 8, 2, 5, 2, 0);
horizontals26 = new Array(6, 11, 6, 7, 11, 12, 5, 6, 7, 10, 11, 12, 5, 6, 7, 8, 9, 10, 11, 12, 13, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 7, 8, 9, 10, 8, 9, 10, 7, 8, 9, 10, 7, 8, 9, 10, 11, 6, 7, 8, 9, 10, 11, 0);
verticals26 = new Array(6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 0);
colours26 = new Array(1, 1, 1, 1, 1, 1, 1, 7, 1, 1, 7, 1, 1, 7, 7, 1, 3, 1, 7, 7, 1, 1, 7, 7, 7, 5, 5, 7, 7, 7, 1, 1, 1, 1, 1, 5, 5, 1, 1, 1, 1, 3, 5, 5, 3, 1, 7, 1, 1, 7, 7, 1, 1, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 0);
horizontals27 = new Array(9, 9, 8, 6, 8, 9, 10, 6, 7, 8, 9, 10, 7, 8, 10, 11, 7, 8, 9, 10, 11, 8, 9, 10, 12, 9, 9, 8, 0);
verticals27 = new Array(6, 7, 8, 9, 9, 9, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 14, 15, 16, 0);
colours27 = new Array(2, 2, 3, 1, 5, 8, 8, 1, 8, 4, 4, 5, 3, 4, 4, 3, 5, 4, 4, 8, 6, 8, 8, 5, 6, 3, 7, 7, 0);
horizontals28 = new Array(6, 8, 9, 6, 7, 8, 9, 10, 13, 14, 5, 6, 9, 12, 13, 14, 6, 7, 8, 10, 11, 12, 13, 14, 15, 5, 6, 9, 12, 13, 14, 6, 7, 10, 13, 14, 6, 7, 8, 9, 7, 9, 10, 0);
verticals28 = new Array(8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 0);
colours28 = new Array(3, 2, 3, 1, 4, 4, 4, 4, 3, 3, 2, 4, 1, 3, 3, 3, 7, 7, 7, 6, 6, 3, 2, 3, 2, 2, 4, 1, 2, 2, 2, 1, 4, 4, 2, 2, 3, 4, 4, 4, 2, 2, 3, 0);
horizontals29 = new Array(11, 7, 8, 9, 10, 11, 7, 10, 11, 8, 10, 12, 6, 8, 9, 12, 7, 10, 11, 12, 13, 7, 8, 6, 8, 9, 10, 11, 6, 7, 7, 8, 9, 0);
verticals29 = new Array(6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 13, 13, 13, 13, 13, 14, 14, 15, 15, 15, 0);
colours29 = new Array(6, 4, 4, 7, 7, 6, 5, 8, 7, 4, 6, 7, 1, 5, 8, 4, 1, 4, 5, 4, 5, 2, 8, 3, 6, 2, 1, 1, 3, 8, 6, 3, 3, 0);
horizontals30 = new Array(10, 11, 7, 8, 9, 10, 11, 12, 6, 7, 10, 11, 6, 8, 10, 12, 5, 6, 8, 9, 12, 5, 7, 10, 11, 12, 13, 4, 7, 8, 12, 5, 6, 8, 9, 10, 11, 12, 5, 6, 7, 11, 6, 7, 8, 9, 11, 6, 7, 8, 9, 10, 0);
verticals30 = new Array(6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 0);
colours30 = new Array(4, 6, 4, 4, 7, 7, 6, 4, 2, 5, 8, 7, 3, 4, 6, 7, 2, 1, 5, 8, 4, 3, 1, 4, 5, 4, 5, 2, 2, 8, 2, 8, 3, 6, 2, 1, 1, 3, 7, 3, 8, 2, 5, 6, 3, 3, 3, 4, 5, 7, 8, 2, 0);
tbadd = 0;
addscore = 0;
timer = 50;
ho3 = new Array();
ver3 = new Array();
lvlstart = 0;
newballs = 0;
lsec = 0;
pressed2 = 0;
pressed = 0;
press3 = 0;
}
on (keyPress "<Space>") {
trace("gfdfg");
if (pauses == 0) {
pauses = 1;
} else {
pauses = 0;
}
}
onClipEvent (enterFrame) {
if (_root.fc > 900000) {
_root.fc = 100;
}
if ((press1 != 1) && (gameover == false)) {
if (Key.isDown(80) && (pauses == 1)) {
pauses = 0;
} else if (Key.isDown(80) && (pauses == 0)) {
pauses = 1;
}
}
if (Key.isDown(80)) {
press1 = 1;
} else {
press1 = 0;
}
pressed = 0;
cdown = 0;
if (pauses != 1) {
if (ddraw == 1) {
_root.lives.text = lives;
ddraw = 2;
newball = 1;
level = _root.level;
draws();
_root.outring._xscale = ringsize[level] * 35;
_root.outring._yscale = ringsize[level] * 35;
_root.outring.dis = (ringsize[level] * 35) / 2;
timets = 20;
}
if (timets > 0) {
timets--;
lvlstart = 0;
} else {
lvlstart = 1;
}
if ((bubble.length == 1) && (lloose != 1)) {
lvlend = 1;
_root.sb1.checked = 1;
}
if ((((((lvlend == 1) && (changelevel == 0)) && (dbubble.length == 0)) && (allclear == true)) && (gameover == false)) && (lloose != 1)) {
if (tbadd == 0) {
if (maintime > 60) {
addscore = addscore + ((60 - (120 - maintime)) * 200);
timebonus = 0;
timebonus = (60 - (120 - maintime)) * 200;
tbadd = 1;
} else {
timebonus = 0;
}
}
_root.endol.sc2.text = timebonus;
_root.endol.lv.text = level;
_root.endol.co.text = comb;
_root.endol.sc.text = scores;
_root.endol._visible = true;
if (nxtlvl == 1) {
level++;
changelevel = 1;
breaktime = 25;
nxtlvl = 0;
}
}
if (changelevel == 1) {
if (breaktime > 13) {
_root.bgs._alpha = _root.bgs._alpha + 8;
_root.bgs._visible = true;
}
if (breaktime == 13) {
if (level < 31) {
draws();
_root.outring._xscale = ringsize[level] * 35;
_root.outring._yscale = ringsize[level] * 35;
newballs = 1;
timets = 20;
lvlstart = 0;
_root.endol._visible = false;
} else {
_root.submit.go = 1;
gameover = true;
_root.gcompleted._visible = true;
}
}
if (breaktime < 13) {
_root.bgs._alpha = _root.bgs._alpha - 8;
}
if (breaktime < 0) {
changelevel = 0;
lvlend = 0;
_root.bgs._visible = false;
}
breaktime--;
}
scoreadd();
_root.lcounter.lev.text = level;
_root.scounter.score.text = scores;
if (bgo == 1) {
trace(bubble.length);
if (bubble.length < 10) {
colorsinplay.splice(0, 10);
g = 1;
while (g < bubble.length) {
cc = _root["sb" + bubble[g]].frame;
if (cc != 12) {
addit = 1;
h = 0;
while (h < colorsinplay.length) {
if (cc == colorsinplay[h]) {
addit = 0;
}
h++;
}
if (addit == 1) {
colorsinplay[colorsinplay.length] = cc;
}
}
g++;
}
} else {
colorsinplay.splice(0, 10);
f = 0;
while (f < ncolours[level]) {
colorsinplay[f] = f + 1;
f++;
}
}
if (this["ballorder" + level].length > currentball) {
nextball = this["ballorder" + level][currentball];
currentball++;
bgo = 0;
} else {
bt = random(20);
if (bt == 0) {
nextball = random(3) + 9;
} else {
nextball = colorsinplay[random(colorsinplay.length)];
}
bgo = 0;
}
}
if (newballs == 1) {
if (this["ballorder" + level].length > 1) {
_root.point.frame = this["ballorder" + level][0];
nextball = this["ballorder" + level][1];
currentball = 3;
} else {
_root.point.frame = random(ncolours[level]) + 1;
bt = random(20);
if (bt == 0) {
nextball = random(3) + 7;
} else {
nextball = random(ncolours[level]) + 1;
}
}
bgo = 0;
newballs = 0;
}
_root.gball.gotoAndStop(nextball);
if ((lvlend != 1) && (gameover == false)) {
times2--;
if (times2 < 0) {
maintime--;
times2 = 30;
_root.timebox.text = maintime;
}
if (maintime < 0) {
lifeloose = 1;
maintime = 120;
times2 = 30;
}
}
if (maintime < 10) {
_root.tcount._visible = true;
_root.tcount.text = maintime;
} else {
_root.tcount._visible = false;
}
if (lifeloose == 1) {
lloose = 1;
ttime = 25;
lives--;
if (lives < 1) {
_root.submit.go = 1;
_root.gameover._visible = true;
gameover = true;
}
_root.lives.text = lives;
lifeloose = 0;
o = 1;
while (o < bubble.length) {
duplicateMovieClip (_root.disa2, "dis" + _root.fc, _root.fc);
_root["dis" + _root.fc]._x = _root["sb" + bubble[o]]._x;
_root["dis" + _root.fc]._y = _root["sb" + bubble[o]]._y;
_root["dis" + _root.fc].gotoAndStop(1);
_root.fc++;
removeMovieClip(_root["sb" + bubble[o]]);
this["lines" + _root["sb" + bubble[o]].ver][_root["sb" + bubble[o]].ho] = null;
bubble.splice(o, 1);
o--;
o++;
}
}
ttime--;
if (((gameover == false) && (ttime < 0)) && (lloose == 1)) {
lloose = 0;
draws();
timets = 20;
lvlstart = 0;
}
if (((enemytime[level] != 0) && (gameover == false)) && (lvlend != 1)) {
timer--;
if (timer < 0) {
createenemy();
timer = enemytime[level];
}
}
}
}
Instance of Symbol 150 MovieClip "sb1" in Frame 7
onClipEvent (load) {
function setho() {
ho3[0] = ho2 + 1;
ho3[1] = ho2 + adno;
ho3[2] = (ho2 - 1) + adno;
ho3[3] = ho2 - 1;
ho3[4] = (ho2 - 1) + adno;
ho3[5] = ho2 + adno;
ho3[6] = ho2 + 1;
}
function setver() {
ver3[0] = ver2;
ver3[1] = ver2 + 1;
ver3[2] = ver2 + 1;
ver3[3] = ver2;
ver3[4] = ver2 - 1;
ver3[5] = ver2 - 1;
ver3[6] = ver2;
}
function connected() {
balls = new Array();
ho = 9;
ver = 11;
vt = Math.round(ver / 2) * 2;
if (vt == ver) {
adno = 1;
} else {
adno = 0;
}
ho2 = ho;
ver2 = ver;
end = false;
setver();
setho();
balls[0] = 1;
no = 0;
while (end == false) {
ver2 = _root["sb" + balls[no]].ver;
ho2 = _root["sb" + balls[no]].ho;
vt = Math.round(ver2 / 2) * 2;
if (vt == ver2) {
adno = 1;
} else {
adno = 0;
}
setver();
setho();
end = true;
i = 0;
while (i < 7) {
if ((_root.varr["lines" + ver3[i]][ho3[i]] != null) && (_root["sb" + _root.varr["lines" + ver3[i]][ho3[i]]] != null)) {
dont = 0;
if (this["tlines" + ver3[i]][ho3[i]] == 1) {
dont = 1;
}
if (dont != 1) {
end = false;
balls[balls.length] = _root.varr["lines" + ver3[i]][ho3[i]];
this["tlines" + ver3[i]][ho3[i]] = 1;
}
}
i++;
}
if (no < balls.length) {
end = false;
}
no++;
}
_root.varr.allclear = true;
o = 0;
while (o < _root.varr.bubble.length) {
ok = 0;
u = balls.length;
while (u > 0) {
if (balls[u] == _root.varr.bubble[o]) {
ok = 1;
u = 0;
}
u--;
}
if (ok == 0) {
_root.varr.allclear = false;
_root.varr["lines" + _root["sb" + _root.varr.bubble[o]].ver][_root["sb" + _root.varr.bubble[o]].ho] = null;
_root["sb" + _root.varr.bubble[o]].counter++;
_root["sb" + _root.varr.bubble[o]].connected = false;
_root.varr.bubble.splice(o, 1);
o--;
}
o++;
}
}
test = 0;
i = 0;
while (i < 20) {
this["tlines" + i] = new Array();
g = 1;
i++;
}
_x = _root.playarea._x;
_y = _root.playarea._y;
ho3 = new Array();
ver3 = new Array();
timer = 5;
r = 0;
rot = 1;
checked = 0;
}
onClipEvent (enterFrame) {
if (_root.varr.pauses != 1) {
if (_root.varr.lvlstart == 1) {
r = r + (rot * 2);
} else {
r = 0;
}
_rotation = (_rotation + (rot * 2));
_root.gear2._rotation = _root.gear2._rotation - rot;
_root.gear3._rotation = _root.gear3._rotation + (rot / 2);
if (r > 360) {
r = r - 360;
}
if (r < 0) {
r = r + 360;
}
i = 0;
while (i < 20) {
this["tlines" + i] = new Array();
g = 1;
i++;
}
timer--;
if (checked == 1) {
connected();
timer = 10;
checked = 0;
}
}
}
Instance of Symbol 33 MovieClip "sball" in Frame 7
onClipEvent (load) {
function spin() {
spn = r + _root.sb1.r;
if (spn > 360) {
spn = spn - 360;
}
if (spn < 0) {
spn = spn + 360;
}
spn = Math.round(spn);
_x = (_root.sb1._x + (Math.cos(((r / 180) * Math.PI) + ((_root.sb1.r / 180) * Math.PI)) * dis));
_y = (_root.sb1._y + (Math.sin(((r / 180) * Math.PI) + ((_root.sb1.r / 180) * Math.PI)) * dis));
}
function setho() {
ho3[0] = ho2 + 1;
ho3[1] = ho2 + adno;
ho3[2] = (ho2 - 1) + adno;
ho3[3] = ho2 - 1;
ho3[4] = (ho2 - 1) + adno;
ho3[5] = ho2 + adno;
ho3[6] = ho2 + 1;
}
function setver() {
ver3[0] = ver2;
ver3[1] = ver2 + 1;
ver3[2] = ver2 + 1;
ver3[3] = ver2;
ver3[4] = ver2 - 1;
ver3[5] = ver2 - 1;
ver3[6] = ver2;
}
function disconnect() {
if (f == 0) {
f = 1;
finalrotation = (((r / 180) * Math.PI) + ((_root.sb1.r / 180) * Math.PI)) + (Math.PI/2);
hspeed = ((Math.cos(finalrotation) * (dis / 50)) * _root.sb1.rot) * 2;
vspeed = ((Math.sin(finalrotation) * (dis / 50)) * _root.sb1.rot) * 2;
_root.varr.dbubble[_root.varr.dbubble.length] = id;
}
if (_root.gl.hitTest(_x, _y + (_height / 2), true) || (_root.gr.hitTest(_x, _y + (_height / 2), true))) {
if (_root.gr.hitTest(_x, _y + (_height / 2), true)) {
if ((bounce != 2) && (vspeed > 0)) {
hspeed = -0.517638090205041;
vspeed = -1.93185165257814;
bounce++;
}
if (bounce == 2) {
ramp = 1;
}
}
if (_root.gl.hitTest(_x, _y + (_height / 2), true)) {
if ((bounce != 2) && (vspeed > 0)) {
hspeed = 0.845236523481398;
vspeed = -1.8126155740733;
bounce++;
}
if (bounce == 2) {
ramp = 2;
}
}
}
if (bounce != 2) {
_x = (_x + hspeed);
_y = (_y + vspeed);
if ((_x > 750) || (_x < 50)) {
hspeed = 0;
}
vspeed = vspeed + 0.2;
speed = speed + ac;
}
if (ramp == 1) {
acel = acel + 0.05;
_x = (_x + (-0.939692620785908 * acel));
_y = (_y + (0.342020143325669 * acel));
} else if (ramp == 2) {
acel = acel + 0.05;
_x = (_x + (0.939692620785908 * acel));
_y = (_y + (0.342020143325669 * acel));
}
if (this.hitTest(_root.collect)) {
if (_root.sounds == true) {
_root.s6.gotoAndPlay(2);
}
_root.varr.addscore = _root.varr.addscore + 10;
xx = 0;
while (xx < _root.varr.dbubble.length) {
if (_root.varr.dbubble[xx] == id) {
_root.varr.dbubble.splice(xx, 1);
xx = 10000;
}
xx++;
}
removeMovieClip(this);
}
}
if (_name == "sball") {
_visible = false;
} else {
_visible = true;
}
origx = _x;
origy = _y;
delta_x = _x - _root.sb1._x;
delta_y = _y - _root.sb1._y;
ra = Math.atan2(delta_y, delta_x);
dis = Math.sqrt((delta_x * delta_x) + (delta_y * delta_y));
if ((frame == 12) && (dis < 50)) {
removeMovieClip(this);
}
r = (ra / Math.PI) * 180;
spin();
speed = 0;
ac = 0.2;
f = 0;
connected = true;
_visible = false;
counter = 0;
gotoAndStop(frame);
if (started != 1) {
_root.varr.bubble[_root.varr.bubble.length] = id;
}
_root.varr["lines" + ver][ho] = id;
vt = Math.round(ver / 2) * 2;
if (vt == ver) {
adno = 1;
} else {
adno = 0;
}
ho2 = ho;
ver2 = ver;
balls = new Array();
ho3 = new Array();
ver3 = new Array();
end = false;
setver();
setho();
balls[0] = id;
no = 0;
if ((started != 1) && (frame != 12)) {
while (end == false) {
ver2 = _root["sb" + balls[no]].ver;
ho2 = _root["sb" + balls[no]].ho;
vt = Math.round(ver2 / 2) * 2;
if (vt == ver2) {
adno = 1;
} else {
adno = 0;
}
setver();
setho();
end = true;
i = 0;
while (i < 7) {
if ((_root.varr["lines" + ver3[i]][ho3[i]] != null) && (_root["sb" + _root.varr["lines" + ver3[i]][ho3[i]]].frame == frame)) {
dont = 0;
u = 0;
while (u < balls.length) {
if (_root.varr["lines" + ver3[i]][ho3[i]] == balls[u]) {
dont = 1;
}
u++;
}
if ((dont != 1) && (_root["sb" + _root.varr["lines" + ver3[i]][ho3[i]]].frame == frame)) {
end = false;
balls[balls.length] = _root.varr["lines" + ver3[i]][ho3[i]];
}
}
i++;
}
if (no < balls.length) {
end = false;
}
no++;
}
if (balls.length > 2) {
_root.sb1.checked = 1;
_root.varr.comb++;
addi = 10;
tt = 0;
while (tt < (balls.length - 2)) {
addi = addi + (10 * tt);
tt++;
}
_root.varr.addscore = _root.varr.addscore + addi;
_root.scounter.scorechange = 1;
if (_root.sounds == true) {
_root.s1.gotoAndPlay(2);
}
u = balls.length;
while (u > -1) {
_root.varr["lines" + _root["sb" + balls[u]].ver][_root["sb" + balls[u]].ho] = null;
duplicateMovieClip (_root.sprk, "sp" + _root.fc, _root.fc);
_root["sp" + _root.fc]._x = _root["sb" + balls[u]]._x;
_root["sp" + _root.fc]._y = _root["sb" + balls[u]]._y;
_root["sp" + _root.fc].gotoAndPlay((frame * 8) - 7);
_root.fc++;
rnd = random(3) + 2;
j = 0;
while (j < rnd) {
duplicateMovieClip (_root.stars, "stars" + _root.fc, _root.fc);
_root["stars" + _root.fc]._x = _root["sb" + balls[u]]._x;
_root["stars" + _root.fc]._y = _root["sb" + balls[u]]._y;
_root["stars" + _root.fc].gotoAndStop(frame);
_root.fc++;
j++;
}
removeMovieClip(_root["sb" + balls[u]]);
_root["sb" + balls[u]].counter++;
u--;
}
} else if (_root.sounds == true) {
_root.s7.gotoAndPlay(2);
}
}
bounce = 0;
acel = 1;
ramp = 0;
_root.sb1.test = 1;
_visible = true;
dx = this._x - _root.outring._x;
dy = this._y - _root.outring._y;
dis = Math.sqrt((dx * dx) + (dy * dy));
if (dis > _root.outring.dis) {
_root.varr.lifeloose = 1;
duplicateMovieClip (_root.disa2, "dis" + _root.fc, _root.fc);
_root["dis" + _root.fc]._x = _x;
_root["dis" + _root.fc]._y = _y;
_root["dis" + _root.fc].gotoAndStop(2);
_root.fc++;
removeMovieClip(this);
}
timets = 20;
tempdis = dis + 400;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.varr.pauses == 0) {
if (_name != "sball") {
if (_root.varr.breaktime > 13) {
removeMovieClip(this);
}
if ((timets > 0) && (started == 1)) {
timets--;
tempdis = tempdis - 20;
_x = (_root.sb1._x + (Math.cos(ra) * tempdis));
_y = (_root.sb1._y + (Math.sin(ra) * tempdis));
_visible = true;
} else {
_visible = true;
}
if (timets == 0) {
_x = origx;
_y = origy;
timets--;
}
if (_root.varr.lvlstart == 1) {
if (connected == false) {
disconnect();
}
if (connected == true) {
spin();
}
if (bl == 1) {
}
}
}
}
}
Instance of Symbol 33 MovieClip "partball" in Frame 7
onClipEvent (load) {
ang = random(360);
speed = 2 + (random(15) / 3);
xp = Math.cos((ang / 180) * Math.PI) * speed;
yp = Math.sin((ang / 180) * Math.PI) * speed;
timer = 10;
_alpha = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha - 10);
timer--;
_x = (_x + xp);
_y = (_y + yp);
if (timer < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 161 MovieClip "scounter" in Frame 7
onClipEvent (enterFrame) {
if (scorechange == 1) {
_xscale = 150;
_yscale = 150;
scorechange = 0;
}
if (_xscale > 100) {
_xscale = (_xscale - 5);
_yscale = (_yscale - 5);
}
}
Instance of Symbol 167 MovieClip "collect" in Frame 7
onClipEvent (enterFrame) {
if (_xscale > 75) {
_xscale = (_xscale - 5);
_yscale = (_yscale - 5);
}
}
Instance of Symbol 169 MovieClip "pscore" in Frame 7
onClipEvent (load) {
pscore = 0;
}
onClipEvent (enterFrame) {
ps = Math.round(pscore);
}
Instance of Symbol 172 MovieClip "sa" in Frame 7
onClipEvent (load) {
timer = 10;
_alpha = 100;
}
onClipEvent (enterFrame) {
this.fk.scores = scores;
timer--;
_alpha = (_alpha - 8);
if (timer < 1) {
removeMovieClip(this);
}
}
Instance of Symbol 237 MovieClip "sprk" in Frame 7
onClipEvent (load) {
timer = 7;
_visible = true;
if (_name == "sprk") {
_visible = false;
}
}
onClipEvent (enterFrame) {
timer--;
if (timer < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 241 MovieClip "ex" in Frame 7
onClipEvent (load) {
timer = 12;
_visible = true;
if (_name == "ex") {
_visible = false;
}
}
onClipEvent (enterFrame) {
timer--;
if (timer < 1) {
removeMovieClip(this);
}
}
Instance of Symbol 248 MovieClip "bprt" in Frame 7
onClipEvent (load) {
if (_name == "bprt") {
_visible = false;
} else {
_visible = true;
}
timer = 50;
g = 0;
rnd = random(10);
_alpha = 100;
angle = ((random(45) - 23) + (id * 90)) - 90;
yp = Math.sin((angle / Math.PI) * 180) * 2;
xp = Math.cos((angle / Math.PI) * 180) * 2;
}
onClipEvent (enterFrame) {
if (_root.varr.pauses != 1) {
timer--;
if (timer < 0) {
_alpha = (_alpha - 5);
}
if (_alpha < 0) {
removeMovieClip(this);
}
yp = yp + 0.4;
_y = (_y + yp);
_x = (_x + xp);
_rotation = (_rotation + rnd);
}
}
Instance of Symbol 251 MovieClip "disa" in Frame 7
onClipEvent (load) {
if (_name == "disa") {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (_name != "disa") {
_alpha = (_alpha - 10);
}
if (_alpha < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 256 MovieClip "outring" in Frame 7
onClipEvent (load) {
_x = _root.playarea._x;
_y = _root.playarea._y;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 265 MovieClip "stars" in Frame 7
onClipEvent (load) {
rspeed = random(10) - 5;
speed = random(3) + 1;
life = random(15) + 5;
angle = random(360);
xx = Math.cos((angle / 180) * Math.PI) * speed;
yy = Math.sin((angle / 180) * Math.PI) * speed;
scle = random(70) + 10;
_xscale = (_xscale - scle);
_yscale = (_yscale - scle);
}
onClipEvent (enterFrame) {
if (_root.varr.pauses == 0) {
_x = (_x - xx);
_y = (_y - yy);
yy = yy - 0.4;
_rotation = (_rotation + rspeed);
if (_y > 630) {
removeMovieClip(this);
}
}
}
Instance of Symbol 251 MovieClip "disa2" in Frame 7
onClipEvent (load) {
timer2 = ((((630 - _y) / 10) + (_x / 20)) - (_root.outring._x / 5)) + (_root.outring._width / 10);
ac = 0;
if (_name == "disa2") {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (_name != "disa2") {
timer2--;
if (timer2 < 0) {
releases = 1;
}
}
if (releases == 1) {
_y = (_y + ac);
ac = ac + 0.5;
if (_y > 630) {
removeMovieClip(this);
}
}
}
Instance of Symbol 272 MovieClip "fpst" in Frame 7
onClipEvent (load) {
k = 0;
d = 0;
h = 3;
kk = 0;
totalfps = 0;
totaltime = 0;
}
onClipEvent (enterFrame) {
time = _root.varr.millidif / _root.varr.updates;
loop = 0;
while (loop < time) {
k++;
loop++;
}
dat = new Date();
kk++;
h = dat.getSeconds();
if (h != s) {
ups = k;
k = 0;
fps = kk;
kk = 0;
totalfps = totalfps + fps;
totaltime = totaltime + 1;
}
s = dat.getSeconds();
}
Instance of Symbol 296 MovieClip in Frame 7
onClipEvent (load) {
timer = 265;
}
onClipEvent (enterFrame) {
timer--;
if (timer < 0) {
_visible = false;
}
}
Instance of Symbol 302 MovieClip "e2a" in Frame 7
onClipEvent (load) {
go = 0;
nxt = 4;
nxtr = 180;
r = 250;
}
onClipEvent (enterFrame) {
this.ball.gotoAndStop(nxt);
if (r > nxtr) {
r--;
}
if (r < nxtr) {
r++;
}
this.arrows._rotation = r;
if (go == 1) {
duplicateMovieClip (_root.ball, "b" + _root.fc, _root.fc);
_root["b" + _root.fc]._y = this._y;
_root["b" + _root.fc]._x = _x;
_root["b" + _root.fc].angle = (r / 180) * Math.PI;
trace((r + "-") + nxtr);
nxtr = 180 + random(80);
cc = random(3) + 1;
_root["b" + _root.fc].frame = nxt;
_root["b" + _root.fc].eshoto = 1;
if (cc == 1) {
nxt = random(_root.varr.ncolours[_root.varr.level]) + 1;
} else {
nxt = 12;
}
this.ball.gotoAndStop(nxt);
_root.fc++;
go = 0;
}
}
Instance of Symbol 302 MovieClip "e2b" in Frame 7
onClipEvent (load) {
go = 0;
nxt = 4;
nxtr = 330;
r = 330;
}
onClipEvent (enterFrame) {
this.ball.gotoAndStop(nxt);
if (r > nxtr) {
r--;
}
if (r < nxtr) {
r++;
}
this.arrows._rotation = r;
if (go == 1) {
duplicateMovieClip (_root.ball, "b" + _root.fc, _root.fc);
_root["b" + _root.fc]._y = this._y;
_root["b" + _root.fc]._x = _x;
_root["b" + _root.fc].angle = (r / 180) * Math.PI;
trace((r + "-") + nxtr);
nxtr = 360 - random(80);
cc = random(3) + 1;
_root["b" + _root.fc].frame = nxt;
_root["b" + _root.fc].eshoto = 1;
if (cc == 1) {
nxt = random(_root.varr.ncolours[_root.varr.level]) + 1;
} else {
nxt = 12;
}
this.ball.gotoAndStop(nxt);
_root.fc++;
go = 0;
}
}
Instance of Symbol 315 MovieClip "endol" in Frame 7
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 320 MovieClip "gameover" in Frame 7
onClipEvent (load) {
_visible = false;
_xscale = 500;
_yscale = 500;
}
onClipEvent (enterFrame) {
if (_visible == true) {
if (_xscale > 100) {
_xscale = (_xscale - 40);
_yscale = (_yscale - 40);
}
}
}
Instance of Symbol 325 MovieClip in Frame 7
onClipEvent (load) {
stopAllSounds();
gotoAndPlay (2);
}
on (press) {
stopAllSounds();
gotoAndPlay (2);
}
Instance of Symbol 328 MovieClip in Frame 7
on (press) {
stopAllSounds();
gotoAndPlay (2);
}
Instance of Symbol 330 MovieClip in Frame 7
on (press) {
stopAllSounds();
}
Instance of Symbol 334 MovieClip in Frame 7
on (press) {
_root.sounds = true;
}
onClipEvent (load) {
_root.sounds = true;
}
Instance of Symbol 336 MovieClip in Frame 7
on (press) {
_root.sounds = false;
}
Instance of Symbol 339 MovieClip in Frame 7
on (press) {
_quality = "low";
}
Instance of Symbol 341 MovieClip in Frame 7
on (press) {
_quality = "medium";
}
Instance of Symbol 343 MovieClip in Frame 7
on (press) {
_quality = "high";
}
Instance of Symbol 352 MovieClip "submit" in Frame 7
onClipEvent (load) {
_visible = false;
sent = 0;
timer = 50;
}
onClipEvent (enterFrame) {
if (go == 1) {
_visible = true;
scores = _root.varr.scores;
if ((submit == 1) && (sent == 0)) {
level = _root.varr.level;
scores = _root.varr.scores;
loadVariables ((((("http://www.mjgames-online.com/database/circlo/insert.php?names=" + names) + "&score=") + scores) + "&level=") + level, "this", "GET");
getURL ("http://www.mjgames-online.com/games/circlo_highscores.php", "_blank");
sent = 1;
submit = 0;
}
}
if (sent == 1) {
timer--;
if (timer < 0) {
_root.gotoAndStop(3);
}
}
}
Instance of Symbol 354 MovieClip "quit" in Frame 7
on (press) {
i = 0;
while (i < _root.varr.bubble.length) {
removeMovieClip(_root["sb" + _root.varr.bubble[i]]);
i++;
}
i = 0;
while (i < _root.varr.dbubble.length) {
removeMovieClip(_root["sb" + _root.varr.dbubble[i]]);
i++;
}
_root.gotoAndPlay(3);
}
Instance of Symbol 356 MovieClip "gcompleted" in Frame 7
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 358 MovieClip "llj" in Frame 7
onClipEvent (load) {
if (_name == "llj") {
duplicateMovieClip (this, "ggff", 1000018);
}
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
_rotation = (_rotation + 5);
}
Instance of Symbol 360 MovieClip "bgs2" in Frame 7
onClipEvent (load) {
_alpha = 0;
_visible = false;
if (_name == "bgs2") {
duplicateMovieClip (this, "bgs", 1000000);
}
}
Instance of Symbol 363 MovieClip "pausething2" in Frame 7
onClipEvent (load) {
_alpha = 100;
_visible = false;
if (_name == "pausething2") {
duplicateMovieClip (this, "pausething", 1000001);
}
}
onClipEvent (enterFrame) {
if (_root.varr.pauses == 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 366 MovieClip "trail1" in Frame 7
onClipEvent (load) {
timer = 10;
}
onClipEvent (enterFrame) {
timer--;
if (timer < 0) {
removeMovieClip(this);
}
}
Symbol 368 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 14 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 2
stop();
Symbol 17 MovieClip Frame 1
stop();
Instance of Symbol 28 MovieClip in Symbol 33 MovieClip Frame 10
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Instance of Symbol 30 MovieClip in Symbol 33 MovieClip Frame 11
onClipEvent (enterFrame) {
_rotation = (_rotation + 10);
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
on (release) {
_root.gotoAndStop(6);
}
onClipEvent (enterFrame) {
this._rotation = this._rotation - 0.2;
this.gr._rotation = this.gr._rotation - 1;
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
}
on (release) {
getURL ("http://www.mjgames-online.com/", "_blank");
}
onClipEvent (enterFrame) {
this._rotation = this._rotation - 0.2;
this.gr._rotation = this.gr._rotation + 2;
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
on (release) {
_root.gotoAndStop(5);
}
onClipEvent (enterFrame) {
this._rotation = this._rotation - 0.2;
this.gr._rotation = this.gr._rotation + 2;
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
on (release) {
getURL ("http://www.theextragame.com", "_blank");
}
onClipEvent (enterFrame) {
this._rotation = this._rotation - 0.2;
this.gr._rotation = this.gr._rotation + 2;
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
on (release) {
getURL ("http://www.onlinehighscores.com/highscores/circlo2.php", "_blank");
}
onClipEvent (enterFrame) {
this._rotation = this._rotation - 0.2;
this.gr._rotation = this.gr._rotation - 2;
}
Symbol 153 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 1
stop();
Instance of Symbol 314 MovieClip in Symbol 315 MovieClip Frame 1
on (press) {
_root.varr.nxtlvl = 1;
}
Symbol 325 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 1
stop();
Instance of Symbol 351 MovieClip in Symbol 352 MovieClip Frame 1
onClipEvent (load) {
sent = 0;
timer = 50;
}
on (release) {
submit = 1;
scores = _root.varr.scores;
if ((submit == 1) && (sent == 0)) {
level = _root.varr.level;
scores = _root.varr.scores;
id = Math.round((Math.cos(scores * 23) / 17) * 7513);
if (id < 0) {
id = id * -1;
}
trace(id);
loadVariables ((((((((("http://www.onlinehighscores.com/database/circlo2/insert.php?names=" + this._parent.names) + "&score=") + scores) + "&level=") + level) + "&ident=") + id) + "&id2=") + random(30000), this);
getURL ("http://www.onlinehighscores.com/highscores/circlo2.php", "_blank");
sent = 1;
submit = 0;
}
}
onClipEvent (enterFrame) {
if (sent == 1) {
timer--;
if (timer < 0) {
_root.gotoAndStop(4);
}
}
}