Frame 1
fscommand ("trapallkeys", 1);
fscommand ("allowscale", 0);
stage.showMenu = false;
duplicateMovieClip ("fr", "frame", 100010);
_global.r = this;
stop();
onEnterFrame = function () {
persen = Math.floor((this.getBytesLoaded() / this.getBytesTotal()) * 100);
if (persen == 100) {
r.udamusik = 0;
r.music = 1;
delete onEnterFrame;
gotoAndStop ("menu");
}
};
stop();
Frame 7
MovieClip.prototype.initboard = function () {
var t = this;
((t.id == 11) ? ((t.nil = r.bonusnil)) : null);
t.shake = (t.got = 0);
t.boc = new Color(t.bo);
t.xs = (t.xspeed = r.linespeed[t.line]);
((t._x > (r.screenwid / 2)) ? ((t.xs = -t.xs)) : null);
t.onEnterFrame = function () {
if (t.shake > 0) {
t.shake--;
t.ysh = 0.1 * random(20);
t.r1._y = 0.5 * t.ysh;
t.two.a._y = t.ysh;
((!t.shake) ? ((t.r1._y = 0)(t.two.a._y = 0)) : null);
}
if (t.netani > 0) {
t.two.a.n.gotoAndStop(t.netani);
t.netani = 0;
}
if (!t.got) {
((t.nil > 0) ? ((r.slow ? ((t.nil = Math.max(100, t.nil - 5))) : ((t.nil = Math.max(100, t.nil - 15))))) : null);
} else if (t.got == 1) {
t.got = 2;
r.got++;
r.waktu = r.waktu + r.gotwaktu;
t.bo.whiteflash.gotoAndStop(2);
if (t.id < 12) {
((t.id < 5) ? ((nil = r.ringscore[t.id])) : null);
((t.id == 11) ? ((nil = t.nil)) : null);
(r.triplebonus ? ((nil = nil * 3)r.ztitink.start()) : null);
r.ang = r.ang + nil;
popskor(t._x, t._y - 20, nil);
} else {
((t.id == 12) ? ((r.slow = r.slowtime)) : null);
if (t.id == 13) {
r.dotspace = r.dotspacebig;
r.big = r.bigtime;
var _local2 = 0;
while (_local2 < r.rings.length) {
r.rings[_local2].r1.tint(8);
r.rings[_local2].two.tint(8);
_local2++;
}
}
((t.id == 15) ? ((r.waktu = r.waktu + r.bonustime)stat.timer.tint(20)) : null);
((t.id == 16) ? ((r.triplebonus = r.triplebonustime)) : null);
if (t.id == 14) {
r.removeball = r.removeballdelay * 8;
var _local5 = (7 - r.balls.length) - r.hold;
if (_local5 > 0) {
((_local5 == 1) ? ((angle = [90])) : null);
((_local5 == 2) ? ((angle = [110, 70])) : null);
((_local5 == 3) ? ((angle = [120, 90, 60])) : null);
((_local5 == 4) ? ((angle = [130, 110, 70, 50])) : null);
((_local5 == 5) ? ((angle = [110, 70, 120, 90, 60])) : null);
((_local5 == 6) ? ((angle = [150, 130, 110, 70, 50, 30])) : null);
var _local2 = 0;
while (_local2 < _local5) {
var _local1 = rad(angle.shift());
var _local4 = Math.cos(_local1) * 10;
var _local3 = Math.sin(_local1) * 10;
makeball(1, t._x, t._y + 16, _local4, _local3);
_local2++;
}
}
}
popmessage(t._x, t._y - 20, t.id - 11);
}
if (t.id > 10) {
m2.attachMovie("boardflash", "boardflash" + r.bsd, r.bsd, {_x:t._x, _y:t._y});
r.bsd++;
r.zbonus.start();
t.removering();
}
}
};
};
MovieClip.prototype.initball = function () {
var t = this;
t.radius = Math.round(t._width / 2);
t.bounce = 0.8;
t.mass = 50;
t.vx = 0;
t.xmin = t.radius;
t.xmax = r.screenwid - t.radius;
t.ymax = r.yland - t.radius;
t.bumped = (t.uda = (t.udaswap = (t.pass = (t.swapdep = (t.still = (t.got = 0))))));
t.onEnterFrame = function () {
t.oldx = t._x;
t.oldy = t._y;
t.vy = t.vy + r.grav;
t._y = t._y + t.vy;
t._x = t._x + t.vx;
if (t.vy > 0) {
((!t.uda) ? ((t.uda = 1)r.balls.push(t)) : null);
if (t._y < 250) {
var _local2 = 0;
while (_local2 < r.rings.length) {
var _local1 = r.rings[_local2];
if ((Math.abs(_local1._y - t._y) < 60) and (Math.abs(_local1._x - t._x) < 60)) {
if (t[_local1._name + "pass"] == undefined) {
t[_local1._name + "pass"] = 0;
} else if (t[_local1._name + "pass"] == 0) {
if (t.hitTest(_local1.z1)) {
t[_local1._name + "pass"] = 1;
((!t.udaswap) ? ((t.udaswap = 1)t.swapDepths(t.dep - 20000)) : null);
}
} else if (t[_local1._name + "pass"] == 1) {
if (t.hitTest(_local1.z2)) {
_local1.got = 1;
t.got++;
_local1.netani = 3;
(r.music ? r.zswish.start() : null);
t[_local1._name + "pass"] = 9;
}
}
} else {
t[_local1._name + "pass"] = undefined;
}
_local2++;
}
}
}
if ((t.vy > 0) and (t._y > 250)) {
if (t.got > 1) {
r.ang = r.ang + r.multiringscore[t.got];
popmultirings(t._x, 240, t.got);
r.ztititink.start();
t.got = 0;
}
}
if (t._y > t.ymax) {
t.bumped = 1;
t._y = t.ymax;
((t.vy > 2) ? (t.ballsfx(t.vy * 4)) : null);
t.vy = -0.8 * t.vy;
t.vx = 0.99 * t.vx;
}
if (t._x < t.xmin) {
t._x = t.xmin;
t.vx = -0.8 * t.vx;
} else if (t._x > t.xmax) {
t._x = t.xmax;
t.vx = -0.8 * t.vx;
}
if (t._y == t.ymax) {
(((Math.abs(t.oldx - t._x) < 1) and (Math.abs(t.oldy - t._y) < 1)) ? ((t.still = 1)) : ((t.still = 0)));
}
};
t.stop();
};
MovieClip.prototype.tint = function (delay, colr) {
var t = this.createEmptyMovieClip("tintmc", this.getNextHighestDepth());
t.d = delay;
((!t.d) ? ((t.d = 10)) : null);
t.colr = colr;
((!t.colr) ? ((t.colr = 16737792)) : null);
t.c = new Color(t._parent);
t.a = (t.b = 1);
t._parent.filters = [new flash.filters.GlowFilter(t.colr, 1, 7, 7, 1.5, 1, false, false)];
t.onEnterFrame = function () {
t.d--;
t.a--;
if (!t.a) {
t.a = 2;
t.b = !t.b;
if (t.b) {
t.c.setTint(t.colr, 100);
} else {
t.c.setTint(16777215, 100);
}
} else {
t.c.resetColor();
}
if (!t.d) {
t.c.resetColor();
t._parent.filters = null;
t.removeMovieClip();
}
};
};
MovieClip.prototype.appear = function (speed) {
var t = this.createEmptyMovieClip("appearmc", this.getNextHighestDepth());
((!speed) ? (speed = 15) : null);
t.speed = speed;
t.yy = t._parent._y - 25;
t._parent._alpha = 0;
t.onEnterFrame = function () {
t._parent._y = t._parent._y + ((t.yy - t._parent._y) / 2);
t._parent._alpha = t._parent._alpha + t.speed;
if (t._parent._alpha >= 100) {
t._parent._alpha = 100;
delete t.onEnterFrame;
}
};
};
MovieClip.prototype.disappear = function (speed, ys) {
var t = this.createEmptyMovieClip("disappearmc", this.getNextHighestDepth());
((!speed) ? (speed = 20) : null);
((ys == undefined) ? (ys = -2) : null);
t.speed = speed;
t.ys = ys;
t.onEnterFrame = function () {
t._parent._y = t._parent._y + t.ys;
t._parent._alpha = t._parent._alpha - t.speed;
if (t._parent._alpha <= 0) {
delete t.onEnterFrame;
t._parent.removeMovieClip();
}
};
t.stop();
};
MovieClip.prototype.popskor = function (xx, yy, sk) {
(r.triplebonus ? ((a = "poptriplescore")) : ((a = "popscore")));
m.attachMovie(a, "pop" + r.popd, r.popd, {_x:Math.min(r.screenwid - 30, Math.max(30, xx)), _y:yy, sk:sk});
r.popd++;
};
MovieClip.prototype.popmessage = function (xx, yy, no) {
m.attachMovie("popmessage", "pop" + r.popd, r.popd, {_x:Math.min(r.screenwid - 30, Math.max(30, xx)), _y:yy, no:no});
r.popd++;
};
MovieClip.prototype.popmultirings = function (xx, yy, no) {
m.attachMovie("popmultirings", "pop" + r.popd, r.popd, {_x:Math.min(r.screenwid - 30, Math.max(30, xx)), _y:yy, no:no});
r.popd++;
};
MovieClip.prototype.moverings = function () {
var _local2 = 0;
while (_local2 < r.rings.length) {
var _local1 = r.rings[_local2];
(r.slow ? ((_local1._x = _local1._x + (_local1.xs / 3))) : ((_local1._x = _local1._x + _local1.xs)));
_local1.dot1._x = _local1._x - r.dotspace;
_local1.dot2._x = _local1._x + r.dotspace;
_local1.two._x = _local1._x;
_local1.dot1._y = (_local1.dot2._y = (_local1.two._y = _local1._y));
if ((_local1._x < r.ringxmin) or (_local1._x > r.ringxmax)) {
_local1.removering();
}
_local2++;
}
};
MovieClip.prototype.removering = function () {
var _local2 = this;
_local2.dot1.removeit(r.dots);
_local2.dot2.removeit(r.dots);
_local2.two.removeMovieClip();
_local2.removeit(r.rings);
};
MovieClip.prototype.removeit = function (arr) {
arr.removeValue(this);
this.removeMovieClip();
};
MovieClip.prototype.timetotext = function (waktu, onesec) {
var _local1 = Math.floor(waktu / onesec);
var _local3 = (waktu - (_local1 * onesec)) * 4;
var _local2 = Math.floor(_local1 / 60);
_local1 = _local1 - (_local2 * 60);
((_local2 < 10) ? ((tmin = "0" + _local2)) : ((tmin = _local2)));
((_local1 < 10) ? ((tsec = "0" + _local1)) : ((tsec = _local1)));
((_local3 < 10) ? ((tmsec = "0" + _local3)) : ((tmsec = _local3)));
return((tmin + ":") + tsec);
};
MovieClip.prototype.initdot = function () {
var _local2 = this;
r.dots.push(_local2);
_local2.mass = 1000;
_local2.bounce = 0.8;
_local2.radius = 4;
_local2._visible = false;
};
MovieClip.prototype.makeball = function (bcolor, xx, yy, vx, vy) {
var _local1 = m.attachMovie("ball", "b" + r.b, r.b, {_x:xx, _y:yy, bcolor:bcolor, vx:vx, vy:vy, dep:r.b});
_local1.zb1 = new Sound(_local1);
_local1.zb2 = new Sound(_local1);
_local1.zb1.attachSound("zball1");
_local1.zb2.attachSound("zball2");
r.b++;
};
MovieClip.prototype.bonuslaunch = function (no) {
var _local1 = 0;
while (_local1 < 16) {
r.bon.attachMovie("bonus", "bonus" + r.bde, r.bde);
r.bon["bonus" + r.bde]._x = 100 + random(500);
r.bon["bonus" + r.bde]._y = (-_local1) * 60;
r.bon["bonus" + r.bde].no = no;
r.bde++;
_local1++;
}
};
MovieClip.prototype.ballsfx = function (vol) {
if (r.music) {
vol = Math.min(100, vol);
((random(100) > 50) ? ((sfx = "zb1")) : ((sfx = "zb2")));
this[sfx].setVolume(vol);
this[sfx].start();
}
};
MovieClip.prototype.makering = function (id, xx, yy) {
((yy < 100) ? ((no = 1)) : (((yy > 170) ? ((no = 3)) : ((no = 2)))));
var _local6 = m.attachMovie("ring", "ring" + r.rd, r.rd, {_x:xx, _y:yy});
var _local1 = m.attachMovie("board", "board" + r.bd, r.bd, {id:id, _x:xx, _y:yy, two:_local6, line:no});
r.rings.push(_local1);
r.bd++;
r.rd++;
var _local3 = m.attachMovie("dot", "b" + r.b, r.b);
_local3.ringname = _local1._name;
r.b++;
var _local2 = m.attachMovie("dot", "b" + r.b, r.b);
_local2.ringname = _local1._name;
net = 0;
r.b++;
_local1.dot1 = _local3;
_local1.dot2 = _local2;
};
MovieClip.prototype.cekballcoll = function () {
var _local20 = 0;
while (_local20 < (r.balls.length - 1)) {
var _local2 = r.balls[_local20];
var _local10 = _local20 + 1;
while (_local10 < r.balls.length) {
var _local1 = r.balls[_local10];
var _local7 = _local2.radius + _local1.radius;
var _local6 = _local2._x - _local1._x;
if (Math.abs(_local6) <= _local7) {
((_local6 == 0) ? (_local6 = 0.1) : null);
var _local5 = _local2._y - _local1._y;
if (Math.abs(_local5) <= _local7) {
((_local5 == 0) ? (_local5 = 0.1) : null);
var _local22 = Math.sqrt((_local6 * _local6) + (_local5 * _local5));
if (_local22 < _local7) {
var _local14 = Math.atan2(_local5, _local6);
var _local4 = Math.cos(_local14);
var _local3 = Math.sin(_local14);
var _local19 = (_local4 * _local2.vx) + (_local3 * _local2.vy);
var _local16 = (_local4 * _local2.vy) - (_local3 * _local2.vx);
var _local17 = (_local4 * _local1.vx) + (_local3 * _local1.vy);
var _local15 = (_local4 * _local1.vy) - (_local3 * _local1.vx);
var _local21 = (_local2.mass * _local19) + (_local1.mass * _local17);
var _local11 = _local19 - _local17;
var _local9 = (_local21 - (_local1.mass * _local11)) / (_local2.mass + _local1.mass);
var _local18 = _local11 + _local9;
_local2.vx = ((_local4 * _local9) * _local2.bounce) - (_local3 * _local16);
_local2.vy = (_local4 * _local16) + ((_local3 * _local9) * _local2.bounce);
_local1.vx = ((_local4 * _local18) * _local1.bounce) - (_local3 * _local15);
_local1.vy = (_local4 * _local15) + ((_local3 * _local18) * _local1.bounce);
var _local13 = (_local2._x + _local1._x) / 2;
var _local12 = (_local2._y + _local1._y) / 2;
var _local8 = _local7 * 0.5;
if (_local2.mass < 1000) {
_local2._x = _local13 + (_local4 * _local8);
_local2._y = _local12 + (_local3 * _local8);
}
if (_local1.mass < 1000) {
_local1._x = _local13 - (_local4 * _local8);
_local1._y = _local12 - (_local3 * _local8);
}
}
}
}
_local10++;
}
_local20++;
}
};
MovieClip.prototype.cekballdotcoll = function () {
var _local13 = 0.8;
var _local12 = 0;
while (_local12 < r.balls.length) {
var _local1 = r.balls[_local12];
if (_local1._y < 300) {
var _local7 = 0;
while (_local7 < r.dots.length) {
var _local4 = r.dots[_local7];
var _local3 = _local1._x - _local4._x;
var _local2 = _local1._y - _local4._y;
((_local3 == 0) ? (_local3 = 0.1) : null);
((_local2 == 0) ? (_local2 = 0.1) : null);
var _local6 = _local1.radius + _local4.radius;
if ((Math.abs(_local3) <= minDis) and (Math.abs(_local2) <= minDis)) {
var _local11 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if (_local11 < _local6) {
var _local9 = Math.atan2(_local2, _local3);
var _local10 = Math.cos(_local9);
var _local8 = Math.sin(_local9);
var _local5 = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = (_local10 * _local5) * _local13;
_local1.vy = (_local8 * _local5) * _local13;
((Math.abs(_local1.vx) < 1) ? ((_local1.vx = 1)) : null);
_local1._x = _local4._x + (_local10 * _local6);
_local1._y = _local4._y + (_local8 * _local6);
((_local5 > 2) ? ((m[_local4.ringname].shake = 12)) : null);
_local1.bumped = 1;
if (r.music and (_local5 > 5)) {
r.zring.setVolume(Math.min(100, _local5 * 5));
r.zring.start();
}
break;
}
}
_local7++;
}
}
_local12++;
}
};
MovieClip.prototype.rad = function (qdeg) {
return(qdeg * (Math.PI/180));
};
MovieClip.prototype.deg = function (qrad) {
return(qrad * 57.2957795130823);
};
MovieClip.prototype.findang = function (dx, dy) {
return(deg(Math.atan2(dy, dx)));
};
MovieClip.prototype.fadescreen = function (speed) {
((!speed) ? (speed = 5) : null);
r.createEmptyMovieClip("dark", 100001);
var d = r.dark;
d.speed = speed;
d.lineStyle(1, 0, 100);
d.beginFill(16777215, 100);
d.moveTo(-5000, -5000);
d.lineTo(5000, -5000);
d.lineTo(5000, 5000);
d.lineTo(-5000, 5000);
d.endFill();
d.onEnterFrame = function () {
d._alpha = d._alpha - d.speed;
if (d._alpha <= 0) {
d.removeMovieClip();
d.stop();
}
};
};
Number.prototype.isMultipleOf = function (BaseNum) {
return(!(this % BaseNum));
};
Array.prototype.copy = Array.prototype.slice;
Array.prototype.randomize = function () {
return(this.sort(function (a, b) {
return(((Math.floor(Math.random() * 2) == 0) ? 1 : -1));
}));
};
Array.prototype.removeElement = function (i) {
if (i == null) {
i = 0;
}
var _local4 = this[i];
var _local2 = i;
while (_local2 < (this.length - 1)) {
this[_local2] = this[_local2 + 1];
_local2++;
}
this.pop();
return(_local4);
};
Array.prototype.removeValue = function (a) {
var _local2 = 0;
while (_local2 < this.length) {
if (a == this[_local2]) {
this.removeElement(_local2);
}
_local2++;
}
};
Array.prototype.contain = function (val) {
var _local3 = this.length;
var _local2 = 0;
while (_local2 < _local3) {
if (this[_local2] == val) {
return(true);
}
_local2++;
}
return(false);
};
Color.prototype.setBrightness = function (value) {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
var trans = this.getTransform();
var percent = (Math.abs(value) / 100);
var brightnessColor = ((value > 0) ? 255 : 0);
with (trans) {
ra = ra - (ra * percent);
ga = ga - (ga * percent);
ba = ba - (ba * percent);
rb = rb + ((brightnessColor - rb) * percent);
gb = gb + ((brightnessColor - gb) * percent);
bb = bb + ((brightnessColor - bb) * percent);
}
this.setTransform(trans);
};
Color.prototype.setTint = function (col, percent) {
if (isNaN(col) || (isNaN(percent))) {
return(undefined);
}
col = ((col <= 0) ? 0 : (((col >= 16777215) ? 16777215 : (Math.round(col)))));
percent = ((percent <= 0) ? 0 : (((percent >= 100) ? 1 : (percent / 100))));
var trans = this.getTransform();
with (trans) {
ra = ra - (ra * percent);
ga = ga - (ga * percent);
ba = ba - (ba * percent);
rb = rb + ((((col & 16711680) >> 16) - rb) * percent);
gb = gb + ((((col & 65280) >> 8) - gb) * percent);
bb = bb + (((col & 255) - bb) * percent);
}
this.setTransform(trans);
};
Color.prototype.resetColor = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
};
Sound.prototype.fade = function (fadeType, fadeDuration) {
this.fadeDuration = (fadeDuration * 1000) / 100;
this.fadeType = fadeType;
this.currentVolume = this.getVolume();
this.intID = setInterval(function (thisObj) {
thisObj.doFade(thisObj.fadeType);
}, this.fadeDuration, this);
this.doFade = function (fadeType) {
if (fadeType == "out") {
this.setVolume(this.currentVolume--);
if (this.getVolume() <= 0) {
clearInterval(this.intID);
}
} else if (fadetype == "in") {
this.setVolume(this.currentVolume++);
if (this.getVolume() >= 100) {
clearInterval(this.intID);
}
}
};
};
MovieClip.prototype.jiggle = function (beginska, endska) {
var t = this;
((!beginska) ? (beginska = 200) : null);
((!endska) ? (endska = 100) : null);
t._xscale = (t._yscale = beginska);
t.ska = endska;
t.dx = 0;
t.dv = 0.7;
t.dvstep = 0.5;
t.onEnterFrame = function () {
t.dx = (t.dx * t.dvstep) + ((t.ska - t._xscale) * t.dv);
t._xscale = t._xscale + t.dx;
t._yscale = t._xscale;
};
};
MovieClip.prototype.getrandom = function (aray) {
if (r.randomlisting.length > 0) {
var _local3 = 0;
var _local1 = 0;
while (_local1 < r.randomlisting.length) {
if (r.randomlisting[_local1] == aray) {
_local3 = 1;
break;
}
_local1++;
}
if (!_local3) {
r.randomlisting.push(aray);
}
} else {
r.randomlisting = [];
r.randomlisting.push(aray);
}
if (r[aray + "getrandom"].length <= 0) {
r[aray + "getrandom"] = [];
r[aray + "getrandom"] = r[aray].clone();
r[aray + "getrandom"].randomize();
if (r[aray + "getrandom"].length > 1) {
if (r[aray + "lastpop"] == r[aray + "getrandom"][r[aray + "getrandom"].length - 1]) {
r[aray + "getrandom"].pop();
}
}
}
var _local4 = r[aray + "getrandom"].pop();
r[aray + "lastpop"] = _local4;
return(_local4);
};
MovieClip.prototype.resetrandom = function () {
if (r.randomlisting.length > 0) {
var _local1 = 0;
while (_local1 < r.randomlisting.length) {
r[r.randomlisting[_local1] + "getrandom"] = [];
r[r.randomlisting[_local1] + "lastpop"] = undefined;
_local1++;
}
}
};
Object.prototype.clone = function () {
if (this instanceof Array) {
var _local2 = [];
var _local3 = 0;
while (_local3 < this.length) {
_local2[_local3] = ((typeof(this[_local3]) == "object") ? (this[_local3].clone()) : (this[_local3]));
_local3++;
}
} else if ((this instanceof XML) || (this instanceof MovieClip)) {
var _local2 = null;
trace("Warning! Object.clone can not be used on MovieClip or XML objects");
} else {
var _local2 = {};
for (var _local3 in this) {
_local2[_local3] = ((typeof(this[_local3]) == "object") ? (this[_local3].clone()) : (this[_local3]));
}
}
return(_local2);
};
ASSetPropFlags(Object.prototype, ["clone"], 1);
MovieClip.prototype.wait = function (delay) {
var t = this.createEmptyMovieClip("wdl", 55555);
t.delay = delay;
t.onEnterFrame = function () {
t.delay--;
if (t.delay < 0) {
delete t.onEnterFrame;
t._parent.play();
t.removeMovieClip();
}
};
t._parent.stop();
};
MovieClip.prototype.savecookie = function (vari, value) {
var _local1 = SharedObject.getLocal("getanimatedcookie", "/");
_local1.data[vari] = value;
_local1.flush();
};
MovieClip.prototype.loadcookie = function (vari) {
var _local1 = SharedObject.getLocal("getanimatedcookie", "/");
if (_local1.data[vari] != null) {
return(_local1.data[vari]);
}
return(false);
};
Frame 14
delete onEnterFrame;
call("pro");
fadescreen();
stop();
Frame 21
delete onEnterFrame;
call("pro");
fadescreen();
stop();
Frame 28
call("pro");
fadescreen(8);
_global.m = this.map;
_global.m2 = this.map2;
_global.stat = this.stat;
_global.p = m.attachMovie("ben", "ben", 80010, {dep:80010, _x:200, _y:400});
_global.cursor = m.attachMovie("cursor", "cursor", 93000, {dep:80011, _x:200, _y:400});
Mouse.hide();
ringscore = [0, 100, 150, 200, 250];
multiringscore = [0, 0, 1000, 3000];
onesec = 28;
td = (trafficdelay = 200);
linepos = [null, 75, 138, 200];
linedir = [null, 1, -1, 1];
linespeednormal = 1.5;
linespeedrandom = 20;
linespeed = [null, linespeednormal, linespeednormal + 1, linespeednormal + 0.5];
linefree = [null, 1, 2, 3];
lineid = [1, 2, 3];
triplebonus = 0;
bonustipe = [11, 12, 13, 14, 15, 16];
slowtime = 400;
bigtime = 400;
bonustime = 20 * onesec;
bonusnil = 3000;
triplebonustime = 400;
removeballdelay = 50;
removeball = 0;
waktu = (waktumax = 120 * onesec);
gotwaktu = 30;
pspeed = 15;
bde = 100;
yland = 400;
ballcolor = 1;
screenwid = 600;
screenhei = 400;
ringxmin = -40;
ringxmax = screenwid + 40;
xmin = 50;
xmax = screenwid - 50;
grav = 2;
dd = (bonusdelay = 6);
dotspace = (dotspacenormal = 23);
dotspacebig = 34;
diff = (diffdelay = 800);
ang = (timeup = (freeze = (got = (big = (slow = (multiball = (triplebonus = (hold = 0))))))));
resetrandom();
ringd = (ringdelay = 10);
rings = [];
dots = [];
balls = [];
b = 40100;
bd = 20000;
bsd = 1000;
rd = 35000;
popd = 90000 /* 0x015F90 */;
r.attachMovie("info", "info", 31000, {_x:354, _y:200});
if (!r.udamusik) {
r.udamusik = 1;
stopAllSounds();
r.createEmptyMovieClip("sfx", 60001);
allsfx = ["zgrab", "zstep1", "zstep2", "ztititink", "ztitink", "ztink", "ztic", "zbonus", "zgot"];
var i = 0;
while (i < allsfx.length) {
r[allsfx[i]] = new Sound(sfx);
r[allsfx[i]].attachSound(allsfx[i]);
i++;
}
r.createEmptyMovieClip("sfx3", 60003);
r.zring = new Sound(sfx3);
r.zring.attachSound("zring");
r.createEmptyMovieClip("sfx4", 60004);
r.zswish = new Sound(sfx4);
r.zswish.attachSound("zswish");
r.createEmptyMovieClip("sfx2", 60002);
r.zloop = new Sound(sfx2);
r.zloop.attachSound("zloop");
r.zloop.start(0, 99999);
}
makering(1 + random(4), 0, linepos[1]);
makering(1 + random(4), screenwid, linepos[2]);
makering(1 + random(4), 0, linepos[3]);
makeball(1, 200, r.yland, 0, -1);
stat.timer.play();
onEnterFrame = function () {
((!r.freeze) ? (moverings()) : null);
cekballdotcoll();
cekballcoll();
if (r.slow) {
(r.slow.isMultipleOf(3) ? (ringd--) : null);
} else {
ringd--;
}
if ((ringd < 0) or ((r.rings.length < 8) and (r.rings.length < 12))) {
ringd = ringdelay;
var _local3 = [];
_local3 = r.linefree.copy();
_local3.randomize();
var _local1 = 0;
while (_local1 < _local3.length) {
((_local3[_local1] != null) ? ((lineran = _local3[_local1])) : null);
_local1++;
}
var _local7 = r.linepos[lineran];
((r.linedir[lineran] > 0) ? ((xx = -30)) : ((xx = screenwid + 30)));
var _local5 = 1;
_local1 = 0;
while (_local1 < r.rings.length) {
if (Math.abs(_local7 - r.rings[_local1]._y) < 20) {
if (Math.abs(xx - r.rings[_local1]._x) < 100) {
_local5 = 0;
}
}
_local1++;
}
if (_local5) {
dd--;
if (!dd) {
dd = bonusdelay;
var _local8 = getrandom("bonustipe");
(((_local8 == 12) and r.slow) ? (_local8 = 1) : null);
(((_local8 == 13) and r.big) ? (_local8 = 1) : null);
(((_local8 == 16) and r.triplebonus) ? (_local8 = 1) : null);
(((_local8 == 15) and (r.waktu > (0.8 * r.waktumax))) ? (_local8 = 1) : null);
(((_local8 == 14) and (r.balls.length > 5)) ? (_local8 = 1) : null);
} else {
var _local8 = 1 + random(4);
}
makering(_local8, xx, _local7);
}
}
td--;
if (!td) {
switchline = getrandom("lineid");
linefree = [null, 1, 2, 3];
linefree[switchline] = null;
}
if (td < 0) {
var _local6 = 1;
var _local1 = 0;
while (_local1 < r.rings.length) {
((r.rings[_local1].line == switchline) ? (_local6 = 0) : null);
_local1++;
}
if (_local6) {
linedir[switchline] = -linedir[switchline];
linespeed[switchline] = linespeednormal + (0.1 * random(linespeedrandom));
linefree[switchline] = switchline;
td = trafficdelay;
}
}
((r.big > 0) ? (r.big--((!r.big) ? ((r.dotspace = r.dotspacenormal)) : null)) : null);
((r.triplebonus > 0) ? (r.triplebonus--) : null);
if (r.slow > 0) {
r.slow--;
if (r.slow.isMultipleOf(13)) {
var _local1 = 0;
while (_local1 < r.rings.length) {
var _local2 = r.rings[_local1];
if ((_local2._x > 30) and (_local2._x < (r.screenwid - 30))) {
}
_local1++;
}
}
}
if (((r.balls.length > 1) and (!r.hold)) or ((r.balls.length >= 1) and r.hold)) {
r.removeball--;
if (r.removeball < 0) {
var _local4 = 0;
var _local1 = 0;
while (_local1 < r.balls.length) {
if (r.balls[_local1].still) {
_local4 = r.balls[_local1];
break;
}
_local1++;
}
if (_local4) {
m.attachMovie("balldisappear", "balldisappear" + r.bd, r.bd, {_x:r.balls[0]._x, _y:r.balls[0]._y, bcolor:_local4.bcolor});
r.bd++;
r.balls.removeValue(_local4);
_local4.removeMovieClip();
r.removeball = r.removeballdelay;
}
}
}
diff--;
if (!diff) {
diff = diffdelay;
linespeednormal = Math.min(5, linespeednormal + 0.2);
linespeedrandom = Math.min(50, linespeedrandom + 2);
}
};
stop();
Instance of Symbol 233 MovieClip in Frame 28
onClipEvent (load) {
letterkeys = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
numberkeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
numpadkeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "+", "Enter", "-", ".", "/"];
functionkeys = ["F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12"];
otherkeys = ["Space", "Page Up", "Page Down", "End", "Home", "Left", "Up", "Right", "Down"];
keypressed = "";
}
onClipEvent (keyDown) {
k = Key.getCode();
if ((k >= 65) and (k <= 90)) {
keyp = letterkeys[k - 65];
}
if ((k >= 48) and (k <= 57)) {
keyp = numberkeys[k - 48];
}
if ((k >= 96) and (k <= 111)) {
keyp = numpadkeys[k - 96];
}
if ((k >= 112) and (k <= 123)) {
keyp = functionkeys[k - 112];
}
if ((k >= 32) and (k <= 40)) {
keyp = otherkeys[k - 32];
}
if (k == 8) {
keyp = "BackSpace";
}
if (k == 9) {
keyp = "Tab";
}
if (k == 12) {
keyp = "Clear";
}
if (k == 13) {
keyp = "Enter";
}
if (k == 16) {
keyp = "Shift";
}
if (k == 17) {
keyp = "Control";
}
if (k == 18) {
keyp = "Alt";
}
if (k == 20) {
keyp = "Caps Lock";
}
if (k == 27) {
keyp = "Esc";
}
if (k == 45) {
keyp = "Insert";
}
if (k == 46) {
keyp = "Delete";
}
if (k == 47) {
keyp = "help";
}
if (k == 144) {
keyp = "Num Lock";
}
if (k == 186) {
keyp = ";:";
}
if (k == 187) {
keyp = "=+";
}
if (k == 189) {
keyp = "-_";
}
if (k == 191) {
keyp = "/?";
}
if (k == 192) {
keyp = "'@";
}
if (k == 219) {
keyp = "[{";
}
if (k == 220) {
keyp = "\\|";
}
if (k == 221) {
keyp = "]}";
}
keypressed = keypressed + keyp;
if ((substring(keypressed, keypressed.length - 2, 3)) == "NNN") {
r.gotoAndPlay("end");
keypressed = "";
} else if ((substring(keypressed, keypressed.length - 2, 3)) == "WIN") {
r.gotoAndPlay("win");
keypressed = "";
}
}
Frame 29
delete onEnterFrame;
Mouse.show();
fadescreen();
stop();
Symbol 3 MovieClip Frame 1
onEnterFrame = function () {
_xscale = r.persen;
};
stop();
Symbol 284 MovieClip [__Packages.GameTrack_AS2] Frame 0
class GameTrack_AS2
{
var trkConnection;
function GameTrack_AS2 (level) {
trkConnection = new LocalConnection();
loadMovieNum ("tracker.swf", level);
}
function sendEventReplay() {
trackNewEvent("replay");
}
function sendEventWin() {
trackNewEvent("win");
}
function sendEventLose() {
trackNewEvent("lose");
}
function sendEventCustom(event) {
trackNewEvent("cust_" + event);
}
function trackNewEvent(eventName) {
trkConnection.send("trkConnection", "sendTracking", eventName);
}
}
Symbol 15 MovieClip Frame 1
((!_parent.bcolor) ? (gotoAndStop(r.ballcolor)) : (gotoAndStop(_parent.bcolor)));
Symbol 16 MovieClip [ball] Frame 1
initball();
Symbol 19 MovieClip [dot] Frame 1
initdot();
Symbol 34 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 5
r.zstep1.start();
Symbol 57 MovieClip Frame 14
r.zstep2.start();
Symbol 59 MovieClip Frame 5
r.zstep1.start();
Symbol 59 MovieClip Frame 14
r.zstep2.start();
Symbol 67 MovieClip Frame 14
r.zstep1.start();
r.zstep2.start();
Symbol 67 MovieClip Frame 19
stop();
Symbol 68 MovieClip [ben] Frame 1
stop();
Symbol 73 MovieClip Frame 8
_parent.gotoAndStop(1);
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 1
if (!_parent._parent._parent.slowmoshadow) {
((_parent._parent._parent._x > 300) ? ((ro = -10)) : ((ro = 10)));
_parent._visible = false;
onEnterFrame = function () {
(r.triplebonus ? ((_parent._visible = true)(r.slow ? (_rotation = (_rotation + (ro / 3))_rotation + (ro / 3)) : (_rotation = (_rotation + ro)_rotation + ro))) : ((_parent._visible = false)));
};
}
Symbol 99 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation + 7);
};
Symbol 126 MovieClip Frame 1
ro = 10;
onEnterFrame = function () {
a._rotation = a._rotation + ro;
};
Symbol 133 MovieClip Frame 1
d = 5 + random(20);
onEnterFrame = function () {
d--;
((!d) ? (play()) : null);
};
stop();
Symbol 134 MovieClip Frame 1
gotoAndStop(_parent.id);
Symbol 139 MovieClip Frame 1
onEnterFrame = function () {
(r.big ? (gotoAndStop (2)) : (gotoAndStop (1)));
};
Symbol 141 MovieClip Frame 1
_visible = false;
onEnterFrame = function () {
(r.big ? (gotoAndStop (2)) : (gotoAndStop (1)));
};
Symbol 143 MovieClip Frame 1
_visible = false;
onEnterFrame = function () {
(r.big ? (gotoAndStop (2)) : (gotoAndStop (1)));
};
Symbol 144 MovieClip [board] Frame 1
initboard();
Symbol 149 MovieClip Frame 11
_parent.gotoAndStop(1);
Symbol 152 MovieClip Frame 13
_parent.gotoAndStop(1);
Symbol 153 MovieClip Frame 1
stop();
Symbol 159 MovieClip [ring] Frame 1
onEnterFrame = function () {
(r.big ? (gotoAndStop (2)) : (gotoAndStop (1)));
};
Symbol 162 MovieClip Frame 1
sk = _parent.sk;
Symbol 163 MovieClip [popscore] Frame 1
jiggle();
Symbol 163 MovieClip [popscore] Frame 32
disappear();
stop();
Symbol 169 MovieClip Frame 1
gotoAndStop(_parent.no);
Symbol 170 MovieClip [popmessage] Frame 1
jiggle();
Symbol 170 MovieClip [popmessage] Frame 32
disappear();
stop();
Symbol 171 MovieClip [poptriplescore] Frame 1
jiggle();
Symbol 171 MovieClip [poptriplescore] Frame 32
disappear();
stop();
Symbol 172 MovieClip [balldisappear] Frame 21
this.removeMovieClip();
stop();
Symbol 173 MovieClip [slowmoshadow] Frame 1
slowmoshadow = 1;
d = 20;
onEnterFrame = function () {
d--;
((!slow) ? ((d = -1)) : null);
((d < 0) ? (_alpha = (_alpha - 5)_alpha - 5((_alpha <= 0) ? (this.removeMovieClip()) : null)) : null);
};
stop();
Symbol 176 MovieClip [boardflash] Frame 1
onEnterFrame = function () {
_alpha = (_alpha - 10);
((_alpha <= 0) ? (this.removeMovieClip()) : null);
};
stop();
Symbol 179 MovieClip [cursor] Frame 1
onEnterFrame = function () {
_x = Math.round(_x + ((r._xmouse - _x) / 1.5));
_y = Math.round(_y + ((r._ymouse - _y) / 1.5));
};
Symbol 184 MovieClip Frame 1
((_parent.no == 3) ? (gotoAndStop (2)) : (stop()));
Symbol 185 MovieClip [popmultirings] Frame 1
jiggle();
Symbol 185 MovieClip [popmultirings] Frame 32
disappear();
stop();
Symbol 197 Button
on (press) {
r.gotoAndStop("ins");
}
Symbol 203 Button
on (press) {
_tracker = new GameTrack_AS2(22000);
r.gotoAndPlay("start");
}
Symbol 222 MovieClip Frame 1
d = 5 + random(20);
onEnterFrame = function () {
d--;
((!d) ? (play()) : null);
};
stop();
Symbol 223 MovieClip Frame 1
gotoAndStop(Number(_name));
Symbol 230 MovieClip Frame 1
_visible = false;
onEnterFrame = function () {
(r.slow ? (gotoAndStop (2)) : null);
};
stop();
Symbol 230 MovieClip Frame 2
_visible = true;
_alpha = 0;
onEnterFrame = function () {
(r.slow ? (_alpha = Math.min(100, _alpha + 10)Math.min(100, _alpha + 10)) : (_alpha = Math.min(100, _alpha - 10)Math.min(100, _alpha - 10)((_alpha <= 0) ? (gotoAndStop (1)) : null)));
};
stop();
Symbol 232 Button
on (keyPress "`") {
r.gotoAndPlay("next");
}
on (keyPress "1") {
r.gotoAndPlay("win3");
}
on (keyPress "[") {
bonuslaunch(4);
}
on (keyPress "]") {
bonuslaunch(5);
}
Symbol 234 MovieClip Frame 1
r.px = p._x;
r.py = p._y;
xs = r.pspeed;
r.act = "stand";
pymin = 10;
pymax = 200;
powermax = 31;
powermin = 15;
powerrange = powermax - powermin;
onMouseDown = function () {
if (r.hold and (!stat.speaker.hitTest(r._xmouse, r._ymouse, 1))) {
powerdiv = (pymax - Math.max(pymin, Math.min(pymax, r._ymouse))) / (pymax - pymin);
delete onEnterFrame;
delete onMouseDown;
gotoAndPlay ("shoot");
}
};
onEnterFrame = function () {
r.oldx = r.px;
r.px = Math.max(r.xmin, Math.min(r._xmouse, r.xmax));
r.py = Math.max(r.ymin, Math.min(r._ymouse, r.ymax));
dx = r.px - p._x;
((Math.abs(dx) > 1) ? (((dx > 0) ? ((r.hd = 1)) : ((r.hd = 2)))) : null);
if (Math.abs(dx) > Math.abs(xs)) {
runtime++;
moving = 500;
((dx > 0) ? ((nx = p._x + xs)) : ((nx = p._x - xs)));
p._x = nx;
} else {
if (runtime > 3) {
p._x = r.px;
moving = (runtime = 0);
} else if (Math.abs(dx) > 3) {
p._x = r.px;
moving = 500;
}
((moving > 495) ? ((moving = 5)) : (((moving > 5) ? ((moving = 0)) : null)));
}
((moving > 0) ? (moving--) : null);
r.act = "run";
if (Math.abs(r.oldx - r.px) < 1) {
((((!moving) or (p._x == r.xmax)) or (p._x == r.xmin)) ? ((r.act = "stand")) : null);
}
p.gotoAndStop(r.act + r.hold);
((r.hd == 1) ? ((p._xscale = 100)) : ((p._xscale = -100)));
if (!r.hold) {
closeball = undefined;
balldist = 1000;
var _local1 = 0;
while (_local1 < r.balls.length) {
if (r.balls[_local1]._y > 270) {
dx = Math.abs(r.balls[_local1]._x - p._x);
if ((dx < 40) and (dx < balldist)) {
balldist = dx;
closeball = r.balls[_local1];
}
}
_local1++;
}
if (balldist < 1000) {
r.hold = 1;
r.ballcolor = closeball.bcolor;
r.balls.removeValue(closeball);
closeball.removeMovieClip();
r.zgrab.start();
}
}
};
stop();
Symbol 234 MovieClip Frame 4
p.gotoAndStop("shoot");
p._xscale = 100;
d = 19;
onEnterFrame = function () {
d--;
if (d == 9) {
makeball(r.ballcolor, p._x, p._y - 180, 0, -(powermin + (powerdiv * powerrange)));
r.hold = (r.ballcolor = 0);
}
((!d) ? (gotoAndPlay (1)) : null);
};
stop();
Symbol 242 Button
on (release) {
r.music = 0;
r.zloop.setVolume(0);
r.zgrab.setVolume(0);
gotoAndStop (2);
}
Symbol 246 Button
on (release) {
r.music = 1;
r.zloop.setVolume(100);
r.zgrab.setVolume(100);
gotoAndStop (1);
}
Symbol 247 MovieClip Frame 1
(r.music ? (stop()) : (gotoAndStop (2)));
Symbol 256 MovieClip Frame 1
low = 200;
onEnterFrame = function () {
((r.waktu <= low) ? (gotoAndStop (2)) : null);
};
stop();
Symbol 256 MovieClip Frame 2
d = (delay = 20);
onEnterFrame = function () {
d--;
if (!d) {
d = delay;
r.ztic.start();
_parent.black.tint(5, 16683666);
}
((r.timer > low) ? (gotoAndStop (1)) : null);
};
stop();
Symbol 257 MovieClip Frame 1
accel = 0.8;
convert = 0.5;
xs = 0;
onEnterFrame = function () {
r.waktu--;
persen = (r.waktu / r.waktumax) * 100;
xs = (xs * accel) + ((persen - b._xscale) * convert);
b._xscale = b._xscale + xs;
if (r.waktu > 0) {
} else {
(r.gotoAndPlay("end"));// not popped
}
};
stop();
Symbol 269 Button
on (press) {
_tracker.sendEventReplay();
r.gotoAndPlay("start");
}
Symbol 280 MovieClip Frame 1
ang = r.ang;
oldang = loadcookie("ang");
if (!oldang) {
savecookie("ang", r.ang);
stop();
} else if (r.ang > oldang) {
savecookie("ang", r.ang);
gotoAndStop (3);
} else {
gotoAndStop (2);
}