Frame 1
function onEnterFrame() {
if (_framesloaded > 6) {
delete onEnterFrame;
gotoAndStop (6);
} else {
t.text = ("Loading : " + Math.floor((100 * this.getBytesLoaded()) / this.getBytesTotal())) + "%";
}
}
stop();
var aso#11910 = this;
_root.kongregateServices.connect();
Frame 6
function aso#90738() {
aso#11910.attachMovie("aso#25280", "aso#25280", 0);
aso#11910["aso#25280"].cacheAsBitmap = true;
Set("aso#20683", new Sound(aso#25280));
aso#20683.attachSound("aso#53412");
var _local2 = 0;
while (_local2 < 80) {
aso#56617.push([]);
_local2++;
}
_local2 = 0;
while (_local2 < 9) {
aso#26672((75 + (Math.random() * 100)) + (_local2 * 50), 100 + (Math.random() * 280), Math.random() * 360, 5 + (Math.floor(Math.random() * 200) / 10));
_local2++;
}
aso#05921.unshift(aso#05921[5]);
aso#05921.splice(6, 1);
aso#95335(aso#05921[0]._x - 20, aso#05921[0]._y - 200, 1);
if (aso#37258[0]._y < 0) {
aso#37258[0]._y = 0;
}
aso#37258[0]["aso#99932"] = 0.4;
aso#37258[0]["aso#62606"] = 4;
onEnterFrame = aso#02716;
aso#58009("a", 75, 100, "http://lysisgames.com", function () {
getURL ("http://lysisgames.com", "_blank");
});
aso#58009("b", 20, 595, "skip", aso#46031);
aso#25280.b._visible = false;
aso#25280.b.onEnterFrame = function () {
if (aso#11910._framesloaded > 11) {
this._visible = true;
this._onEnterFrame = undefined;
}
};
delete aso#90738;
delete aso#58009;
}
function aso#58009(n, l, x, t, m) {
var _local2 = aso#25280.createEmptyMovieClip(n, aso#25280.getNextHighestDepth());
_local2.createEmptyMovieClip("b", 0);
_local2._x = x;
_local2._y = 460;
_local2.b.l = l;
_local2.b.i = -13;
aso#93943(_local2.b);
_local2.b.onPress = function () {
this.i = -3;
aso#93943(this);
};
_local2.b.onRelease = m;
_local2.b.onRollOver = function () {
this.i = 0.5;
aso#93943(this);
};
_local2.b.onRollOut = (_local2.b.onDragOut = function () {
this.i = -13;
aso#93943(this);
});
_local2.attachMovie("aso#80152", "t", 1);
_local2.t.t.text = t;
}
function aso#46031() {
for (var _local1 in aso#05921) {
aso#05921[_local1].removeMovieClip();
}
for (var _local1 in aso#37258) {
aso#37258[_local1].removeMovieClip();
}
aso#25280.removeMovieClip();
delete aso#05921;
delete aso#37258;
delete aso#87954;
delete aso#14694;
delete aso#56617;
delete aso#81965;
delete onEnterFrame;
delete aso#26672;
delete aso#93943;
delete aso#32661;
delete aso#95335;
delete aso#02716;
delete aso#89346;
delete aso#20683;
delete aso#46031;
aso#11910.onEnterFrame = function () {
if (aso#11910._framesloaded > 11) {
aso#11910.onEnterFrame = undefined;
aso#11910.gotoAndStop("mochiad_fr");
}
};
aso#11910.onEnterFrame();
}
function aso#26672(x, y, a, l) {
var _local2 = this.createEmptyMovieClip("c" + aso#87954, aso#87954++);
aso#05921.push(_local2);
_local2._x = x;
_local2._y = y;
_local2.l = l;
_local2._rotation = a;
_local2.i = 0;
_local2.c = Math.floor(Math.random() * 5);
aso#93943(_local2);
aso#32661(_local2);
}
function aso#32661(f) {
var _local9 = f.getBounds();
var _local6 = {x:_local9.xMin, y:_local9.yMin};
var _local5 = {x:_local9.xMax, y:_local9.yMax};
f.localToGlobal(_local6);
f.localToGlobal(_local5);
_local6.x = Math.floor(_local6.x / 64);
_local6.y = Math.floor(_local6.y / 64);
_local5.x = Math.floor(_local5.x / 64);
_local5.y = Math.floor(_local5.y / 64);
var _local1;
if (_local6.x > _local5.x) {
_local1 = _local5.x;
_local5.x = _local6.x;
_local6.x = _local1;
}
if (_local6.y > _local5.y) {
_local1 = _local5.y;
_local5.y = _local6.y;
_local6.y = _local1;
}
if (f.oa != undefined) {
var _local4 = [];
var _local7 = _local6.x;
while (_local7 <= _local5.x) {
var _local3 = _local6.y;
while (_local3 <= _local5.y) {
_local1 = _local7 + (10 * _local3);
_local4.push(_local1);
_local3++;
}
_local7++;
}
for (_local7 in f.oa) {
var _local8 = false;
_local1 = f.oa[_local7];
for (var _local3 in _local4) {
if (_local4[_local3] == _local1) {
_local8 = true;
break;
}
}
if (!_local8) {
var _local3 = 0;
do {
if (f == aso#56617[_local1][_local3]) {
aso#56617[_local1].splice(_local3, 1);
_local8 = true;
} else {
_local3++;
}
} while (!_local8);
}
}
for (_local7 in _local4) {
var _local8 = false;
_local1 = _local4[_local7];
for (var _local3 in f.oa) {
if (f.oa[_local3] == _local1) {
_local8 = true;
break;
}
}
if (!_local8) {
aso#56617[_local1].push(f);
}
}
f.oa = _local4;
} else {
f.oa = [];
var _local7 = _local6.x;
while (_local7 <= _local5.x) {
var _local3 = _local6.y;
while (_local3 <= _local5.y) {
_local1 = _local7 + (10 * _local3);
f.oa.push(_local1);
aso#56617[_local1].push(f);
_local3++;
}
_local7++;
}
}
}
function aso#95335(x, y, n) {
while (n > 0) {
var _local2 = this.attachMovie("aso#60793", "v" + aso#87954, aso#87954++);
aso#37258.push(_local2);
var _local4 = (Math.random() * 2) * Math.PI;
var _local3 = (Math.random() * 5) + 4;
_local2["aso#99932"] = _local3 * Math.cos(_local4);
_local2["aso#62606"] = _local3 * Math.sin(_local4);
_local2._x = x + (2 * _local2["aso#99932"]);
_local2._y = y + (2 * _local2["aso#62606"]);
_local2._rotation = Math.random() * 60;
_local2.cacheAsBitmap = true;
n--;
}
}
function aso#02716() {
if (((aso#81965++) > 240) && (aso#11910._framesloaded > 11)) {
aso#46031();
} else {
var _local3;
var _local2;
var _local1;
var _local6;
var _local9;
var _local8;
var _local7;
_local3 = aso#37258.length - 1;
while (_local3 >= 0) {
_local1 = aso#37258[_local3];
_local8 = (_local1._x = _local1._x + (((Math.random() * 2) - 1) + _local1["aso#99932"]));
_local7 = (_local1._y = _local1._y + (((Math.random() * 2) - 1) + _local1["aso#62606"]));
if ((((_local7 < -10) || (_local7 > 490)) || (_local8 < -10)) || (_local8 > 650)) {
aso#37258.splice(_local3, 1);
_local1.removeMovieClip();
} else {
_local9 = aso#56617[Math.floor(_local1._x / 64) + (10 * Math.floor(_local1._y / 64))];
for (_local2 in _local9) {
_local6 = _local9[_local2];
if (_local6.hitTest(_local8, _local7, true)) {
aso#37258.splice(_local3, 1);
_local1.removeMovieClip();
_local6.i++;
break;
}
}
}
_local3--;
}
if (aso#05921.length > 0) {
_local1 = aso#37258[0];
_local6 = aso#05921[0];
_local1["aso#99932"] = _local1["aso#99932"] * 0.98;
_local1["aso#62606"] = _local1["aso#62606"] * 0.98;
_local8 = _local1._x - _local6._x;
_local7 = _local1._y - _local6._y;
_local3 = 5 * Math.sqrt((_local8 * _local8) + (_local7 * _local7));
_local1["aso#99932"] = _local1["aso#99932"] - (_local8 / _local3);
_local1["aso#62606"] = _local1["aso#62606"] - (_local7 / _local3);
} else {
Set("aso#81965", aso#81965 + 3);
}
_local3 = aso#05921.length - 1;
while (_local3 >= 0) {
_local1 = aso#05921[_local3];
_local1._x = _local1._x + ((Math.random() * 2) - 1);
_local1._y = _local1._y + ((Math.random() * 2) - 1);
_local1._rotation = _local1._rotation + ((Math.random() * 2) - 1);
if (_local1.i == 0) {
_local1.l = _local1.l + 0.2;
if (_local1.l > 30) {
var _local11 = 21 * Math.cos(aso#14694 * _local1._rotation);
var _local10 = 21 * Math.sin(aso#14694 * _local1._rotation);
aso#26672(_local1._x - _local11, _local1._y - _local10, _local1._rotation, 10);
_local1.l = 10;
_local1._x = _local1._x + _local11;
_local1._y = _local1._y + _local10;
aso#93943(_local1);
aso#32661(_local1);
_local1.c = 3;
}
if ((_local1.c--) < 0) {
aso#93943(_local1);
aso#32661(_local1);
_local1.c = 3;
}
aso#89346(_local1, 1);
aso#89346(_local1, -1);
} else if ((_local1.i++) > 14) {
aso#20683.start();
aso#95335(_local1._x, _local1._y, 5 + Math.floor(_local1.l / 3));
aso#05921.splice(_local3, 1);
for (var _local12 in _local1.oa) {
var _local5 = false;
_local2 = 0;
var _local4 = aso#56617[_local1.oa[_local12]];
do {
if (_local1 == _local4[_local2]) {
_local4.splice(_local2, 1);
_local5 = true;
} else {
_local2++;
}
} while (!_local5);
}
_local1.removeMovieClip();
} else {
aso#93943(_local1);
}
_local3--;
}
}
}
function aso#89346(f, d) {
var _local8 = {x:(f.l + 10) * d, y:0};
f.localToGlobal(_local8);
var _local2 = _local8.x;
var _local1 = _local8.y;
var _local6 = aso#56617[Math.floor(_local2 / 64) + (10 * Math.floor(_local1 / 64))];
for (var _local7 in _local6) {
var _local3 = _local6[_local7];
if (f != _local3) {
if (_local3.hitTest(_local2, _local1, true)) {
_local2 = f._x - _local3._x;
_local1 = f._y - _local3._y;
var _local5 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
_local2 = _local2 / _local5;
_local1 = _local1 / _local5;
f._x = f._x + (2 * _local2);
f._y = f._y + (2 * _local1);
_local3._x = _local3._x - (2 * _local2);
_local3._y = _local3._y - (2 * _local1);
return(undefined);
}
}
}
}
function aso#93943(f) {
f.clear();
var _local3 = ((f.i * 983040) + 187) - (f.i * 12);
var _local2 = f.l;
f.beginFill(_local3, 100);
f.lineStyle(2, 16777215, 80);
f.moveTo(-_local2, 10);
f.lineTo(_local2, 10);
f.curveTo(_local2 + 10, 10, _local2 + 10, 0);
f.curveTo(_local2 + 10, -10, _local2, -10);
f.lineTo(-_local2, -10);
f.curveTo((-_local2) - 10, -10, (-_local2) - 10, 0);
f.curveTo((-_local2) - 10, 10, -_local2, 10);
f.endFill();
}
stop();
var aso#11910 = this;
var aso#05921 = [];
var aso#37258 = [];
var aso#87954 = 2;
var aso#14694 = (Math.PI/180);
var aso#56617 = [];
var aso#81965 = 0;
aso#90738();
Frame 11
mochi.as2.MochiAd.showInterLevelAd({id:"8ca461604d98fafb", res:"640x480"});
Frame 12
function onEnterFrame() {
if (_framesloaded == _totalframes) {
delete onEnterFrame;
gotoAndStop ("main");
} else {
l.a._width = (l.b._width = (300 * this.getBytesLoaded()) / this.getBytesTotal());
}
}
stop();
l.a._width = (l.b._width = 0);
Frame 23
function aso#13302(m) {
aso#11910._quality = "LOW";
scr.fillRect(scr.rectangle, 0);
if (m != 1) {
for (var _local3 in obj) {
var _local1 = obj[_local3].fill;
_local1._xscale = (_local1._yscale = m * 100);
_local1._x = _local1._x * m;
_local1._y = _local1._y * m;
}
scr.draw(fills);
for (var _local3 in obj) {
var _local1 = obj[_local3].fill;
_local1._xscale = (_local1._yscale = 100);
_local1._x = _local1._x / m;
_local1._y = _local1._y / m;
}
} else {
scr.draw(fills);
}
scr.paletteMap(scr, scr.rectangle, pt, ca);
aso#11910._quality = "HIGH";
}
function aso#07313() {
aso#11910.createEmptyMovieClip("mn", 1);
mn.cacheAsBitmap = true;
mn._x = 36;
mn._y = 160;
var _local2 = 0;
while (_local2 < 15) {
var _local1 = mn.createEmptyMovieClip("t" + _local2, _local2);
_local1.i = _local2;
_local1.attachBitmap(aso#75976[_local2], 0);
_local1._x = (_local2 % 5) * 92;
_local1._y = Math.floor(_local2 / 5) * 90;
if ((_local2 > 0) && (so.data.p == 0)) {
_local1.attachMovie("pl", "p", 2);
} else {
_local1.onPress = aso#11489;
_local1.onRollOver = aso#29456;
_local1.onRollOut = aso#66782;
if ((so.data.p & (1 << _local2)) > 0) {
_local1.attachMovie("c", "p", 2);
}
}
_local1.createEmptyMovieClip("n", 1);
_local1.n.attachBitmap(aso#75976[_local2 + 20], 0);
_local1.n._y = -1;
_local2++;
}
_local2 = 1;
while (_local2 < 4) {
var _local1 = mn.createEmptyMovieClip("tb" + _local2, _local2 + 15);
_local1.attachBitmap(aso#75976[_local2 + 15], 0);
_local1._x = 484;
_local1._y = _local2 * 90;
_local2++;
}
mn.tb1.onPress = aso#50207;
mn.tb2.onPress = setMusic;
var _local4 = lv[15];
aso#11910.createEmptyMovieClip("aso#49236", 4);
scr = new flash.display.BitmapData(640, 160, false, 0);
aso#11910.createEmptyMovieClip("fills", 2);
fills._visible = false;
aso#49236.createEmptyMovieClip("t", 2);
aso#49236.t.sc = _local4[0][5];
aso#49236.t.scy = _local4[0][6];
aso#49236.t["aso#19291"] = "icon";
obj.length = 0;
zn.length = 0;
ca = _local4.slice(2);
for (var _local3 in ca) {
aso#83357(ca[_local3]);
_local2 = obj.length - 1;
var _local1 = (obj[_local2] = obj[_local2].fill);
_local1.tx = _local1._x;
_local1.ty = _local1._y;
_local1["aso#99932"] = Math.round((Math.random() * 80) - 40) / 10;
_local1["aso#62606"] = Math.round((Math.random() * 80) - 40) / 10;
_local1.n = Math.floor(Math.random() * 60) + 40;
_local1._x = _local1._x + (_local1.n * _local1["aso#99932"]);
_local1._y = _local1._y + (_local1.n * _local1["aso#62606"]);
}
aso#49236.removeMovieClip();
aso#11910.createEmptyMovieClip("aso#49236", 0);
aso#11910.attachMovie("cp", "aso#49236", 4);
aso#49236.attachBitmap(scr, 0);
ca = _local4[1];
aso#13302(1);
onEnterFrame = aso#68174;
}
function aso#11489() {
var _local2 = this.i;
mn.removeMovieClip();
aso#63998();
aso#23467(lv[_local2]);
aso#80573.lv = _local2;
onEnterFrame = aso#05500;
Set("aso#31269", 1);
}
function aso#29456() {
this.n._alpha = 0;
this.onEnterFrame = undefined;
}
function aso#66782() {
this.onEnterFrame = aso#35445;
}
function aso#35445() {
this.n._alpha = this.n._alpha + 10;
if (this.n._alpha >= 100) {
this.n._alpha = 100;
this.onEnterFrame = undefined;
}
}
function setMusic() {
var _local2;
var _local1;
aso#11910.attachMovie("music", "mbg", 5);
mbg.held = aso#11910.onEnterFrame;
mbg.onPress = aso#18870;
mbg.useHandCursor = false;
mbg.vi.sl._x = -500 + (5 * so.data.v);
aso#11910.attachMovie("aso#71379", "ms", 6);
ms._x = 100 + (so.data.v * 5);
ms._y = 90;
ms.onPress = aso#34053;
ms.onRelease = (ms.onReleaseOutside = aso#92130);
ms.tgt = "v";
mbg.vi.a = [];
_local1 = 0;
while (_local1 < 20) {
_local2 = mbg.vi.attachMovie("note", "n" + _local1, _local1);
_local2._x = 25 * _local1;
_local2._y = -Math.floor(Math.random() * 25);
mbg.vi.a.push(_local2);
_local1++;
}
mbg.vi.onEnterFrame = aso#54804;
mbg.fi.sl._x = -500 + (5 * so.data.f);
aso#11910.attachMovie("aso#71379", "fs", 7);
fs._x = 100 + (so.data.f * 5);
fs._y = 290;
fs.onPress = aso#34053;
fs.onRelease = (fs.onReleaseOutside = sfxEndDrag);
fs.tgt = "f";
mbg.fi.a = [];
_local1 = 0;
while (_local1 < 19) {
_local2 = mbg.fi.attachMovie("star", "n" + _local1, _local1);
_local2._x = Math.floor(Math.random() * 500);
_local2._y = -Math.floor(Math.random() * 35);
_local2._rotation = Math.floor(Math.random() * 360);
mbg.fi.a.push(_local2);
_local1++;
}
mbg.fi.onEnterFrame = aso#17478;
aso#11910.attachMovie("aso#12881", "d", 8);
d._x = 520;
d._y = 360;
if (onEnterFrame == aso#08705) {
d.onPress = aso#41434;
} else {
d.onPress = aso#52020;
}
onEnterFrame = undefined;
Set("aso#31269", aso#31269 | 2);
}
function aso#52020() {
aso#11910.onEnterFrame = mbg.held;
mbg.removeMovieClip();
ms.removeMovieClip();
fs.removeMovieClip();
d.removeMovieClip();
Set("aso#31269", aso#31269 - 2);
}
function aso#41434() {
aso#52020();
aso#07313();
}
function aso#34053() {
this["aso#99932"] = this._x - _xmouse;
this.onMouseMove = aso#99511;
}
function aso#92130() {
this.onMouseMove = undefined;
}
function sfxEndDrag() {
this.onMouseMove = undefined;
aso#68595.attachSound("aso#53412");
aso#68595.start();
}
function aso#99511() {
this._x = _xmouse - this["aso#99932"];
if (this._x < 100) {
this._x = 100;
}
if (this._x > 600) {
this._x = 600;
}
so.data[this.tgt] = Math.floor((this._x / 5) - 20);
if (this.tgt == "v") {
aso#50628.setVolume(so.data.v);
mbg.vi.sl._x = (this._x - 500) - 100;
} else {
aso#68595.setVolume(so.data.f);
mbg.fi.sl._x = (this._x - 500) - 100;
}
}
function aso#54804() {
var _local3;
var _local2 = 20;
while (_local2 >= 0) {
_local3 = this.a[_local2];
if ((_local3._x--) < 10) {
_local3._x = _local3._x + 500;
_local3._y = -Math.floor(Math.random() * 25);
}
_local2--;
}
}
function aso#17478() {
var _local2;
var _local3 = 19;
while (_local3 >= 0) {
_local2 = this.a[_local3];
if ((_local2._y++) > 5) {
_local2._y = -30 - (Math.random() * 5);
_local2._x = Math.floor(25 + (Math.random() * 475));
} else {
_local2._rotation = _local2._rotation + 2;
}
_local3--;
}
}
function aso#50207() {
getURL ("http://www.lysisgames.com/", "_blank");
}
function aso#38229() {
getURL ("http://www.lysisgames.com/", "_blank");
}
function aso#23467(lv) {
aso#11910.createEmptyMovieClip("aso#49236", 4);
if (lv[0][0] == "w") {
wid = 640;
hig = 239;
aso#49236._y = 241;
} else {
wid = 319;
hig = 480;
aso#49236._x = 321;
}
scr = new flash.display.BitmapData(wid * 2, hig * 2, false, 65280);
tgt = new flash.display.BitmapData(wid, hig, false, 0);
aso#11910.createEmptyMovieClip("aso#80573", 1);
aso#80573.createEmptyMovieClip("aso#74584", 0);
aso#80573["aso#74584"].attachBitmap(tgt, 0);
aso#80573.attachMovie("ibb", "ibb", 3, {_x:1, _y:1});
aso#80573.attachMovie("imb", "imb", 4, {_x:1, _y:23});
aso#80573.ibb._visible = (aso#80573.imb._visible = so.data.i);
aso#80573.ibb.onRelease = aso#22075;
aso#80573.imb.onRelease = setMusic;
aso#80573["aso#74584"].onPress = aso#04108;
aso#80573["aso#74584"].useHandCursor = false;
aso#11910.createEmptyMovieClip("fills", 2);
fills._visible = false;
aso#49236.createEmptyMovieClip("t", 2);
aso#49236.t.cacheAsBitmap = true;
if (lv[0][1] != 0) {
aso#49236.t["aso#19291"] = "aso#44218";
aso#49236.t.mx = lv[0][1];
aso#49236.t.my = lv[0][2];
aso#49236.t.ox = lv[0][3];
aso#49236.t.oy = lv[0][4];
aso#49236.t.sc = lv[0][5];
aso#49236.t.scy = lv[0][6];
} else {
aso#49236.t["aso#19291"] = "snap";
}
aso#49236.createEmptyMovieClip("c", 1);
aso#49236.c.filters = [bf];
obj.length = 0;
zn.length = 0;
ca = lv.slice(2);
for (var _local10 in ca) {
aso#83357(ca[_local10]);
}
ca = lv[1];
aso#13302(2);
tgt.draw(scr, new flash.geom.Matrix(0.5, 0, 0, 0.5), new flash.geom.ColorTransform(), "normal", tgt.rectangle, true);
scr.dispose();
scr = new flash.display.BitmapData(wid, hig, false, 0);
aso#49236.attachBitmap(scr, 0);
for (var _local10 in obj) {
var _local3 = obj[_local10];
_local3.fill._x = _local3._x;
_local3.fill._y = _local3._y;
}
aso#13302(1);
tgt.draw(aso#49236.c, m);
if ((lv[0][1] != 0) && (lv[0][7] != 4294967295)) {
var _local1;
var _local2;
var _local14;
var _local7 = lv[0][3];
var _local6 = lv[0][4];
var _local9 = lv[0][5];
var _local8 = lv[0][6];
var _local3 = aso#49236.t;
var _local4 = _local3.createEmptyMovieClip("c", 0);
_local3.createEmptyMovieClip("r", 1);
_local4.beginFill(0, 0);
_local4.lineStyle(0, lv[0][7], 30, true, "none", "none", "miter", 1);
_local2 = ((lv[0][2] + 1) * _local8) + _local6;
while (_local2 > _local6) {
_local4.moveTo(_local7, _local2);
_local4.lineTo(_local7, _local2 - 5);
_local2 = _local2 - 10;
}
_local4.endFill();
_local1 = (lv[0][1] + 1) * _local9;
while (_local1 > 0) {
var _local11 = _local4.duplicateMovieClip("c" + _local1, _local3.getNextHighestDepth());
_local11._x = _local1;
_local1 = _local1 - _local9;
}
_local4 = _local3.r;
_local4.beginFill(0, 0);
_local4.lineStyle(0, lv[0][7], 30, true, "none", "none", "miter", 1);
_local1 = ((lv[0][1] + 1) * _local9) + _local7;
while (_local1 > _local7) {
_local4.moveTo(_local1, _local6);
_local4.lineTo(_local1 - 5, _local6);
_local1 = _local1 - 10;
}
_local4.endFill();
_local2 = (lv[0][2] + 1) * _local8;
while (_local2 > 0) {
var _local11 = _local4.duplicateMovieClip("c" + _local1, _local3.getNextHighestDepth());
_local11._y = _local2;
_local2 = _local2 - _local8;
}
}
}
function aso#83357(o) {
var _local5;
var _local3;
var _local4;
var _local1;
var _local6 = (o[0] + "_") + String(o[1]);
if (o[1] > 0) {
_local5 = aso#49236.getNextHighestDepth();
if (_local6.charAt(0) == "~") {
_local3 = aso#28064(aso#49236, _local5, false, o);
} else if (_local6.charAt(0) == "=") {
_local3 = aso#65390(aso#49236, _local5, false, o);
} else {
_local3 = aso#49236.attachMovie(o[0] + "_e", "n" + _local5, _local5);
}
obj.push(_local3);
_local3.transform.colorTransform = cT_x;
for (_local1 in zn) {
if (((zn[_local1].t2 == _local6) && (zn[_local1]._x == o[2])) && (zn[_local1]._y == o[3])) {
_local4 = zn[_local1];
break;
}
}
if (_local4 != undefined) {
_local4.m--;
} else {
if ((aso#49236.t["aso#19291"] == "aso#44218") || (aso#49236.t["aso#19291"] == "icon")) {
_local4 = (aso#49236.t.n[_local5] = new Object());
} else if (aso#49236.t["aso#19291"] == "snap") {
_local4 = aso#49236.t.attachMovie(o[0] + "_t", "n" + _local5, _local5);
}
zn.push(_local4);
_local4.m = 0;
}
if (_local6.charAt(0) == "~") {
_local3.fill = aso#28064(fills, _local5, true, o);
} else if (_local6.charAt(0) == "=") {
_local3.fill = aso#65390(fills, _local5, true, o);
} else {
_local3.fill = fills.attachMovie(o[0] + "_f", "n" + _local5, _local5);
}
_local3.fill.transform.colorTransform = new flash.geom.ColorTransform(0, 0, 0, 1, o[1], 0, 0, 0);
_local3.fill.blendMode = "add";
_local3.onPress = aso#42826;
_local3.onRollOver = aso#36837;
_local3.onRelease = (_local3.onReleaseOutside = aso#93522);
_local3.useHandCursor = false;
_local4._x = (_local3.fill._x = o[2]);
_local4._y = (_local3.fill._y = o[3]);
_local3._x = o[4];
_local3._y = o[5];
_local4.t1 = (_local3.t1 = o[0]);
_local4.t2 = (_local3.t2 = _local6);
_local3.m = undefined;
_local3.w = Math.floor(_local3._width / aso#49236.t.sc);
_local3.h = Math.floor(_local3._height / aso#49236.t.sc);
} else if (!(o[1] === -1)) {
} else {
_local5 = aso#49236.c.getNextHighestDepth();
_local3 = aso#49236.c.attachMovie(o[0], "c" + _local5, _local5);
}
}
function aso#28064(g, n, fill, o) {
var _local2;
var _local5;
var _local4;
var _local1;
var _local6 = aso#49236.t.sc;
var _local3 = g.createEmptyMovieClip("n" + n, n);
if (fill) {
_local3.beginFill(o[1], 100);
_local3.lineStyle(0, 0, 0);
} else {
_local3.beginFill(0, 0);
_local3.lineStyle(2, 16777215, 100);
}
_local2 = 6;
while (_local2 < o.length) {
_local1 = o[_local2];
_local5 = _local6 * ((_local1 >> 4) & 15);
_local4 = _local6 * (_local1 & 15);
if (_local1 & 256) {
_local3.moveTo(_local5, _local4);
} else {
_local3.lineTo(_local5, _local4);
}
_local2++;
}
_local3.endFill();
return(_local3);
}
function aso#65390(g, n, fill, o) {
var _local1;
var _local2;
var _local8 = aso#49236.t.sc;
var _local9 = aso#49236.t.scy;
var _local6;
var _local7 = g.createEmptyMovieClip("n" + n, n);
if (fill) {
_local6 = "_f";
} else {
_local6 = "_e";
}
_local1 = 6;
while (_local1 < o.length) {
_local2 = o[_local1 + 1];
_local7.attachMovie(o[_local1] + _local6, "c" + _local1, _local1, {_x:_local8 * ((_local2 >> 4) & 15), _y:_local9 * (_local2 & 15)});
_local1 = _local1 + 2;
}
return(_local7);
}
function aso#05500() {
var _local6;
var _local5;
var _local4;
var _local3;
var _local2;
var _local1;
if (aso#43247 == undefined) {
if (((hig == 480) && (_xmouse < 319)) || ((wid == 640) && (_ymouse < 239))) {
if (aso#80573.getInstanceAtDepth(2) == undefined) {
aso#80573.attachMovie("instr_" + (aso#80573.lv + 1), "i", 2);
aso#80573.i._alpha = 0;
} else if (aso#80573.i._alpha < 100) {
aso#80573.i._alpha = aso#80573.i._alpha + 4;
}
} else if (aso#80573.getInstanceAtDepth(2) != undefined) {
if (aso#80573.i._alpha > 0) {
aso#80573.i._alpha = aso#80573.i._alpha - 8;
} else {
aso#80573.i.removeMovieClip();
}
}
} else {
if (aso#80573.getInstanceAtDepth(2) != undefined) {
aso#80573.i.removeMovieClip();
}
_local6 = _xmouse - aso#47423;
_local5 = _ymouse - aso#78760;
if (_local6 < 0) {
_local6 = 0;
}
if (_local5 < 0) {
_local5 = 0;
}
if ((_local6 + aso#43247._width) > wid) {
_local6 = wid - aso#43247._width;
}
if ((_local5 + aso#43247._height) > hig) {
_local5 = hig - aso#43247._height;
}
if (aso#49236.t["aso#19291"] == "snap") {
_local4 = zn.length;
while (_local4--) {
_local1 = zn[_local4];
if (_local1.t1 == aso#43247.t1) {
_local3 = _local6 - _local1._x;
_local2 = _local5 - _local1._y;
if (((_local3 * _local3) + (_local2 * _local2)) < snapping) {
_local6 = _local1._x;
_local5 = _local1._y;
break;
}
}
_local4 > -1;
}
} else {
_local3 = Math.round((_local6 - aso#49236.t.ox) / aso#49236.t.sc);
_local2 = Math.round((_local5 - aso#49236.t.oy) / aso#49236.t.scy);
if ((((_local3 > -1) && (_local2 > -1)) && ((_local3 + aso#43247.w) < (aso#49236.t.mx + 2))) && ((_local2 + aso#43247.h) < (aso#49236.t.my + 2))) {
_local3 = ((_local3 * aso#49236.t.sc) + aso#49236.t.ox) - _local6;
_local2 = ((_local2 * aso#49236.t.scy) + aso#49236.t.oy) - _local5;
if (((_local3 * _local3) + (_local2 * _local2)) < snapping) {
_local6 = _local6 + _local3;
_local5 = _local5 + _local2;
}
}
}
aso#43247.fill._x = (aso#43247._x = _local6);
aso#43247.fill._y = (aso#43247._y = _local5);
aso#13302(1);
}
}
function aso#36837() {
if (aso#43247 == undefined) {
var _local2 = this.transform.colorTransform;
_local2.redOffset = -50;
_local2.greenOffset = -50;
_local2.blueOffset = 100;
this.transform.colorTransform = _local2;
this.onEnterFrame = aso#62185;
}
}
function aso#62185() {
var _local2 = this.transform.colorTransform;
var _local3 = _local2.redOffset + 2;
if (_local3 >= 0) {
_local3 = 0;
delete this.onEnterFrame;
}
_local2.redOffset = _local3;
_local2.greenOffset = _local3;
_local2.blueOffset = -2 * _local3;
this.transform.colorTransform = _local2;
}
function aso#42826() {
Set("aso#43247", this);
aso#43247.transform.colorTransform = cT_d;
Set("aso#47423", _xmouse - this._x);
Set("aso#78760", _ymouse - this._y);
var _local2 = aso#49236.getNextHighestDepth() - 1;
if (aso#43247.getDepth() < _local2) {
aso#43247.swapDepths(aso#49236.getInstanceAtDepth(_local2));
}
if (aso#43247.m != undefined) {
aso#43247.m.m--;
aso#43247.m = undefined;
}
aso#68595.attachSound("pickup");
aso#68595.start();
}
function aso#93522() {
var _local4 = aso#43247._x;
var _local5 = aso#43247._y;
var _local2;
var _local1;
var _local3 = 0;
if (aso#49236.t["aso#19291"] == "snap") {
_local2 = zn.length;
while (_local2--) {
_local1 = zn[_local2];
if (((_local1._x == _local4) && (_local1._y == _local5)) && (_local1.t1 == aso#43247.t1)) {
if (_local1.t2 == aso#43247.t2) {
_local1.m++;
aso#43247.m = _local1;
_local3 = 2;
break;
}
_local3 = 1;
}
_local2 > -1;
}
} else {
_local2 = zn.length;
while (_local2--) {
_local1 = zn[_local2];
if (((_local1._x == _local4) && (_local1._y == _local5)) && (_local1.t2 == aso#43247.t2)) {
_local1.m++;
aso#43247.m = _local1;
_local3 = 2;
break;
}
_local2 > -1;
}
if (_local3 == 0) {
var _local7 = (_local4 - aso#49236.t.ox) / aso#49236.t.sc;
var _local6 = (_local5 - aso#49236.t.oy) / aso#49236.t.scy;
if ((((((_local7 > -1) && (_local7 < (aso#49236.t.mx + 2))) && (_local6 > -1)) && (_local6 < (aso#49236.t.my + 2))) && (Math.floor(_local7) == _local7)) && (Math.floor(_local6) == _local6)) {
_local3 = 1;
}
}
}
if (_local3 > 0) {
aso#43247.transform.colorTransform = cT_a;
aso#68595.attachSound("aso#30848");
} else {
aso#43247.transform.colorTransform = cT_x;
aso#68595.attachSound("aso#16086");
}
if (_local3 == 2) {
_local4 = 0;
_local2 = zn.length;
while (_local2--) {
_local1 = zn[_local2];
if (_local1.m != 1) {
_local4 = 1;
break;
}
_local2 > -1;
}
if (_local4 == 0) {
aso#49236.t.removeMovieClip();
aso#49236.c.removeMovieClip();
aso#49236.attachBitmap(tgt, 0);
onEnterFrame = aso#08705;
aso#44639.onMouseDown = aso#10097;
aso#44639.onKeyDown = aso#72771;
aso#80573.ibb.removeMovieClip();
aso#80573.imb.removeMovieClip();
so.data.p = so.data.p | (1 << aso#80573.lv);
for (_local1 in obj) {
delete obj[_local1].onPress;
}
_local1 = "t";
if (lv[aso#80573.lv][0][0] == "w") {
_local1 = "w";
}
aso#80573.attachMovie("winlev_" + _local1, "winlev", aso#80573.getNextHighestDepth());
aso#68595.attachSound("aso#24859");
aso#96727();
}
}
aso#68595.start();
Set("aso#43247", undefined);
}
function aso#08705() {
var _local1 = obj[0]._alpha - 2;
if (_local1 < 0) {
_local1 = 0;
}
for (var _local2 in obj) {
obj[_local2]._alpha = _local1;
}
}
function aso#63998() {
aso#49236.removeMovieClip();
aso#80573.removeMovieClip();
fills.removeMovieClip();
aso#44639.onKeyDown = undefined;
aso#44639.onMouseDown = undefined;
onEnterFrame = undefined;
obj.length = 0;
zn.length = 0;
scr.dispose();
tgt.dispose();
Set("aso#31269", 0);
}
function aso#98119() {
var _local1;
if (aso#43247 != undefined) {
aso#40042.enabled = (aso#77368.enabled = false);
} else {
aso#40042.enabled = (aso#31269 & 1) == 1;
aso#77368.enabled = (aso#31269 & 2) != 2;
}
if (onEnterFrame != aso#08705) {
aso#38650.enabled = true;
if (so.data.i) {
_local1 = "Hide";
} else {
_local1 = "Show";
}
aso#38650.caption = _local1 + " in-game icons";
} else {
aso#38650.enabled = false;
aso#38650.caption = "level completed";
}
}
function aso#22075() {
if ((aso#31269 & 2) == 2) {
aso#52020();
}
if (aso#31269 > 0) {
aso#63998();
aso#07313();
}
}
function aso#96727() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < 15) {
if ((so.data.p & (1 << _local2)) > 0) {
_local3++;
}
_local2++;
}
_root.kongregateStats.submit("LevelsCleared", _local3);
}
function aso#48815() {
so.data.i = !so.data.i;
aso#80573.ibb._visible = (aso#80573.imb._visible = so.data.i);
}
function aso#86141() {
aso#50628.start();
}
function aso#68174() {
var _local2 = obj.length;
if (_local2 > 0) {
while (_local2 >= 0) {
var _local1 = obj[_local2--];
if ((_local1.n--) > 0) {
if (_local1.n == 0) {
_local1._x = _local1.tx;
_local1._y = _local1.ty;
obj.splice(_local2 + 1, 1);
} else {
_local1._x = _local1._x - _local1["aso#99932"];
_local1._y = _local1._y - _local1["aso#62606"];
}
}
}
aso#13302(1);
scr.applyFilter(scr, scr.rectangle, pt, tf);
} else {
aso#11910.onEnterFrame = undefined;
}
}
function aso#18870() {
}
function aso#04108() {
aso#80573["aso#74584"]._alpha = aso#80573["aso#74584"]._alpha - 34;
if (aso#80573["aso#74584"]._alpha < 0) {
aso#80573["aso#74584"]._alpha = 0;
}
aso#80573["aso#74584"].onEnterFrame = aso#74163;
aso#68595.attachSound("aso#16086");
aso#68595.start();
}
function aso#74163() {
if (((hig == 480) && (_xmouse > 320)) || ((wid == 640) && (_ymouse > 240))) {
if (aso#80573["aso#74584"]._alpha < 100) {
aso#80573["aso#74584"]._alpha = aso#80573["aso#74584"]._alpha + 4;
} else {
aso#80573["aso#74584"].onEnterFrame = undefined;
aso#80573["aso#74584"]._alpha = 100;
}
} else if (Math.random() < (aso#80573["aso#74584"]._alpha / 101)) {
aso#80573["aso#74584"]._alpha = aso#80573["aso#74584"]._alpha + 1;
if (aso#80573["aso#74584"]._alpha > 99) {
aso#80573["aso#74584"]._alpha = 100;
aso#80573["aso#74584"].onEnterFrame = undefined;
}
}
}
var pt = (new flash.geom.Point(0, 0));
var m = (new flash.geom.Matrix());
var cT = (new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0));
var bf = (new flash.filters.BlurFilter(4, 4, 2));
var tf = (new flash.filters.BlurFilter(2, 2, 1));
var cT_a = (new flash.geom.ColorTransform(0.8, 0.8, 0.8, 1, 0, 0, 0, 0));
var cT_x = (new flash.geom.ColorTransform(1, 0.6, 0.6, 1, 0, 0, 0, 0));
var cT_d = (new flash.geom.ColorTransform(0.6, 0.6, 1, 1, 0, 0, 0, 0));
var cT_h = (new flash.geom.ColorTransform(0.9, 0.9, 1, 1, 0, 0, 0, 0));
var aso#75976 = new Array();
var scr;
var tgt;
var aso#43247 = undefined;
var aso#47423;
var aso#78760;
var obj = new Array();
var zn = new Array();
var ca;
var snapping = 101;
var wid;
var hig;
var so;
var aso#31269 = 0;
aso#11910.createEmptyMovieClip("noisemc", 10);
noisemc.createEmptyMovieClip("m", 0);
noisemc.createEmptyMovieClip("f", 1);
var aso#50628 = new Sound(noisemc.m);
var aso#68595 = new Sound(noisemc.f);
var lv = [[["t", 0, 16777215, 0, 30], [0, 16711680, 65280, 16776960, 255, 16711935, 65535, 16777215], ["c1", 1, 80, 160, 80, 0], ["c1", 2, 124, 225, 80, 160], ["c1", 4, 46, 225, 80, 320]], [["w", 13, 2, 100, 20, 30, 30, 16742399, 16738047, 35, -10], [4456516, 65535, 65280, 7864183, 16776960, 10092288, 7799039, 39168, 16776960, 10092288, 7799039, 39168, 16776960, 10092288, 7799039, 39168, 16742144, 13369599, 10066176, 5592371, 16759552, 8912896, 11180288, 6706483, 16759552, 8912896, 11180288, 6706483, 16759552, 8912896, 11180288, 6706483, 16711680], ["~6", 32, 400, 80, 160, 76, 256, 17, 32], ["~5", 16, 370, 50, 130, 46, 256, 17, 49, 64], ["~4", 8, 100, 20, 100, 10, 256, 17, 81, 96], ["~3", 4, 160, 80, 400, 76, 256, 17, 32], ["~2", 2, 130, 50, 370, 46, 256, 34, 64], ["~1", 1, 340, 20, 340, 10, 256, 51, 96], ["aso#87533", -1]], [["t", 0, 7829367, 0, 2], [0, 30464, 26112, 26112, 26112, 26112, 26112, 26112, 26112, 16777215, 0, 0, 0, 0, 0, 0, 0, 0, 8969727, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16777215, 0, 0, 0, 0, 0, 0, 0, 0, 16777215, 0], ["c1", 37, 92, 40, 72, 274], ["c1", 36, 142, 17, 69, 114], ["su", 9, 57, 247, 119, 65], ["sd", 36, 57, 265, 120, 10], ["su", 9, 175, 210, 194, 200], ["sd", 9, 175, 229, 0, 246], ["sd", 18, 30, 51, 253, 254], ["su", 18, 30, 31, 40, 205], ["tu", 1, 34, 355, 119, 84], ["tu", 1, 34, 397, 57, 193], ["tu", 1, 34, 422, 180, 192], ["tu", 1, 120, 388, 120, 156], ["tu", 1, 120, 422, 118, 274], ["tu", 1, 212, 360, 152, 138], ["tu", 1, 212, 395, 120, 193], ["tu", 1, 212, 422, 87, 138]], [["w", 0, 7864183, 10, -10], [17408, 7842304, 43520, 43622, 65280, 16776960, 16763904, 16750848, 16737792, 16724736, 16711680, 13369344, 10027008, 6684672], ["c2", 1, 60, 25, 75, 65], ["c2", 1, 112, 69, 125, 115], ["c2", 1, 112, 69, 125, 15], ["c2", 1, 137, 121, 175, 65], ["c2", 1, 204, 124, 225, 115], ["c2", 1, 204, 124, 225, 15], ["c2", 1, 253, 90, 275, 65], ["c2", 1, 318, 67, 325, 115], ["c2", 1, 318, 67, 325, 15], ["c2", 1, 392, 63, 375, 65], ["c2", 1, 454, 88, 425, 115], ["c2", 1, 454, 88, 425, 15], ["c2", 1, 501, 131, 475, 65], ["an", -1]], [["t", 0, 0, 16, -6], [26112, 26112, 26112, 26112, 16776960, 26112, 26112, 26112, 26112, 26112, 26112, 26112, 26112, 26112, 26112, 26112, 16711680, 16711680, 16742144, 16742144, 16742144, 16742144, 16742144, 16742144, 16742144, 16742144, 16742144, 16742144, 16742144], ["c1", 3, 0, 52, 0, 0], ["c1", 3, 159, 52, 159, 0], ["c1", 3, 80, 189, 82, 76], ["c1", 1, 80, 2, 0, 320], ["c1", 1, 0, 138, 81, 248], ["c1", 1, 159, 138, 159, 320], ["c2", 16, 109, 124, 109, 183], ["st", -1, 100, 100]], [["w", 10, 6, 150, 20, 30, 24, 4294967295, 7829503, 42, -10], [0, 255, 65280, 16711680, 16777215, 16777028], ["=a", 1, 300, 20, 180, 20, "st", 2, "pl", 32, "st", 66], ["=a", 2, 180, 116, 300, 20, "st", 2, "pl", 32, "st", 66], ["=b", 1, 240, 20, 300, 20, "st", 0, "st", 34], ["=c", 2, 180, 68, 300, 68, "st", 0, "sa", 34, "st", 4], ["=d", 2, 240, 20, 360, 68, "st", 0, "st", 34, "sa", 4], ["=e", 1, 180, 20, 360, 20, "st", 2, "st", 32], ["=f", 1, 180, 68, 180, 116, "st", 0, "sa", 34], ["=g", 1, 300, 68, 180, 68, "st", 4, "st", 64], ["=h", 2, 360, 68, 300, 20, "st", 32, "st", 2, "mn", 36], ["=i", 2, 360, 116, 240, 68, "st", 0, "mn", 34], ["=j", 1, 360, 20, 180, 20, "ea", 0, "mn", 38], ["=k", 1, 240, 116, 360, 20, "pl", 0, "st", 34], ["aso#81544", -1]], [["w", 0, 16777215, 28, -10], [6715306, 16711680, 16742144, 15658496, 65280, 65535, 5570815, 11141375, 6715306, 6715306, 6715306, 6715306, 6715306, 6715306, 6715306, 6715306, 16777215], ["c3", 32, 321, 43, 62, 52], ["c3", 32, 363, 2, 459, 48], ["c3", 32, 387, 54, 130, 91], ["c3", 32, 189, 120, 133, 50], ["c3", 32, 158, 104, 458, 111], ["c3", 32, 150, 148, 510, 53], ["c3", 32, 406, 27, 97, 108], ["c3", 32, 448, 43, 68, 97], ["c3", 32, 106, 140, 96, 30], ["c3", 32, 212, 150, 511, 107], ["c1", 1, 220, 30, 60, 31], ["c1", 1, 224, 37, 445, 40], ["c1", 1, 228, 44, 445, 40], ["c1", 1, 232, 51, 445, 40], ["c1", 1, 236, 58, 445, 40], ["c1", 1, 240, 65, 445, 40], ["c1", 1, 244, 72, 445, 40], ["c1", 8, 248, 79, 237, 34]], [["t", 0, 16742263, 0, 35], [4456448, 4456448, 52224, 4456448, 5570815, 4456448, 12255419, 10027263, 5570815, 16751103, 5570815, 16711935], ["c1", 5, 104, 0, 134, 312], ["c1", 3, 158, 78, 48, 210], ["c1", 1, 91, 158, 77, 245], ["c1", 3, 6, 126, 30, 295], ["c1", 5, 10, 21, 159, 177], ["c2", 1, 36, 338, 0, 378], ["c2", 1, 158, 260, 217, 152], ["c2", 1, 69, 307, 217, 378], ["st2", -1]], [["t", 0, 6737100, -2, -18], [13158, 255, 13158, 56831, 13158, 65280, 13158, 16776960, 13158, 16746496, 13158, 16711680, 13158, 16711935, 13158, 10027263, 13158, 255, 13158, 56831, 13158, 65280, 13158, 16776960, 13158, 16746496, 13158, 16711680, 13158, 16711935, 13158, 10027263, 13158, 255, 13158, 56831, 13158, 65280, 13158, 16776960, 13158, 16746496, 13158, 16711680, 13158, 16711935, 13158, 10027263, 13158, 255, 13158, 56831, 13158, 65280], ["c2", 1, 100, 2, 141, 169], ["c2", 2, 100, 2, 0, 0], ["c2", 2, 120, 10, 0, 0], ["c2", 2, 80, 10, 0, 0], ["c2", 2, 60, 23, 0, 0], ["c2", 2, 140, 23, 0, 0], ["c2", 2, 50, 41, 0, 0], ["c2", 2, 150, 41, 0, 0], ["c2", 2, 47, 60, 0, 0], ["c2", 2, 153, 60, 0, 0], ["c1", 2, 143, 71, 0, 320], ["c2", 1, 28, 215, 217, 128], ["c2", 4, 28, 215, 217, 0], ["c1", 2, 0, 72, 0, 320], ["c1", 2, 0, 88, 0, 320], ["c1", 2, 0, 104, 0, 320], ["c1", 2, 0, 120, 0, 320], ["c1", 2, 0, 135, 0, 320], ["c1", 2, 0, 148, 0, 320], ["c2", 1, 216, 327, 217, 213], ["c1", 2, 137, 198, 0, 320], ["c1", 2, 123, 263, 0, 320], ["c1", 2, 145, 303, 0, 320], ["c1", 2, 132, 287, 0, 320], ["c1", 2, 123, 229, 0, 320], ["bk", -1]], [["w", 10, 7, 180, 20, 25, 25, 13386956, 16711680, 40, 2], [8755, 255, 13369599, 16711680, 16716049, 16720418, 16724787, 16729156, 16733525, 16737894, 16742263, 16746632, 16751001, 16755370, 16759739], ["~1", 1, 330, 70, 405, 70, 256, 48, 51, 35, 33, 17, 19, 3, 0], ["~1", 1, 380, 120, 80, 45, 256, 48, 51, 35, 33, 17, 19, 3, 0], ["~1", 1, 180, 120, 480, 45, 256, 48, 51, 35, 33, 17, 19, 3, 0], ["~1", 1, 230, 70, 155, 70, 256, 48, 51, 35, 33, 17, 19, 3, 0], ["~2", 1, 230, 20, 230, 145, 256, 16, 18, 98, 96, 112, 113, 81, 83, 35, 33, 1, 0], ["~3", 1, 205, 20, 305, 95, 272, 32, 34, 18, 19, 3, 4, 36, 35, 51, 49, 17, 16], ["~4", 1, 355, 20, 255, 95, 272, 32, 33, 1, 3, 19, 20, 52, 51, 35, 34, 18, 16], ["~5", 1, 230, 120, 380, 20, 272, 32, 33, 49, 50, 18, 20, 52, 51, 3, 1, 17, 16], ["~6", 1, 330, 120, 180, 20, 272, 32, 33, 49, 51, 3, 4, 36, 34, 2, 1, 17, 16], ["~7", 1, 180, 95, 455, 120, 272, 32, 34, 18, 20, 4, 1, 17, 16], ["~8", 1, 405, 95, 130, 120, 256, 16, 17, 33, 36, 20, 18, 2, 0], ["~9", 1, 255, 70, 155, 120, 288, 48, 52, 4, 2, 18, 17, 33, 32], ["~a", 1, 305, 95, 405, 145, 256, 32, 33, 49, 51, 3, 0], ["~b", 1, 255, 195, 255, 95, 256, 32, 33, 1, 0, 304, 80, 81, 49, 48]], [["w", 42, 9, 36, 50, 13, 13, 4294967295, 30583, 38, -10], [0, 13421823, 0, 13421823, 0, 13421823, 0, 13421823], ["~5", 1, 218, 50, 465, 50, 258, 32, 64, 98, 100, 85, 102, 104, 89, 72, 70, 38, 4, 2, 290, 36, 68, 66, 34], ["~1", 1, 374, 50, 322, 50, 258, 32, 64, 81, 66, 34, 36, 68, 102, 104, 74, 42, 25, 40, 72, 70, 38, 4, 2], ["~2", 1, 374, 50, 322, 102, 258, 32, 64, 81, 66, 34, 36, 68, 102, 104, 74, 42, 8, 6, 21, 4, 2, 294, 40, 72, 70, 38], ["~2", 1, 270, 50, 88, 50, 258, 32, 64, 81, 66, 34, 36, 68, 102, 104, 74, 42, 8, 6, 21, 4, 2, 294, 40, 72, 70, 38], ["~3", 1, 231, 50, 335, 50, 257, 16, 48, 82, 84, 69, 86, 88, 73, 56, 54, 69, 52, 50, 18, 1], ["~4", 1, 322, 50, 322, 102, 258, 32, 64, 98, 100, 85, 102, 104, 74, 42, 8, 6, 21, 4, 2, 290, 36, 68, 66, 34, 294, 40, 72, 70, 38], ["~0", 1, 283, 50, 231, 50, 257, 16, 48, 82, 84, 69, 86, 88, 58, 26, 9, 24, 56, 54, 22, 5, 20, 52, 50, 18, 1], ["42", -1]], [["w", 30, 10, 10, 10, 20, 20, 8978431, 30719, 74, -10], [85, 85, 52343, 85, 35037, 35037, 35037, 35037, 6737100, 6737100, 6737100, 6737100, 6737100, 6737100, 6737100, 6737100, 85, 85, 13408767, 13408767, 13408767, 13408767, 13408767, 85], ["e", 1, 450, 130, 50, 99], ["e", 4, 470, 150, 440, 157], ["c3", 8, 410, 150, 267, 121], ["c3", 1, 490, 110, 104, 156], ["c3", 23, 370, 150, 509, 98], ["c3", 16, 550, 150, 146, 157], ["e", 16, 30, 130, 115, 49], ["e", 8, 190, 130, 314, 140], ["e", 23, 230, 130, 387, 25], ["c2", 1, 110, 130, 60, 134], ["c2", 1, 110, 110, 4, 137], ["c3", 16, 210, 30, 144, 99], ["e", 4, 130, 30, 518, 157], ["c3", 1, 90, 10, 97, 74], ["c3", 2, 130, 10, 6, 2], ["c2", 23, 10, 10, 450, 70], ["c2", 8, 50, 10, 333, 63], ["c3", 16, 290, 10, 142, 0], ["e", 2, 330, 10, 51, 15], ["c3", 8, 430, 10, 277, 73], ["c3", 23, 470, 10, 558, 101], ["fe", -1]], [["t", 7, 7, 40, 4, 30, 30, 16777215, 5592405, 0, -10], [0, 16711935, 16711680, 16746496, 16776960, 65535, 65280, 255, 16777215, 0], ["~0", 3, 40, 4, 0, 247, 256, 32, 33, 49, 50, 66, 67, 51, 52, 36, 35, 19, 17, 1], ["~1", 1, 100, 34, 11, 267, 0, 16, 17, 49, 48, 80, 81, 65, 66, 18, 19, 3], ["~2", 2, 160, 4, 77, 252, 256, 64, 65, 49, 50, 34, 35, 3, 2, 18, 17, 1], ["~3", 1, 220, 34, 71, 316, 272, 32, 37, 5, 4, 20, 19, 3, 1, 17], ["~4", 2, 40, 34, 171, 250, 256, 16, 18, 34, 35, 51, 53, 37, 36, 4], ["~5", 3, 130, 34, 123, 249, 288, 64, 65, 49, 51, 19, 20, 4, 2, 18, 17, 33], ["~6", 3, 160, 94, 190, 345, 304, 64, 67, 19, 18, 2, 1, 49], ["~7", 2, 70, 94, 119, 381, 256, 16, 17, 33, 35, 19, 18, 2, 305, 97, 98, 82, 83, 67, 66, 50], ["~8", 1, 130, 154, 173, 369, 256, 32, 33, 49, 51, 3], ["~9", 1, 40, 94, 203, 263, 272, 32, 33, 49, 53, 5, 4, 36, 34, 18], ["~a", 1, 100, 4, 22, 397, 256, 32, 33, 49, 50, 18, 17, 1], ["~b", 1, 70, 34, 111, 255, 272, 32, 33, 49, 50, 34, 37, 21, 20, 4, 2, 18], ["~8", 2, 40, 154, 5, 295, 256, 32, 33, 49, 51, 3], ["~c", 5, 40, 154, 248, 250, 256, 32, 34, 2], ["~c", 4, 220, 184, 11, 412, 256, 32, 34, 2], ["~d", 3, 130, 184, 22, 399, 256, 16, 17, 49, 48, 80, 82, 2]], [["t", 15, 12, 8, 100, 19, 19, 4294967295, 10092543, 0, 15], [68, 6710937, 8960955, 16777215, 119], ["~0", 1, 122, 100, 114, 228, 257, 32, 65, 67, 100, 69, 71, 40, 7, 38, 34, 1], ["~1", 1, 84, 100, 190, 361, 289, 64, 97, 66, 68, 37, 4, 35], ["~2", 1, 122, 100, 0, 285, 257, 32, 65, 67, 100, 102, 135, 104, 71, 69, 36, 34], ["~3", 1, 46, 157, 0, 152, 289, 64, 97, 66, 68, 99, 132, 101, 68, 37, 4, 35], ["~4", 1, 160, 157, 0, 361, 257, 32, 65, 67, 100, 69, 36, 34], ["~5", 1, 8, 214, 152, 304, 289, 64, 97, 66, 70, 39, 37, 4, 35], ["~6", 1, 198, 214, 152, 19, 257, 32, 65, 67, 100, 102, 71, 69, 36, 34], ["~7", 1, 84, 233, 76, 285, 257, 32, 65, 67, 36, 3, 1], ["~8", 1, 160, 233, 76, 57, 288, 65, 96, 98, 131, 100, 102, 69, 38, 36, 3, 34], ["~9", 1, 236, 271, 228, 209, 257, 32, 65, 67, 36, 34, 1], ["~a", 1, 122, 290, 76, 171, 257, 32, 65, 96, 98, 67, 34, 3], ["~7", 1, 8, 271, 190, 228, 257, 32, 65, 67, 36, 3, 1], ["~b", 1, 8, 233, 114, 114, 321, 96, 98, 36, 3, 34, 100, 102, 69], ["~c", 1, 84, 233, 38, 0, 321, 96, 98, 131, 100, 34, 3, 36, 38, 69], ["~d", 1, 122, 176, 0, 19, 288, 34, 67, 69, 38, 36, 3, 1], ["~e", 1, 46, 157, 152, 152, 289, 64, 97, 99, 37, 4, 35, 68, 66], ["~f", 1, 84, 271, 152, 437, 257, 32, 98, 129, 96, 34], ["aso#56196", -1]], [["t", 5, 4, 10, 200, 50, 50, 16777215, 16777215, 0, 40], [68, 14483456, 11141120, 13391104, 13369429, 14509670, 10048853, 3355443], ["rt", 5, 10, 400, 0, 0], ["rt", 1, 10, 200, 100, 0], ["rt", 3, 110, 250, 200, 0], ["sq", 4, 210, 300, 0, 50], ["rt", 3, 10, 250, 200, 70], ["rt", 4, 110, 200, 0, 110], ["rt", 3, 210, 250, 200, 150], ["sq", 5, 60, 300, 150, 85], ["sq", 6, 10, 300, 100, 110], ["sq", 5, 260, 300, 150, 135], ["rt", 1, 160, 250, 200, 210], ["rt", 1, 60, 300, 100, 230], ["rt", 1, 160, 300, 0, 260], ["sq", 1, 10, 350, 0, 210], ["sq", 1, 260, 350, 250, 260], ["rt", 2, 110, 400, 0, 319], ["rt", 2, 60, 250, 100, 319], ["sq", 1, 10, 350, 250, 319], ["rt", 4, 60, 350, 200, 378], ["rt", 5, 210, 200, 100, 398], ["rt", 3, 160, 350, 0, 428], ["sq", 6, 210, 400, 0, 378], ["sq", 6, 260, 400, 250, 428]], [["w", "0c1e414414000414", "0c3e0214191f4c16", "cc9aa83080f19558", "e39136e88cec5adf", 10, 10], [0, 255, 26367, 14483711, 0, 12255487, 0, 7799039, 0, 0, 0, 170, 10027263, 0, 16751103, 16751103, 255, 12255487, 255, 12255487, 255, 255, 7799039, 255], ["pl", 5, 20, 10, 0, 10], ["pl", 5, 60, 10, 0, 10], ["~x", 7, 20, 30, 0, 30, 256, 128, 134, 6], ["~x", 1, 40, 40, 0, 40, 256, 16, 21, 5], ["~x", 1, 70, 40, 0, 40, 256, 16, 21, 5], ["c4", 2, 100, 40, 0, 0], ["~x", 1, 130, 40, 0, 0, 256, 32, 37, 5], ["c4", 1, 150, 40, 0, 0], ["~x", 16, 180, 40, 0, 0, 256, 32, 39, 7], ["c4", 4, 150, 60, 0, 0], ["c4", 2, 150, 80, 0, 0], ["~x", 5, 205, 15, 0, 0, 272, 33, 18, 1], ["~x", 1, 205, 40, 0, 0, 256, 32, 37, 5], ["c4", 2, 225, 40, 0, 0], ["pl", 4, 245, 45, 0, 0], ["~x", 7, 310, 10, 0, 0, 256, 80, 88, 8], ["~x", 2, 330, 10, 0, 0, 256, 48, 54, 6], ["c4", 1, 360, 40, 0, 0], ["~x", 1, 390, 40, 0, 0, 256, 32, 37, 5], ["c4", 1, 410, 40, 0, 0], ["~x", 16, 440, 40, 0, 0, 256, 32, 39, 7], ["c4", 4, 410, 60, 0, 0], ["c4", 2, 410, 80, 0, 0], ["pl", 8, 420, 30, 0, 0], ["c4", 2, 460, 40, 0, 0], ["~x", 4, 480, 70, 0, 0, 256, 48, 49], ["~x", 1, 510, 40, 0, 0, 256, 32, 37, 5], ["c4", 2, 510, 40, 0, 0], ["pl", 4, 525, 55, 0, 0], ["c4", 1, 560, 40, 0, 0], ["~x", 8, 600, 60, 0, 0, 256, 16, 17], ["~x", 8, 560, 60, 0, 0, 256, 17, 1]]];
var aso#59401 = function () {
aso#11910.tabChildren = false;
var _local2;
var _local4;
var _local5;
var _local10;
var _local13;
scr = new flash.display.BitmapData(640, 480, false, 0);
_local2 = 0;
while (_local2 < 17) {
_local4 = lv[_local2][1];
_local5 = _local4.length;
_local10 = _local4[_local5 - 1];
_local4.length = 256;
while (_local5 < 256) {
_local4[_local5++] = _local10;
}
_local4 = lv[_local2];
scr.fillRect(scr.rectangle, 0);
aso#11910.createEmptyMovieClip("aso#49236", 4);
var _local7 = new flash.display.BitmapData(80, 80, false, _local4[1][0]);
aso#11910.createEmptyMovieClip("fills", 2);
fills._visible = false;
aso#49236.attachBitmap(scr, 0);
aso#49236.createEmptyMovieClip("t", 2);
aso#49236.t.sc = _local4[0][5];
aso#49236.t.scy = _local4[0][6];
aso#49236.t["aso#19291"] = "icon";
aso#49236.createEmptyMovieClip("c", 1);
obj.length = 0;
zn.length = 0;
ca = _local4.slice(2);
for (var _local14 in ca) {
aso#83357(ca[_local14]);
}
ca = _local4[1];
aso#13302(1);
_local5 = _local4[0].length;
_local10 = _local4[0][_local5 - 2];
_local5 = _local4[0][_local5 - 1];
var _local12 = new flash.geom.Matrix(0.25, 0, 0, 0.25, -_local10, -_local5);
_local7.draw(scr, _local12, undefined, "normal", new flash.geom.Rectangle(0, 0, 320, 240), true);
_local7.draw(aso#49236.c, _local12);
aso#75976[_local2] = _local7;
aso#49236.removeMovieClip();
fills.removeMovieClip();
obj.length = 0;
zn.length = 0;
_local2++;
}
scr.dispose();
var _local15 = new flash.filters.GlowFilter(16777215, 1, 2, 2, 4, 1, false, true);
m.translate(0, 1);
_local2 = 0;
while (_local2 < 15) {
_local13 = aso#11910.createEmptyMovieClip("aso#49236", 4);
var _local11 = String((_local2 + 1) % 10);
var _local9;
var _local6 = _local13.createEmptyMovieClip("n", 1);
var _local8 = 0;
while (_local8 < 2) {
if (_local8 == 0) {
_local9 = _local6.attachMovie("lev", "n0", 1);
} else {
_local9 = _local6.createEmptyMovieClip("n1", 2);
}
var _local3 = _local9.createEmptyMovieClip("i", 0);
_local3.attachMovie("lev" + _local11, "aso#69987", 0);
if (_local2 > 8) {
_local3["aso#69987"]._x = 20;
_local3.attachMovie("lev1", "aso#01324", 1);
_local3["aso#01324"]._x = -20;
if (_local2 != 10) {
_local3["aso#69987"]._x = _local3["aso#69987"]._x - 2.5;
_local3["aso#01324"]._x = _local3["aso#01324"]._x - 2.5;
} else {
_local3["aso#69987"]._x = _local3["aso#69987"]._x - 3;
_local3["aso#01324"]._x = _local3["aso#01324"]._x + 2;
}
}
_local8++;
}
_local6.n1.filters = [_local15];
_local6.n0.i.blendMode = "erase";
_local6.n0.blendMode = "layer";
_local6.n0._alpha = 50;
_local10 = lv[_local2][0][lv[_local2][0].length - 3];
_local6.transform.colorTransform = new flash.geom.ColorTransform((_local10 >> 16) / 255, ((_local10 >> 8) & 255) / 255, (_local10 & 255) / 255, 1, 0, 0, 0, 0);
var _local7 = new flash.display.BitmapData(80, 82, true, 0);
_local7.draw(aso#49236, m);
aso#75976[_local2 + 20] = _local7;
_local2++;
}
m.identity();
_local2 = 0;
while (_local2 < 2) {
aso#11910.attachMovie("tb" + (_local2 + 1), "aso#49236", 4);
var _local7 = new flash.display.BitmapData(80, 80, false, 0);
_local7.draw(aso#49236);
aso#75976[_local2 + 16] = _local7;
_local2++;
}
aso#49236.removeMovieClip();
so = SharedObject.getLocal("Lysis_MagicLayers", "/");
if (so === null) {
so = new Object();
so.data = new Object();
}
if (so.data.i == undefined) {
so.data.p = 0;
so.data.v = 100;
so.data.f = 100;
so.data.i = true;
_root.kongregateStats.submit("LevelsCleared", 0);
} else {
aso#96727();
}
context.hideBuiltInItems();
aso#11910.menu = context;
context.customItems.push(aso#40042);
context.customItems.push(aso#77368);
context.customItems.push(aso#38650);
aso#50628.attachSound("_m");
aso#50628.setVolume(so.data.v);
aso#50628.start();
aso#50628.onSoundComplete = aso#86141;
aso#68595.setVolume(so.data.f);
delete aso#59401;
aso#07313();
};
var aso#44639 = new Object();
Set("aso#72771", function () {
if (Key.getCode() == 32) {
aso#63998();
aso#07313();
}
});
Set("aso#10097", function () {
aso#63998();
aso#07313();
});
Key.addListener(aso#44639);
Mouse.addListener(aso#44639);
var context = new ContextMenu(aso#98119);
var aso#40042 = new ContextMenuItem("Main menu", aso#22075, true);
var aso#77368 = new ContextMenuItem("Sound control", setMusic, false);
var aso#38650 = new ContextMenuItem("", aso#48815, false);
aso#59401();
Symbol 210 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local27);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local24 = 11000;
var _local19 = options.ad_timeout;
if (options.skip) {
_local19 = 0;
}
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 _local15 = _getRes(options);
var _local5 = _local15[0];
var _local14 = _local15[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local7._visible = false;
delete options.no_progress_bar;
} else {
_local7._x = 10;
_local7._y = _local14 - 20;
}
var _local23 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local25 = options.outline;
delete options.outline;
var _local6 = _local7.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local7.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local23);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local8 = _local7.createEmptyMovieClip("_outline", 3);
_local8.lineStyle(0, _local25, 100);
_local8.moveTo(0, 0);
_local8.lineTo(_local5 - 20, 0);
_local8.lineTo(_local5 - 20, 10);
_local8.lineTo(0, 10);
_local8.lineTo(0, 0);
chk.ad_msec = _local24;
chk.ad_timeout = _local19;
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;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
return(s);
};
chk.onEnterFrame = function () {
var _local10 = this._parent._parent;
var _local3 = _local10;
while ((!_local3.getBytesTotal()) && (_local3)) {
_local3 = _local3._parent;
}
if (!_local3) {
_local3 = _root;
}
var _local13 = this._parent._mochiad_ctr;
var _local7 = getTimer() - this.started;
var _local5 = false;
var _local6 = _local3.getBytesTotal();
var _local9 = _local3.getBytesLoaded();
var _local4 = (100 * _local9) / _local6;
var _local12 = (100 * _local7) / chk.ad_msec;
var _local11 = this._mochiad_bar._inside;
var _local15 = Math.min(100, Math.min(_local4 || 0, _local12));
_local15 = Math.max(this.last_pcnt, _local15);
this.last_pcnt = _local15;
_local11._xscale = _local15;
options.ad_progress(_local15);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local4}, clip._mochiad._containerLCName);
if (_local4 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local8 = _local13.getBytesTotal();
if ((_local8 > 0) || (typeof(_local8) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local7 > chk.ad_timeout) && (_local4 == 100)) {
options.ad_failed();
_local5 = true;
}
}
if (_local7 > chk.ad_msec) {
_local5 = true;
}
if (((_local6 > 0) && (_local9 >= _local6)) && (_local5)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local10 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local10);
var clip = options.clip;
var _local9 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = clip._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local11 = _local5[0];
var _local8 = _local5[1];
_local3._x = _local11 * 0.5;
_local3._y = _local8 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local9;
chk.started = getTimer();
chk.showing = false;
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adSkipped = options.ad_skipped;
_local3.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
_local3.rpcTestFn = function (s) {
return(s);
};
var _local21 = false;
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")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
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 () {
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
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;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
return(s);
};
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 showPreloaderAd(options) {
showPreGameAd(options);
}
static function showTimedAd(options) {
showInterLevelAd(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 load(options) {
var _local12 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local12);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local6 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local6._mochiad_loaded) {
return(null);
}
var _local11 = options.depth;
delete options.depth;
var mc = _local6.createEmptyMovieClip("_mochiad", _local11);
var _local10 = _getRes(options);
options.res = (_local10[0] + "x") + _local10[1];
options.server = options.server + options.id;
delete options.id;
_local6._mochiad_loaded = true;
if (_local6._url.indexOf("http") != 0) {
}
var _local4 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local9 = _local4.server;
delete _local4.server;
var _local13 = _allowDomains(_local9);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = mc;
_local5.name = _local8;
_local5.hostname = _local13;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
mc.lc = _local5;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
_local4.lc = _local8;
_local4.st = getTimer();
if (!options.skip) {
_local4.loadMovie(_local9 + ".swf", "POST");
}
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
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") {
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 211 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 212 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _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("3.9.4 as2");
}
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";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
};
}
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
_connecting = true;
init(id, clip);
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.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 _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
onError("NotConnected");
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (_param1) {
this.isLoading = true;
};
_local3.onLoadComplete = function (_arg1) {
_arg1.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError("IOError");
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(_param1, errorCode, httpStatus) {
disconnect();
onError(errorCode);
}
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.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.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];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "services" :
mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args);
break;
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "social" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError("IOError");
};
_connecting = false;
_connected = true;
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 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._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("NotConnected");
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError("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:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://link.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static var CONNECTED = "onConnected";
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 213 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function getAchievements(properties) {
mochi.as2.MochiServices.send("events_getAchievements", properties);
}
static function unlockAchievement(properties) {
mochi.as2.MochiServices.send("events_unlockAchievement", properties);
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function showAwards(options) {
mochi.as2.MochiServices.send("events_showAwards", options, null, null);
}
static function setNotifications(_arg1) {
mochi.as2.MochiServices.send("events_setNotifications", _arg1, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENTS_OWNED = "AchievementOwned";
static var ACHIEVEMENT_NEW = "AchievementReceived";
static var GAME_ACHIEVEMENTS = "GameAchievements";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var IO_PENDING = "IOPending";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var FORMAT_NONE = "NoForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 214 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function requestFunding(properties) {
mochi.as2.MochiServices.send("social_requestFunding", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 215 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("social_hideLoginWidget");
}
static function requestLogin(properties) {
mochi.as2.MochiServices.send("social_requestLogin", properties);
}
static function getFriendsList(properties) {
mochi.as2.MochiServices.send("social_getFriendsList", properties);
}
static function showProfile(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showProfile", options);
}
static function postToStream(properties) {
mochi.as2.MochiServices.send("social_postToStream", properties);
}
static function inviteFriends(properties) {
mochi.as2.MochiServices.send("social_inviteFriends", properties);
}
static function requestFan(properties) {
mochi.as2.MochiServices.send("social_requestFan", properties);
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("social_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var FRIEND_LIST = "FriendsList";
static var PROFILE_DATA = "ProfileData";
static var GAMEPLAY_DATA = "GameplayData";
static var ACTION_CANCELED = "onCancel";
static var ACTION_COMPLETE = "onComplete";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}