Frame 1
function sitelock() {
if (_url.indexOf("coolbuddy.com") == -1) {
_root._alpha = 0;
}
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
_lockroot = true;
stop();
var timer = 0;
if (_url.indexOf("kongregate") == -1) {
adBox = attachMovie("adBox", "adBox", 1234);
adBox._x = 88;
adBox._y = 38;
var CPMStarContentSpotID = "842QF619E1BA";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
}
mochi.as2.MochiServices.connect("897fda5ca087fe85");
onEnterFrame = function () {
timer++;
if ((_root.getBytesTotal() == _root.getBytesLoaded()) && (timer > 150)) {
onEnterFrame = null;
load_bar.gotoAndStop(2);
}
load_bar.bar_mc._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
};
__com_mochibot__("acb7396b", this, 10301, true);
Frame 2
function snd_on() {
snd_shot.setVolume(27);
snd_ric.setVolume(9);
snd_kill.setVolume(20);
}
function music_on() {
snd_music.setVolume(40);
}
function snd_off() {
snd_shot.setVolume(0);
snd_ric.setVolume(0);
snd_kill.setVolume(0);
}
function music_off() {
snd_music.setVolume(0);
}
var snd_shot = new Sound(sm_shot);
snd_shot.attachSound("s_shot");
var snd_ric = new Sound(sm_ricochet);
snd_ric.attachSound("s_ricochet");
var snd_kill = new Sound(sm_kill);
snd_kill.attachSound("s_kill");
var snd_music = new Sound(sm_music);
snd_music.attachSound("s_music");
snd_music.start(0, 2000);
snd_on();
music_on();
Frame 3
stop();
var lvl = 0;
var edit_lvl;
var user_levels = false;
var score = 0;
removeMovieClip(adBox);
Frame 5
function next_lvl(n_lvl) {
click_detector._alpha = 100;
if (!user_levels) {
btn_get_code._visible = false;
}
if (n_lvl != -1) {
score = score + lvl_score;
if (((lvl > 0) && (lvl < 99)) && (!user_levels)) {
var _local1 = SharedObject.getLocal("last_level");
_local1.data.lvl = lvl;
_local1.data.score = score;
}
lvl++;
lev_clear();
if (lvl == 36) {
gotoAndStop (30);
onEnterFrame = null;
return(undefined);
}
if (!user_levels) {
lev_load(lvl);
} else {
user_lev_load(lvl);
}
txt_shots_left.text = shots_left;
}
if (n_lvl == -1) {
lev_clear();
if (!user_levels) {
lev_load(0);
} else {
user_lev_load(0);
}
}
}
function move_ball(num) {
if (num == 0) {
return(undefined);
}
ball = this["ball" + num];
if (!ball.act) {
return(undefined);
}
ball._x = ball._x + (ball.dx / 2);
ball._y = ball._y + (ball.dy / 2);
x = ball._x;
y = ball._y;
sp = Math.sqrt((ball.dx * ball.dx) + (ball.dy * ball.dy)) / 3;
dx = ball.dx;
dy = ball.dy;
if (level.hitTest(x, y, true)) {
ball.hits++;
while (level.hitTest(x, y, true)) {
x = x - (dx / sp);
y = y - (dy / sp);
}
d = 4;
r = false;
if (level.hitTest(x + d, y, true)) {
dx = -dx;
r = true;
}
if (level.hitTest(x - d, y, true)) {
dx = -dx;
r = true;
}
if (level.hitTest(x, y + d, true)) {
dy = -dy;
r = true;
}
if (level.hitTest(x, y - d, true)) {
dy = -dy;
r = true;
}
if (r) {
ball.gotoAndPlay(3);
snd_ric.start();
len = Math.sqrt((dx * dx) + (dy * dy));
fi2 = Math.acos((-dy) / len) * (dx / Math.abs(dx));
ball._rotation = (fi2 * 180) / Math.PI;
}
ball._x = x;
ball._y = y;
ball.dx = dx;
ball.dy = dy;
}
if ((ball.hits > 10) && (num < 555)) {
ball._alpha = 30;
ball.act = false;
ball.removeMovieClip();
}
}
function tracer() {
line = true;
this.createEmptyMovieClip("mc_tracer", 10000);
mc_tracer.lineStyle(2, 0, 100);
mc_tracer.moveTo(cannon._x, cannon._y);
ball555._x = cannon._x;
ball555._y = cannon._y;
ball555.dx = speed * Math.sin(fi);
ball555.dy = (-speed) * Math.cos(fi);
ball555.act = true;
i2 = 1;
while (i2 < 300) {
move_ball(555);
if (line) {
mc_tracer.lineTo(ball555._x, ball555._y);
}
if (!line) {
mc_tracer.moveTo(ball555._x, ball555._y);
}
line = !line;
i2++;
}
len = Math.sqrt((ball555.dx * ball555.dx) + (ball555.dy * ball555.dy));
fi2 = Math.acos((-ball555.dy) / len) * (ball555.dx / Math.abs(ball555.dx));
ball555._rotation = (fi2 * 180) / Math.PI;
}
function add_ball() {
if (shot_timer < 10) {
return(undefined);
}
shot_timer = 0;
if ((nxt._alpha > 0) || (shots_left == 0)) {
return(undefined);
}
lvl_shots++;
n_balls++;
shots_left--;
txt_shots_left.text = shots_left;
new_ball = this.attachMovie("ball", "ball" + n_balls, 20 + n_balls);
new_ball.dx = speed * Math.sin(fi);
new_ball.dy = (-speed) * Math.cos(fi);
new_ball._x = cannon._x + (new_ball.dx * 3);
new_ball._y = cannon._y + (new_ball.dy * 3);
new_ball._rotation = fi1;
cannon.play();
snd_shot.start();
if (n_balls > 49) {
n_balls = 1;
}
}
function destroy(tt, kills) {
snd_kill.start();
tt.act = false;
tt.gotoAndPlay(2);
scr = attachMovie("man_score", "man_score" + n_scores, 1150 + (n_scores++));
scr._x = tt._x;
scr._y = tt._y - 30;
scr.txt.text = "+" + (kills * 10);
lvl_score = lvl_score + (kills * 10);
}
function lev_clear() {
trace("clear");
i = 1;
while (i <= n_men) {
this["man" + i].removeMovieClip();
i++;
}
i = 1;
while (i <= n_balls) {
this["ball" + i].removeMovieClip();
i++;
}
i = 1;
while (i <= n_scores) {
this["man_score" + i].removeMovieClip();
i++;
}
i = 1;
while (i <= n_blocks) {
level["block" + i].removeMovieClip();
i++;
}
shots_left = 10;
lvl_shots = 0;
lvl_score = 0;
n_balls = 0;
}
function lev_load(lev_num) {
if (lev_num == 0) {
lev_num = last_lvl;
} else {
last_lvl = lev_num;
}
lev_clear();
trace("\u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0443\u0440\u043E\u0432\u043D\u044F");
var _local1 = new LoadVars();
_local1.decode(lev_data[lev_num]);
k = 1;
while (k <= _local1.blocks) {
block = level.attachMovie("block", "block" + k, k);
block._x = _local1["bx" + k];
block._y = _local1["by" + k];
k++;
}
i = 1;
while (i <= _local1.men) {
block = attachMovie("man", "man" + i, 1000 + i);
block._x = _local1["mx" + i];
block._y = _local1["my" + i];
i++;
}
n_men = _local1.men;
n_blocks = _local1.blocks;
}
function user_lev_load(lev_num) {
trace("level_loading " + lev_num);
if (lev_num == 0) {
lev_num = last_lvl;
} else {
last_lvl = lev_num;
}
lev_clear();
var _local3 = SharedObject.getLocal("user_levels");
if (((!_local3.data["level" + lev_num]) && (lev_num != 0)) && (lev_num < 100)) {
lvl = 0;
next_lvl();
return(undefined);
}
trace("so");
trace(_local3);
if (lev_num > 99) {
txt_lvl._visible = 0;
}
var _local1 = new LoadVars();
trace(lev_num + " *******************");
if (lev_num < 100) {
_local1.decode(_local3.data["user_level" + lev_num]);
}
if (lev_num == 101) {
_local1.decode(lvl_code);
}
trace("lv");
trace(_local1);
k = 1;
while (k <= _local1.blocks) {
block = level.attachMovie("block", "block" + k, k);
block._x = _local1["bx" + k];
block._y = _local1["by" + k];
k++;
}
i = 1;
while (i <= _local1.men) {
block = attachMovie("man", "man" + i, 1000 + i);
block._x = _local1["mx" + i];
block._y = _local1["my" + i];
i++;
}
n_men = _local1.men;
n_blocks = _local1.blocks;
}
function lev_get_code() {
var _local2 = new LoadVars();
_local2.levname = "user_level" + edit_lvl;
_local2.blocks = 0;
_local2.men = 0;
i = 1;
while (i <= n_blocks) {
block = level["block" + i];
if (block._x < 640) {
_local2.blocks++;
_local2["bx" + _local2.blocks] = block._x;
_local2["by" + _local2.blocks] = block._y;
}
i++;
}
i = 1;
while (i <= n_men) {
man = this["man" + i];
if (man._x < 640) {
_local2.men++;
_local2["mx" + _local2.men] = man._x;
_local2["my" + _local2.men] = man._y;
}
i++;
}
lvl_code = _local2.toString();
lc = attachMovie("mc_lvl_code", "mc_lvl_code", 61424);
lc.txt_lvl_code.text = lvl_code;
lc._x = 320;
lc._y = 220;
trace("level code:");
trace(lvl_code);
}
stop();
adBox._visible = false;
var lev_data = new Array();
lev_data[1] = "my11=210&mx11=510&my10=210&mx10=555&my9=210&mx9=600&my8=390&mx8=535&my7=390&mx7=490&my6=390&mx6=580&my5=390&mx5=310&my4=390&mx4=280&my3=200&mx3=100&my2=200&mx2=70&my1=200&mx1=40&by17=230&bx17=100&by16=230&bx16=70&by15=230&bx15=40&by14=230&bx14=10&by13=420&bx13=580&by12=420&bx12=550&by11=420&bx11=520&by10=420&bx10=490&by9=420&bx9=460&by8=240&bx8=480&by7=240&bx7=510&by6=240&bx6=540&by5=240&bx5=570&by4=240&bx4=600&by3=420&bx3=310&by2=420&bx2=280&by1=420&bx1=250&men=11&blocks=17&levname=ss1";
lev_data[2] = "my14=70&mx14=295&my13=70&mx13=355&my12=260&mx12=595&my11=260&mx11=555&my10=260&mx10=510&my9=260&mx9=130&my8=260&mx8=85&my7=260&mx7=40&my6=60&mx6=600&my5=160&mx5=600&my4=160&mx4=540&my3=160&mx3=100&my2=160&mx2=40&my1=60&mx1=40&by31=100&bx31=370&by30=100&bx30=340&by29=100&bx29=310&by28=100&bx28=280&by27=100&bx27=250&by26=290&bx26=130&by25=290&bx25=100&by24=290&bx24=70&by23=290&bx23=40&by22=290&bx22=10&by21=290&bx21=480&by20=290&bx20=510&by19=290&bx19=540&by18=290&bx18=570&by17=290&bx17=600&by16=420&bx16=510&by15=420&bx15=540&by14=420&bx14=570&by13=420&bx13=600&by12=90&bx12=570&by11=90&bx11=600&by10=190&bx10=510&by9=190&bx9=540&by8=190&bx8=570&by7=190&bx7=600&by6=190&bx6=100&by5=190&bx5=70&by4=190&bx4=40&by3=190&bx3=10&by2=90&bx2=40&by1=90&bx1=10&men=14&blocks=31&levname=a1";
lev_data[3] = "my10=420&mx10=235&my9=420&mx9=435&my8=140&mx8=600&my7=360&mx7=560&my6=360&mx6=530&my5=360&mx5=500&my4=360&mx4=370&my3=360&mx3=340&my2=360&mx2=310&my1=130&mx1=45&by30=10&bx30=300&by29=40&bx29=300&by28=40&bx28=270&by27=40&bx27=240&by26=40&bx26=210&by25=10&bx25=210&by24=260&bx24=600&by23=260&bx23=570&by22=230&bx22=570&by21=200&bx21=570&by20=170&bx20=570&by19=170&bx19=600&by18=160&bx18=10&by17=160&bx17=40&by16=190&bx16=40&by15=220&bx15=40&by14=250&bx14=40&by13=250&bx13=10&by12=420&bx12=280&by11=390&bx11=280&by10=390&bx10=310&by9=390&bx9=340&by8=390&bx8=370&by7=420&bx7=560&by6=390&bx6=560&by5=390&bx5=530&by4=390&bx4=500&by3=390&bx3=470&by2=420&bx2=470&by1=420&bx1=370&men=10&blocks=30&levname=ss2";
lev_data[4] = "my10=420&mx10=595&my9=250&mx9=40&my8=420&mx8=500&my7=420&mx7=410&my6=120&mx6=370&my5=120&mx5=280&my4=120&mx4=70&my3=120&mx3=160&my2=120&mx2=570&my1=120&mx1=480&by35=280&bx35=40&by34=280&bx34=10&by33=360&bx33=350&by32=390&bx32=350&by31=420&bx31=350&by30=360&bx30=440&by29=390&bx29=440&by28=420&bx28=440&by27=360&bx27=530&by26=390&bx26=530&by25=420&bx25=530&by24=60&bx24=310&by23=90&bx23=310&by22=120&bx22=310&by21=150&bx21=250&by20=150&bx20=280&by19=150&bx19=310&by18=150&bx18=340&by17=150&bx17=370&by16=60&bx16=100&by15=90&bx15=100&by14=120&bx14=100&by13=150&bx13=160&by12=150&bx12=130&by11=150&bx11=100&by10=60&bx10=510&by9=90&bx9=510&by8=120&bx8=510&by7=150&bx7=450&by6=150&bx6=480&by5=150&bx5=510&by4=150&bx4=540&by3=150&bx3=570&by2=150&bx2=70&by1=150&bx1=40&men=10&blocks=35&levname=a2";
lev_data[5] = "my14=420&mx14=390&my13=390&mx13=290&my12=390&mx12=260&my11=300&mx11=595&my10=300&mx10=560&my9=300&mx9=525&my8=300&mx8=490&my7=130&mx7=600&my6=130&mx6=565&my5=130&mx5=530&my4=130&mx4=495&my3=150&mx3=130&my2=150&mx2=85&my1=150&mx1=40&by32=420&bx32=230&by31=420&bx31=290&by30=420&bx30=260&by29=180&bx29=10&by28=180&bx28=40&by27=180&bx27=70&by26=180&bx26=100&by25=180&bx25=130&by24=210&bx24=100&by23=210&bx23=70&by22=210&bx22=40&by21=210&bx21=10&by20=190&bx20=600&by19=190&bx19=570&by18=190&bx18=540&by17=190&bx17=510&by16=190&bx16=480&by15=160&bx15=450&by14=160&bx14=480&by13=160&bx13=510&by12=160&bx12=540&by11=160&bx11=570&by10=160&bx10=600&by9=330&bx9=610&by8=330&bx8=580&by7=330&bx7=550&by6=330&bx6=520&by5=330&bx5=490&by4=330&bx4=460&by3=360&bx3=460&by2=390&bx2=460&by1=420&bx1=460&men=14&blocks=32&levname=ss3";
lev_data[16] = "my11=350&mx11=600&my10=90&mx10=335&my9=90&mx9=290&my8=190&mx8=340&my7=190&mx7=290&my6=50&mx6=600&my5=150&mx5=600&my4=250&mx4=600&my3=50&mx3=40&my2=150&mx2=40&my1=250&mx1=40&by34=380&bx34=600&by33=380&bx33=570&by32=380&bx32=540&by31=350&bx31=540&by30=120&bx30=330&by29=120&bx29=300&by28=120&bx28=270&by27=220&bx27=330&by26=220&bx26=300&by25=220&bx25=270&by24=50&bx24=540&by23=80&bx23=600&by22=80&bx22=570&by21=80&bx21=540&by20=150&bx20=540&by19=180&bx19=600&by18=180&bx18=570&by17=180&bx17=540&by16=250&bx16=540&by15=280&bx15=540&by14=280&bx14=570&by13=280&bx13=600&by12=80&bx12=10&by11=80&bx11=40&by10=50&bx10=70&by9=150&bx9=70&by8=80&bx8=70&by7=180&bx7=10&by6=180&bx6=40&by5=180&bx5=70&by4=250&bx4=70&by3=280&bx3=70&by2=280&bx2=40&by1=280&bx1=10&men=11&blocks=34&levname=a3";
lev_data[7] = "my14=90&mx14=540&my13=110&mx13=130&my12=110&mx12=100&my11=110&mx11=70&my10=110&mx10=40&my9=90&mx9=570&my8=90&mx8=600&my7=300&mx7=600&my6=330&mx6=540&my5=300&mx5=480&my4=330&mx4=420&my3=300&mx3=360&my2=330&mx2=300&my1=300&mx1=240&by56=170&bx56=10&by55=170&bx55=40&by54=170&bx54=70&by53=170&bx53=100&by52=170&bx52=130&by51=140&bx51=130&by50=140&bx50=100&by49=140&bx49=70&by48=140&bx48=40&by47=140&bx47=10&by46=150&bx46=510&by45=120&bx45=510&by44=150&bx44=600&by43=150&bx43=570&by42=150&bx42=540&by41=120&bx41=540&by40=120&bx40=570&by39=120&bx39=600&by38=420&bx38=570&by37=420&bx37=600&by36=390&bx36=600&by35=390&bx35=570&by34=360&bx34=570&by33=360&bx33=600&by32=330&bx32=600&by31=330&bx31=570&by30=360&bx30=540&by29=360&bx29=510&by28=390&bx28=330&by27=360&bx27=330&by26=420&bx26=210&by25=390&bx25=210&by24=420&bx24=240&by23=390&bx23=240&by22=360&bx22=240&by21=360&bx21=210&by20=330&bx20=210&by19=330&bx19=240&by18=360&bx18=270&by17=360&bx17=300&by16=330&bx16=330&by15=420&bx15=330&by14=420&bx14=360&by13=390&bx13=360&by12=330&bx12=360&by11=360&bx11=360&by10=360&bx10=390&by9=360&bx9=420&by8=420&bx8=450&by7=390&bx7=450&by6=360&bx6=450&by5=330&bx5=450&by4=330&bx4=480&by3=360&bx3=480&by2=390&bx2=480&by1=420&bx1=480&men=14&blocks=56&levname=ss4";
lev_data[8] = "my11=150&mx11=605&my10=150&mx10=565&my9=270&mx9=600&my8=390&mx8=600&my7=110&mx7=75&my6=110&mx6=40&my5=390&mx5=400&my4=210&mx4=365&my3=210&mx3=405&my2=270&mx2=310&my1=330&mx1=250&by33=180&bx33=540&by32=180&bx32=570&by31=180&bx31=600&by30=300&bx30=570&by29=300&bx29=600&by28=420&bx28=570&by27=420&bx27=600&by26=420&bx26=370&by25=390&bx25=340&by24=300&bx24=370&by23=330&bx23=340&by22=360&bx22=310&by21=390&bx21=280&by20=420&bx20=250&by19=420&bx19=400&by18=300&bx18=400&by17=270&bx17=400&by16=240&bx16=400&by15=240&bx15=370&by14=240&bx14=340&by13=270&bx13=340&by12=300&bx12=340&by11=300&bx11=310&by10=300&bx10=280&by9=330&bx9=280&by8=360&bx8=280&by7=360&bx7=250&by6=360&bx6=220&by5=390&bx5=220&by4=420&bx4=220&by3=140&bx3=70&by2=140&bx2=40&by1=140&bx1=10&men=11&blocks=33&levname=a4";
lev_data[9] = "my17=180&mx17=510&my16=180&mx16=600&my15=180&mx15=570&my14=180&mx14=540&my13=70&mx13=570&my12=70&mx12=600&my11=360&mx11=465&my10=360&mx10=510&my9=360&mx9=555&my8=360&mx8=600&my7=360&mx7=420&my6=360&mx6=375&my5=360&mx5=330&my4=280&mx4=40&my3=180&mx3=40&my2=80&mx2=70&my1=80&mx1=35&by29=210&bx29=480&by28=210&bx28=510&by27=210&bx27=540&by26=210&bx26=570&by25=210&bx25=600&by24=310&bx24=40&by23=310&bx23=10&by22=210&bx22=10&by21=210&bx21=40&by20=100&bx20=540&by19=100&bx19=570&by18=100&bx18=600&by17=110&bx17=70&by16=110&bx16=40&by15=110&bx15=10&by14=420&bx14=360&by13=420&bx13=450&by12=390&bx12=300&by11=390&bx11=330&by10=390&bx10=360&by9=390&bx9=390&by8=390&bx8=420&by7=390&bx7=450&by6=390&bx6=480&by5=390&bx5=510&by4=390&bx4=540&by3=390&bx3=570&by2=390&bx2=600&by1=420&bx1=540&men=17&blocks=29&levname=ss5";
lev_data[10] = "my17=70&mx17=280&my16=70&mx16=320&my15=70&mx15=360&my14=320&mx14=600&my13=420&mx13=600&my12=420&mx12=555&my11=420&mx11=155&my10=110&mx10=600&my9=110&mx9=40&my8=210&mx8=40&my7=210&mx7=600&my6=390&mx6=490&my5=330&mx5=430&my4=270&mx4=380&my3=270&mx3=335&my2=330&mx2=280&my1=390&mx1=220&by46=100&bx46=350&by45=100&bx45=320&by44=100&bx44=290&by43=100&bx43=260&by42=320&bx42=540&by41=350&bx41=540&by40=350&bx40=570&by39=350&bx39=600&by38=110&bx38=70&by37=110&bx37=540&by36=140&bx36=540&by35=140&bx35=570&by34=140&bx34=600&by33=140&bx33=70&by32=140&bx32=40&by31=140&bx31=10&by30=210&bx30=70&by29=240&bx29=70&by28=240&bx28=40&by27=240&bx27=10&by26=210&bx26=540&by25=240&bx25=540&by24=240&bx24=570&by23=240&bx23=600&by22=420&bx22=370&by21=420&bx21=340&by20=420&bx20=310&by19=420&bx19=490&by18=420&bx18=460&by17=420&bx17=430&by16=390&bx16=430&by15=360&bx15=430&by14=360&bx14=400&by13=360&bx13=370&by12=330&bx12=370&by11=300&bx11=370&by10=300&bx10=340&by9=300&bx9=310&by8=330&bx8=310&by7=360&bx7=310&by6=360&bx6=280&by5=360&bx5=250&by4=390&bx4=250&by3=420&bx3=250&by2=420&bx2=220&by1=420&bx1=190&men=17&blocks=46&levname=a5";
lev_data[11] = "my17=420&mx17=600&my16=360&mx16=520&my15=360&mx15=485&my14=360&mx14=450&my13=330&mx13=350&my12=330&mx12=310&my11=330&mx11=390&my10=330&mx10=275&my9=50&mx9=360&my8=50&mx8=315&my7=50&mx7=275&my6=150&mx6=600&my5=150&mx5=555&my4=150&mx4=510&my3=160&mx3=130&my2=160&mx2=85&my1=160&mx1=40&by30=80&bx30=240&by29=80&bx29=360&by28=80&bx28=330&by27=80&bx27=300&by26=80&bx26=270&by25=180&bx25=480&by24=180&bx24=510&by23=180&bx23=540&by22=180&bx22=570&by21=180&bx21=600&by20=190&bx20=130&by19=190&bx19=10&by18=190&bx18=40&by17=190&bx17=70&by16=190&bx16=100&by15=420&bx15=540&by14=390&bx14=540&by13=360&bx13=390&by12=390&bx12=510&by11=390&bx11=480&by10=390&bx10=450&by9=390&bx9=420&by8=390&bx8=390&by7=360&bx7=360&by6=360&bx6=330&by5=360&bx5=300&by4=360&bx4=270&by3=360&bx3=240&by2=390&bx2=240&by1=420&bx1=240&men=17&blocks=30&levname=ss6";
lev_data[12] = "my13=210&mx13=560&my12=70&mx12=600&my11=230&mx11=40&my10=120&mx10=40&my9=210&mx9=470&my8=210&mx8=380&my7=210&mx7=290&my6=420&mx6=600&my5=420&mx5=560&my4=420&mx4=200&my3=420&mx3=470&my2=420&mx2=380&my1=420&mx1=290&by48=240&bx48=560&by47=240&bx47=530&by46=70&bx46=540&by45=100&bx45=540&by44=100&bx44=570&by43=100&bx43=600&by42=230&bx42=70&by41=260&bx41=70&by40=260&bx40=40&by39=260&bx39=10&by38=120&bx38=70&by37=150&bx37=70&by36=150&bx36=40&by35=150&bx35=10&by34=150&bx34=500&by33=180&bx33=500&by32=210&bx32=500&by31=150&bx31=410&by30=180&bx30=410&by29=210&bx29=410&by28=150&bx28=320&by27=180&bx27=320&by26=210&bx26=320&by25=150&bx25=230&by24=180&bx24=230&by23=210&bx23=230&by22=240&bx22=500&by21=240&bx21=470&by20=240&bx20=440&by19=240&bx19=410&by18=240&bx18=380&by17=240&bx17=350&by16=240&bx16=320&by15=240&bx15=290&by14=240&bx14=260&by13=240&bx13=230&by12=360&bx12=230&by11=390&bx11=230&by10=360&bx10=320&by9=390&bx9=320&by8=420&bx8=230&by7=420&bx7=320&by6=360&bx6=410&by5=390&bx5=410&by4=420&bx4=410&by3=360&bx3=500&by2=390&bx2=500&by1=420&bx1=500&men=13&blocks=48&levname=a6";
lev_data[13] = "my17=360&mx17=535&my16=360&mx16=570&my15=360&mx15=605&my14=60&mx14=605&my13=60&mx13=570&my12=200&mx12=40&my11=200&mx11=70&my10=200&mx10=100&my9=100&mx9=180&my8=100&mx8=210&my7=100&mx7=240&my6=170&mx6=450&my5=170&mx5=420&my4=170&mx4=390&my3=270&mx3=320&my2=270&mx2=290&my1=270&mx1=260&by23=90&bx23=600&by22=90&bx22=570&by21=90&bx21=540&by20=390&bx20=510&by19=390&bx19=540&by18=390&bx18=570&by17=390&bx17=600&by16=230&bx16=100&by15=230&bx15=70&by14=230&bx14=40&by13=230&bx13=10&by12=300&bx12=320&by11=300&bx11=290&by10=300&bx10=260&by9=300&bx9=230&by8=200&bx8=450&by7=200&bx7=420&by6=200&bx6=390&by5=200&bx5=360&by4=130&bx4=240&by3=130&bx3=210&by2=130&bx2=180&by1=130&bx1=150&men=17&blocks=23&levname=ss7";
lev_data[14] = "my19=60&mx19=600&my18=130&mx18=160&my17=100&mx17=100&my16=70&mx16=40&my15=260&mx15=35&my14=260&mx14=80&my13=330&mx13=470&my12=360&mx12=610&my11=360&mx11=560&my10=330&mx10=515&my9=420&mx9=300&my8=390&mx8=360&my7=360&mx7=420&my6=210&mx6=570&my5=210&mx5=535&my4=210&mx4=605&my3=180&mx3=480&my2=150&mx2=420&my1=120&mx1=360&by31=90&bx31=570&by30=90&bx30=600&by29=290&bx29=70&by28=290&bx28=40&by27=290&bx27=10&by26=160&bx26=160&by25=160&bx25=130&by24=130&bx24=100&by23=130&bx23=70&by22=100&bx22=40&by21=100&bx21=10&by20=390&bx20=600&by19=390&bx19=570&by18=390&bx18=540&by17=360&bx17=510&by16=360&bx16=480&by15=360&bx15=450&by14=390&bx14=420&by13=390&bx13=390&by12=420&bx12=330&by11=420&bx11=360&by10=240&bx10=600&by9=240&bx9=570&by8=240&bx8=540&by7=240&bx7=510&by6=210&bx6=480&by5=210&bx5=450&by4=180&bx4=420&by3=180&bx3=390&by2=150&bx2=360&by1=150&bx1=330&men=19&blocks=31&levname=a7";
lev_data[15] = "my13=200&mx13=130&my12=80&mx12=130&my11=80&mx11=100&my10=80&mx10=70&my9=80&mx9=40&my8=70&mx8=400&my7=70&mx7=570&my6=70&mx6=600&my5=180&mx5=615&my4=180&mx4=570&my3=180&mx3=525&my2=180&mx2=480&my1=300&mx1=480&by35=230&bx35=130&by34=230&bx34=100&by33=110&bx33=130&by32=110&bx32=100&by31=110&bx31=10&by30=110&bx30=40&by29=110&bx29=70&by28=140&bx28=70&by27=230&bx27=70&by26=200&bx26=70&by25=170&bx25=70&by24=330&bx24=450&by23=330&bx23=480&by22=210&bx22=450&by21=210&bx21=480&by20=210&bx20=600&by19=210&bx19=570&by18=210&bx18=540&by17=210&bx17=510&by16=240&bx16=510&by15=270&bx15=510&by14=300&bx14=510&by13=330&bx13=510&by12=360&bx12=510&by11=390&bx11=510&by10=420&bx10=510&by9=100&bx9=600&by8=100&bx8=570&by7=100&bx7=540&by6=100&bx6=400&by5=100&bx5=370&by4=100&bx4=340&by3=70&bx3=340&by2=40&bx2=340&by1=10&bx1=340&men=13&blocks=35&levname=ss8";
lev_data[6] = "my12=150&mx12=40&my11=150&mx11=80&my10=150&mx10=255&my9=150&mx9=310&my8=150&mx8=570&my7=420&mx7=475&my6=420&mx6=425&my5=420&mx5=375&my4=390&mx4=570&my3=270&mx3=570&my2=270&mx2=280&my1=390&mx1=280&by51=180&bx51=70&by50=180&bx50=40&by49=180&bx49=10&by48=60&bx48=510&by47=60&bx47=540&by46=60&bx46=570&by45=60&bx45=600&by44=90&bx44=600&by43=120&bx43=600&by42=150&bx42=600&by41=150&bx41=510&by40=180&bx40=310&by39=180&bx39=280&by38=180&bx38=250&by37=180&bx37=220&by36=180&bx36=510&by35=180&bx35=540&by34=180&bx34=570&by33=180&bx33=600&by32=270&bx32=510&by31=300&bx31=570&by30=300&bx30=540&by29=300&bx29=510&by28=390&bx28=510&by27=420&bx27=510&by26=420&bx26=540&by25=420&bx25=570&by24=210&bx24=600&by23=240&bx23=600&by22=270&bx22=600&by21=300&bx21=600&by20=330&bx20=600&by19=360&bx19=600&by18=390&bx18=600&by17=420&bx17=600&by16=270&bx16=310&by15=300&bx15=250&by14=300&bx14=280&by13=300&bx13=310&by12=390&bx12=310&by11=420&bx11=310&by10=420&bx10=280&by9=420&bx9=250&by8=210&bx8=220&by7=240&bx7=220&by6=270&bx6=220&by5=300&bx5=220&by4=330&bx4=220&by3=360&bx3=220&by2=390&bx2=220&by1=420&bx1=220&men=12&blocks=51&levname=a8";
lev_data[17] = "my11=360&mx11=570&my10=360&mx10=540&my9=210&mx9=375&my8=300&mx8=255&my7=240&mx7=615&my6=360&mx6=450&my5=360&mx5=420&my4=270&mx4=495&my3=360&mx3=330&my2=360&mx2=300&my1=360&mx1=210&by39=390&bx39=180&by38=390&bx38=210&by37=10&bx37=570&by36=70&bx36=400&by35=40&bx35=400&by34=10&bx34=400&by33=40&bx33=200&by32=10&bx32=200&by31=270&bx31=600&by30=300&bx30=600&by29=330&bx29=600&by28=360&bx28=600&by27=390&bx27=600&by26=420&bx26=600&by25=390&bx25=570&by24=390&bx24=540&by23=390&bx23=510&by22=300&bx22=480&by21=330&bx21=480&by20=360&bx20=480&by19=390&bx19=480&by18=420&bx18=480&by17=390&bx17=450&by16=390&bx16=420&by15=390&bx15=390&by14=240&bx14=360&by13=270&bx13=360&by12=300&bx12=360&by11=330&bx11=360&by10=360&bx10=360&by9=390&bx9=360&by8=420&bx8=360&by7=390&bx7=330&by6=390&bx6=300&by5=390&bx5=270&by4=330&bx4=240&by3=360&bx3=240&by2=390&bx2=240&by1=420&bx1=240&men=11&blocks=39&levname=ss9";
lev_data[18] = "my16=60&mx16=75&my15=60&mx15=40&my14=140&mx14=365&my13=200&mx13=480&my12=140&mx12=590&my11=140&mx11=550&my10=140&mx10=415&my9=200&mx9=210&my8=200&mx8=300&my7=420&mx7=210&my6=360&mx6=590&my5=360&mx5=545&my4=360&mx4=410&my3=360&mx3=365&my2=420&mx2=480&my1=420&mx1=305&by46=90&bx46=70&by45=90&bx45=40&by44=90&bx44=10&by43=170&bx43=240&by42=200&bx42=240&by41=200&bx41=330&by40=170&bx40=330&by39=170&bx39=360&by38=170&bx38=390&by37=170&bx37=420&by36=200&bx36=420&by35=200&bx35=510&by34=170&bx34=510&by33=170&bx33=540&by32=170&bx32=570&by31=170&bx31=600&by30=200&bx30=600&by29=230&bx29=180&by28=230&bx28=210&by27=230&bx27=240&by26=230&bx26=270&by25=230&bx25=300&by24=230&bx24=600&by23=230&bx23=570&by22=230&bx22=540&by21=230&bx21=510&by20=230&bx20=480&by19=230&bx19=450&by18=230&bx18=420&by17=230&bx17=390&by16=230&bx16=360&by15=230&bx15=330&by14=390&bx14=240&by13=420&bx13=240&by12=420&bx12=330&by11=390&bx11=330&by10=390&bx10=360&by9=390&bx9=390&by8=390&bx8=420&by7=420&bx7=420&by6=420&bx6=510&by5=390&bx5=510&by4=390&bx4=540&by3=390&bx3=570&by2=390&bx2=600&by1=420&bx1=600&men=16&blocks=46&levname=a9";
lev_data[19] = "my17=270&mx17=600&my16=270&mx16=570&my15=270&mx15=540&my14=270&mx14=510&my13=270&mx13=480&my12=270&mx12=450&my11=150&mx11=450&my10=150&mx10=420&my9=150&mx9=390&my8=150&mx8=360&my7=70&mx7=100&my6=70&mx6=130&my5=70&mx5=160&my4=210&mx4=270&my3=210&mx3=300&my2=330&mx2=330&my1=330&mx1=360&by41=100&bx41=160&by40=100&bx40=130&by39=100&bx39=100&by38=10&bx38=40&by37=40&bx37=40&by36=70&bx36=40&by35=100&bx35=40&by34=100&bx34=70&by33=190&bx33=40&by32=190&bx32=70&by31=160&bx31=70&by30=130&bx30=70&by29=190&bx29=10&by28=300&bx28=600&by27=300&bx27=570&by26=300&bx26=540&by25=300&bx25=510&by24=300&bx24=480&by23=300&bx23=450&by22=300&bx22=420&by21=180&bx21=450&by20=180&bx20=420&by19=180&bx19=390&by18=180&bx18=360&by17=180&bx17=330&by16=210&bx16=330&by15=240&bx15=240&by14=240&bx14=270&by13=240&bx13=300&by12=240&bx12=330&by11=240&bx11=360&by10=240&bx10=390&by9=270&bx9=390&by8=300&bx8=390&by7=330&bx7=390&by6=360&bx6=390&by5=360&bx5=360&by4=360&bx4=330&by3=360&bx3=300&by2=390&bx2=300&by1=420&bx1=300&men=17&blocks=41&levname=ss10";
lev_data[20] = "my11=110&mx11=35&my10=110&mx10=80&my9=80&mx9=440&my8=80&mx8=485&my7=140&mx7=600&my6=110&mx6=540&my5=390&mx5=600&my4=390&mx4=510&my3=390&mx3=420&my2=390&mx2=330&my1=390&mx1=240&by46=140&bx46=70&by45=140&bx45=40&by44=140&bx44=10&by43=110&bx43=420&by42=110&bx42=450&by41=110&bx41=480&by40=140&bx40=480&by39=140&bx39=510&by38=140&bx38=540&by37=170&bx37=540&by36=170&bx36=570&by35=170&bx35=600&by34=300&bx34=600&by33=300&bx33=480&by32=360&bx32=540&by31=390&bx31=540&by30=300&bx30=420&by29=330&bx29=450&by28=360&bx28=450&by27=390&bx27=450&by26=300&bx26=300&by25=330&bx25=360&by24=360&bx24=360&by23=390&bx23=360&by22=300&bx22=240&by21=390&bx21=270&by20=360&bx20=270&by19=330&bx19=270&by18=330&bx18=180&by17=360&bx17=180&by16=390&bx16=180&by15=420&bx15=180&by14=420&bx14=210&by13=420&bx13=240&by12=420&bx12=270&by11=420&bx11=300&by10=420&bx10=330&by9=420&bx9=360&by8=420&bx8=390&by7=420&bx7=420&by6=420&bx6=450&by5=420&bx5=480&by4=420&bx4=510&by3=420&bx3=540&by2=420&bx2=570&by1=420&bx1=600&men=11&blocks=46&levname=a10";
lev_data[21] = "my13=210&mx13=180&my12=210&mx12=225&my11=210&mx11=270&my10=210&mx10=315&my9=210&mx9=360&my8=210&mx8=405&my7=210&mx7=450&my6=330&mx6=420&my5=330&mx5=375&my4=330&mx4=335&my3=330&mx3=295&my2=330&mx2=255&my1=330&mx1=215&by78=240&bx78=150&by77=240&bx77=180&by76=240&bx76=210&by75=240&bx75=240&by74=240&bx74=270&by73=240&bx73=300&by72=240&bx72=330&by71=240&bx71=360&by70=240&bx70=390&by69=240&bx69=420&by68=240&bx68=450&by67=270&bx67=450&by66=270&bx66=480&by65=300&bx65=480&by64=330&bx64=480&by63=390&bx63=480&by62=360&bx62=180&by61=360&bx61=210&by60=360&bx60=240&by59=360&bx59=270&by58=360&bx58=300&by57=360&bx57=330&by56=360&bx56=360&by55=360&bx55=390&by54=360&bx54=420&by53=360&bx53=450&by52=360&bx52=480&by51=360&bx51=510&by50=390&bx50=510&by49=420&bx49=510&by48=420&bx48=540&by47=10&bx47=90&by46=10&bx46=120&by45=10&bx45=150&by44=40&bx44=600&by43=70&bx43=600&by42=100&bx42=600&by41=130&bx41=600&by40=160&bx40=600&by39=190&bx39=600&by38=40&bx38=480&by37=40&bx37=450&by36=70&bx36=510&by35=100&bx35=540&by34=130&bx34=570&by33=190&bx33=570&by32=10&bx32=180&by31=10&bx31=210&by30=10&bx30=240&by29=160&bx29=540&by28=220&bx28=570&by27=250&bx27=570&by26=370&bx26=600&by25=340&bx25=600&by24=310&bx24=600&by23=220&bx23=600&by22=250&bx22=600&by21=280&bx21=600&by20=160&bx20=570&by19=130&bx19=540&by18=100&bx18=510&by17=70&bx17=480&by16=70&bx16=450&by15=40&bx15=420&by14=40&bx14=390&by13=40&bx13=360&by12=10&bx12=270&by11=10&bx11=300&by10=10&bx10=330&by9=10&bx9=360&by8=10&bx8=390&by7=10&bx7=420&by6=10&bx6=450&by5=10&bx5=480&by4=10&bx4=510&by3=10&bx3=540&by2=10&bx2=570&by1=10&bx1=600&men=13&blocks=78&levname=ss11";
lev_data[22] = "my20=80&mx20=30&my19=80&mx19=80&my18=300&mx18=600&my17=300&mx17=510&my16=300&mx16=420&my15=300&mx15=330&my14=300&mx14=180&my13=300&mx13=240&my12=420&mx12=600&my11=420&mx11=510&my10=420&mx10=425&my9=420&mx9=330&my8=420&mx8=240&my7=420&mx7=200&my6=80&mx6=250&my5=80&mx5=205&my4=80&mx4=330&my3=80&mx3=420&my2=80&mx2=510&my1=80&mx1=600&by33=110&bx33=70&by32=110&bx32=40&by31=110&bx31=10&by30=420&bx30=540&by29=420&bx29=450&by28=420&bx28=360&by27=420&bx27=270&by26=330&bx26=480&by25=330&bx25=510&by24=330&bx24=570&by23=330&bx23=600&by22=330&bx22=420&by21=330&bx21=390&by20=330&bx20=330&by19=330&bx19=300&by18=330&bx18=240&by17=330&bx17=210&by16=330&bx16=180&by15=330&bx15=150&by14=360&bx14=150&by13=390&bx13=150&by12=420&bx12=150&by11=110&bx11=180&by10=110&bx10=210&by9=110&bx9=240&by8=110&bx8=300&by7=110&bx7=330&by6=110&bx6=390&by5=110&bx5=420&by4=110&bx4=480&by3=110&bx3=510&by2=110&bx2=570&by1=110&bx1=600&men=20&blocks=33&levname=a11";
lev_data[23] = "my12=330&mx12=570&my11=330&mx11=330&my10=180&mx10=320&my9=240&mx9=470&my8=180&mx8=570&my7=40&mx7=555&my6=40&mx6=460&my5=40&mx5=370&my4=40&mx4=280&my3=40&mx3=190&my2=130&mx2=60&my1=220&mx1=180&by24=360&bx24=570&by23=360&bx23=540&by22=360&bx22=330&by21=360&bx21=300&by20=210&bx20=570&by19=210&bx19=540&by18=70&bx18=550&by17=70&bx17=520&by16=70&bx16=460&by15=70&bx15=430&by14=70&bx14=370&by13=70&bx13=340&by12=70&bx12=250&by11=70&bx11=280&by10=70&bx10=190&by9=70&bx9=160&by8=160&bx8=60&by7=160&bx7=30&by6=250&bx6=150&by5=250&bx5=180&by4=210&bx4=290&by3=210&bx3=320&by2=270&bx2=470&by1=270&bx1=440&men=12&blocks=24&levname=ss12";
lev_data[24] = "my16=70&mx16=510&my15=70&mx15=420&my14=70&mx14=210&my13=70&mx13=300&my12=270&mx12=510&my11=270&mx11=360&my10=270&mx10=210&my9=390&mx9=360&my8=390&mx8=510&my7=330&mx7=605&my6=330&mx6=565&my5=330&mx5=455&my4=330&mx4=415&my3=330&mx3=305&my2=330&mx2=270&my1=390&mx1=210&by50=100&bx50=180&by49=40&bx49=240&by48=70&bx48=240&by47=100&bx47=510&by46=40&bx46=450&by45=70&bx45=450&by44=100&bx44=480&by43=100&bx43=450&by42=100&bx42=390&by41=100&bx41=420&by40=100&bx40=300&by39=100&bx39=210&by38=100&bx38=240&by37=100&bx37=270&by36=390&bx36=600&by35=360&bx35=600&by34=360&bx34=570&by33=300&bx33=510&by32=300&bx32=480&by31=360&bx31=540&by30=390&bx30=540&by29=390&bx29=450&by28=360&bx28=450&by27=360&bx27=420&by26=420&bx26=600&by25=420&bx25=540&by24=420&bx24=510&by23=420&bx23=480&by22=420&bx22=450&by21=360&bx21=390&by20=390&bx20=390&by19=420&bx19=390&by18=300&bx18=360&by17=300&bx17=330&by16=420&bx16=360&by15=420&bx15=330&by14=420&bx14=300&by13=390&bx13=300&by12=360&bx12=150&by11=390&bx11=150&by10=420&bx10=150&by9=360&bx9=300&by8=360&bx8=270&by7=300&bx7=180&by6=300&bx6=210&by5=360&bx5=240&by4=390&bx4=240&by3=420&bx3=240&by2=420&bx2=210&by1=420&bx1=180&men=16&blocks=50&levname=a12";
lev_data[25] = "my21=330&mx21=605&my20=330&mx20=570&my19=190&mx19=605&my18=190&mx18=570&my17=190&mx17=70&my16=190&mx16=40&my15=110&mx15=200&my14=110&mx14=235&my13=90&mx13=290&my12=90&mx12=320&my11=90&mx11=350&my10=110&mx10=440&my9=110&mx9=410&my8=250&mx8=440&my7=250&mx7=200&my6=230&mx6=380&my5=230&mx5=265&my4=230&mx4=320&my3=360&mx3=320&my2=360&mx2=365&my1=360&mx1=275&by37=220&bx37=70&by36=220&bx36=40&by35=220&bx35=10&by34=360&bx34=540&by33=360&bx33=570&by32=360&bx32=600&by31=220&bx31=540&by30=220&bx30=570&by29=220&bx29=600&by28=120&bx28=350&by27=120&bx27=320&by26=120&bx26=290&by25=120&bx25=260&by24=280&bx24=170&by23=280&bx23=200&by22=280&bx22=440&by21=280&bx21=410&by20=420&bx20=320&by19=390&bx19=380&by18=390&bx18=350&by17=390&bx17=320&by16=390&bx16=230&by15=390&bx15=290&by14=390&bx14=260&by13=420&bx13=290&by12=260&bx12=380&by11=260&bx11=350&by10=260&bx10=230&by9=260&bx9=260&by8=260&bx8=290&by7=260&bx7=320&by6=140&bx6=440&by5=140&bx5=410&by4=140&bx4=380&by3=140&bx3=230&by2=140&bx2=200&by1=140&bx1=170&men=21&blocks=37&levname=ss13";
lev_data[26] = "my12=80&mx12=40&my11=240&mx11=40&my10=420&mx10=390&my9=420&mx9=490&my8=420&mx8=440&my7=360&mx7=610&my6=360&mx6=560&my5=240&mx5=600&my4=80&mx4=600&my3=360&mx3=310&my2=240&mx2=310&my1=180&mx1=250&by35=110&bx35=40&by34=110&bx34=10&by33=270&bx33=40&by32=270&bx32=10&by31=390&bx31=540&by30=390&bx30=570&by29=390&bx29=600&by28=270&bx28=570&by27=270&bx27=600&by26=110&bx26=570&by25=110&bx25=600&by24=390&bx24=310&by23=390&bx23=280&by22=270&bx22=310&by21=270&bx21=280&by20=80&bx20=250&by19=80&bx19=220&by18=110&bx18=250&by17=110&bx17=220&by16=210&bx16=250&by15=210&bx15=220&by14=240&bx14=250&by13=240&bx13=220&by12=270&bx12=250&by11=270&bx11=220&by10=300&bx10=250&by9=300&bx9=220&by8=330&bx8=220&by7=330&bx7=250&by6=360&bx6=250&by5=360&bx5=220&by4=390&bx4=220&by3=390&bx3=250&by2=420&bx2=250&by1=420&bx1=220&men=12&blocks=35&levname=a13";
lev_data[27] = "my20=230&mx20=100&my19=200&mx19=45&my18=100&mx18=195&my17=100&mx17=160&my16=70&mx16=85&my15=70&mx15=45&my14=120&mx14=395&my13=120&mx13=435&my12=120&mx12=480&my11=120&mx11=525&my10=120&mx10=570&my9=240&mx9=510&my8=240&mx8=465&my7=240&mx7=420&my6=240&mx6=375&my5=240&mx5=330&my4=360&mx4=450&my3=360&mx3=405&my2=360&mx2=360&my1=360&mx1=315&by55=260&bx55=40&by54=260&bx54=70&by53=260&bx53=100&by52=230&bx52=40&by51=230&bx51=10&by50=130&bx50=190&by49=130&bx49=160&by48=130&bx48=130&by47=130&bx47=100&by46=100&bx46=100&by45=100&bx45=70&by44=100&bx44=40&by43=100&bx43=10&by42=390&bx42=270&by41=420&bx41=390&by40=210&bx40=600&by39=300&bx39=600&by38=390&bx38=600&by37=150&bx37=360&by36=150&bx36=390&by35=150&bx35=420&by34=150&bx34=450&by33=150&bx33=480&by32=150&bx32=510&by31=150&bx31=540&by30=150&bx30=570&by29=180&bx29=570&by28=210&bx28=570&by27=240&bx27=570&by26=270&bx26=570&by25=300&bx25=570&by24=330&bx24=570&by23=390&bx23=570&by22=360&bx22=570&by21=420&bx21=570&by20=270&bx20=300&by19=270&bx19=330&by18=270&bx18=360&by17=270&bx17=390&by16=270&bx16=420&by15=270&bx15=450&by14=270&bx14=480&by13=270&bx13=510&by12=300&bx12=510&by11=330&bx11=510&by10=360&bx10=510&by9=390&bx9=510&by8=420&bx8=510&by7=420&bx7=450&by6=390&bx6=450&by5=390&bx5=420&by4=390&bx4=390&by3=390&bx3=360&by2=390&bx2=330&by1=390&bx1=300&men=20&blocks=55&levname=ss14";
lev_data[28] = "my15=270&mx15=600&my14=390&mx14=600&my13=100&mx13=600&my12=150&mx12=410&my11=150&mx11=365&my10=150&mx10=305&my9=150&mx9=260&my8=390&mx8=380&my7=270&mx7=380&my6=270&mx6=290&my5=390&mx5=290&my4=100&mx4=30&my3=100&mx3=65&my2=100&mx2=100&my1=100&mx1=135&by43=300&bx43=570&by42=300&bx42=600&by41=420&bx41=570&by40=420&bx40=600&by39=130&bx39=570&by38=130&bx38=600&by37=180&bx37=230&by36=180&bx36=260&by35=180&bx35=290&by34=180&bx34=410&by33=180&bx33=380&by32=180&bx32=350&by31=180&bx31=320&by30=270&bx30=410&by29=300&bx29=410&by28=300&bx28=380&by27=300&bx27=350&by26=210&bx26=320&by25=240&bx25=320&by24=270&bx24=320&by23=360&bx23=230&by22=270&bx22=230&by21=300&bx21=230&by20=300&bx20=260&by19=300&bx19=290&by18=390&bx18=410&by17=420&bx17=410&by16=420&bx16=380&by15=390&bx15=230&by14=420&bx14=230&by13=300&bx13=320&by12=330&bx12=320&by11=360&bx11=320&by10=390&bx10=320&by9=420&bx9=350&by8=420&bx8=320&by7=420&bx7=290&by6=420&bx6=260&by5=130&bx5=130&by4=130&bx4=100&by3=130&bx3=70&by2=130&bx2=40&by1=130&bx1=10&men=15&blocks=43&levname=a14";
lev_data[29] = "my24=420&mx24=330&my23=180&mx23=570&my22=180&mx22=540&my21=180&mx21=105&my20=180&mx20=70&my19=420&mx19=170&my18=420&mx18=210&my17=420&mx17=250&my16=420&mx16=290&my15=390&mx15=420&my14=390&mx14=450&my13=390&mx13=480&my12=390&mx12=510&my11=390&mx11=540&my10=390&mx10=570&my9=390&mx9=600&my8=180&mx8=250&my7=180&mx7=280&my6=180&mx6=360&my5=180&mx5=390&my4=180&mx4=420&my3=180&mx3=450&my2=180&mx2=220&my1=180&mx1=190&by30=210&bx30=570&by29=210&bx29=540&by28=210&bx28=510&by27=210&bx27=40&by26=210&bx26=70&by25=210&bx25=100&by24=420&bx24=600&by23=420&bx23=570&by22=420&bx22=540&by21=420&bx21=510&by20=420&bx20=480&by19=420&bx19=450&by18=420&bx18=420&by17=420&bx17=390&by16=360&bx16=360&by15=390&bx15=360&by14=420&bx14=360&by13=300&bx13=360&by12=270&bx12=360&by11=240&bx11=360&by10=210&bx10=330&by9=210&bx9=280&by8=210&bx8=360&by7=210&bx7=390&by6=210&bx6=420&by5=210&bx5=450&by4=210&bx4=250&by3=210&bx3=220&by2=210&bx2=190&by1=210&bx1=160&men=24&blocks=30&levname=ss15";
lev_data[30] = "my17=160&mx17=40&my16=260&mx16=40&my15=420&mx15=335&my14=420&mx14=510&my13=420&mx13=470&my12=260&mx12=400&my11=360&mx11=400&my10=360&mx10=580&my9=260&mx9=580&my8=160&mx8=580&my7=60&mx7=580&my6=60&mx6=490&my5=60&mx5=400&my4=60&mx4=310&my3=60&mx3=220&my2=60&mx2=130&my1=60&mx1=40&by36=190&bx36=10&by35=190&bx35=40&by34=290&bx34=40&by33=290&bx33=10&by32=330&bx32=270&by31=360&bx31=270&by30=390&bx30=270&by29=420&bx29=270&by28=390&bx28=400&by27=390&bx27=370&by26=420&bx26=370&by25=420&bx25=400&by24=290&bx24=370&by23=290&bx23=400&by22=420&bx22=580&by21=420&bx21=550&by20=390&bx20=580&by19=390&bx19=550&by18=290&bx18=580&by17=290&bx17=550&by16=190&bx16=550&by15=190&bx15=580&by14=90&bx14=580&by13=90&bx13=550&by12=90&bx12=490&by11=90&bx11=460&by10=90&bx10=400&by9=90&bx9=370&by8=90&bx8=310&by7=90&bx7=280&by6=90&bx6=220&by5=90&bx5=190&by4=90&bx4=130&by3=90&bx3=100&by2=90&bx2=40&by1=90&bx1=10&men=17&blocks=36&levname=a15";
lev_data[31] = "my23=50&mx23=365&my22=50&mx22=335&my21=50&mx21=305&my20=50&mx20=275&my19=50&mx19=245&my18=70&mx18=600&my17=100&mx17=555&my16=100&mx16=520&my15=100&mx15=485&my14=100&mx14=450&my13=110&mx13=100&my12=110&mx12=70&my11=110&mx11=40&my10=420&mx10=200&my9=420&mx9=250&my8=330&mx8=610&my7=330&mx7=570&my6=330&mx6=530&my5=330&mx5=490&my4=330&mx4=450&my3=360&mx3=400&my2=360&mx2=365&my1=360&mx1=330&by45=80&bx45=350&by44=80&bx44=320&by43=80&bx43=290&by42=80&bx42=260&by41=80&bx41=230&by40=130&bx40=420&by39=160&bx39=600&by38=160&bx38=570&by37=160&bx37=540&by36=160&bx36=510&by35=160&bx35=480&by34=130&bx34=450&by33=130&bx33=480&by32=130&bx32=510&by31=130&bx31=540&by30=130&bx30=570&by29=100&bx29=570&by28=100&bx28=600&by27=290&bx27=10&by26=290&bx26=40&by25=260&bx25=40&by24=260&bx24=70&by23=230&bx23=70&by22=230&bx22=100&by21=200&bx21=100&by20=170&bx20=100&by19=140&bx19=100&by18=140&bx18=70&by17=140&bx17=40&by16=140&bx16=10&by15=420&bx15=510&by14=390&bx14=510&by13=360&bx13=600&by12=360&bx12=570&by11=360&bx11=540&by10=360&bx10=510&by9=360&bx9=480&by8=360&bx8=450&by7=360&bx7=420&by6=390&bx6=420&by5=390&bx5=390&by4=390&bx4=360&by3=390&bx3=330&by2=390&bx2=300&by1=420&bx1=300&men=23&blocks=45&levname=ss16";
lev_data[32] = "my10=390&mx10=600&my9=390&mx9=510&my8=390&mx8=420&my7=390&mx7=330&my6=180&mx6=420&my5=70&mx5=75&my4=70&mx4=40&my3=180&mx3=330&my2=180&mx2=510&my1=180&mx1=600&by51=330&bx51=540&by50=360&bx50=540&by49=390&bx49=540&by48=330&bx48=450&by47=360&bx47=450&by46=390&bx46=450&by45=330&bx45=360&by44=360&bx44=360&by43=390&bx43=360&by42=330&bx42=270&by41=360&bx41=270&by40=390&bx40=270&by39=420&bx39=270&by38=420&bx38=300&by37=420&bx37=330&by36=420&bx36=360&by35=420&bx35=390&by34=420&bx34=420&by33=420&bx33=450&by32=420&bx32=480&by31=420&bx31=510&by30=420&bx30=540&by29=420&bx29=570&by28=420&bx28=600&by27=100&bx27=70&by26=100&bx26=40&by25=100&bx25=10&by24=120&bx24=270&by23=150&bx23=270&by22=180&bx22=270&by21=120&bx21=360&by20=150&bx20=360&by19=180&bx19=360&by18=120&bx18=450&by17=150&bx17=450&by16=180&bx16=450&by15=120&bx15=540&by14=150&bx14=540&by13=180&bx13=540&by12=210&bx12=270&by11=210&bx11=300&by10=210&bx10=330&by9=210&bx9=360&by8=210&bx8=390&by7=210&bx7=420&by6=210&bx6=450&by5=210&bx5=480&by4=210&bx4=510&by3=210&bx3=540&by2=210&bx2=570&by1=210&bx1=600&men=10&blocks=51&levname=a16";
lev_data[33] = "my19=90&mx19=480&my18=90&mx18=540&my17=90&mx17=600&my16=100&mx16=160&my15=100&mx15=130&my14=130&mx14=70&my13=130&mx13=40&my12=270&mx12=600&my11=270&mx11=570&my10=270&mx10=540&my9=270&mx9=510&my8=270&mx8=480&my7=360&mx7=420&my6=360&mx6=390&my5=360&mx5=360&my4=360&mx4=330&my3=360&mx3=300&my2=330&mx2=240&my1=330&mx1=210&by39=120&bx39=450&by38=120&bx38=480&by37=120&bx37=510&by36=120&bx36=540&by35=120&bx35=570&by34=120&bx34=600&by33=100&bx33=190&by32=130&bx32=190&by31=130&bx31=160&by30=130&bx30=130&by29=130&bx29=100&by28=160&bx28=100&by27=160&bx27=70&by26=160&bx26=40&by25=160&bx25=10&by24=420&bx24=180&by23=390&bx23=180&by22=360&bx22=180&by21=360&bx21=210&by20=420&bx20=240&by19=360&bx19=240&by18=390&bx18=240&by17=390&bx17=270&by16=390&bx16=300&by15=420&bx15=330&by14=390&bx14=330&by13=390&bx13=360&by12=390&bx12=390&by11=390&bx11=420&by10=420&bx10=450&by9=390&bx9=450&by8=360&bx8=450&by7=330&bx7=450&by6=300&bx6=450&by5=300&bx5=480&by4=300&bx4=510&by3=300&bx3=540&by2=300&bx2=570&by1=300&bx1=600&men=19&blocks=39&levname=ss17";
lev_data[34] = "my16=50&mx16=70&my15=50&mx15=35&my14=250&mx14=40&my13=150&mx13=40&my12=240&mx12=600&my11=360&mx11=600&my10=360&mx10=445&my9=390&mx9=390&my8=360&mx8=485&my7=240&mx7=445&my6=240&mx6=485&my5=270&mx5=390&my4=90&mx4=480&my3=90&mx3=445&my2=150&mx2=395&my1=150&mx1=355&by45=80&bx45=70&by44=80&bx44=40&by43=80&bx43=10&by42=250&bx42=70&by41=280&bx41=70&by40=280&bx40=40&by39=280&bx39=10&by38=150&bx38=70&by37=180&bx37=70&by36=180&bx36=40&by35=180&bx35=10&by34=270&bx34=570&by33=270&bx33=600&by32=420&bx32=600&by31=420&bx31=570&by30=390&bx30=570&by29=390&bx29=600&by28=420&bx28=360&by27=390&bx27=450&by26=300&bx26=360&by25=270&bx25=450&by24=420&bx24=420&by23=390&bx23=420&by22=270&bx22=420&by21=420&bx21=480&by20=390&bx20=480&by19=270&bx19=480&by18=150&bx18=480&by17=120&bx17=480&by16=120&bx16=450&by15=120&bx15=420&by14=150&bx14=420&by13=420&bx13=390&by12=300&bx12=390&by11=180&bx11=390&by10=180&bx10=360&by9=210&bx9=330&by8=240&bx8=330&by7=270&bx7=330&by6=300&bx6=330&by5=330&bx5=330&by4=360&bx4=330&by3=390&bx3=330&by2=420&bx2=330&by1=180&bx1=330&men=16&blocks=45&levname=a17";
lev_data[35] = "my22=420&mx22=235&my21=360&mx21=335&my20=420&mx20=415&my19=420&mx19=450&my18=420&mx18=555&my17=420&mx17=520&my16=420&mx16=485&my15=70&mx15=90&my14=70&mx14=60&my13=70&mx13=30&my12=250&mx12=320&my11=250&mx11=375&my10=250&mx10=435&my9=70&mx9=615&my8=70&mx8=585&my7=70&mx7=555&my6=130&mx6=510&my5=130&mx5=465&my4=130&mx4=285&my3=130&mx3=420&my2=130&mx2=375&my1=130&mx1=330&by33=390&bx33=320&by32=420&bx32=290&by31=420&bx31=320&by30=420&bx30=350&by29=100&bx29=100&by28=100&bx28=70&by27=100&bx27=40&by26=100&bx26=10&by25=100&bx25=600&by24=100&bx24=570&by23=100&bx23=540&by22=130&bx22=540&by21=160&bx21=600&by20=160&bx20=570&by19=160&bx19=540&by18=160&bx18=510&by17=160&bx17=480&by16=160&bx16=450&by15=280&bx15=420&by14=280&bx14=390&by13=280&bx13=360&by12=280&bx12=330&by11=280&bx11=300&by10=280&bx10=270&by9=250&bx9=270&by8=220&bx8=270&by7=190&bx7=270&by6=160&bx6=420&by5=160&bx5=390&by4=160&bx4=360&by3=160&bx3=330&by2=160&bx2=300&by1=160&bx1=270&men=22&blocks=33&levname=ss18";
lev_data[36] = "my13=120&mx13=40&my12=240&mx12=40&my11=150&mx11=480&my10=180&mx10=420&my9=210&mx9=360&my8=240&mx8=300&my7=420&mx7=595&my6=420&mx6=550&my5=390&mx5=480&my4=270&mx4=480&my3=300&mx3=420&my2=330&mx2=360&my1=390&mx1=300&by50=240&bx50=70&by49=270&bx49=70&by48=270&bx48=40&by47=270&bx47=10&by46=120&bx46=70&by45=150&bx45=70&by44=150&bx44=40&by43=150&bx43=10&by42=90&bx42=420&by41=90&bx41=390&by40=120&bx40=360&by39=120&bx39=330&by38=150&bx38=300&by37=150&bx37=270&by36=150&bx36=240&by35=180&bx35=240&by34=210&bx34=240&by33=270&bx33=270&by32=240&bx32=330&by31=240&bx31=360&by30=210&bx30=390&by29=210&bx29=420&by28=180&bx28=450&by27=180&bx27=480&by26=270&bx26=300&by25=300&bx25=270&by24=360&bx24=420&by23=390&bx23=420&by22=300&bx22=480&by21=300&bx21=450&by20=330&bx20=420&by19=330&bx19=390&by18=360&bx18=360&by17=360&bx17=330&by16=390&bx16=330&by15=240&bx15=240&by14=270&bx14=240&by13=300&bx13=240&by12=330&bx12=240&by11=360&bx11=240&by10=390&bx10=240&by9=420&bx9=480&by8=420&bx8=450&by7=420&bx7=420&by6=420&bx6=390&by5=420&bx5=360&by4=420&bx4=330&by3=420&bx3=300&by2=420&bx2=270&by1=420&bx1=240&men=13&blocks=50&levname=a18";
var dxmouse;
var dymouse;
var len;
var fi;
var dx;
var dy;
var sp;
var n;
var n_targets;
var n_balls = 0;
var new_ball;
var cannon;
var speed = 25;
var hits = 0;
var shots_left = 10;
var n_men = 0;
var n_blocks = 0;
var n_scores = 0;
var n_shots = 0;
var lvl_score = 0;
var score_time = 50;
var g;
g = this;
var lvl_list = new Array();
var last_lvl;
var shot_timer = 100;
i = 1;
while (i <= 10) {
this["btn" + i].removeMovieClip();
i++;
}
i = 1;
while (i <= 17) {
lvl_list[i] = "a" + i;
i++;
}
i = 1;
while (i <= 15) {
lvl_list[i + 17] = "ss" + i;
i++;
}
this.attachMovie("click_detector", "click_detector", 40000);
click_detector._x = 10;
click_detector._y = 10;
click_detector._alpha = 0;
click_detector.onPress = function () {
this._parent.add_ball();
};
next_lvl();
onEnterFrame = function () {
if (click_detector._alpha > 0) {
click_detector._alpha = click_detector._alpha - 5;
}
dxmouse = _root._xmouse - cannon._x;
dymouse = _root._ymouse - cannon._y;
len = Math.sqrt((dxmouse * dxmouse) + (dymouse * dymouse));
fi = Math.acos((-dymouse) / len) * (dxmouse / Math.abs(dxmouse));
fi1 = (fi * 180) / Math.PI;
if (fi1 < 10) {
fi1 = 10;
fi = (fi1 / 180) * Math.PI;
}
if (fi1 > 120) {
fi1 = 120;
fi = (fi1 / 180) * Math.PI;
}
cannon._rotation = fi1;
i = 0;
while (i <= 50) {
move_ball(i);
move_ball(i);
j = 1;
while (j <= n_men) {
man = this["man" + j];
if (man.hitTest(this["ball" + i]._x, this["ball" + i]._y, true) && (man.act)) {
this["ball" + i].kills++;
destroy(man, this["ball" + i].kills);
}
j++;
}
i++;
}
hits = 0;
i = 1;
while (i <= n_men) {
if (!this["man" + i].act) {
hits++;
}
i++;
}
if ((((hits == n_men) && (n_men > 0)) && (lvl_shots > 0)) && (nxt._x != 320)) {
nxt = attachMovie("next_lvl", "next_lvl", 44111);
nxt._x = 320;
nxt._y = 240;
nxt.gotoAndPlay(1);
}
shot_timer++;
txt_score.text = lvl_score;
};
Frame 7
stop();
var btn_a = -200;
i = 1;
while (i <= 4) {
this["bt" + i]._visible = false;
i++;
}
if (_url.indexOf("kongregate") == -1) {
adBox = attachMovie("adBox", "adBox", 61823);
adBox._x = 48;
adBox._y = 125;
var CPMStarContentSpotID = "843Q7B91F20D";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
}
onEnterFrame = function () {
btn_a = btn_a + 2;
if (btn_a > 0) {
i = 1;
while (i <= 4) {
this["bt" + i]._visible = true;
i++;
}
}
i = 1;
while (i <= 4) {
this["bt" + i]._alpha = btn_a;
i++;
}
};
Frame 10
function edit() {
i = 1;
while (i <= 10) {
this["btn" + i].removeMovieClip();
i++;
}
gotoAndStop (20);
}
stop();
removeMovieClip(adBox);
var empty = false;
var my_so = SharedObject.getLocal("user_levels");
var lvl_code;
i = 1;
while (i <= 10) {
btn = attachMovie("btn_user_level", "btn" + i, i);
btn._x = 300;
btn._y = 35 + (i * 21);
if (my_so.data["level" + i]) {
btn.btn_level.txt_level.text = "LEVEL" + i;
}
if ((!my_so.data["level" + i]) && (empty)) {
btn.gotoAndStop(3);
}
if ((!my_so.data["level" + i]) && (!empty)) {
btn.gotoAndStop(2);
empty = true;
}
btn.lev_num = i;
trace(btn.lev_num);
i++;
}
Frame 20
function onEnterFrame() {
if (mode == 1) {
eblock._x = (Math.round(_xmouse / 10) * 10) - 10;
eblock._y = (Math.round(_ymouse / 10) * 10) - 10;
if (eblock._y > 420) {
eblock._y = 420;
}
}
if (mode == 2) {
eman._x = Math.round(_xmouse / 5) * 5;
eman._y = (Math.round(_ymouse / 10) * 10) - 20;
if (eman._y > 420) {
eman._y = 420;
}
}
if (_ymouse > 450) {
eman._x = 800;
eblock._y = 800;
}
}
function add() {
if (mode == 1) {
n_blocks++;
block = level.attachMovie("block", "block" + n_blocks, n_blocks);
block._x = eblock._x;
block._y = eblock._y;
}
if (mode == 2) {
n_men++;
man = attachMovie("man", "man" + n_men, 1000 + n_men);
man._x = eman._x;
man._y = eman._y;
}
if (mode == 0) {
i = 1;
while (i <= n_blocks) {
if (level["block" + i].hitTest(_xmouse, _ymouse, true)) {
level["block" + i]._x = 2000;
}
i++;
}
i = 1;
while (i <= n_men) {
if (this["man" + i].hitTest(_xmouse, _ymouse, true)) {
this["man" + i]._x = 2000;
}
i++;
}
}
}
function lev_save() {
var _local3 = SharedObject.getLocal("user_levels");
var _local2 = new LoadVars();
_local2.levname = "user_level" + edit_lvl;
_local2.blocks = 0;
_local2.men = 0;
i = 1;
while (i <= n_blocks) {
block = level["block" + i];
if (block._x < 640) {
_local2.blocks++;
_local2["bx" + _local2.blocks] = block._x;
_local2["by" + _local2.blocks] = block._y;
}
i++;
}
i = 1;
while (i <= n_men) {
man = this["man" + i];
if (man._x < 640) {
_local2.men++;
_local2["mx" + _local2.men] = man._x;
_local2["my" + _local2.men] = man._y;
}
i++;
}
_local3.data["user_level" + edit_lvl] = _local2.toString();
_local3.data["level" + edit_lvl] = true;
trace("ok");
trace(_local3.data.user_level1);
}
function lev_load() {
trace("level_loading " + edit_lvl);
var _local2 = SharedObject.getLocal("user_levels");
if (!_local2.data["level" + edit_lvl]) {
return(undefined);
}
trace("so");
trace(_local2);
var _local1 = new LoadVars();
_local1.decode(_local2.data["user_level" + edit_lvl]);
trace("lv");
trace(_local1);
k = 1;
while (k <= _local1.blocks) {
block = level.attachMovie("block", "block" + k, k);
block._x = _local1["bx" + k];
block._y = _local1["by" + k];
k++;
}
i = 1;
while (i <= _local1.men) {
block = attachMovie("man", "man" + i, 1000 + i);
block._x = _local1["mx" + i];
block._y = _local1["my" + i];
i++;
}
n_men = _local1.men;
n_blocks = _local1.blocks;
}
function lev_clear() {
trace("clear");
i = 1;
while (i <= (n_men + 50)) {
this["man" + i].removeMovieClip();
i++;
}
i = 1;
while (i <= (n_blocks + 50)) {
level["block" + i].removeMovieClip();
i++;
}
n_blocks = 0;
n_men = 0;
}
function lev_get_code() {
var _local2 = new LoadVars();
_local2.levname = "user_level" + edit_lvl;
_local2.blocks = 0;
_local2.men = 0;
i = 1;
while (i <= n_blocks) {
block = level["block" + i];
if (block._x < 640) {
_local2.blocks++;
_local2["bx" + _local2.blocks] = block._x;
_local2["by" + _local2.blocks] = block._y;
}
i++;
}
i = 1;
while (i <= n_men) {
man = this["man" + i];
if (man._x < 640) {
_local2.men++;
_local2["mx" + _local2.men] = man._x;
_local2["my" + _local2.men] = man._y;
}
i++;
}
lvl_code = _local2.toString();
lc = attachMovie("mc_lvl_code", "mc_lvl_code", 61424);
lc.txt_lvl_code.text = lvl_code;
lc._x = 320;
lc._y = 220;
trace("level code:");
trace(lvl_code);
}
stop();
adBox._visible = false;
var mode = 1;
var n_blocks = 0;
var n_men = 0;
var blocks = new Array();
var men = new Array();
this.attachMovie("click_detector", "click_detector", 40000);
click_detector._y = 10;
click_detector._x = 10;
click_detector._alpha = 0;
click_detector.onPress = function () {
this._parent.add();
};
lev_load();
ed_btn_block.gotoAndStop(2);
Frame 30
stop();
click_detector.removeMovieClip();
score_txt.text = score;
Frame 35
var o = {n:[2, 6, 2, 14, 13, 12, 13, 8, 11, 4, 11, 4, 10, 4, 8, 4], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID});
Frame 36
gotoAndStop (3);
Frame 40
var o = {n:[2, 6, 2, 14, 13, 12, 13, 8, 11, 4, 11, 4, 10, 4, 8, 4], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:score});
Frame 41
gotoAndStop (3);
Symbol 3 MovieClip [ball] Frame 1
stop();
var act = true;
var dx;
var dy;
var hits = 0;
var kills = 0;
Symbol 3 MovieClip [ball] Frame 5
gotoAndStop (2);
Symbol 8 MovieClip [man_score] Frame 1
function onEnterFrame() {
this._y = this._y - 0.7;
n++;
if (n == 45) {
this.removeMovieClip();
}
}
stop();
var n = 0;
Symbol 10 MovieClip [btn_next_lvl] Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
stop();
onPress = function () {
_parent._parent.next_lvl();
_parent.removeMovieClip();
};
Symbol 17 MovieClip Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
function onRelease() {
getURL ("http://www.coolbuddy.com/?cid=184", "_blank");
}
stop();
Symbol 18 MovieClip [next_lvl] Frame 30
function onEnterFrame() {
if (_alpha < 100) {
_alpha = (_alpha + 7);
}
}
stop();
_alpha = 1;
var sc = (_parent.score + _parent.lvl_score);
txt_total_score.text = sc;
txt_lvl_score.text = _parent.lvl_score;
if (_parent.lvl > 99) {
btn_next_lvl._visible = false;
}
if (_parent.lvl > 99) {
btn_reset._x = 0;
}
Symbol 20 MovieClip Frame 1
function onPress() {
_parent._parent.user_levels = true;
_parent._parent.lvl = _parent.lev_num - 1;
_parent._parent.gotoAndStop(5);
}
Symbol 22 MovieClip Frame 1
function onPress() {
_parent._parent.adBox.removeMovieClip();
_parent._parent.edit_lvl = _parent.lev_num;
_parent._parent.edit();
}
Symbol 25 MovieClip [btn_user_level] Frame 1
stop();
Symbol 28 MovieClip Frame 1
function onPress() {
_parent.removeMovieClip();
}
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
stop();
Symbol 32 MovieClip Frame 1
function onRelease() {
getURL ("http://coolbuddy.com/games/community/Game_paste_forum.asp?cat=971", "_blank");
}
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
stop();
Symbol 43 MovieClip [man] Frame 1
stop();
act = true;
Symbol 43 MovieClip [man] Frame 8
stop();
n = random(4);
gotoAndStop(8 + n);
Symbol 51 MovieClip Frame 1
onPress = function () {
getURL ("http://www.coolbuddy.com/?cid=184", "_blank");
};
Symbol 62 MovieClip Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
function onPress() {
removeMovieClip(_parent._parent.adBox);
_parent._parent.gotoAndPlay(2);
}
Symbol 62 MovieClip Frame 12
gotoAndPlay (2);
Symbol 63 MovieClip Frame 1
stop();
Symbol 169 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 170 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.3 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) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.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();
}
}
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) {
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 (target_mc) {
this.isLoading = true;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["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(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [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);
trace("Waiting for MochiAds services to connect...");
}
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, clip:_clip, 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 "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_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.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.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:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
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) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
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 :
trace("WARNING: Board ID contains illegal characters: " + bid);
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://x.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 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 servicesSync = new mochi.as2.MochiSync();
}
Symbol 171 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 172 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
static var gameStart, levelStart;
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function trigger(kind, obj) {
if (obj == undefined) {
obj = {};
} else if (obj.kind != undefined) {
trace("WARNING: optional arguements package contains key 'id', it will be overwritten");
obj.kind = kind;
}
mochi.as2.MochiServices.send("events_triggerEvent", {eventObject:obj}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, 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 startGame() {
gameStart = new Date().getTime();
trigger("start_game");
}
static function endGame() {
var _local1 = new Date().getTime() - gameStart;
trigger("end_game", {time:_local1});
}
static function startLevel() {
levelStart = new Date().getTime();
trigger("start_level");
}
static function endLevel() {
var _local1 = new Date().getTime() - levelStart;
trigger("end_level", {time:_local1});
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
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 _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 173 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")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_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 STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
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();
}
Symbol 174 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.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 (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.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.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.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 175 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 67 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 73 MovieClip [sm_music] Frame 1
stop();
Symbol 76 MovieClip Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
stop();
onPress = function () {
_parent.music_off();
_parent.snd_off();
gotoAndStop (2);
};
Symbol 76 MovieClip Frame 2
onPress = function () {
_parent.music_on();
_parent.snd_on();
gotoAndStop (1);
};
Symbol 80 MovieClip Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
function onRelease() {
getURL ("http://www.coolbuddy.com/?cid=184", "_blank");
}
stop();
this.swapDepths(65302);
Symbol 85 MovieClip Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
function onPress() {
removeMovieClip(_parent._parent.adBox);
_parent._parent.gotoAndStop("game");
}
stop();
Symbol 87 MovieClip Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
function onPress() {
var _local2 = SharedObject.getLocal("last_level");
if (_local2.data.lvl <= 0) {
return(undefined);
}
_parent._parent.lvl = _local2.data.lvl;
_parent._parent.score = _local2.data.score;
trace(_parent.lvl);
trace(_parent.score);
_parent._parent.gotoAndStop("game");
}
stop();
Symbol 89 MovieClip Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
function onPress() {
_parent._parent.gotoAndPlay(35);
}
stop();
Symbol 91 MovieClip Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
function onRelease() {
getURL ("http://www.coolbuddy.com/?cid=184", "_blank");
}
stop();
Symbol 93 MovieClip Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
function onPress() {
_parent._parent.gotoAndStop(7);
}
stop();
Symbol 95 MovieClip Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
function onPress() {
_parent._parent.gotoAndStop(43);
}
stop();
Symbol 99 MovieClip [level] Frame 1
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
stop();
onPress = function () {
_parent.lev_clear();
_parent.click_detector.removeMovieClip();
_parent.nxt.removeMovieClip();
_parent.gotoAndStop("menu");
};
Symbol 110 MovieClip Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
stop();
onPress = function () {
_parent.nxt.removeMovieClip();
_parent.next_lvl(-1);
};
Symbol 115 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
stop();
onPress = function () {
_parent.lev_clear();
_parent.click_detector.removeMovieClip();
i = 1;
while (i <= 10) {
_parent["btn" + i].removeMovieClip();
i++;
}
_parent.nxt.removeMovieClip();
_parent.gotoAndStop(7);
};
Symbol 123 MovieClip Frame 1
stop();
onPress = function () {
_parent.lev_get_code();
};
Symbol 126 MovieClip Frame 1
function onRelease() {
getURL ("http://coolbuddy.com/games/community/Game_forum.asp?cat=971", "_blank");
}
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
stop();
Symbol 128 MovieClip Frame 1
function onRelease() {
getURL ("http://coolbuddy.com/games/community/Game_Comments.asp?cat=971", "_blank");
}
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
stop();
Symbol 130 MovieClip Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
function onPress() {
removeMovieClip(_parent.adBox);
_parent.gotoAndStop(10);
}
stop();
Symbol 132 MovieClip Frame 1
function onPress() {
removeMovieClip(_parent.adBox);
_parent.gotoAndStop("menu");
}
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
stop();
Symbol 137 MovieClip Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
stop();
onPress = function () {
_parent.lev_clear();
_parent.click_detector.removeMovieClip();
i = 1;
while (i <= 10) {
_parent["btn" + i].removeMovieClip();
i++;
}
_parent.nxt.removeMovieClip();
_parent.gotoAndStop("menu");
};
Symbol 139 MovieClip Frame 1
function onPress() {
if (_parent.txt_lvl_code.length == 0) {
return(undefined);
}
_parent.user_levels = true;
_parent.lvl = 100;
_parent.lvl_code = _parent.txt_lvl_code.text;
i = 1;
while (i <= 10) {
_parent["btn" + i].removeMovieClip();
i++;
}
_parent.gotoAndStop(5);
}
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
Symbol 142 MovieClip Frame 1
function onRelease() {
getURL ("http://coolbuddy.com/games/community/Game_forum.asp?cat=971", "_blank");
}
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
stop();
Symbol 145 MovieClip Frame 1
function onPress() {
_parent.mode = 2;
_parent.eblock._x = 800;
gotoAndStop (2);
_parent.ed_btn_block.gotoAndStop(1);
_parent.ed_btn_del.gotoAndStop(1);
}
stop();
Symbol 148 MovieClip Frame 1
function onPress() {
_parent.mode = 1;
_parent.eman._x = 800;
gotoAndStop (2);
_parent.ed_btn_man.gotoAndStop(1);
_parent.ed_btn_del.gotoAndStop(1);
}
stop();
Symbol 151 MovieClip Frame 1
function onPress() {
_parent.mode = 0;
_parent.eblock._x = 800;
_parent.eman._x = 800;
gotoAndStop (2);
_parent.ed_btn_man.gotoAndStop(1);
_parent.ed_btn_block.gotoAndStop(1);
}
stop();
Symbol 153 MovieClip Frame 1
stop();
onPress = function () {
_parent.lev_save();
_parent.user_levels = true;
_parent.lvl = _parent.edit_lvl - 1;
_parent.lev_clear();
_parent.gotoAndStop(5);
};
Symbol 155 MovieClip Frame 1
function onPress() {
_parent.lev_clear();
}
stop();
Symbol 160 MovieClip Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
function onPress() {
_parent.gotoAndPlay(40);
}
stop();
Symbol 162 MovieClip Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
function onPress() {
_parent.gotoAndStop(3);
}
stop();
Symbol 168 MovieClip Frame 1
onPress = function () {
getURL ("http://www.coolbuddy.com/?cid=184", "_blank");
};