Frame 1
_root.kongregateServices.connect();
function explinit() {
local_data = SharedObject.getLocal("Expl_data");
if (local_data.data.saved) {
blon = local_data.data.blon;
shon = local_data.data.shon;
gotoAndPlay (3);
} else {
perf = true;
}
}
mochi.MochiServices.connect("6f235cba14fe77a6");
if (_root.AdDone == true) {
if (random(10) > 6) {
trace("InterLevel");
MochiAd.showInterLevelAd({id:"6f235cba14fe77a6", res:"550x400", background:5604993, color:16711680, outline:16777215, no_bg:true, ad_finished:function () {
_root.AdIsDone();
}});
AdDone = false;
} else {
AdDone = true;
}
} else {
trace("PreGame");
MochiAd.showPreGameAd({id:"6f235cba14fe77a6", res:"550x400", background:5604993, color:16711680, outline:16777215, no_bg:true, ad_finished:function () {
_root.AdIsDone();
}});
_root.AdDone = false;
}
if (diff == undefined) {
var diff = 2;
CurrMode = "Medium";
_root.kongregateScores.setMode(CurrMode);
}
test = getVersion();
if (Number(test.charAt(4)) > 7) {
getFlash._visible = false;
} else {
power._visible = false;
}
perf = false;
_root.AdIsDone = function () {
trace("AdDone");
_root.AdDone = true;
};
this.setVolume(0);
this.onEnterFrame = function () {
ld = this.getBytesLoaded();
tld = this.getBytesTotal();
if (ld == tld) {
if (_root.AdDone) {
gotoAndStop (3);
}
loaded = "100%... Initializing";
} else {
loaded = (" " + Math.round((ld / tld) * 100)) + "%";
power.bar._yscale = Math.round((ld / tld) * 100);
}
};
stop();
Instance of Symbol 25 MovieClip "sfx_dummy" in Frame 2
/* no clip actions */
Instance of Symbol 127 MovieClip "rs" in Frame 2
/* no clip actions */
Frame 3
opt._visible = false;
st_l.s._visible = false;
st_l.p._visible = false;
prof.gotoAndPlay(2);
rs.cl._visible = false;
st_l._x = (st_l._y = 0);
bodemgfx.cl._visible = false;
sc_starter._visible = false;
expl_starter._visible = false;
grid_func._visible = false;
alg_func._visible = false;
HighScore._visible = false;
Bn_l.s._visible = false;
FallingBlocks.FallingS._visible = false;
var total = new Array();
var bodem = new Array();
var sp = false;
var shake = 0;
var l = 0;
Bn_l._x = 0;
Bn_l._y = -100;
MultiResult._visible = false;
MultiResult.Result = "Lost";
var md = Math.random;
var mr = Math.round;
var shx = rs._x;
var shy = rs._y;
var stains = 0;
totalColors = 4;
currColors = 3;
FallBl = 0;
var deplSpd = 0;
var TipTimer = 4;
ta = new Array();
if (sounds == undefined) {
var sounds = true;
}
if (sounds) {
sfx_dummy.duplicateMovieClip("sfx", 0);
prof.sfx_dummy.duplicateMovieClip("sfx", 0);
}
var paused = false;
var xnum = 0;
var bx = ((by = 10));
var rem = ((combo = (score = 0)));
var lvl = 1;
var end = false;
var maxtips = (prof._totalframes - 13);
var Multipl = 1;
var Bonus = 0;
var bon = 0;
var DetLimit = 3;
var gezegd = 0;
tm = 0;
if (tips == undefined) {
tips = 0;
}
Expl = 0;
var NumTypes = 7;
power.bar._yscale = 35;
initfields = function () {
numblk = 0;
var _local1 = 0;
while ((_local1++) < bx) {
total[_local1] = new Array();
bodem[_local1] = new Array();
var _local2 = 0;
while ((_local2++) < by) {
if (_local2 == 1) {
total[_local1][_local2] = NumTypes + 1;
} else if (_local2 == by) {
total[_local1][_local2] = NumTypes + 2;
} else if (_local1 == 1) {
total[_local1][_local2] = NumTypes + 3;
} else if (_local1 == bx) {
total[_local1][_local2] = NumTypes + 4;
} else {
total[_local1][_local2] = undefined;
}
}
}
total[1][1] = undefined;
total[1][by] = undefined;
total[bx][1] = undefined;
total[bx][by] = undefined;
Types = new Array();
_local1 = 0;
while (_local1 < NumTypes) {
nm = "blok" + (_local1 + 1);
Types[_local1] = rs[nm];
_local1++;
}
Types[NumTypes] = rs.boven;
Types[NumTypes + 1] = rs.onder;
Types[NumTypes + 2] = rs.links;
Types[NumTypes + 3] = rs.rechts;
rs.cl._gridinit(Types, total, 40, 40, 1, 1, bx, by, true);
bodemgfx.cl._gridinit([bodemgfx.blok], bodem, 40, 40, 1, 1, bx, by, true);
};
SetMeters = function () {
var _local1 = -45 + (((currColors - 2) / 4) * 90);
var _local3 = new mx.transitions.Tween(TypeMeter.Wijzer, "_rotation", mx.transitions.easing.Regular.easeOut, TypeMeter.Wijzer._rotation, _local1, 1, true);
var _local2 = -45 + (((DetLimit - 2) / 4) * 90);
var _local4 = new mx.transitions.Tween(DetoMeter.Wijzer, "_rotation", mx.transitions.easing.Regular.easeOut, DetoMeter.Wijzer._rotation, _local2, 1, true);
};
SetMeters();
initfields();
rs.cl.test = 0;
Parts = 0;
var blk = new Array();
blk[0] = 0;
rs.TileSent = function () {
};
Particles = function (xs, ys, xe, ye) {
xs = ((rs._x + ((xs * rs.cl.gxs) - 25)) + 10) * 1.132;
ys = (rs._y + ((ys * rs.cl.gys) - 25)) * 1.132;
xe = ((rs._x + ((xe * rs.cl.gxs) - 25)) + 10) * 1.132;
ye = (rs._y + ((ye * rs.cl.gys) - 25)) * 1.132;
var _local3 = (Math.abs(xs - xe) + Math.abs(ys - ye)) / 500;
var _local2 = 0;
while (_local2 < 5) {
xs = xs + random(8);
ys = ys + random(8);
xe = xe + random(8);
ye = ye + random(8);
_local3 = _local3 + (random(8) / 20);
Parts++;
pn = "p" + Parts;
st_l.p.duplicateMovieClip(pn, st_l.getNextHighestDepth());
st_l[pn]._visible = true;
st_l[pn]._xscale = (st_l[pn]._yscale = 50 + random(100));
this["PTweenx" + Parts] = new mx.transitions.Tween(st_l[pn], "_x", mx.transitions.easing.Regular.easeOut, xs, xe, _local3, true);
this["PTweeny" + Parts] = new mx.transitions.Tween(st_l[pn], "_y", mx.transitions.easing.Regular.easeOut, ys, ye, _local3, true);
this["PTweenx" + Parts].p = st_l[pn];
this["PTweenx" + Parts].onMotionFinished = function () {
this.p.removeMovieClip();
};
_local2++;
}
};
BonusHandle = function (Bon) {
switch (Bon) {
case 2 :
Multipl = 2;
Multi_starter.gotoAndPlay(2);
break;
case 3 :
Multipl = 3;
Multi_starter.gotoAndPlay(2);
break;
case 4 :
score = score + 1000;
break;
case 5 :
score = score + 2000;
break;
case 6 :
score = score + 5000;
break;
case 10 :
if (!Nuked) {
NukeArray = new Array();
NukeArray[0] = 0;
b = 1;
while ((b++) < (bx - 1)) {
c = 1;
while ((c++) < (by - 1)) {
if (rs.cl.grid[b][c]) {
NukeArray[0]++;
var _local1 = NukeArray[0];
NukeArray[(_local1 * 2) - 1] = b;
NukeArray[_local1 * 2] = c;
}
}
}
Nuked = true;
}
break;
case 8 :
if (DetLimit < 6) {
DetLimit++;
Det_Light.gotoAndPlay(2);
}
break;
case 9 :
if (DetLimit > 2) {
DetLimit--;
Det_Light.gotoAndPlay(2);
}
break;
case 7 :
if (currColors < (NumTypes - 1)) {
currColors++;
Type_Light.gotoAndPlay(2);
}
break;
case 11 :
if (currColors <= 2) {
break;
}
currColors--;
Type_Light.gotoAndPlay(2);
}
SetMeters();
};
rs.TileHit = function (thx, thy) {
l++;
blk[0]++;
blk[(blk[0] * 2) - 1] = thx;
blk[blk[0] * 2] = thy;
ta[l] = new Array();
ta[l] = rs.cl._gridgetgroup(thx, thy, "");
for (var _local1 in ta) {
}
};
this.CheckNonExpl = function (num, Arr) {
var _local3 = -1;
while (_local3 < 2) {
if (_local3 == 0) {
b = -1;
c = -1;
} else {
b = 0;
c = 1;
}
while (c < 2) {
var _local2 = Arr[(num * 2) - 1];
var _local1 = Arr[num * 2];
var _local6 = rs[(("col" + _local2) + "row") + _local1];
if (rs.cl.grid[_local2][_local1] < NumTypes) {
rs.cl.grid[_local2][_local1] = undefined;
rs.cl._tileupdate(_local2, _local1);
}
b++;
c++;
}
_local3++;
}
};
this.ExplodeReaction = function (cn) {
if (ta[cn][0] > (DetLimit - 1)) {
Expl++;
var _local2 = -1;
while ((_local2++) < ta[cn][0]) {
CheckNonExpl(_local2, ta[cn]);
var _local1 = 2;
while ((_local1++) < ta[cn][(_local2 * 2) - 1]) {
if (rs[(("col" + _local1) + "row") + ta[cn][_local2 * 2]].typenr != undefined) {
rs.cl._gridmovetile(_local1, ta[cn][_local2 * 2], -20, 35, 0, 0, 0, 0);
}
}
_local1 = bx - 1;
while ((_local1--) > ta[cn][(_local2 * 2) - 1]) {
if (rs[(("col" + _local1) + "row") + ta[cn][_local2 * 2]].typenr != undefined) {
rs.cl._gridmovetile(_local1, ta[cn][_local2 * 2], 20, 35, 0, 0, 0, 0);
}
}
_local1 = 2;
while ((_local1++) < ta[cn][_local2 * 2]) {
if (rs[(("col" + ta[cn][(_local2 * 2) - 1]) + "row") + _local1].typenr != undefined) {
rs.cl._gridmovetile(ta[cn][(_local2 * 2) - 1], _local1, 0, 0, 0, -20, 35, 0);
}
}
_local1 = by - 1;
while ((_local1--) > ta[cn][_local2 * 2]) {
if (rs[(("col" + ta[cn][(_local2 * 2) - 1]) + "row") + _local1].typenr != undefined) {
rs.cl._gridmovetile(ta[cn][(_local2 * 2) - 1], _local1, 0, 0, 0, 20, 35, 0);
}
}
}
}
};
this.NewBlock = function (x, y, nu) {
if (rs.cl.grid[x][y] == undefined) {
nm = (("col" + x) + "row") + y;
if (nu < NumTypes) {
if (bodemgfx[nm].num == undefined) {
bodemgfx.cl.grid[x][y] = 1;
bodemgfx.cl._tileupdate(x, y);
bodemgfx[nm].num = nu;
bodemgfx[nm].Type = nu;
bodemgfx[nm].gotoAndPlay(2);
if (sounds) {
sfx.gotoAndPlay(21);
}
}
} else {
fnm = "Falling" + FallBl;
FallingBlocks.FallingS.duplicateMovieClip(fnm, FallingBlocks.getNextHighestDepth() + 1);
fnm = FallingBlocks[fnm];
fnm.gotoAndPlay(1);
fnm.num = 7;
fnm.xt = x;
fnm.yt = y;
fnm._x = (x * 40) - 15;
fnm._y = (y * 40) - 15;
FallBl++;
}
tm = 0;
}
};
ExplCheck = function () {
l = 0;
Nuked = false;
if (ta.length > 0) {
for (var _local12 in ta) {
var _local11 = blk[(_local12 * 2) - 1];
var _local10 = blk[_local12 * 2];
var _local8 = rs.cl.grid[_local11][_local10];
if ((_local8 != undefined) and (_local8 < NumTypes)) {
if (ta[_local12][0] > (DetLimit - 1)) {
var _local2 = 0;
while ((_local2++) < ta[_local12][0]) {
var _local6 = ta[_local12][(_local2 * 2) - 1];
var _local7 = ta[_local12][_local2 * 2];
var _local3 = rs[(("col" + _local6) + "row") + _local7].Bonus.bn;
if (_local3 > 1) {
trace(_local3);
if (_local3 == 10) {
BonusHandle(10);
}
bon++;
nm = "Bonus" + bon;
Bn_l.s.duplicateMovieClip(nm, Bn_l.getNextHighestDepth());
Bn_l[nm]._visible = true;
Bn_l[nm]._x = rs._x + (((ta[_local12][(_local2 * 2) - 1] * rs.cl.gxs) - 25) * 1.032);
Bn_l[nm]._y = (rs._y + (((ta[_local12][_local2 * 2] * rs.cl.gys) - 25) * 1.032)) + 100;
Bn_l[nm].type = _local3;
Bn_l[nm].num = bon;
}
}
shake = shake + ((ta[_local12][0] + (combo * 2)) * 2);
snd = limit((5 + ta[_local12][0]) + combo, 8, 13);
sfx.gotoAndPlay(snd);
if (ta[_local12][0] > 3) {
prof.gotoAndPlay(maxtips + 5);
}
combo++;
power.bar._yscale = power.bar._yscale + (((((ta[_local12][0] * ta[_local12][0]) * (combo / 2)) / (lvl / 7)) / (diff / 3)) / 8);
deplSpd = 0;
score = score + (((((ta[_local12][0] * ta[_local12][0]) * 10) * combo) * (diff / 2)) * Multipl);
var _local9 = xnum;
var _local5 = 0;
var _local4 = 0;
_local2 = 0;
while ((_local2++) < ta[_local12][0]) {
if (rs.cl.grid[ta[_local12][(_local2 * 2) - 1]][ta[_local12][_local2 * 2]] != undefined) {
xnum++;
_local5 = _local5 + (rs._x + (((ta[_local12][(_local2 * 2) - 1] * rs.cl.gxs) - 25) * 1.132));
_local4 = _local4 + (rs._y + (((ta[_local12][_local2 * 2] * rs.cl.gys) - 25) * 1.132));
numblk--;
rs.cl.grid[ta[_local12][(_local2 * 2) - 1]][ta[_local12][_local2 * 2]] = undefined;
rs[(("col" + ta[_local12][(_local2 * 2) - 1]) + "row") + ta[_local12][_local2 * 2]].removeMovieClip();
}
}
nm = "ex" + xnum;
scnm = "sc" + xnum;
stnm = "st" + xnum;
_local5 = _local5 / (xnum - _local9);
_local4 = _local4 / (xnum - _local9);
expl_starter.duplicateMovieClip(nm, expl_starter._parent.getNextHighestDepth());
expl_starter._parent[nm]._x = _local5;
expl_starter._parent[nm]._y = _local4;
expl_starter._parent[nm]._xscale = 60 + (ta[_local12][0] * 10);
expl_starter._parent[nm]._yscale = 60 + (ta[_local12][0] * 10);
sc_starter.duplicateMovieClip(scnm, this.getNextHighestDepth());
sc_starter._parent[scnm]._x = _local5;
sc_starter._parent[scnm]._y = _local4;
st_l.s.duplicateMovieClip(stnm, st_l.getNextHighestDepth());
st_l[stnm].play();
st_l[stnm]._visible = true;
st_l[stnm].s.gotoAndStop(random(4));
st_l[stnm]._x = _local5;
st_l[stnm]._y = _local4;
if (combo > 1) {
if (ta[_local12][0] < 4) {
prof.gotoAndPlay(maxtips + 5);
}
sc_starter._parent[scnm].score = ("COMBO! " + combo) + "X ";
} else {
sc_starter._parent[scnm].score = " ";
}
sc_starter._parent[scnm].score = sc_starter._parent[scnm].score + ("+" + ((((ta[_local12][0] * ta[_local12][0]) * 10) * (diff / 2)) * Multipl));
pressed = undefined;
} else if (combo < 1) {
TipTimer++;
if (TipTimer > (12 + tips)) {
if (tips < (maxtips - 2)) {
if (prof._currentframe == 1) {
prof.gotoAndPlay(3 + tips);
tips++;
TipTimer = 0;
}
}
}
}
if (!Nuked) {
ExplodeReaction(_local12);
}
}
}
} else {
ComboDone();
}
blk[0] = 0;
l = 0;
ta = new Array();
if (Nuked) {
ta[1] = new Array();
ta[1] = NukeArray;
blk[1] = NukeArray[1];
blk[2] = NukeArray[2];
}
};
ComboDone = function () {
if (_parent._parent.MultiPlayer) {
if (combo > 1) {
}
}
combo = 0;
};
this.onKeyDown = function () {
if (Key.isDown(32)) {
if (prof._currentframe < 2) {
if (opt._visible == false) {
if (paused) {
paused = false;
} else {
paused = true;
}
psw = false;
}
}
}
};
this.onEnterFrame = function () {
if (score_vis < score) {
score_vis = score_vis + 1;
score_vis = Math.round((score + Number(score_vis)) / 2);
} else if (score_vis > score) {
score_vis = score;
}
if (paused) {
if (sp) {
paused = false;
}
if (!psw) {
psw = true;
}
} else {
if (rs.cl.MovingTiles < 1) {
if (ExplTest) {
ExplCheck();
ExplTest = false;
} else {
ExplTest = true;
}
}
if (opt._visible) {
paused = true;
}
if (sp) {
paused = true;
}
if (!psw) {
rs._visible = true;
bodemgfx._visible = true;
st_l._visible = true;
psw = true;
}
if (shake > 1) {
var _local5 = shake * (random(5) - 2);
var _local4 = shake * (random(5) - 2);
rs._x = rs._x + _local5;
rs._y = rs._y + _local4;
bodemgfx._x = bodemgfx._x + (_local5 / 2);
bodemgfx._y = bodemgfx._y + (_local4 / 2);
st_l._x = st_l._x + (_local5 / 2);
st_l._y = st_l._y + (_local4 / 2);
shake = shake / 1.3;
if (random(8) > 5) {
_local5 = rs._x - shx;
_local4 = rs._y - shy;
rs._x = shx;
rs._y = shy;
bodemgfx._x = shx;
bodemgfx._y = shy;
st_l._x = 0;
st_l._y = 0;
}
} else if (shake > 0) {
rs._x = shx;
rs._y = shy;
bodemgfx._x = shx;
bodemgfx._y = shy;
shake = shake - 0.2;
} else if (power.bar._yscale > 100) {
power.bar._yscale = 100;
power.gotoAndPlay(2);
}
if (prof._currentframe < 2) {
if (!paused) {
if (shake < 1) {
if (power.bar._yscale > 0) {
power.bar._yscale = power.bar._yscale - (((((lvl / 60) * (diff / 2.4)) * (18 / (DetLimit * currColors))) + (deplSpd / 600)) / 8);
deplSpd++;
} else if (!end) {
if (_parent._parent.MultiPlayer) {
if (MultiResult._visible == false) {
_parent._parent.SendMultiPlayer("Lost", _global.ThisPlayer);
MultiResult.gotoAndPlay(1);
}
prof.gotoAndPlay(maxtips + 1);
end = true;
MultiResult._visible = true;
} else {
end = true;
prof.gotoAndPlay(maxtips + 1);
if (HighScore.KongregateMode) {
HighScore._visible = true;
HighScore.ScoreCheck();
_root.kongregateStats.submit("Explosions Per Game", Expl);
_root.kongregateStats.submit("Batteries", lvl_vis);
_root.kongregateStats.submit("Total Explosions", Expl);
_root.kongregateStats.submit("ScoreOn" + CurrMode, score);
_root.kongregateStats.submit("BatteriesOn" + CurrMode, lvl_vis);
} else {
mochi.MochiScores.showLeaderboard({boardID:"ee78912cce823fd4", score:score});
}
}
}
}
}
}
if (numblk < 300) {
tm++;
if (tm > (((numblk * numblk) / 20) + 3)) {
if (rem < 1) {
if (rem < 0) {
rem = 0;
}
x = mr((md() * 8) + 2);
y = mr((md() * 8) + 2);
nu = random(currColors) + 1;
NewBlock(x, y, nu);
if (power.bar._yscale < 8) {
gezegd--;
if (gezegd < 1) {
power.alarm.gotoAndPlay(2);
sfx.gotoAndPlay(16);
gezegd = 25;
}
}
} else if (tm > 100) {
if (prof._currentframe < 2) {
if (!paused) {
rem = 0;
tm = 0;
}
}
}
}
}
}
};
stop();
Instance of Symbol 207 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_parent.paused) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 331 MovieClip "prof" in Frame 3
/* no clip actions */
Frame 4
this._parent._parent.GameLoaded();
_root.OutPut = _root.OutPut + "\n Opening Menu";
MultiResult._visible = false;
MultiResult.gotoAndPlay(1);
gotoAndPlay (1);
stop();
Symbol 9 Button
on (release) {
getURL ("http://www.ronimo-games.com/", _blank);
}
Symbol 475 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.31");
}
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 get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 476 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.3");
}
static function showPreGameAd(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();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = _parseOptions(options, _local27);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
return(undefined);
}
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_failed();
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 = options.ad_loaded;
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) {
options.ad_failed();
_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 showInterLevelAd(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();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
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_failed();
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.adLoaded = options.ad_loaded;
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) {
options.ad_failed();
_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 showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
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 _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
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 _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
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_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
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 _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
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 _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_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++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
}
Symbol 477 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 478 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 479 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 480 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 481 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 482 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 25 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 2
stop();
Symbol 25 MovieClip Frame 3
stop();
Symbol 25 MovieClip Frame 4
stop();
Symbol 25 MovieClip Frame 5
stop();
Symbol 25 MovieClip Frame 6
stop();
Symbol 25 MovieClip Frame 7
stop();
Symbol 25 MovieClip Frame 8
stop();
Symbol 25 MovieClip Frame 9
stop();
Symbol 25 MovieClip Frame 10
stop();
Symbol 25 MovieClip Frame 11
stop();
Symbol 25 MovieClip Frame 12
stop();
Symbol 25 MovieClip Frame 13
stop();
Symbol 25 MovieClip Frame 14
stop();
Symbol 25 MovieClip Frame 15
stop();
Symbol 25 MovieClip Frame 16
stop();
Symbol 25 MovieClip Frame 17
stop();
Symbol 25 MovieClip Frame 18
stop();
Symbol 25 MovieClip Frame 19
stop();
Symbol 25 MovieClip Frame 20
stop();
Symbol 25 MovieClip Frame 21
stop();
Symbol 36 Button
on (release) {
if (_parent._parent.rem < 1) {
var i = 1;
while ((i++) < (_parent._parent.bx - 1)) {
if (_parent[(("col" + i) + "row") + this.yt].typenr != undefined) {
_parent.cl._gridmovetile(i, this.yt, -8, 35, 0, 0, 0, 0);
_parent._parent.Particles(i, this.yt, 0, this.yt);
}
}
_parent._parent.pressed = this.yt;
_parent._parent.prestype = "y";
}
}
Symbol 38 Button
on (release) {
if (_parent._parent.rem < 1) {
i = _parent._parent.bx - 1;
while (i > 1) {
if (_parent[(("col" + i) + "row") + this.yt].typenr != undefined) {
_parent.cl._gridmovetile(i, this.yt, 8, 35, 0, 0, 0, 0);
_parent._parent.Particles(i, this.yt, 10, this.yt);
}
i--;
}
_parent._parent.pressed = this.yt;
_parent._parent.prestype = "y";
}
}
Symbol 40 Button
on (release) {
if (_parent._parent.rem < 1) {
i = 2;
while (i < _parent._parent.by) {
if (_parent[(("col" + this.xt) + "row") + i].typenr != undefined) {
_parent.cl._gridmovetile(this.xt, i, 0, 0, 0, -8, 35, 0);
_parent._parent.Particles(this.xt, i, this.xt, 0);
}
i++;
}
_parent._parent.pressed = this.xt;
_parent._parent.prestype = "x";
}
}
Symbol 42 Button
on (release) {
if (_parent._parent.rem < 1) {
i = _parent._parent.by - 1;
while (i > 1) {
if (_parent[(("col" + this.xt) + "row") + i].typenr != undefined) {
_parent.cl._gridmovetile(this.xt, i, 0, 0, 0, 8, 35, 0);
_parent._parent.Particles(this.xt, i, this.xt, 10);
}
i--;
}
_parent._parent.pressed = this.xt;
_parent._parent.prestype = "x";
}
}
Instance of Symbol 41 MovieClip "boven" in Symbol 44 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 41 MovieClip "boven" in Symbol 44 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 41 MovieClip "boven" in Symbol 44 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 41 MovieClip "boven" in Symbol 44 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 41 MovieClip "boven" in Symbol 44 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 41 MovieClip "boven" in Symbol 44 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 41 MovieClip "boven" in Symbol 44 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 41 MovieClip "boven" in Symbol 44 MovieClip Frame 1
/* no clip actions */
Symbol 50 MovieClip Frame 1
Symbol 55 MovieClip Frame 1
this._visible = false;
var mf = Math.floor;
this._tileupdate = function (xt, yt) {
var _local2 = (("col" + xt) + "row") + yt;
this.diepte = (this.gridbreed * (yt - 1)) + xt;
this._parent[_local2].removeMovieClip();
if (this.grid[xt][yt] != undefined) {
duplicateMovieClip (this.objects[this.grid[xt][yt] - 1], _local2, this.diepte);
this._parent[_local2]._visible = true;
this._parent[_local2]._x = (xt - this.gxb) * this.gxs;
this._parent[_local2]._y = (yt - this.gyb) * this.gys;
this._parent[_local2].typenr = this.grid[xt][yt] - 1;
this._parent[_local2].xt = xt;
this._parent[_local2].yt = yt;
if (random(20) > 12) {
var _local6 = Math.floor(random(this._parent[_local2].Bonus._totalframes));
var _local5 = Math.floor(random(this._parent[_local2].Bonus._totalframes)) + 1;
if (_local5 < (random(this._parent[_local2].Bonus._totalframes) + 2)) {
this._parent[_local2].Bonus.bn = _local5;
}
} else {
this._parent[_local2].Bonus.bn = 0;
}
if (this.autoscale) {
this._parent[_local2]._width = this.gxs;
this._parent[_local2]._height = this.gys;
}
}
};
this._gridupdate = function () {
var _local3 = this.gyb - 1;
while (_local3++ , _local3 < (this.gye + 1)) {
var _local2 = this.gxb - 1;
while (_local2++ , _local2 < (this.gxe + 1)) {
this._tileupdate(_local2, _local3);
}
}
};
this._gridinit = function (objects, grid, xtilesize, ytilesize, xtilesnumstart, ytilesnumstart, xtilesnumend, ytilesnumend, autoscale) {
EventDispatcher.initialize(this);
for (var _local3 in objects) {
if (objects[_local3]._x != undefined) {
objects[_local3]._visible = false;
} else {
gridinit = false;
}
}
this.objects = objects;
this.gridinit = true;
this.griddroplast = new Array();
this.grid = grid;
this.objectarray = objects;
this.gxs = xtilesize;
this.gys = ytilesize;
this.gxb = xtilesnumstart;
this.gyb = ytilesnumstart;
this.gxe = xtilesnumend;
this.gye = ytilesnumend;
this.autoscale = autoscale;
this.gridbreed = this.gxe - (this.gxb - 1);
this.gridhoog = this.gye - (this.gyb - 1);
this.diepte = 0;
this._gridupdate();
this.MovingTiles = 0;
this.gs = 1;
};
this._gridfinishmovetile = function (tile) {
this._tileupdate(tile.glx, tile.gly);
this.MovingTiles--;
n = (("col" + tile.glx) + "row") + tile.gly;
this._parent[n].Bonus.bn = tile.Bonus.bn;
this._parent.TileHit(tile.glx, tile.gly);
tile.removeMovieClip();
};
this._gridmovetile = function (column, row, xacc, xmaxspd, xp, yacc, ymaxspd, yp) {
n = (("col" + column) + "row") + row;
if (this._parent[n].typenr != undefined) {
MovingTiles++;
if (yp == 0) {
yp = undefined;
}
if (xp == 0) {
xp = undefined;
}
if (this.griddroptile == undefined) {
this.griddroptile = 0;
this.arri = 0;
this.dropdiepte = (this.gridbreed * this.gridhoog) + 1;
}
this.grid[column][row] = undefined;
this.arri++;
this.griddroptile++;
n2 = "droptile" + this.griddroptile;
this._parent[n].duplicateMovieClip(n2, this.dropdiepte++);
tn = this._parent[n2];
tn.typenr = this._parent[n].typenr;
tn.Bonus.bn = this._parent[n].Bonus.bn;
this._parent[n].removeMovieClip();
tn.yda = yacc;
tn.xda = xacc;
if (tn.xda < 0) {
tn.xdir = -1;
} else if (tn.xda == 0) {
tn.xdir = 0;
} else {
tn.xdir = 1;
}
if (tn.yda < 0) {
tn.ydir = -1;
} else if (tn.yda == 0) {
tn.ydir = 0;
} else {
tn.ydir = 1;
}
tn.glx = undefined;
tn.gly = undefined;
if (tn.xdir != 0) {
var _local2 = 1;
while (tn.glx == undefined) {
if (this.grid[column + (_local2 * tn.xdir)][row]) {
tn.glx = column + ((_local2 - 1) * tn.xdir);
}
if (_local2 > this.gridbreed) {
tn.glx = this.gxs;
break;
}
_local2++;
}
} else {
tn.glx = column;
}
if (tn.glx != column) {
var _local8 = mx.transitions.easing.Bounce.easeOut;
var _local5 = tn._x;
var _local6 = (tn.glx - 1) * this.gxs;
var _local7 = Math.abs(_local5 - _local6) / Math.abs(tn.xda * 15);
var _local9 = tn;
tn.HorTween = new mx.transitions.Tween(tn, "_x", _local8, _local5, _local6, _local7, true);
tn.HorTween.Tile = tn;
tn.gly = row;
tn.HorTween.onMotionFinished = function () {
this.Tile._parent.cl._gridfinishmovetile(this.Tile);
};
} else {
if (tn.ydir != 0) {
var _local2 = 1;
while (tn.gly == undefined) {
if (this.grid[column][row + (_local2 * tn.ydir)]) {
tn.gly = row + ((_local2 - 1) * tn.ydir);
}
if (_local2 > this.gridhoog) {
tn.gly = this.gys;
break;
}
_local2++;
}
} else {
tn.gly = row;
}
if (tn.gly != row) {
var _local8 = mx.transitions.easing.Bounce.easeOut;
var _local5 = tn._y;
var _local6 = (tn.gly - 1) * this.gys;
var _local7 = Math.abs(_local5 - _local6) / Math.abs(tn.yda * 15);
var _local9 = tn;
tn.VerTween = new mx.transitions.Tween(tn, "_y", _local8, _local5, _local6, _local7, true);
tn.VerTween.Tile = tn;
tn.VerTween.onMotionFinished = function () {
this.Tile._parent.cl._gridfinishmovetile(this.Tile);
};
} else {
this.grid[tn.glx][tn.gly] = tn.typenr + 1;
this._gridfinishmovetile(tn);
}
}
this.grid[tn.glx][tn.gly] = tn.typenr + 1;
this._parent.TileSent();
}
};
this._gridgetgroup = function (x, y, mod) {
if (this.gridinit and _gridloaded) {
var _local16 = x;
var _local15 = y;
var _local4 = _local16;
var _local3 = _local15;
var _local6 = 1;
var _local13 = 1;
var _local14 = false;
var _local7 = new Array();
var _local10 = new Array();
var _local2 = this.gyb - 2;
while ((_local2++) < (this.gye + 1)) {
_local10[_local2] = new Array();
_local10[_local2][0] = undefined;
}
_local7[0] = 1;
_local7[1] = _local16;
_local7[2] = _local15;
_local10[_local16][_local15] = 1;
var _local5 = new Array();
var _local9 = new Array();
var _local8 = new Array();
var _local17 = this._parent[(("col" + _local16) + "row") + _local15];
if (this.grid[_local16][_local15] != undefined) {
type = this.grid[_local16][_local15];
while (_local14 != true) {
var _local11 = 0;
while ((_local11++) < _local13) {
_local4 = _local7[(_local11 * 2) - 1];
_local3 = _local7[_local11 * 2];
if ((mod != "vertical") or (mod != "v")) {
_local5[1] = this.grid[_local4 + 1][_local3];
_local9[1] = _local4 + 1;
_local8[1] = _local3;
_local5[2] = this.grid[_local4 - 1][_local3];
_local9[2] = _local4 - 1;
_local8[2] = _local3;
}
if ((mod != "horizontal") or (mod != "h")) {
_local5[3] = this.grid[_local4][_local3 + 1];
_local9[3] = _local4;
_local8[3] = _local3 + 1;
_local5[4] = this.grid[_local4][_local3 - 1];
_local9[4] = _local4;
_local8[4] = _local3 - 1;
}
_local2 = 0;
while ((_local2++) < 4) {
ax = _local9[_local2];
ay = _local8[_local2];
if (_local5[_local2] != undefined) {
if (_local5[_local2] == type) {
if (_local10[ax][ay] != 1) {
_local10[ax][ay] = 1;
_local6++;
_local7[0] = _local6;
_local7[(_local6 * 2) - 1] = ax;
_local7[_local6 * 2] = ay;
}
}
}
}
}
if (_local13 == _local6) {
_local14 = true;
} else {
_local13 = _local6;
}
}
}
return(_local7);
}
};
this._gridgetcol = function (x) {
col = mf(x / this.gxs) + 1;
col = limit(col, this.gxb, this.gxe);
return(col);
};
this._gridgetrow = function (y) {
row = mf(y / this.gys) + 1;
row = limit(row, this.gyb, this.gye);
return(row);
};
this._gridgravity = function (acc, max) {
this.onEnterFrame = function () {
if (gravinit == undefined) {
i = this.gxb - 1;
while ((i++) < this.gxe) {
b = this.gyb - 1;
while ((b++) < this.gye) {
this._gridmovetile(i, b, 0, 0, 0, acc, max, 0);
}
}
gravinit = true;
}
};
};
_global._gridloaded = true;
Symbol 79 MovieClip Frame 1
stop();
gotoAndStop(bn);
Symbol 79 MovieClip Frame 2
type = "x2";
Symbol 79 MovieClip Frame 3
type = "x3";
Symbol 79 MovieClip Frame 4
type = "1000";
Symbol 79 MovieClip Frame 5
type = "2000";
Symbol 79 MovieClip Frame 6
type = "5000";
Symbol 79 MovieClip Frame 7
type = "+type";
Symbol 79 MovieClip Frame 8
type = "+det";
Symbol 79 MovieClip Frame 9
type = "-det";
Symbol 79 MovieClip Frame 10
type = "nuke";
Symbol 79 MovieClip Frame 11
type = "-type";
Symbol 97 MovieClip Frame 1
this.num = undefined;
stop();
Symbol 97 MovieClip Frame 2
play();
this.blok.indi.gotoAndStop(Type + 1);
Symbol 97 MovieClip Frame 24
anim.gotoAndStop(Type);
Symbol 97 MovieClip Frame 31
if (_parent._parent.rem < 1) {
if (_parent._parent.rs.cl.grid[this.xt][this.yt] == undefined) {
_parent._parent.rs.cl.grid[this.xt][this.yt] = Type;
_parent._parent.rs.cl._tileupdate(this.xt, this.yt);
_parent._parent.numblk++;
}
gotoAndStop (1);
}
Symbol 97 MovieClip Frame 32
gotoAndPlay(_currentframe - 1);
Instance of Symbol 97 MovieClip "blok" in Symbol 99 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.paused) {
stop();
p = true;
} else if (p) {
p = false;
if (_currentframe > 1) {
gotoAndPlay(_currentframe);
}
}
}
Symbol 108 MovieClip Frame 10
this.removeMovieClip();
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 105
this.removeMovieClip();
Symbol 125 MovieClip Frame 1
this._visible = false;
MovieClip.prototype._tint = function (r, g, b, amount) {
trans = new Object();
trans.ra = (trans.ga = (trans.ba = 100 - amount));
ratio = amount / 100;
trans.rb = r * ratio;
trans.gb = g * ratio;
trans.bb = b * ratio;
myColor = new Color(this);
myColor.setTransform(trans);
};
_global.loop = function (num, max) {
num = num - (Math.floor(num / max) * max);
return(num);
};
_global.limit = function (num, min, max) {
if (num > max) {
num = max;
} else if (num < min) {
num = min;
}
return(num);
};
Instance of Symbol 41 MovieClip "boven" in Symbol 127 MovieClip Frame 1
/* no clip actions */
Symbol 132 MovieClip Frame 30
this.removeMovieClip();
Symbol 160 MovieClip Frame 1
stop();
Symbol 170 Button
on (release) {
if (_parent.prof._currentframe == 1) {
if (_parent.diff > 1) {
_parent.prof.gotoAndPlay(_parent.maxtips + 2);
}
}
}
Symbol 171 Button
on (release) {
if (_parent.prof._currentframe == 1) {
if (_parent.diff != 2) {
_parent.prof.gotoAndPlay(_parent.maxtips + 3);
}
}
}
Symbol 172 Button
on (release) {
if (_parent.prof._currentframe == 1) {
if (_parent.diff < 3) {
_parent.prof.gotoAndPlay(_parent.maxtips + 4);
}
}
}
Symbol 174 Button
on (release) {
if (_parent.sounds) {
_parent.sounds = false;
_parent.sfx.removeMovieClip();
_parent.prof.sfx.removeMovieClip();
} else {
_parent.sounds = true;
_parent.sfx_dummy.duplicateMovieClip("sfx", 0);
_parent.prof.sfx_dummy.duplicateMovieClip("sfx", 0);
}
}
Symbol 176 Button
on (release) {
_parent.rem = _parent.rem - 1;
_parent.paused = false;
_parent.psw = false;
_parent.bodemgfx._visible = true;
_parent.rs._visible = true;
this._visible = false;
}
Symbol 178 Button
on (release) {
_parent.gotoAndPlay(4);
}
Instance of Symbol 160 MovieClip "snd_e" in Symbol 203 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.sounds) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 186 MovieClip "medium" in Symbol 203 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.diff == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 191 MovieClip "easy" in Symbol 203 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.diff == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 196 MovieClip "hard" in Symbol 203 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.diff == 3) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 204 Button
on (release) {
if (prof._currentframe < 2) {
if (opt._visible == false) {
if (paused) {
paused = false;
} else {
paused = true;
}
psw = false;
}
}
}
Symbol 208 Button
on (release) {
if (prof._currentframe < 2) {
if (paused) {
if (opt._visible) {
paused = false;
opt._visible = false;
psw = false;
}
} else {
paused = true;
opt._visible = true;
psw = false;
}
}
}
Symbol 217 MovieClip Frame 1
bonus = Math.round((_currentframe - 1) / 30) * _parent.lvl;
stop();
Symbol 228 MovieClip Frame 11
if (_parent._parent.rem < 1) {
if (_parent._parent.rs.cl.grid[this.xt][this.yt] == undefined) {
_parent._parent.rs.cl.grid[this.xt][this.yt] = 7;
_parent._parent.rs.cl._tileupdate(this.xt, this.yt);
}
this.removeMovieClip();
}
Symbol 251 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 1
Symbol 266 MovieClip Frame 62
if (_parent.Movie1 < 4) {
_parent.Movie1++;
if (_parent.Movie1 > 2) {
_parent.NextMovie();
}
gotoAndPlay (2);
} else {
prevFrame();
}
Symbol 276 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 49
if (_parent.Movie2 < 4) {
_parent.Movie2++;
if (_parent.Movie2 > 2) {
_parent.NextMovie();
}
gotoAndPlay (4);
} else {
gotoAndStop (30);
}
Symbol 283 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 15
if (_parent.bar._yscale < 8) {
_parent._parent.sfx.PlayAlarm = true;
_parent._parent.sfx.gotoAndPlay(21);
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
Symbol 290 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 49
if (_parent.Movie3 < 4) {
_parent.Movie3++;
if (_parent.Movie3 > 2) {
_parent.NextMovie();
}
gotoAndPlay (4);
} else {
prevFrame();
}
Symbol 298 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 55
if (_parent.Movie4 < 4) {
_parent.Movie4++;
gotoAndPlay (4);
} else {
prevFrame();
}
Symbol 302 Button
on (release) {
_parent.rem = 0;
_parent.tips = _parent.maxtips;
gotoAndStop (1);
}
Symbol 303 Button
on (release) {
_parent.rem = 0;
gotoAndPlay (1);
}
Symbol 309 MovieClip Frame 1
var a = 0;
var gd = false;
var tn = ("tekst" + _parent._currentframe);
var res = ("res" + _parent._currentframe);
_parent.res = true;
_parent.druk._visible = false;
if (_parent[tn] == undefined) {
gotoAndStop (4);
} else {
var tm = "";
tm = _parent[tn];
_parent[res] = tm;
_parent[tn] = "";
_parent.hoofd.gotoAndStop(2);
var kt = new Object();
kt.onMouseDown = function () {
gd = true;
};
kt.onKeyDown = function () {
gd = true;
};
Key.addListener(kt);
Mouse.addListener(kt);
}
Symbol 309 MovieClip Frame 2
function checkExp(s, e) {
i = s;
while (i < (e + 1)) {
if (tm.charAt(i) == "*") {
exp = Number(tm.slice(i + 1, i + 2));
tm = tm.slice(0, i) + tm.slice(i + 2, tm.length);
_parent.hoofd.gotoAndStop(exp);
}
i++;
}
}
a = a + 2;
if (a < tm.length) {
_parent[tn] = tm.slice(0, a);
checkExp(a - 1, a + 1);
if (exp == 3) {
a--;
}
if (gd) {
checkExp(1, tm.length + 2);
a = tm.length;
gd = false;
}
} else {
_parent[tn] = tm;
_parent.druk._visible = true;
if (tm.slice(tm.length - 1, tm.length) == "?") {
_parent.hoofd.gotoAndStop(1);
} else {
_parent.hoofd.gotoAndStop(exp);
if (gd or nobut) {
nobut = false;
gd = false;
}
}
}
Symbol 309 MovieClip Frame 3
gotoAndPlay (2);
Symbol 309 MovieClip Frame 4
stop();
Symbol 317 Button
on (release) {
_parent.gotoAndStop(_parent._currentframe + 1);
}
Symbol 318 Button
on (release) {
_parent.rem = _parent.rem - 1;
_parent.gotoAndPlay(1);
}
Symbol 322 Button
on (release) {
_parent.rem = _parent.rem - 1;
gotoAndPlay (1);
}
Symbol 323 Button
on (release) {
_parent.diff = 1;
_parent.rem = _parent.rem - 1;
_parent.paused = false;
_parent.psw = false;
_parent.gotoAndPlay(2);
_parent.CurrMode = "Easy";
_root.kongregateScores.setMode(CurrMode);
}
Symbol 327 Button
on (release) {
_parent.rem = _parent.rem - 1;
gotoAndPlay (1);
}
Symbol 328 Button
on (release) {
_parent.diff = 2;
_parent.rem = _parent.rem - 1;
_parent.paused = false;
_parent.psw = false;
_parent.gotoAndPlay(2);
_parent.CurrMode = "Medium";
_root.kongregateScores.setMode(CurrMode);
}
Symbol 330 Button
on (release) {
_parent.diff = 3;
_parent.rem = _parent.rem - 1;
_parent.paused = false;
_parent.psw = false;
_parent.gotoAndPlay(2);
_parent.CurrMode = "Hard";
_root.kongregateScores.setMode(CurrMode);
}
Symbol 331 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 2
sfx.gotoAndPlay(14);
_parent.rem = _parent.rem + 1;
if (_parent._parent._parent.MultiPlayer == true) {
_parent.rem = 0;
_parent.tips = _parent.maxtips;
gotoAndStop (1);
}
Movie1 = 0;
Movie2 = 0;
Movie3 = 0;
Movie4 = 0;
CurrMovie = 1;
NextMovie = function () {
mv = this["Mov" + (CurrMovie + 1)];
trace(mv);
if (mv._currentframe == 1) {
mv.play();
CurrMovie++;
}
};
this.onMouseDown = function () {
mv = this["Mov" + (CurrMovie + 1)];
if (mv.hitTest(_xmouse, _ymouse)) {
NextMovie();
}
};
stop();
Symbol 331 MovieClip Frame 3
_parent.rem = _parent.rem + 1;
stop();
Symbol 331 MovieClip Frame 4
_parent.rem = _parent.rem + 1;
stop();
Symbol 331 MovieClip Frame 5
_parent.rem = _parent.rem + 1;
stop();
Symbol 331 MovieClip Frame 6
_parent.rem = _parent.rem + 1;
stop();
Symbol 331 MovieClip Frame 7
sfx.gotoAndPlay(15);
_parent.rem = _parent.rem + 1;
stop();
Symbol 331 MovieClip Frame 8
_parent.rem = _parent.rem + 1;
stop();
Symbol 331 MovieClip Frame 9
_parent.rem = _parent.rem + 1;
stop();
Symbol 331 MovieClip Frame 10
_parent.rem = _parent.rem + 1;
stop();
Symbol 331 MovieClip Frame 13
sfx.gotoAndPlay(Math.round(random(6) + 2));
Symbol 331 MovieClip Frame 19
gotoAndStop (1);
Symbol 333 Button
on (release) {
if (Gemaakt) {
NameDone();
}
_parent.rem = _parent.rem - 1;
_parent.gotoAndPlay(1);
}
Symbol 422 Button
on (release) {
_parent.NameDone();
}
Symbol 427 MovieClip Frame 1
local_high = SharedObject.getLocal("Expl_scores");
var scoresCallback = function (result) {
trace("High score result, success=" + result.success);
var _local2 = 0;
while (_local2 < result.list.length) {
var _local4 = _local2 + 1;
trace((((_local4 + ". ") + result.list[_local2].username) + " - ") + result.list[_local2].score);
_local2++;
}
KongregateScores = result;
if (result.succes == true) {
_local2 = 1;
while (_local2 < 11) {
nm = "Player" + _local2;
this[nm] = result.list[_local2].username;
sc = "Score" + _local2;
this[sc] = result.list[_local2].score;
this[cl] = "";
Batt._visible = false;
_local2++;
}
if (KongregateMode) {
} else {
KongregateMode = true;
}
}
};
_root.kongregateScores.requestList(scoresCallback, KongregateScores);
LockTexts = function () {
i = 1;
while (i < 11) {
vak = "vak" + i;
this[vak].selectable = false;
i++;
}
};
NameDone = function () {
Yes._visible = false;
LockTexts();
i = 1;
while (i < 11) {
nm = "Player" + i;
local_high.data[nm] = this[nm];
sc = "Score" + i;
local_high.data[sc] = this[sc];
cl = "Cell" + i;
local_high.data[cl] = this[cl];
i++;
}
local_high.data.scoresaved = true;
local_high.flush();
};
if (local_high.data.scoresaved) {
i = 1;
while (i < 11) {
nm = "Player" + i;
this[nm] = local_high.data[nm];
sc = "Score" + i;
this[sc] = local_high.data[sc];
cl = "Cell" + i;
this[cl] = local_high.data[cl];
i++;
}
}
ScoreCheck = function () {
if (KongregateMode) {
_root.kongregateScores.submit(_parent.score);
_root.kongregateScores.requestList(scoresCallback, KongregateScores);
} else {
UpdatedScoreCheck();
}
};
UpdatedScoreCheck = function () {
i = 1;
while (i < 11) {
if (_parent.score > Number(this["Score" + i])) {
Plaats = i;
Gemaakt = true;
break;
}
i++;
}
if (Gemaakt) {
i = 11;
while (i > (Plaats - 1)) {
this["Score" + (i + 1)] = this["Score" + i];
this["Player" + (i + 1)] = this["Player" + i];
this["Cell" + (i + 1)] = this["Cell" + i];
i--;
}
this["Score" + Plaats] = _parent.score;
this["Cell" + Plaats] = _parent.lvl_vis;
this["Player" + Plaats] = "";
Yes._visible = true;
Yes._y = this["vak" + Plaats]._y;
this["vak" + Plaats].selectable = true;
this["vak" + Plaats].type = "input";
} else {
Yes._visible = false;
LockTexts();
}
};
Symbol 443 MovieClip Frame 1
bonus = Math.round((_currentframe - 1) / 30) * _parent.lvl;
Symbol 443 MovieClip Frame 70
stop();
Symbol 457 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 2
_parent.paused = true;
_parent.rem = 1;
_parent.sfx.gotoAndPlay(17);
Symbol 457 MovieClip Frame 21
_parent.sfx.gotoAndPlay(18);
this.onEnterFrame = function () {
this.bonus = Math.round(((this._currentframe - 21) / 3.5) * (100 * _parent.lvl));
this.bar._yscale = 120 - Math.round(((this._currentframe - 21) / 3) * 8);
};
Symbol 457 MovieClip Frame 69
var rsend = (_parent.rs._y + 400);
rsbegin = _parent.rs._y;
time = 2;
var LevelTween1 = (new mx.transitions.Tween(_parent.rs, "_y", mx.transitions.easing.Regular.easeOut, rsbegin, rsend, time, true));
var bdend = (_parent.bodemgfx._y + 400);
bdbegin = _parent.bodemgfx._y;
time = 2;
var LevelTween2 = (new mx.transitions.Tween(_parent.bodemgfx, "_y", mx.transitions.easing.Regular.easeOut, bdbegin, bdend, time, true));
var end = _parent.field._y;
var begin = (_parent.field._y - 400);
time = 2;
var LevelTween3 = (new mx.transitions.Tween(_parent.field, "_y", mx.transitions.easing.Regular.easeOut, begin, end, time, true));
var stend = (_parent.st_l._y + 400);
stbegin = _parent.st_l._y;
time = 2;
var LevelTween4 = (new mx.transitions.Tween(_parent.st_l, "_y", mx.transitions.easing.Regular.easeOut, stbegin, stend, time, true));
LevelTween4.onMotionFinished = function () {
_parent._parent.rs._y = rsbegin;
_parent._parent.bodemgfx._y = bdbegin;
_parent._parent.st_l._y = stbegin;
_parent._parent.initfields();
_parent.rs._y = rsbegin;
_parent.bodemgfx._y = bdbegin;
_parent.st_l._y = stbegin;
_parent.initfields();
};
this.onEnterFrame = function () {
};
bonus = 1000 * Math.round(_parent.lvl);
bar._yscale = 25;
Symbol 457 MovieClip Frame 86
_parent.sfx.gotoAndPlay(19);
_parent.score = _parent.score + bonus;
_parent.lvl++;
_parent.lvl_vis = _parent.lvl - 1;
Symbol 457 MovieClip Frame 116
_parent.paused = false;
_parent.rem = 0;
Symbol 459 Button
on (release) {
this._visible = false;
_parent.rem = _parent.rem - 1;
_parent.gotoAndPlay(5);
}
Symbol 461 Button
on (release) {
this._visible = false;
_parent._parent._parent.QuitMultiPlayer();
gotoAndPlay (4);
}
Symbol 469 MovieClip Frame 1
stop();
Symbol 469 MovieClip Frame 2
stop();
Symbol 470 MovieClip Frame 1
var time = 0;
Bonus.gotoAndStop(type);
Symbol 470 MovieClip Frame 5
this.onEnterFrame = function () {
time++;
switch (type) {
default :
goalx = 135;
goaly = 155;
break;
case 8 :
case 9 :
goalx = 135;
goaly = 225;
break;
case 10 :
i = 0;
while (i < (_parent._parent.bon + 1)) {
nm = "Bonus" + i;
_parent[nm]._tint(0, 0, 0, 100);
_parent[nm].type = 15;
_parent[nm].xsp = random(20) - 10;
_parent[nm].ysp = random(20) - 10;
i++;
}
break;
case 7 :
case 11 :
goalx = 135;
goaly = 265;
}
if (type != 15) {
this._x = ((this._x * 4) + goalx) / 5;
this._y = ((this._y * 4) + goaly) / 5;
if (type) {
if (time > 35) {
_parent._parent.bon = this.num;
_parent._parent.sfx.gotoAndPlay(20);
_parent._parent.BonusHandle(type);
this.removeMovieClip();
}
}
} else {
this._x = this._x + this.xsp;
this._y = this._y + this.ysp;
this.ysp = (this.ysp * 3) / 4;
this.xsp = (this.xsp * 3) / 4;
this._xscale = (this._xscale * 3) / 4;
this._yscale = (this._yscale * 3) / 4;
if (time > 35) {
_parent._parent.bon = this.num;
this.removeMovieClip();
}
}
};
stop();
Symbol 472 Button
on (release) {
gotoAndPlay (3);
}