Frame 1
fscommand ("trapallkeys", 1);
fscommand ("allowscale", 0);
Stage.showMenu = false;
fr.swapDepths(200010);
Frame 2
_global.r = this;
onEnterFrame = function () {
persen = Math.floor((this.getBytesLoaded() / this.getBytesTotal()) * 100);
if (persen == 100) {
r.mute = 0;
r.udamusik = 0;
delete onEnterFrame;
gotoAndPlay ("menu");
}
};
stop();
Frame 10
MovieClip.prototype.popfusiontext = function (xx, yy, tipe) {
xx = Math.min(520, Math.max(80, xx));
yy = Math.min(380, Math.max(55, yy));
m2.attachMovie("fusiontext", "fusiontext", r.popd, {_x:xx, _y:yy, tipe:tipe});
r.popd++;
};
MovieClip.prototype.snapshot = function (dest, sourc, x1, y1, wid, hei, ska, bx, by) {
if (!ska) {
ska = 1;
}
var _local1 = new flash.display.BitmapData(wid, hei, false, 16777215);
var _local2 = new flash.geom.Matrix();
_local2.scale(ska, ska);
_local2.translate(-x1, -y1);
_local1.draw(sourc, _local2, null, null, new flash.geom.Rectangle(0, 0, wid, hei), true);
if ((bx + by) > 0) {
_local1.applyFilter(_local1, new flash.geom.Rectangle(0, 0, wid, hei), new flash.geom.Point(0, 0), new flash.filters.BlurFilter(bx, by, 1));
}
if (dest instanceof MovieClip) {
dest.attachBitmap(_local1, 1, "auto", true);
} else {
dest.copyPixels(_local1, new flash.geom.Rectangle(0, 0, wid, hei), new flash.geom.Point(0, 0));
}
};
MovieClip.prototype.flashing = function () {
var t = this;
t.onEnterFrame = function () {
t._rotation = random(360);
t._xscale = 80 + random(50);
t._yscale = t._xscale;
t._alpha = 20 + random(80);
};
};
MovieClip.prototype.popskor = function (xx, yy, sk, ptipe, perfect) {
if (!perfect) {
r.zskor.start();
xx = Math.min(550, Math.max(50, xx));
yy = Math.min(350, Math.max(55, yy));
} else {
r.zperfect.start();
xx = Math.min(520, Math.max(80, xx));
yy = Math.min(350, Math.max(105, yy));
}
m2.attachMovie("popsk", "popskor", r.popd, {skor:sk, _x:xx, _y:yy, tipe:ptipe, perfect:perfect});
r.popd++;
};
MovieClip.prototype.initpopup2 = function (delay) {
var t = this;
t.d = delay;
t._alpha = 0;
t.ys = -3;
t.onEnterFrame = function () {
t.d--;
if (!t.d) {
t.onEnterFrame = function () {
t._y = t._y + t.ys;
t.ys = t.ys * 0.82;
if (Math.abs(t.ys) < 0.1) {
delete t.onEnterFrame;
}
t._alpha = Math.min(100, t._alpha + 15);
};
t.stop();
}
};
};
MovieClip.prototype.cekfirstgot = function () {
var _local2 = 0;
while (_local2 < r.pins.length) {
var _local1 = r.pins[_local2];
if (_local1.hitTest(r._xmouse, r._ymouse, 1)) {
_local1.hit = 1;
r.wrong = 0;
r.oktipe = _local1.tipe;
pz._x = -1000;
pz._y = -1000;
pz._alpha = 50;
pz.gotoAndStop(r.oktipe);
r.firstdelay = 10;
r.drag.gotoAndPlay("run");
delete onMouseDown;
return(1);
}
_local2++;
}
if (r.secs <= 0) {
if (!r.lose) {
r.lose = 1;
r.drag.gotoAndPlay("end");
}
}
return(0);
};
MovieClip.prototype.ceklap = function () {
var _local2 = 5;
var _local5 = 0;
while (_local5 < (r.pins.length - 1)) {
var _local3 = r.pins[_local5];
var _local4 = _local5 + 1;
while (_local4 < r.pins.length) {
var _local1 = r.pins[_local4];
if (Math.abs(_local3._x - _local1._x) < _local2) {
if (Math.abs(_local3._y - _local1._y) < _local2) {
if (_local1._x < _local3._x) {
_local1._x = _local1._x - _local2;
} else {
_local1._x = _local1._x + _local2;
}
if (_local1._y < _local3._y) {
_local1._y = _local1._y - _local2;
} else {
_local1._y = _local1._y + _local2;
}
}
}
_local4++;
}
_local5++;
}
};
MovieClip.prototype.collect = function (it) {
r.zcollect.start();
p.attachMovie("pinc", "pin" + r.bc, r.bc, {tipe:it.tipe, _x:0, dep:r.bc});
r.got.unshift(p["pin" + r.bc]);
r.bc--;
r.pins.removeValue(it);
it.removeMovieClip();
r.pzska = r.pinzska[r.got.length];
r.nocollect = 4;
if (r.got.length > 1) {
var _local1 = 1;
while (_local1 < r.got.length) {
r.got[_local1]._y = r.got[_local1]._y - r.yspacing;
_local1++;
}
if (r.got[0].tipe != r.got[1].tipe) {
r.nocollect = 999;
r.wrong = 1;
}
}
};
MovieClip.prototype.make = function (tipe, xx, yy) {
if (!xx) {
xx = 12 + random(576);
}
if (!yy) {
yy = 48 + random(340);
}
m.attachMovie("pin", "pin" + r.bd, r.bd, {_x:xx, _y:yy, tipe:tipe});
r.pins.push(m["pin" + r.bd]);
r.bd++;
};
MovieClip.prototype.make2 = function (tipe) {
var _local5 = 12 + random(576);
var _local4 = 48 + random(340);
var _local1 = 5;
var _local3 = 0;
while (_local3 < r.pins.length) {
var _local2 = r.pins[_local3];
if (Math.abs(_local2._x - _local5) < _local1) {
if (Math.abs(_local2._y - _local4) < _local1) {
if (_local5 < _local2._x) {
_local5 = _local5 - _local1;
} else {
_local5 = _local5 + _local1;
}
if (_local4 < _local2._y) {
_local4 = _local4 - _local1;
} else {
_local4 = _local4 + _local1;
}
}
}
_local3++;
}
m.attachMovie("pinappear", "pin" + r.bd, r.bd, {_x:_local5, _y:_local4, tipe:tipe});
r.bd++;
};
MovieClip.prototype.ripple = function (xsize, ysize, speed, blend) {
var t = this;
t.output = new flash.display.BitmapData(t._width, t._height);
t.offset = new flash.geom.Point(0, 0);
t.yspeed = 100;
t.ran = Math.random() + Math.random();
t.onEnterFrame = function () {
t.offset.y = t.offset.y - speed;
t.output.perlinNoise(xsize, ysize, 1, t.ran, true, true, 1, true, t.offset);
t.filters = [new flash.filters.DisplacementMapFilter(t.output, t.output, 0, 1, t.yspeed, t.yspeed)];
t.blendMode = blend;
};
};
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.randomize = function () {
return(this.sort(function (a, b) {
return(((Math.floor(Math.random() * 2) == 0) ? 1 : -1));
}));
};
Array.prototype.copy = Array.prototype.slice;
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.fadescreen = function (speed) {
if (!speed) {
speed = 5;
}
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();
}
};
};
MovieClip.prototype.findang = function (dx, dy) {
return(deg(math.atan2(dy, dx)));
};
MovieClip.prototype.rad = function (qdeg) {
return(qdeg * (Math.PI/180));
};
MovieClip.prototype.deg = function (qrad) {
return(qrad * 57.2957795130823);
};
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.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.wait = function (delay) {
this.createEmptyMovieClip("wdl", 55555);
this.wdl.delay = delay;
this.wdl.onenterframe = function () {
this.delay--;
if (!this.delay) {
delete this.onenterframe;
this._parent.play();
this.removeMovieClip();
}
};
this.stop();
};
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].copy();
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++;
}
}
};
MovieClip.prototype.jiggle = function (beginska) {
var t = this;
if (!beginska) {
beginska = 200;
}
t._xscale = (t._yscale = beginska);
t.ska = 100;
t.dx = 0;
t.dv = 0.9;
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;
};
};
Frame 17
call("pro");
fadescreen();
stop();
Frame 25
call("pro");
fadescreen();
stop();
Frame 32
_global.m = this.map;
_global.m2 = this.map2;
m2.attachMovie("player", "player", 10);
_global.p = m2.player;
_global.pz = m.pinzone;
pz._alpha = 0;
delete onEnterFrame;
call("pro");
fadescreen(10);
if (!level) {
level = 1;
totalang = (totalgot = 0);
}
radius = 22;
radius2 = radius * radius;
halfrad = radius / 2;
leveltotal = [0, 50, 60, 70, 80, 90, 100, 110, 120];
waktu = [0, 40, 50, 60, 70, 80, 90, 100, 110];
secs = (secs2 = waktu[level] * 30);
totalpin = leveltotal[level];
bt1 = Math.floor(0.32 * totalpin);
bt2 = Math.floor(0.28 * totalpin);
bt3 = Math.floor(0.24 * totalpin);
bt4 = ((totalpin - bt1) - bt2) - bt3;
btotal = [bt1, bt2, bt3, bt4];
btotal.randomize();
pztemp = 100;
pzska = 100;
pinzska = [];
pinzhalfrad = [];
var i = 0;
while (i < totalpin) {
r.pinzska.push(pztemp);
r.pinzhalfrad.push((pztemp / 100) * halfrad);
pztemp = pztemp + 20;
i++;
}
pins = [];
flyingpins = [];
warna = [1, 2, 3, 4];
got = [];
secbonus = 100;
totalangtemp = totalang;
totalgottemp = totalgot;
nil = 100;
ymin = 35;
ymax = 370;
xmin = 30;
xmax = 570;
yspacing = 8;
nocollect = 0;
ang = (fusing = (wrong = (oktipe = (finish = (lose = (gotsum = 0))))));
bd = 1000;
bc = 1000;
popd = 2000;
resetrandom();
if (!r.udamusik) {
r.udamusik = 1;
stopAllSounds();
r.createEmptyMovieClip("sfx", 60001);
allsfx = ["ztic", "zcollect", "zswoosh", "zbonus", "zskor", "zwrong", "zperfect", "zappear"];
var i = 0;
while (i < allsfx.length) {
r[allsfx[i]] = new Sound(sfx);
r[allsfx[i]].attachSound(allsfx[i]);
i++;
}
r.createEmptyMovieClip("sfx2", 60002);
r.zloop = new Sound(sfx2);
r.zloop.attachSound("zloop");
r.zloop.start(0, 99999);
}
if (!r.mute) {
r.zcollect.setVolume(100);
r.zloop.setVolume(100);
} else {
r.zcollect.setVolume(0);
r.zloop.setVolume(0);
}
bg.ripple(3, 4, -3, 20);
m2.attachMovie("levelinfo", "levelinfo", popd, {_x:300, _y:180});
var f = 0;
while (f < r.warna.length) {
var i = 0;
while (i < r.btotal[f]) {
make(r.warna[f]);
i++;
}
f++;
}
ceklap();
onEnterFrame = function () {
if (r.nocollect > 0) {
r.nocollect--;
}
};
stop();
Frame 33
gotoAndPlay ("start");
Frame 40
r.level++;
if (r.level >= r.leveltotal.length) {
gotoAndPlay ("win");
} else {
gotoAndPlay ("start");
}
Frame 46
fadescreen();
a.num = totalang;
stop();
Frame 52
fadescreen();
stop();
Symbol 11 MovieClip [dialpal2] Frame 7
stop();
Symbol 14 MovieClip Frame 1
onEnterFrame = function () {
_xscale = r.persen;
};
stop();
Symbol 280 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 32 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 47 MovieClip [pin] Frame 1
d = 3;
onEnterFrame = function () {
if (hit) {
_x = (p._x + ((_x - p._x) / 3));
_y = (p._y + ((_y - p._y) / 3));
d--;
if (!d) {
collect(this);
}
}
};
stop();
Symbol 52 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 53 MovieClip [pinfly] Frame 1
ys = 0;
xs = 70;
grav = 1;
onEnterFrame = function () {
a._x = a._x + xs;
a._y = a._y + ys;
ys = ys + grav;
if (a._x > 600) {
this.removeMovieClip();
}
};
stop();
Symbol 65 Button
on (release) {
if (number.counting) {
number.counting = 0;
} else {
r.gotoAndPlay("next");
_parent.removeMovieClip();
}
}
Symbol 86 MovieClip Frame 1
jiggle(125);
Symbol 87 MovieClip Frame 1
a.num = "";
Symbol 87 MovieClip Frame 19
counting = 1;
countspeed = 10;
r.ztic.start(0, 999999);
n = 0;
onEnterFrame = function () {
a.num = n;
n = n + (countspeed * r.secbonus);
r.secs = r.secs - countspeed;
r.timer.b._xscale = (r.secs / r.secs2) * 100;
if (n >= _parent.tbonus) {
n = _parent.tbonus;
counting = 0;
}
if (!counting) {
r.ztic.stop();
delete onEnterFrame;
gotoAndStop ("ok");
}
};
stop();
Symbol 87 MovieClip Frame 20
r.zskor.start();
a.num = _parent.tbonus;
c.b.num = r.totalang;
r.timer.b._xscale = 0.001;
stop();
Symbol 88 MovieClip [fininfo] Frame 1
tbonus = r.secs * r.secbonus;
r.totalang = r.totalang + (r.ang + tbonus);
_yscale = 120;
_xscale = 120;
ska = 100;
dx = 0;
dv = 0.9;
dvstep = 0.5;
onEnterFrame = function () {
dx = (dx * dvstep) + ((ska - _xscale) * dv);
_xscale = (_xscale + dx);
_yscale = _xscale;
};
Symbol 98 Button
on (release) {
_tracker.sendEventReplay();
r.totalgot = (r.totalang = 0);
r.gotoAndPlay("retry");
_parent.removeMovieClip();
}
Symbol 103 MovieClip [loseinfo] Frame 1
a.num = r.totalangtemp;
_yscale = 120;
_xscale = 120;
ska = 100;
dx = 0;
dv = 0.9;
dvstep = 0.5;
onEnterFrame = function () {
dx = (dx * dvstep) + ((ska - _xscale) * dv);
_xscale = (_xscale + dx);
_yscale = _xscale;
};
stop();
Symbol 110 MovieClip Frame 1
a = r.level;
Symbol 111 MovieClip [levelinfo] Frame 10
jiggle();
Symbol 111 MovieClip [levelinfo] Frame 43
onEnterFrame = function () {
_y = (_y-1);
_alpha = (_alpha - 20);
if (_alpha <= 0) {
r.timer.begin = true;
onEnterFrame = function () {
if (cekfirstgot()) {
this.removeMovieClip();
}
};
}
};
stop();
Symbol 116 MovieClip Frame 12
stop();
Symbol 117 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 120 MovieClip Frame 1
if (!_parent._parent.perfect) {
sk = _parent._parent.skor;
} else {
sk = _parent._parent.skor + " x 2";
}
Symbol 122 MovieClip Frame 1
if (!_parent._parent.perfect) {
sk = _parent._parent.skor;
} else {
sk = _parent._parent.skor + " x 2";
}
Symbol 124 MovieClip Frame 1
if (!_parent._parent.perfect) {
sk = _parent._parent.skor;
} else {
sk = _parent._parent.skor + " x 2";
}
Symbol 126 MovieClip Frame 1
if (!_parent._parent.perfect) {
sk = _parent._parent.skor;
} else {
sk = _parent._parent.skor + " x 2";
}
Symbol 127 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 142 MovieClip Frame 1
if (_parent.perfect) {
gotoAndStop (2);
} else {
stop();
}
Symbol 143 MovieClip [popsk] Frame 1
jiggle();
Symbol 143 MovieClip [popsk] Frame 25
if (!perfect) {
gotoAndStop ("out");
}
Symbol 143 MovieClip [popsk] Frame 45
onEnterFrame = function () {
_y = (_y-1);
if (_alpha > 0) {
_alpha = (_alpha - 20);
} else {
this.removeMovieClip();
}
};
stop();
Symbol 148 MovieClip Frame 6
stop();
Symbol 149 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 150 MovieClip [pinappear] Frame 1
r.zappear.start();
d = 5;
onEnterFrame = function () {
d--;
if (!d) {
make(tipe, _x, _y);
this.removeMovieClip();
}
};
stop();
Symbol 154 MovieClip Frame 1
flashing();
Symbol 156 MovieClip Frame 1
flashing();
Symbol 158 MovieClip Frame 1
flashing();
Symbol 161 MovieClip Frame 1
flashing();
Symbol 164 MovieClip Frame 14
stop();
Symbol 165 MovieClip [explosion] Frame 14
this.removeMovieClip();
Symbol 171 MovieClip [dialpal1] Frame 7
stop();
Symbol 180 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 181 MovieClip [fusiontext] Frame 1
jiggle();
Symbol 181 MovieClip [fusiontext] Frame 28
onEnterFrame = function () {
_y = (_y-1);
_alpha = (_alpha - 20);
if (_alpha <= 0) {
this.removeMovieClip();
}
};
stop();
Symbol 187 Button
on (release) {
r.gotoAndPlay("ins");
}
Symbol 194 Button
on (release) {
_tracker = new GameTrack_AS2(22000);
r.gotoAndPlay("start");
}
Symbol 218 MovieClip Frame 1
gotoAndStop(r.level);
Symbol 223 MovieClip [pinzone] Frame 1
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 2
maxspeed = r.radius - 0.1;
maxspeed2 = maxspeed * maxspeed;
div = 2;
fuse = false;
p._x = r._xmouse;
p._y = r._ymouse;
pressing = 0;
psk = 1;
accel = 0.8;
convert = 0.2;
onMouseDown = function () {
pressing = 1;
};
onEnterFrame = function () {
if (r.got.length > 0) {
psk = (psk * accel) + ((r.pzska - pz._xscale) * convert);
pz._xscale = pz._xscale + psk;
pz._yscale = pz._xscale;
r.pzska = Math.max(100, 0.995 * r.pzska);
}
nx = r._xmouse;
ny = r._ymouse;
nx = p._x + ((nx - p._x) / div);
ny = p._y + ((ny - p._y) / div);
xs = nx - p._x;
ys = ny - p._y;
if (((xs * xs) + (ys * ys)) > maxspeed2) {
angle = Math.atan2(ys, xs);
xs = Math.cos(angle) * maxspeed;
ys = Math.sin(angle) * maxspeed;
}
nx = p._x + xs;
ny = p._y + ys;
p._x = nx;
p._y = ny;
pz._x = p._x;
pz._y = p._y;
if (r.firstdelay > 0) {
r.firstdelay--;
}
var _local5 = r.halfrad + Math.max((r.pzska / 100) * r.halfrad, pz._width / 2);
var _local6 = _local5 * _local5;
var _local4 = 0;
while (_local4 < r.pins.length) {
var _local1 = r.pins[_local4];
if (_local1.tipe == r.oktipe) {
range = _local5;
range2 = _local6;
} else if (!r.firstdelay) {
range = r.radius;
range2 = r.radius2;
} else {
range = -1;
range2 = -1;
}
var _local3 = Math.abs(p._x - _local1._x);
if (_local3 < range) {
var _local2 = Math.abs(p._y - _local1._y);
if (_local2 < range) {
if (((_local3 * _local3) + (_local2 * _local2)) < range2) {
if ((!r.nocollect) or (_local1.tipe == r.oktipe)) {
_local1.hit = 1;
r.nocollect = 999;
}
}
}
}
_local4++;
}
if (pressing) {
if (!r.wrong) {
if (r.got.length > 0) {
ok = 1;
_local4 = 0;
while (_local4 < r.pins.length) {
if (r.pins[_local4].hit) {
ok = 0;
}
_local4++;
}
if (ok) {
fuse = true;
}
}
}
}
if (r.wrong) {
delete onEnterFrame;
gotoAndPlay ("wrong");
} else if (fuse) {
delete onEnterFrame;
gotoAndPlay ("fuse");
} else if (r.secs <= 0) {
r.lose = 1;
delete onEnterFrame;
gotoAndPlay ("end");
}
};
stop();
Symbol 227 MovieClip Frame 8
m2.attachMovie("explosion", "explosion", r.popd, {_x:p._x, _y:p._y});
r.popd++;
pz._alpha = 0;
r.pzska = 100;
pz._xscale = (pz._yscale = 0);
expodingpins = [];
r.zwrong.start();
d = 5;
onEnterFrame = function () {
d--;
if (!d) {
var _local11 = Math.floor(360 / r.got.length);
var _local12 = Math.floor(_local11 / 2);
var _local13 = -50 + random(100);
var _local1 = 0;
while (_local1 < r.got.length) {
var _local2 = 70 + random(100);
var _local4 = (_local13 + (_local1 * _local11)) + random(_local12);
var _local3 = rad(_local4);
var _local6 = Math.cos(_local3) * _local2;
var _local5 = Math.sin(_local3) * _local2;
m.attachMovie("pinfly", "pin" + r.bd, r.bd, {_x:p._x + _local6, _y:p._y + _local5, _rotation:_local4, tipe:r.got[_local1].tipe});
expodingpins.push(r.got[_local1].tipe);
r.bd++;
r.got[_local1].removeMovieClip();
_local1++;
}
r.got = [];
d = 15;
sx = Math.min(10, expodingpins.length / 2);
onEnterFrame = function () {
r._x = sx;
sx = -0.9 * sx;
d--;
if (!d) {
r._x = 0;
gotoAndPlay ("wrong2");
}
};
}
};
stop();
Symbol 227 MovieClip Frame 15
d = (adelay = 2);
onEnterFrame = function () {
d--;
if (!d) {
d = adelay;
make2(expodingpins.pop());
if (!expodingpins.length) {
onEnterFrame = function () {
cekfirstgot();
};
}
}
};
stop();
Symbol 227 MovieClip Frame 23
ys = -30;
ymin = -p._y;
r.fusing = 1;
pz._alpha = 0;
r.pzska = 100;
pz._xscale = (pz._yscale = 0);
total = r.got.length;
tipe = r.got[0].tipe;
skor = Math.ceil((total * total) / 2) * r.nil;
r.gotsum = r.gotsum + total;
r.totalgottemp = r.totalgottemp + total;
if (total == r.btotal[tipe - 1]) {
perfect = true;
} else {
perfect = false;
}
popfusiontext(p._x, p._y + 30, tipe);
r.zswoosh.start();
d = (pdelay = 1);
n = 1;
onEnterFrame = function () {
d--;
if (!d) {
d = pdelay;
var _local1 = r.got.shift();
var _local2 = _local1.dep;
var _local4 = _local1._x;
var _local3 = _local1._y;
_local1.removeMovieClip();
p.attachMovie("pinfuse", "pinfuse" + _local2, _local2, {tipe:tipe, _x:_local4, _y:_local3});
n++;
if (!r.got.length) {
px = p._x + _local4;
py = p._y + _local3;
pskor = skor;
ptipe = tipe;
delete onEnterFrame;
gotoAndPlay ("fuse2");
}
}
};
stop();
Symbol 227 MovieClip Frame 29
d = 30;
onEnterFrame = function () {
d--;
if (d == 15) {
if (!perfect) {
popskor(px, py, pskor, ptipe, false);
r.ang = r.ang + skor;
r.totalangtemp = r.totalangtemp + skor;
} else {
popskor(px, py, pskor, ptipe, true);
r.ang = r.ang + (2 * skor);
r.totalangtemp = r.totalangtemp + (2 * skor);
}
}
if (!d) {
r.fusing = 0;
if (!r.pins.length) {
r.finish = 1;
delete onEnterFrame;
gotoAndPlay ("end");
} else {
onEnterFrame = function () {
cekfirstgot();
};
}
}
};
stop();
Symbol 227 MovieClip Frame 35
if (r.finish) {
r.seconds = r.waktu[r.level] - r.secs;
delete r.timer.onEnterFrame;
delete onMouseDown;
d = 20;
} else {
d = 1;
}
onEnterFrame = function () {
d--;
if (!d) {
m2.createEmptyMovieClip("bgpnonblur", r.popd);
r.popd++;
m2.createEmptyMovieClip("bgpblur", r.popd);
r.popd++;
m2._visible = 0;
snapshot(m2.bgpblur, r, 0, 0, 700, 500, 1);
snapshot(m2.bgpnonblur, r, 0, 0, 700, 500, 1);
var _local2 = new flash.filters.BlurFilter(8, 8, 3);
m2.bgpblur.filters = [_local2];
m2.bgpblur._alpha = 0;
m2._visible = 1;
m._visible = 0;
m._x = (m._y = 8000);
var clr = new Color(m2.bgpblur);
var br = 0;
d = 5;
onEnterFrame = function () {
d--;
if (d > 0) {
if (m2.bgpblur._alpha < 100) {
m2.bgpblur._alpha = Math.min(m2.bgpblur._alpha + 20, 100);
}
br = br + 3;
clr.setBrightness(br);
} else {
if ((r.level / 2) == Math.floor(r.level / 2)) {
var _local1 = "dialpal1";
} else {
var _local1 = "dialpal2";
}
m2.attachMovie(_local1, "dialpal", r.popd, {_x:300, _y:200});
r.popd++;
d = 10;
onEnterFrame = function () {
d--;
if (!d) {
if (r.finish) {
m2.attachMovie("fininfo", "fininfo", r.popd, {_x:300, _y:200});
} else {
m2.attachMovie("loseinfo", "loseinfo", r.popd, {_x:300, _y:200});
}
r.popd++;
delete onEnterFrame;
}
};
}
};
}
};
stop();
Symbol 240 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 1
begin = false;
onEnterFrame = function () {
if (begin) {
onEnterFrame = function () {
if (!r.fusing) {
r.secs--;
b._xscale = (r.secs / r.secs2) * 100;
if (r.secs > 240) {
b.gotoAndStop(1);
} else {
b.gotoAndStop(2);
}
}
};
}
};
stop();
Symbol 246 Button
on (release) {
r.mute = 1;
r.zcollect.setVolume(0);
r.zloop.setVolume(0);
gotoAndStop (2);
}
Symbol 249 Button
on (release) {
r.mute = 0;
r.zcollect.setVolume(100);
r.zloop.setVolume(100);
gotoAndStop (1);
}
Symbol 252 MovieClip Frame 1
if (r.mute) {
gotoAndStop (2);
} else {
stop();
}
Symbol 255 Button
on (release) {
r.gotoAndPlay("win2");
}
Symbol 258 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation + 8);
_alpha = (10 + random(40));
};
Symbol 259 MovieClip Frame 1
onEnterFrame = function () {
_yscale = (90 + random(10));
_xscale = (90 + random(10));
};
Symbol 273 Button
on (release) {
r.level = 0;
r.gotoAndPlay("menu");
}