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;
show_ads = false;
api = false;
if (_url.indexOf("kongregate.com") == -1) {
show_ads = true;
}
if (_url.indexOf("kongregate.com") != -1) {
api = true;
var kongregate = _global.kongregate;
kongregate.services.connect();
}
stop();
var timer = 0;
if (show_ads) {
adBox = attachMovie("adBox", "adBox", 1234);
adBox._x = 58;
adBox._y = 43;
var CPMStarContentSpotID = "1139Q31570B2F";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
} else {
timer = 145;
}
mochi.as2.MochiServices.connect("3c4bc8f677c3b2cb");
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__("a7ee5be6", 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(20);
}
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();
cross = attachMovie("cross", "cross", 65328);
Mouse.hide();
Frame 3
stop();
var lvl = 0;
var edit_lvl;
var user_levels = false;
var score = 0;
removeMovieClip(adBox);
Mouse.show();
cross._visible = false;
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 == 46) {
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);
}
cross.play();
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 _local2 = new LoadVars();
trace(lev_num + " *******************");
if (lev_num < 100) {
_local2.decode(_local3.data["user_level" + lev_num]);
}
if (lev_num == 101) {
_local2.str_lvl = lvl_code;
}
trace("lv");
trace(_local2);
trace("LOAD LEVEL");
trace(_local2.str_lvl);
str_lvl = _local2.str_lvl;
n_men = 0;
n_blocks = 0;
i = 0;
while (i < str_lvl.length) {
t = str_lvl.substr(i, 1);
x = mat.todec(str_lvl.substr(i + 1, 2)) * 5;
y = mat.todec(str_lvl.substr(i + 3, 2)) * 5;
if (t == "b") {
n_blocks++;
block = level.attachMovie("block", "block" + n_blocks, n_blocks);
block._x = x;
block._y = y;
}
if (t == "m") {
n_men++;
block = attachMovie("man", "man" + n_men, 1000 + n_men);
block._x = x;
block._y = y;
}
i = i + 5;
}
}
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] = "my4=300&mx4=195&my3=300&mx3=380&my2=300&mx2=285&my1=390&mx1=430&by21=100&bx21=350&by20=100&bx20=380&by19=100&bx19=410&by18=360&bx18=360&by17=390&bx17=360&by16=360&bx16=180&by15=390&bx15=180&by14=420&bx14=180&by13=100&bx13=500&by12=100&bx12=470&by11=100&bx11=440&by10=420&bx10=370&by9=420&bx9=400&by8=420&bx8=430&by7=420&bx7=460&by6=390&bx6=460&by5=360&bx5=460&by4=330&bx4=460&by3=330&bx3=360&by2=330&bx2=270&by1=330&bx1=180&men=4&blocks=21&levname=user%5Flevel1";
lev_data[2] = "my5=130&mx5=365&my4=160&mx4=335&my3=180&mx3=310&my2=210&mx2=280&my1=240&mx1=245&by23=160&bx23=350&by22=190&bx22=350&by21=220&bx21=350&by20=190&bx20=320&by19=220&bx19=320&by18=250&bx18=320&by17=280&bx17=320&by16=210&bx16=290&by15=240&bx15=290&by14=270&bx14=290&by13=240&bx13=260&by12=270&bx12=260&by11=270&bx11=230&by10=300&bx10=230&by9=330&bx9=230&by8=360&bx8=230&by7=390&bx7=230&by6=420&bx6=230&by5=420&bx5=200&by4=420&bx4=170&by3=420&bx3=140&by2=420&bx2=110&by1=420&bx1=80&men=5&blocks=23&levname=user%5Flevel1";
lev_data[3] = "my4=270&mx4=190&my3=390&mx3=515&my2=220&mx2=375&my1=420&mx1=320&by30=390&bx30=200&by29=360&bx29=200&by28=330&bx28=200&by27=300&bx27=200&by26=300&bx26=170&by25=330&bx25=170&by24=360&bx24=170&by23=420&bx23=500&by22=30&bx22=600&by21=60&bx21=600&by20=90&bx20=600&by19=120&bx19=600&by18=150&bx18=600&by17=180&bx17=600&by16=210&bx16=600&by15=240&bx15=600&by14=270&bx14=600&by13=300&bx13=600&by12=330&bx12=600&by11=360&bx11=600&by10=390&bx10=600&by9=420&bx9=600&by8=390&bx8=170&by7=420&bx7=170&by6=420&bx6=200&by5=210&bx5=420&by4=270&bx4=420&by3=240&bx3=420&by2=250&bx2=390&by1=250&bx1=360&men=4&blocks=30&levname=user%5Flevel1";
lev_data[4] = "my12=150&mx12=65&my11=120&mx11=95&my10=90&mx10=125&my9=60&mx9=150&my8=60&mx8=330&my7=90&mx7=515&my6=150&mx6=575&my5=120&mx5=545&my4=60&mx4=490&my3=390&mx3=615&my2=390&mx2=310&my1=390&mx1=20&by38=420&bx38=60&by37=420&bx37=90&by36=420&bx36=120&by35=420&bx35=150&by34=420&bx34=180&by33=420&bx33=210&by32=420&bx32=240&by31=420&bx31=270&by30=420&bx30=300&by29=420&bx29=330&by28=420&bx28=360&by27=420&bx27=390&by26=420&bx26=420&by25=420&bx25=450&by24=420&bx24=480&by23=420&bx23=510&by22=420&bx22=540&by21=420&bx21=570&by20=420&bx20=600&by19=420&bx19=0&by18=180&bx18=50&by17=150&bx17=80&by16=120&bx16=110&by15=90&bx15=140&by14=90&bx14=170&by13=90&bx13=200&by12=90&bx12=230&by11=90&bx11=260&by10=90&bx10=290&by9=90&bx9=320&by8=90&bx8=350&by7=90&bx7=380&by6=90&bx6=410&by5=90&bx5=440&by4=90&bx4=470&by3=120&bx3=500&by2=150&bx2=530&by1=180&bx1=560&men=12&blocks=38&levname=user%5Flevel1";
lev_data[5] = "my18=390&mx18=315&my17=420&mx17=130&my16=420&mx16=160&my15=420&mx15=190&my14=420&mx14=220&my13=420&mx13=250&my12=420&mx12=280&my11=90&mx11=615&my10=120&mx10=585&my9=120&mx9=585&my8=150&mx8=555&my7=180&mx7=525&my6=210&mx6=495&my5=240&mx5=465&my4=270&mx4=435&my3=300&mx3=405&my2=330&mx2=375&my1=360&mx1=345&by44=30&bx44=610&by43=30&bx43=580&by42=30&bx42=550&by41=30&bx41=520&by40=30&bx40=490&by39=30&bx39=460&by38=30&bx38=430&by37=30&bx37=400&by36=30&bx36=370&by35=30&bx35=340&by34=30&bx34=310&by33=30&bx33=280&by32=30&bx32=250&by31=30&bx31=220&by30=30&bx30=190&by29=30&bx29=160&by28=30&bx28=130&by27=30&bx27=100&by26=30&bx26=70&by25=30&bx25=40&by24=30&bx24=10&by23=60&bx23=10&by22=90&bx22=10&by21=120&bx21=10&by20=150&bx20=10&by19=180&bx19=10&by18=210&bx18=10&by17=240&bx17=10&by16=270&bx16=10&by15=300&bx15=10&by14=330&bx14=70&by13=330&bx13=40&by12=330&bx12=10&by11=300&bx11=420&by10=270&bx10=450&by9=240&bx9=480&by8=210&bx8=510&by7=180&bx7=540&by6=150&bx6=570&by5=120&bx5=600&by4=330&bx4=390&by3=360&bx3=360&by2=390&bx2=330&by1=420&bx1=300&men=18&blocks=44&levname=user%5Flevel1";
lev_data[6] = "my28=260&mx28=85&my27=50&mx27=295&my26=80&mx26=265&my25=110&mx25=235&my24=140&mx24=205&my23=170&mx23=175&my22=200&mx22=145&my21=230&mx21=115&my20=330&mx20=145&my19=150&mx19=415&my18=180&mx18=385&my17=210&mx17=355&my16=240&mx16=325&my15=270&mx15=295&my14=300&mx14=265&my13=330&mx13=235&my12=360&mx12=205&my11=390&mx11=175&my10=420&mx10=145&my9=90&mx9=385&my8=120&mx8=355&my7=150&mx7=325&my6=180&mx6=295&my5=210&mx5=265&my4=240&mx4=235&my3=270&mx3=205&my2=300&mx2=175&my1=360&mx1=115&by35=290&bx35=70&by34=80&bx34=280&by33=110&bx33=250&by32=140&bx32=220&by31=170&bx31=190&by30=200&bx30=160&by29=230&bx29=130&by28=260&bx28=100&by27=180&bx27=400&by26=210&bx26=370&by25=240&bx25=340&by24=270&bx24=310&by23=300&bx23=280&by22=330&bx22=250&by21=360&bx21=220&by20=390&bx20=190&by19=420&bx19=160&by18=100&bx18=480&by17=10&bx17=480&by16=70&bx16=480&by15=10&bx15=390&by14=10&bx14=420&by13=40&bx13=480&by12=10&bx12=450&by11=90&bx11=400&by10=120&bx10=370&by9=150&bx9=340&by8=180&bx8=310&by7=210&bx7=280&by6=240&bx6=250&by5=270&bx5=220&by4=300&bx4=190&by3=330&bx3=160&by2=360&bx2=130&by1=390&bx1=100&men=28&blocks=35&levname=user%5Fl";
lev_data[7] = "my6=420&mx6=570&my5=150&mx5=370&my4=150&mx4=60&my3=150&mx3=600&my2=390&mx2=305&my1=420&mx1=20&by11=210&bx11=290&by10=260&bx10=290&by9=320&bx9=290&by8=90&bx8=350&by7=90&bx7=40&by6=180&bx6=40&by5=350&bx5=10&by4=420&bx4=520&by3=180&bx3=590&by2=180&bx2=350&by1=420&bx1=290&men=6&blocks=11&levname=user%5Flevelundefined";
lev_data[8] = "my18=390&mx18=285&my17=390&mx17=245&my16=80&mx16=360&my15=80&mx15=280&my14=290&mx14=475&my13=290&mx13=575&my12=420&mx12=555&my11=420&mx11=615&my10=420&mx10=500&my9=40&mx9=595&my8=70&mx8=555&my7=200&mx7=390&my6=200&mx6=215&my5=200&mx5=310&my4=60&mx4=25&my3=60&mx3=80&my2=200&mx2=90&my1=200&mx1=45&by51=90&bx51=100&by50=90&bx50=70&by49=90&bx49=40&by48=70&bx48=570&by47=70&bx47=600&by46=100&bx46=510&by45=100&bx45=540&by44=100&bx44=570&by43=100&bx43=600&by42=110&bx42=330&by41=110&bx41=300&by40=110&bx40=270&by39=420&bx39=450&by38=350&bx38=450&by37=320&bx37=450&by36=320&bx36=480&by35=320&bx35=510&by34=320&bx34=540&by33=320&bx33=570&by32=320&bx32=600&by31=260&bx31=390&by30=260&bx30=360&by29=260&bx29=330&by28=260&bx28=300&by27=260&bx27=270&by26=260&bx26=240&by25=260&bx25=210&by24=260&bx24=180&by23=230&bx23=390&by22=230&bx22=360&by21=230&bx21=330&by20=230&bx20=300&by19=230&bx19=270&by18=230&bx18=240&by17=230&bx17=210&by16=230&bx16=180&by15=260&bx15=100&by14=230&bx14=100&by13=260&bx13=70&by12=260&bx12=40&by11=260&bx11=10&by10=230&bx10=70&by9=230&bx9=40&by8=420&bx8=200&by7=420&bx7=230&by6=420&bx6=260&by5=420&bx5=290&by4=110&bx4=360&by3=110&bx3=240&by2=90&bx2=10&by1=230&bx1=10&men=18&blocks=51&levname=user%5Flevel1";
lev_data[9] = "my17=180&mx17=615&my16=150&mx16=585&my15=120&mx15=555&my14=90&mx14=525&my13=60&mx13=495&my12=30&mx12=465&my11=60&mx11=435&my10=90&mx10=405&my9=120&mx9=375&my8=150&mx8=345&my7=180&mx7=315&my6=210&mx6=285&my5=240&mx5=255&my4=270&mx4=225&my3=300&mx3=195&my2=330&mx2=165&my1=360&mx1=135&by19=210&bx19=600&by18=180&bx18=570&by17=180&bx17=570&by16=150&bx16=540&by15=120&bx15=510&by14=90&bx14=480&by13=60&bx13=450&by12=90&bx12=420&by11=120&bx11=390&by10=150&bx10=360&by9=180&bx9=330&by8=210&bx8=300&by7=240&bx7=270&by6=270&bx6=240&by5=300&bx5=210&by4=330&bx4=180&by3=360&bx3=150&by2=390&bx2=120&by1=420&bx1=90&men=17&blocks=19&levname=user%5Flevel1";
lev_data[10] = "my7=50&mx7=325&my6=180&mx6=375&my5=180&mx5=285&my4=120&mx4=185&my3=230&mx3=125&my2=350&mx2=205&my1=70&mx1=465&by29=80&bx29=310&by28=100&bx28=560&by27=180&bx27=440&by26=350&bx26=600&by25=410&bx25=490&by24=300&bx24=490&by23=100&bx23=450&by22=380&bx22=190&by21=260&bx21=220&by20=70&bx20=70&by19=150&bx19=170&by18=260&bx18=110&by17=190&bx17=30&by16=210&bx16=360&by15=210&bx15=270&by14=240&bx14=360&by13=240&bx13=270&by12=270&bx12=270&by11=270&bx11=360&by10=300&bx10=360&by9=330&bx9=360&by8=360&bx8=360&by7=390&bx7=360&by6=420&bx6=360&by5=300&bx5=270&by4=330&bx4=270&by3=360&bx3=270&by2=390&bx2=270&by1=420&bx1=270&men=7&blocks=29&levname=user%5Flevel1";
lev_data[11] = "my13=60&mx13=610&my12=60&mx12=590&my11=60&mx11=560&my10=60&mx10=535&my9=390&mx9=440&my8=360&mx8=405&my7=330&mx7=375&my6=300&mx6=345&my5=270&mx5=315&my4=300&mx4=285&my3=330&mx3=255&my2=360&mx2=225&my1=390&mx1=195&by34=90&bx34=510&by33=90&bx33=540&by32=90&bx32=570&by31=90&bx31=600&by30=130&bx30=390&by29=100&bx29=390&by28=70&bx28=390&by27=40&bx27=390&by26=10&bx26=390&by25=420&bx25=420&by24=300&bx24=300&by23=330&bx23=330&by22=330&bx22=300&by21=330&bx21=270&by20=360&bx20=240&by19=360&bx19=270&by18=360&bx18=300&by17=360&bx17=330&by16=360&bx16=360&by15=390&bx15=390&by14=390&bx14=360&by13=390&bx13=330&by12=390&bx12=300&by11=390&bx11=270&by10=390&bx10=240&by9=390&bx9=210&by8=420&bx8=390&by7=420&bx7=360&by6=420&bx6=330&by5=420&bx5=300&by4=420&bx4=270&by3=420&bx3=240&by2=420&bx2=210&by1=420&bx1=180&men=13&blocks=34&levname=user%5Flevel1";
lev_data[12] = "my10=220&mx10=25&my9=280&mx9=100&my8=280&mx8=75&my7=240&mx7=205&my6=90&mx6=540&my5=150&mx5=475&my4=210&mx4=415&my3=270&mx3=360&my2=350&mx2=290&my1=360&mx1=235&by30=0&bx30=580&by29=310&bx29=120&by28=160&bx28=270&by27=130&bx27=270&by26=100&bx26=270&by25=70&bx25=270&by24=270&bx24=190&by23=280&bx23=140&by22=280&bx22=30&by21=310&bx21=60&by20=250&bx20=160&by19=310&bx19=90&by18=250&bx18=10&by17=30&bx17=580&by16=60&bx16=580&by15=90&bx15=550&by14=120&bx14=520&by13=150&bx13=490&by12=180&bx12=460&by11=210&bx11=430&by10=240&bx10=400&by9=270&bx9=370&by8=300&bx8=340&by7=330&bx7=310&by6=330&bx6=190&by5=360&bx5=310&by4=360&bx4=190&by3=390&bx3=220&by2=390&bx2=280&by1=420&bx1=250&men=10&blocks=30&levname=user%5Flevel1";
lev_data[13] = "my11=180&mx11=610&my10=180&mx10=525&my9=180&mx9=445&my8=360&mx8=555&my7=120&mx7=105&my6=120&mx6=50&my5=120&mx5=130&my4=120&mx4=80&my3=120&mx3=20&my2=420&mx2=500&my1=420&mx1=615&by27=150&bx27=100&by26=150&bx26=70&by25=150&bx25=40&by24=180&bx24=550&by23=180&bx23=470&by22=180&bx22=390&by21=210&bx21=420&by20=210&bx20=450&by19=210&bx19=480&by18=210&bx18=510&by17=210&bx17=540&by16=210&bx16=570&by15=390&bx15=540&by14=420&bx14=80&by13=420&bx13=110&by12=420&bx12=140&by11=420&bx11=170&by10=420&bx10=200&by9=180&bx9=90&by8=180&bx8=60&by7=180&bx7=30&by6=150&bx6=10&by5=210&bx5=600&by4=210&bx4=390&by3=420&bx3=290&by2=420&bx2=260&by1=420&bx1=230&men=11&blocks=27&levname=user%5Flevel1";
lev_data[14] = "my25=420&mx25=530&my24=420&mx24=505&my23=420&mx23=480&my22=420&mx22=455&my21=420&mx21=430&my20=420&mx20=405&my19=420&mx19=380&my18=420&mx18=355&my17=420&mx17=330&my16=420&mx16=305&my15=420&mx15=280&my14=420&mx14=255&my13=420&mx13=230&my12=420&mx12=205&my11=420&mx11=180&my10=420&mx10=155&my9=220&mx9=115&my8=220&mx8=525&my7=180&mx7=370&my6=180&mx6=300&my5=130&mx5=455&my4=100&mx4=405&my3=60&mx3=335&my2=100&mx2=255&my1=130&mx1=205&by22=250&bx22=100&by21=250&bx21=510&by20=90&bx20=320&by19=160&bx19=440&by18=130&bx18=390&by17=130&bx17=240&by16=160&bx16=190&by15=210&bx15=400&by14=210&bx14=370&by13=210&bx13=340&by12=210&bx12=310&by11=210&bx11=280&by10=210&bx10=250&by9=210&bx9=220&by8=280&bx8=510&by7=310&bx7=540&by6=310&bx6=570&by5=310&bx5=600&by4=280&bx4=100&by3=310&bx3=70&by2=310&bx2=40&by1=310&bx1=10&men=25&blocks=22&levname=user%5Flevel1";
lev_data[15] = "my5=180&mx5=275&my4=310&mx4=335&my3=230&mx3=310&my2=200&mx2=245&my1=270&mx1=215&by23=210&bx23=170&by22=240&bx22=170&by21=270&bx21=170&by20=220&bx20=350&by19=250&bx19=350&by18=280&bx18=350&by17=310&bx17=350&by16=340&bx16=350&by15=300&bx15=170&by14=340&bx14=320&by13=300&bx13=200&by12=210&bx12=260&by11=230&bx11=230&by10=240&bx10=260&by9=270&bx9=260&by8=300&bx8=260&by7=420&bx7=260&by6=390&bx6=260&by5=360&bx5=260&by4=330&bx4=260&by3=340&bx3=290&by2=300&bx2=230&by1=260&bx1=290&men=5&blocks=23&levname=user%5Flevel1";
lev_data[16] = "my17=190&mx17=245&my16=190&mx16=215&my15=420&mx15=310&my14=70&mx14=195&my13=70&mx13=225&my12=160&mx12=615&my11=160&mx11=585&my10=160&mx10=555&my9=160&mx9=525&my8=280&mx8=560&my7=280&mx7=585&my6=280&mx6=615&my5=390&mx5=615&my4=390&mx4=585&my3=390&mx3=555&my2=390&mx2=525&my1=390&mx1=495&by27=250&bx27=230&by26=250&bx26=200&by25=220&bx25=230&by24=220&bx24=200&by23=70&bx23=390&by22=40&bx22=390&by21=10&bx21=390&by20=100&bx20=180&by19=100&bx19=210&by18=100&bx18=240&by17=70&bx17=240&by16=40&bx16=240&by15=10&bx15=240&by14=420&bx14=480&by13=420&bx13=510&by12=420&bx12=540&by11=420&bx11=570&by10=280&bx10=510&by9=310&bx9=510&by8=310&bx8=540&by7=310&bx7=570&by6=190&bx6=510&by5=190&bx5=540&by4=190&bx4=570&by3=190&bx3=600&by2=310&bx2=600&by1=420&bx1=600&men=17&blocks=27&levname=user%5Flevel6";
lev_data[17] = "my8=270&mx8=65&my7=270&mx7=20&my6=360&mx6=215&my5=260&mx5=180&my4=110&mx4=385&my3=110&mx3=360&my2=260&mx2=425&my1=260&mx1=395&by20=140&bx20=470&by19=140&bx19=440&by18=140&bx18=410&by17=140&bx17=380&by16=140&bx16=350&by15=290&bx15=440&by14=290&bx14=410&by13=290&bx13=380&by12=210&bx12=70&by11=210&bx11=100&by10=210&bx10=130&by9=320&bx9=170&by8=290&bx8=170&by7=350&bx7=90&by6=300&bx6=70&by5=300&bx5=40&by4=300&bx4=10&by3=390&bx3=240&by2=390&bx2=210&by1=390&bx1=180&men=8&blocks=20&levname=user%5Flevel1";
lev_data[18] = "my29=160&mx29=465&my28=170&mx28=185&my27=100&mx27=25&my26=100&mx26=55&my25=220&mx25=25&my24=220&mx24=55&my23=60&mx23=335&my22=60&mx22=395&my21=30&mx21=365&my20=100&mx20=615&my19=100&mx19=575&my18=220&mx18=620&my17=220&mx17=580&my16=390&mx16=620&my15=360&mx15=585&my14=390&mx14=555&my13=420&mx13=520&my12=390&mx12=485&my11=360&mx11=450&my10=390&mx10=425&my9=420&mx9=380&my8=390&mx8=335&my7=360&mx7=305&my6=420&mx6=230&my5=390&mx5=275&my4=390&mx4=175&my3=390&mx3=115&my2=360&mx2=145&my1=420&mx1=35&by31=190&bx31=450&by30=200&bx30=170&by29=250&bx29=70&by28=250&bx28=40&by27=250&bx27=10&by26=130&bx26=70&by25=130&bx25=40&by24=130&bx24=10&by23=120&bx23=350&by22=90&bx22=320&by21=60&bx21=350&by20=90&bx20=380&by19=130&bx19=540&by18=130&bx18=570&by17=130&bx17=600&by16=250&bx16=540&by15=250&bx15=570&by14=250&bx14=600&by13=420&bx13=600&by12=390&bx12=570&by11=420&bx11=540&by10=420&bx10=470&by9=390&bx9=440&by8=420&bx8=410&by7=420&bx7=320&by6=390&bx6=290&by5=420&bx5=260&by4=420&bx4=160&by3=390&bx3=130&by2=420&bx2=100&by1=420&bx1=100&men=29&blocks=31&levname=user%5Flevel1";
lev_data[19] = "my3=300&mx3=275&my2=40&mx2=465&my1=420&mx1=595&by17=70&bx17=450&by16=420&bx16=520&by15=340&bx15=600&by14=270&bx14=320&by13=120&bx13=230&by12=90&bx12=260&by11=120&bx11=290&by10=150&bx10=320&by9=180&bx9=350&by8=210&bx8=380&by7=240&bx7=350&by6=300&bx6=290&by5=330&bx5=260&by4=300&bx4=230&by3=270&bx3=200&by2=240&bx2=170&by1=210&bx1=140&men=3&blocks=17&levname=user%5Flevel1";
lev_data[20] = "my16=390&mx16=285&my15=420&mx15=250&my14=390&mx14=215&my13=130&mx13=420&my12=160&mx12=400&my11=190&mx11=605&my10=160&mx10=580&my9=100&mx9=535&my8=100&mx8=490&my7=100&mx7=445&my6=260&mx6=565&my5=300&mx5=425&my4=420&mx4=470&my3=420&mx3=500&my2=420&mx2=530&my1=420&mx1=555&by24=420&bx24=270&by23=420&bx23=200&by22=290&bx22=550&by21=330&bx21=410&by20=310&bx20=380&by19=280&bx19=380&by18=420&bx18=580&by17=400&bx17=580&by16=370&bx16=580&by15=340&bx15=580&by14=310&bx14=580&by13=280&bx13=580&by12=250&bx12=580&by11=220&bx11=580&by10=190&bx10=560&by9=160&bx9=540&by8=130&bx8=520&by7=130&bx7=490&by6=130&bx6=460&by5=130&bx5=430&by4=160&bx4=410&by3=190&bx3=390&by2=220&bx2=380&by1=250&bx1=380&men=16&blocks=24&levname=user%5Flevel5";
lev_data[21] = "my15=90&mx15=425&my14=90&mx14=405&my13=330&mx13=380&my12=340&mx12=220&my11=100&mx11=105&my10=260&mx10=35&my9=150&mx9=460&my8=420&mx8=495&my7=240&mx7=505&my6=290&mx6=185&my5=130&mx5=215&my4=130&mx4=195&my3=160&mx3=330&my2=160&mx2=310&my1=250&mx1=295&by29=120&bx29=400&by28=150&bx28=400&by27=180&bx27=400&by26=360&bx26=360&by25=190&bx25=300&by24=50&bx24=280&by23=130&bx23=90&by22=160&bx22=190&by21=280&bx21=280&by20=370&bx20=200&by19=320&bx19=160&by18=290&bx18=20&by17=210&bx17=400&by16=240&bx16=400&by15=270&bx15=400&by14=210&bx14=540&by13=180&bx13=540&by12=180&bx12=510&by11=180&bx11=480&by10=180&bx10=450&by9=210&bx9=450&by8=270&bx8=510&by7=270&bx7=480&by6=240&bx6=450&by5=270&bx5=450&by4=330&bx4=450&by3=360&bx3=450&by2=390&bx2=450&by1=420&bx1=450&men=15&blocks=29&levname=user%5Flevel1";
lev_data[22] = "my9=120&mx9=480&my8=120&mx8=335&my7=200&mx7=30&my6=420&mx6=600&my5=420&mx5=410&my4=420&mx4=515&my3=420&mx3=325&my2=300&mx2=215&my1=200&mx1=245&by33=230&bx33=250&by32=230&bx32=220&by31=230&bx31=190&by30=230&bx30=160&by29=230&bx29=130&by28=230&bx28=100&by27=230&bx27=70&by26=230&bx26=40&by25=230&bx25=10&by24=150&bx24=510&by23=150&bx23=480&by22=150&bx22=450&by21=150&bx21=420&by20=150&bx20=390&by19=150&bx19=360&by18=150&bx18=330&by17=150&bx17=300&by16=150&bx16=270&by15=360&bx15=540&by14=390&bx14=540&by13=420&bx13=540&by12=390&bx12=450&by11=360&bx11=450&by10=330&bx10=450&by9=330&bx9=420&by8=330&bx8=390&by7=330&bx7=360&by6=330&bx6=330&by5=330&bx5=300&by4=330&bx4=200&by3=360&bx3=200&by2=390&bx2=200&by1=420&bx1=200&men=9&blocks=33&levname=user%5Flevel1";
lev_data[23] = "my13=420&mx13=500&my12=390&mx12=615&my11=360&mx11=225&my10=300&mx10=285&my9=240&mx9=225&my8=60&mx8=285&my7=120&mx7=225&my6=180&mx6=285&my5=180&mx5=405&my4=240&mx4=465&my3=270&mx3=495&my2=330&mx2=555&my1=360&mx1=465&by18=390&bx18=390&by17=330&bx17=390&by16=270&bx16=390&by15=210&bx15=270&by14=330&bx14=270&by13=390&bx13=210&by12=270&bx12=210&by11=150&bx11=210&by10=30&bx10=210&by9=90&bx9=270&by8=210&bx8=390&by7=390&bx7=450&by6=420&bx6=540&by5=360&bx5=480&by4=270&bx4=450&by3=300&bx3=480&by2=360&bx2=540&by1=420&bx1=600&men=13&blocks=18&levname=user%5Flevel1";
lev_data[24] = "my24=200&mx24=25&my23=200&mx23=55&my22=200&mx22=85&my21=200&mx21=130&my20=40&mx20=35&my19=40&mx19=60&my18=40&mx18=90&my17=40&mx17=120&my16=420&mx16=465&my15=420&mx15=615&my14=420&mx14=580&my13=420&mx13=545&my12=420&mx12=380&my11=140&mx11=615&my10=140&mx10=590&my9=240&mx9=615&my8=240&mx8=585&my7=240&mx7=555&my6=240&mx6=525&my5=140&mx5=560&my4=140&mx4=520&my3=60&mx3=345&my2=60&mx2=315&my1=60&mx1=280&by30=230&bx30=100&by29=230&bx29=70&by28=230&bx28=40&by27=230&bx27=10&by26=70&bx26=100&by25=70&bx25=70&by24=70&bx24=40&by23=70&bx23=10&by22=360&bx22=490&by21=390&bx21=490&by20=420&bx20=490&by19=330&bx19=410&by18=360&bx18=410&by17=390&bx17=410&by16=420&bx16=410&by15=330&bx15=330&by14=360&bx14=330&by13=390&bx13=330&by12=420&bx12=330&by11=90&bx11=270&by10=90&bx10=300&by9=90&bx9=330&by8=270&bx8=510&by7=270&bx7=540&by6=270&bx6=570&by5=270&bx5=600&by4=170&bx4=510&by3=170&bx3=540&by2=170&bx2=570&by1=170&bx1=600&men=24&blocks=30&levname=user%5Flevel1";
lev_data[25] = "my20=160&mx20=305&my19=160&mx19=235&my18=160&mx18=175&my17=90&mx17=115&my16=180&mx16=465&my15=160&mx15=35&my14=160&mx14=80&my13=180&mx13=535&my12=330&mx12=295&my11=330&mx11=375&my10=330&mx10=455&my9=330&mx9=535&my8=270&mx8=615&my7=380&mx7=615&my6=420&mx6=560&my5=420&mx5=500&my4=420&mx4=440&my3=420&mx3=375&my2=420&mx2=310&my1=390&mx1=235&by29=190&bx29=290&by28=190&bx28=220&by27=190&bx27=160&by26=120&bx26=100&by25=190&bx25=100&by24=190&bx24=70&by23=190&bx23=40&by22=190&bx22=10&by21=180&bx21=550&by20=210&bx20=550&by19=210&bx19=520&by18=210&bx18=490&by17=210&bx17=460&by16=210&bx16=430&by15=210&bx15=400&by14=270&bx14=400&by13=300&bx13=400&by12=330&bx12=400&by11=300&bx11=600&by10=410&bx10=600&by9=360&bx9=560&by8=360&bx8=520&by7=360&bx7=480&by6=360&bx6=440&by5=360&bx5=400&by4=360&bx4=360&by3=360&bx3=320&by2=360&bx2=280&by1=420&bx1=220&men=20&blocks=29&levname=user%5Flevel1";
lev_data[26] = "my7=420&mx7=500&my6=200&mx6=450&my5=200&mx5=505&my4=130&mx4=65&my3=130&mx3=25&my2=420&mx2=320&my1=420&mx1=290&by25=230&bx25=490&by24=230&bx24=460&by23=230&bx23=430&by22=230&bx22=400&by21=230&bx21=370&by20=10&bx20=120&by19=40&bx19=120&by18=70&bx18=120&by17=100&bx17=120&by16=130&bx16=120&by15=160&bx15=120&by14=160&bx14=70&by13=160&bx13=40&by12=160&bx12=10&by11=420&bx11=340&by10=390&bx10=340&by9=360&bx9=340&by8=330&bx8=340&by7=330&bx7=310&by6=330&bx6=280&by5=330&bx5=230&by4=330&bx4=200&by3=360&bx3=200&by2=390&bx2=200&by1=420&bx1=200&men=7&blocks=25&levname=user%5Flevel1";
lev_data[27] = "my17=390&mx17=265&my16=300&mx16=260&my15=270&mx15=160&my14=270&mx14=375&my13=270&mx13=350&my12=270&mx12=325&my11=270&mx11=300&my10=270&mx10=490&my9=270&mx9=520&my8=270&mx8=550&my7=270&mx7=585&my6=420&mx6=495&my5=420&mx5=470&my4=420&mx4=445&my3=360&mx3=385&my2=420&mx2=420&my1=420&mx1=210&by26=420&bx26=530&by25=390&bx25=530&by24=360&bx24=530&by23=330&bx23=530&by22=300&bx22=570&by21=300&bx21=540&by20=300&bx20=510&by19=300&bx19=480&by18=300&bx18=370&by17=300&bx17=340&by16=300&bx16=310&by15=300&bx15=280&by14=330&bx14=250&by13=360&bx13=280&by12=360&bx12=310&by11=360&bx11=340&by10=390&bx10=370&by9=420&bx9=340&by8=420&bx8=310&by7=420&bx7=280&by6=420&bx6=250&by5=300&bx5=140&by4=330&bx4=140&by3=360&bx3=140&by2=390&bx2=140&by1=420&bx1=140&men=17&blocks=26&levname=user%5Flevel1";
lev_data[28] = "my9=130&mx9=240&my8=420&mx8=125&my7=40&mx7=85&my6=40&mx6=475&my5=130&mx5=280&my4=350&mx4=560&my3=350&mx3=505&my2=420&mx2=260&my1=420&mx1=215&by32=70&bx32=70&by31=40&bx31=360&by30=70&bx30=460&by29=40&bx29=430&by28=40&bx28=390&by27=380&bx27=550&by26=380&bx26=520&by25=380&bx25=490&by24=410&bx24=490&by23=410&bx23=460&by22=410&bx22=430&by21=380&bx21=430&by20=350&bx20=430&by19=320&bx19=430&by18=290&bx18=430&by17=260&bx17=430&by16=230&bx16=430&by15=200&bx15=430&by14=160&bx14=310&by13=160&bx13=280&by12=160&bx12=250&by11=130&bx11=190&by10=160&bx10=220&by9=160&bx9=190&by8=330&bx8=280&by7=360&bx7=280&by6=360&bx6=250&by5=360&bx5=220&by4=360&bx4=190&by3=360&bx3=160&by2=390&bx2=160&by1=420&bx1=160&men=9&blocks=32&levname=user%5Flevel1";
lev_data[29] = "my8=330&mx8=395&my7=390&mx7=355&my6=390&mx6=315&my5=50&mx5=105&my4=50&mx4=145&my3=150&mx3=580&my2=150&mx2=545&my1=150&mx1=495&by21=140&bx21=130&by20=110&bx20=130&by19=80&bx19=130&by18=80&bx18=100&by17=80&bx17=70&by16=120&bx16=600&by15=150&bx15=600&by14=180&bx14=480&by13=180&bx13=510&by12=180&bx12=540&by11=180&bx11=570&by10=180&bx10=600&by9=360&bx9=380&by8=390&bx8=380&by7=420&bx7=380&by6=420&bx6=340&by5=420&bx5=300&by4=420&bx4=110&by3=390&bx3=110&by2=390&bx2=80&by1=420&bx1=80&men=8&blocks=21&levname=user%5Flevel1";
lev_data[30] = "my16=390&mx16=380&my15=290&mx15=580&my14=260&mx14=555&my13=230&mx13=520&my12=200&mx12=490&my11=170&mx11=460&my10=140&mx10=425&my9=110&mx9=395&my8=140&mx8=365&my7=170&mx7=335&my6=200&mx6=305&my5=230&mx5=275&my4=260&mx4=245&my3=290&mx3=215&my2=320&mx2=185&my1=350&mx1=155&by17=420&bx17=380&by16=420&bx16=350&by15=320&bx15=560&by14=290&bx14=530&by13=260&bx13=500&by12=230&bx12=470&by11=200&bx11=440&by10=170&bx10=410&by9=140&bx9=380&by8=170&bx8=350&by7=200&bx7=320&by6=230&bx6=290&by5=260&bx5=260&by4=290&bx4=230&by3=320&bx3=200&by2=350&bx2=170&by1=380&bx1=140&men=16&blocks=17&levname=user%5Flevel1";
lev_data[31] = "my20=420&mx20=430&my19=420&mx19=215&my18=390&mx18=370&my17=390&mx17=280&my16=360&mx16=325&my15=200&mx15=280&my14=200&mx14=370&my13=140&mx13=325&my12=290&mx12=600&my11=200&mx11=600&my10=200&mx10=565&my9=110&mx9=610&my8=110&mx8=570&my7=110&mx7=525&my6=110&mx6=120&my5=110&mx5=80&my4=110&mx4=40&my3=200&mx3=75&my2=200&mx2=35&my1=290&mx1=45&by33=420&bx33=250&by32=420&bx32=370&by31=420&bx31=280&by30=390&bx30=310&by29=420&bx29=340&by28=420&bx28=310&by27=230&bx27=250&by26=230&bx26=370&by25=290&bx25=310&by24=260&bx24=310&by23=170&bx23=310&by22=200&bx22=310&by21=230&bx21=280&by20=230&bx20=340&by19=230&bx19=310&by18=320&bx18=570&by17=320&bx17=600&by16=230&bx16=540&by15=230&bx15=570&by14=230&bx14=600&by13=140&bx13=510&by12=140&bx12=540&by11=140&bx11=570&by10=140&bx10=600&by9=140&bx9=100&by8=140&bx8=70&by7=140&bx7=40&by6=140&bx6=10&by5=230&bx5=70&by4=230&bx4=40&by3=230&bx3=10&by2=320&bx2=40&by1=320&bx1=10&men=20&blocks=33&levname=user%5Flevel2";
lev_data[32] = "my11=110&mx11=85&my10=310&mx10=555&my9=310&mx9=495&my8=190&mx8=525&my7=190&mx7=605&my6=190&mx6=495&my5=130&mx5=405&my4=250&mx4=405&my3=160&mx3=245&my2=220&mx2=330&my1=260&mx1=280&by43=50&bx43=490&by42=20&bx42=520&by41=20&bx41=490&by40=20&bx40=460&by39=340&bx39=540&by38=340&bx38=510&by37=340&bx37=480&by36=340&bx36=450&by35=340&bx35=420&by34=20&bx34=150&by33=20&bx33=120&by32=140&bx32=70&by31=170&bx31=40&by30=140&bx30=40&by29=110&bx29=40&by28=80&bx28=40&by27=50&bx27=40&by26=70&bx26=330&by25=100&bx25=330&by24=100&bx24=330&by23=220&bx23=590&by22=220&bx22=540&by21=220&bx21=510&by20=220&bx20=480&by19=220&bx19=450&by18=160&bx18=390&by17=280&bx17=390&by16=250&bx16=300&by15=250&bx15=330&by14=290&bx14=210&by13=290&bx13=240&by12=290&bx12=270&by11=280&bx11=360&by10=250&bx10=360&by9=220&bx9=360&by8=190&bx8=360&by7=160&bx7=360&by6=130&bx6=360&by5=100&bx5=360&by4=230&bx4=230&by3=190&bx3=260&by2=190&bx2=230&by1=190&bx1=200&men=11&blocks=43&levname=user%5Flevel1";
lev_data[33] = "my12=330&mx12=430&my11=390&mx11=555&my10=390&mx10=525&my9=360&mx9=585&my8=330&mx8=615&my7=60&mx7=600&my6=60&mx6=570&my5=240&mx5=430&my4=180&mx4=370&my3=100&mx3=40&my2=420&mx2=275&my1=420&mx1=240&by32=360&bx32=430&by31=360&bx31=400&by30=360&bx30=370&by29=330&bx29=370&by28=300&bx28=370&by27=360&bx27=600&by26=390&bx26=570&by25=390&bx25=600&by24=420&bx24=510&by23=420&bx23=540&by22=420&bx22=570&by21=420&bx21=600&by20=90&bx20=600&by19=90&bx19=570&by18=90&bx18=540&by17=100&bx17=70&by16=130&bx16=70&by15=130&bx15=40&by14=130&bx14=10&by13=330&bx13=180&by12=360&bx12=180&by11=390&bx11=180&by10=420&bx10=180&by9=270&bx9=430&by8=270&bx8=400&by7=270&bx7=370&by6=240&bx6=370&by5=210&bx5=370&by4=210&bx4=340&by3=210&bx3=310&by2=180&bx2=310&by1=150&bx1=310&men=12&blocks=32&levname=user%5Flevel3";
lev_data[34] = "my12=420&mx12=425&my11=300&mx11=575&my10=70&mx10=495&my9=160&mx9=460&my8=420&mx8=610&my7=130&mx7=530&my6=160&mx6=570&my5=160&mx5=610&my4=390&mx4=385&my3=210&mx3=295&my2=270&mx2=330&my1=330&mx1=355&by39=330&bx39=560&by38=360&bx38=560&by37=390&bx37=560&by36=420&bx36=560&by35=100&bx35=480&by34=130&bx34=480&by33=160&bx33=480&by32=160&bx32=510&by31=420&bx31=370&by30=420&bx30=340&by29=390&bx29=340&by28=360&bx28=340&by27=420&bx27=310&by26=390&bx26=310&by25=360&bx25=310&by24=330&bx24=310&by23=300&bx23=310&by22=390&bx22=280&by21=420&bx21=280&by20=360&bx20=280&by19=330&bx19=280&by18=300&bx18=280&by17=270&bx17=280&by16=240&bx16=280&by15=180&bx15=250&by14=210&bx14=250&by13=240&bx13=250&by12=270&bx12=250&by11=300&bx11=250&by10=330&bx10=250&by9=360&bx9=250&by8=390&bx8=250&by7=420&bx7=250&by6=190&bx6=450&by5=190&bx5=480&by4=190&bx4=510&by3=190&bx3=540&by2=190&bx2=570&by1=190&bx1=600&men=12&blocks=39&levname=user%5Flevel2";
lev_data[35] = "my5=160&mx5=35&my4=160&mx4=65&my3=160&mx3=215&my2=160&mx2=185&my1=100&mx1=125&by17=70&bx17=140&by16=190&bx16=200&by15=190&bx15=20&by14=10&bx14=80&by13=190&bx13=50&by12=190&bx12=170&by11=130&bx11=110&by10=40&bx10=140&by9=100&bx9=140&by8=130&bx8=140&by7=160&bx7=140&by6=160&bx6=110&by5=40&bx5=80&by4=70&bx4=80&by3=100&bx3=80&by2=130&bx2=80&by1=160&bx1=80&men=5&blocks=17&levname=user%5Flevel1";
lev_data[36] = "my17=50&mx17=145&my16=220&mx16=585&my15=370&mx15=415&my14=140&mx14=320&my13=110&mx13=285&my12=140&mx12=255&my11=170&mx11=225&my10=200&mx10=195&my9=230&mx9=165&my8=260&mx8=130&my7=290&mx7=25&my6=110&mx6=100&my5=110&mx5=65&my4=110&mx4=30&my3=420&mx3=585&my2=420&mx2=525&my1=420&mx1=560&by47=0&bx47=510&by46=30&bx46=510&by45=60&bx45=510&by44=90&bx44=510&by43=120&bx43=510&by42=150&bx42=510&by41=150&bx41=540&by40=150&bx40=570&by39=150&bx39=600&by38=180&bx38=600&by37=210&bx37=600&by36=240&bx36=600&by35=270&bx35=600&by34=300&bx34=600&by33=330&bx33=600&by32=360&bx32=600&by31=390&bx31=600&by30=80&bx30=130&by29=110&bx29=130&by28=140&bx28=130&by27=140&bx27=100&by26=140&bx26=70&by25=140&bx25=40&by24=140&bx24=10&by23=270&bx23=540&by22=320&bx22=120&by21=250&bx21=570&by20=320&bx20=10&by19=320&bx19=60&by18=320&bx18=90&by17=290&bx17=120&by16=260&bx16=150&by15=230&bx15=180&by14=200&bx14=210&by13=170&bx13=240&by12=140&bx12=270&by11=170&bx11=300&by10=340&bx10=340&by9=370&bx9=370&by8=400&bx8=400&by7=400&bx7=400&by6=380&bx6=430&by5=360&bx5=460&by4=340&bx4=490&by3=320&bx3=520&by2=300&bx2=550&by1=420&bx1=600&men=17&blocks=47&levname=user%5Flevel1";
lev_data[37] = "my6=420&mx6=235&my5=420&mx5=405&my4=140&mx4=315&my3=230&mx3=60&my2=230&mx2=125&my1=230&mx1=210&by25=260&bx25=580&by24=260&bx24=550&by23=260&bx23=520&by22=260&bx22=490&by21=260&bx21=460&by20=260&bx20=430&by19=260&bx19=400&by18=170&bx18=300&by17=200&bx17=300&by16=230&bx16=300&by15=260&bx15=300&by14=290&bx14=300&by13=320&bx13=280&by12=320&bx12=250&by11=320&bx11=220&by10=260&bx10=220&by9=260&bx9=50&by8=260&bx8=10&by7=260&bx7=90&by6=260&bx6=130&by5=260&bx5=160&by4=260&bx4=190&by3=320&bx3=190&by2=390&bx2=190&by1=420&bx1=190&men=6&blocks=25&levname=user%5Flevel1";
lev_data[38] = "my15=270&mx15=85&my14=420&mx14=610&my13=420&mx13=560&my12=420&mx12=515&my11=420&mx11=475&my10=200&mx10=460&my9=200&mx9=430&my8=100&mx8=255&my7=100&mx7=225&my6=100&mx6=195&my5=190&mx5=225&my4=190&mx4=195&my3=190&mx3=135&my2=190&mx2=55&my1=220&mx1=25&by32=330&bx32=600&by31=330&bx31=570&by30=330&bx30=540&by29=330&bx29=510&by28=330&bx28=420&by27=230&bx27=440&by26=230&bx26=410&by25=170&bx25=380&by24=200&bx24=380&by23=230&bx23=380&by22=360&bx22=420&by21=390&bx21=420&by20=420&bx20=420&by19=130&bx19=240&by18=130&bx18=210&by17=130&bx17=180&by16=220&bx16=210&by15=220&bx15=180&by14=420&bx14=70&by13=220&bx13=120&by12=220&bx12=150&by11=190&bx11=150&by10=160&bx10=150&by9=130&bx9=150&by8=100&bx8=150&by7=70&bx7=150&by6=40&bx6=150&by5=10&bx5=150&by4=220&bx4=40&by3=250&bx3=10&by2=300&bx2=70&by1=330&bx1=70&men=15&blocks=32&levname=user%5Flevel1";
lev_data[39] = "my19=80&mx19=565&my18=80&mx18=530&my17=70&mx17=295&my16=190&mx16=330&my15=190&mx15=295&my14=190&mx14=565&my13=190&mx13=530&my12=240&mx12=595&my11=290&mx11=515&my10=340&mx10=455&my9=420&mx9=615&my8=420&mx8=560&my7=420&mx7=505&my6=390&mx6=405&my5=90&mx5=25&my4=90&mx4=55&my3=180&mx3=150&my2=180&mx2=120&my1=180&mx1=60&by29=110&bx29=550&by28=110&bx28=520&by27=220&bx27=550&by26=220&bx26=520&by25=270&bx25=570&by24=320&bx24=500&by23=370&bx23=440&by22=420&bx22=390&by21=100&bx21=280&by20=220&bx20=310&by19=220&bx19=280&by18=220&bx18=250&by17=190&bx17=250&by16=160&bx16=250&by15=130&bx15=250&by14=100&bx14=250&by13=70&bx13=250&by12=40&bx12=250&by11=10&bx11=250&by10=90&bx10=70&by9=210&bx9=40&by8=210&bx8=130&by7=210&bx7=100&by6=210&bx6=70&by5=180&bx5=70&by4=150&bx4=70&by3=120&bx3=70&by2=120&bx2=40&by1=120&bx1=10&men=19&blocks=29&levname=user%5Flevel1";
lev_data[40] = "my14=60&mx14=505&my13=60&mx13=475&my12=60&mx12=165&my11=210&mx11=55&my10=210&mx10=280&my9=150&mx9=475&my8=150&mx8=100&my7=150&mx7=235&my6=230&mx6=565&my5=60&mx5=410&my4=60&mx4=370&my3=60&mx3=330&my2=60&mx2=285&my1=190&mx1=165&by34=220&bx34=140&by33=220&bx33=170&by32=240&bx32=250&by31=240&bx31=50&by30=260&bx30=550&by29=230&bx29=520&by28=200&bx28=490&by27=170&bx27=520&by26=140&bx26=540&by25=110&bx25=520&by24=90&bx24=490&by23=240&bx23=460&by22=210&bx22=460&by21=180&bx21=460&by20=90&bx20=460&by19=90&bx19=390&by18=90&bx18=360&by17=90&bx17=270&by16=90&bx16=300&by15=90&bx15=330&by14=120&bx14=330&by13=150&bx13=330&by12=180&bx12=330&by11=210&bx11=330&by10=240&bx10=330&by9=210&bx9=230&by8=210&bx8=70&by7=180&bx7=210&by6=150&bx6=190&by5=120&bx5=170&by4=180&bx4=90&by3=90&bx3=150&by2=150&bx2=110&by1=120&bx1=130&men=14&blocks=34&levname=user%5Flevel1";
lev_data[41] = "my9=260&mx9=390&my8=240&mx8=205&my7=100&mx7=230&my6=420&mx6=260&my5=420&mx5=300&my4=420&mx4=210&my3=390&mx3=110&my2=150&mx2=390&my1=390&mx1=385&by34=270&bx34=140&by33=300&bx33=230&by32=270&bx32=230&by31=270&bx31=200&by30=270&bx30=170&by29=300&bx29=140&by28=330&bx28=140&by27=360&bx27=140&by26=390&bx26=330&by25=360&bx25=330&by24=330&bx24=330&by23=300&bx23=330&by22=270&bx22=330&by21=240&bx21=330&by20=420&bx20=390&by19=130&bx19=230&by18=130&bx18=200&by17=130&bx17=170&by16=100&bx16=160&by15=70&bx15=150&by14=40&bx14=140&by13=390&bx13=140&by12=420&bx12=140&by11=420&bx11=110&by10=420&bx10=80&by9=180&bx9=420&by8=420&bx8=360&by7=290&bx7=390&by6=290&bx6=360&by5=420&bx5=330&by4=210&bx4=330&by3=180&bx3=390&by2=180&bx2=360&by1=180&bx1=330&men=9&blocks=34&levname=user%5Flevel1";
lev_data[42] = "my1=80&mx1=555&by21=370&bx21=610&by20=330&bx20=570&by19=290&bx19=530&by18=250&bx18=490&by17=210&bx17=450&by16=170&bx16=410&by15=130&bx15=370&by14=90&bx14=330&by13=50&bx13=290&by12=10&bx12=250&by11=20&bx11=200&by10=420&bx10=600&by9=380&bx9=560&by8=340&bx8=520&by7=300&bx7=480&by6=260&bx6=440&by5=220&bx5=400&by4=180&bx4=360&by3=140&bx3=320&by2=100&bx2=280&by1=60&bx1=240&men=1&blocks=21&levname=user%5Flevel1";
lev_data[43] = "my6=280&mx6=465&my5=320&mx5=275&my4=150&mx4=95&my3=150&mx3=160&my2=150&mx2=325&my1=150&mx1=265&by23=310&bx23=450&by22=240&bx22=420&by21=240&bx21=480&by20=210&bx20=450&by19=290&bx19=290&by18=320&bx18=290&by17=290&bx17=230&by16=320&bx16=230&by15=350&bx15=290&by14=350&bx14=260&by13=350&bx13=230&by12=120&bx12=110&by11=150&bx11=110&by10=120&bx10=280&by9=150&bx9=280&by8=210&bx8=280&by7=180&bx7=310&by6=180&bx6=280&by5=180&bx5=250&by4=210&bx4=110&by3=180&bx3=140&by2=180&bx2=110&by1=180&bx1=80&men=6&blocks=23&levname=user%5Flevel1";
lev_data[44] = "my10=260&mx10=225&my9=260&mx9=295&my8=260&mx8=325&my7=260&mx7=435&my6=260&mx6=385&my5=60&mx5=535&my4=60&mx4=495&my3=390&mx3=525&my2=100&mx2=130&my1=100&mx1=90&by56=280&bx56=450&by55=290&bx55=420&by54=290&bx54=390&by53=290&bx53=360&by52=290&bx52=330&by51=290&bx51=300&by50=290&bx50=270&by49=290&bx49=240&by48=290&bx48=210&by47=190&bx47=250&by46=190&bx46=220&by45=90&bx45=530&by44=90&bx44=500&by43=90&bx43=470&by42=90&bx42=440&by41=60&bx41=440&by40=60&bx40=440&by39=60&bx39=410&by38=280&bx38=540&by37=310&bx37=540&by36=360&bx36=470&by35=420&bx35=470&by34=390&bx34=470&by33=390&bx33=570&by32=390&bx32=540&by31=420&bx31=510&by30=220&bx30=40&by29=190&bx29=40&by28=160&bx28=40&by27=130&bx27=10&by26=130&bx26=130&by25=130&bx25=100&by24=130&bx24=70&by23=130&bx23=40&by22=100&bx22=40&by21=70&bx21=40&by20=40&bx20=40&by19=10&bx19=40&by18=10&bx18=10&by17=70&bx17=310&by16=70&bx16=280&by15=260&bx15=150&by14=230&bx14=150&by13=270&bx13=180&by12=210&bx12=180&by11=250&bx11=450&by10=220&bx10=450&by9=100&bx9=310&by8=100&bx8=280&by7=160&bx7=310&by6=160&bx6=280&by5=190&bx5=280&by4=190&bx4=310&by3=190&bx3=350&by2=190&bx2=380&by1=190&bx1=420&men=10&blocks=56&levname=user%5Flevel1";
lev_data[45] = "my12=110&mx12=360&my11=170&mx11=480&my10=390&mx10=215&my9=390&mx9=285&my8=390&mx8=345&my7=390&mx7=405&my6=390&mx6=465&my5=390&mx5=525&my4=390&mx4=600&my3=200&mx3=525&my2=140&mx2=405&my1=80&mx1=285&by46=10&bx46=540&by45=80&bx45=240&by44=110&bx44=240&by43=110&bx43=270&by42=80&bx42=300&by41=110&bx41=300&by40=140&bx40=330&by39=140&bx39=360&by38=170&bx38=360&by37=170&bx37=390&by36=140&bx36=420&by35=170&bx35=420&by34=200&bx34=450&by33=200&bx33=480&by32=230&bx32=480&by31=230&bx31=510&by30=200&bx30=540&by29=230&bx29=540&by28=420&bx28=180&by27=420&bx27=210&by26=390&bx26=240&by25=420&bx25=240&by24=360&bx24=300&by23=390&bx23=300&by22=420&bx22=270&by21=420&bx21=300&by20=390&bx20=360&by19=420&bx19=330&by18=420&bx18=360&by17=360&bx17=420&by16=390&bx16=420&by15=420&bx15=390&by14=420&bx14=420&by13=420&bx13=450&by12=390&bx12=480&by11=420&bx11=480&by10=420&bx10=510&by9=360&bx9=540&by8=390&bx8=540&by7=420&bx7=540&by6=420&bx6=570&by5=420&bx5=600&by4=70&bx4=600&by3=70&bx3=570&by2=70&bx2=540&by1=40&bx1=540&men=12&blocks=46&levname=user%5Flevel2";
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 () {
cross._x = _xmouse;
cross._y = _ymouse;
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);
}
if (Key.isDown(32) && (!ctrl_press)) {
ctrl_press = true;
nxt.removeMovieClip();
next_lvl(-1);
}
if (!Key.isDown(32)) {
ctrl_press = false;
}
shot_timer++;
txt_score.text = lvl_score;
};
Mouse.hide();
cross._visible = true;
Frame 7
stop();
var btn_a = -200;
i = 1;
while (i <= 4) {
this["bt" + i]._visible = false;
i++;
}
if (show_ads) {
mc_ad_loading.gotoAndStop(2);
adBox = attachMovie("adBox", "adBox", 61823);
adBox._x = 48;
adBox._y = 125;
var CPMStarContentSpotID = "1140Q5A4CED1D";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
show_ads = false;
} else {
btn_a = 50;
}
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++;
}
};
Mouse.show();
cross._visible = false;
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++;
}
Mouse.show();
cross._visible = false;
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() {
trace("saving......");
var _local3 = SharedObject.getLocal("user_levels");
var _local2 = new LoadVars();
_local2.levname = "user_level" + edit_lvl;
_local2.str_lvl = "";
i = 1;
while (i <= n_blocks) {
block = level["block" + i];
if (block._x < 640) {
_local2.str_lvl = _local2.str_lvl + "b";
_local2.str_lvl = _local2.str_lvl + mat.decto(block._x / 5);
_local2.str_lvl = _local2.str_lvl + mat.decto(block._y / 5);
}
i++;
}
i = 1;
while (i <= n_men) {
man = this["man" + i];
if (man._x < 640) {
_local2.str_lvl = _local2.str_lvl + "m";
_local2.str_lvl = _local2.str_lvl + mat.decto(man._x / 5);
_local2.str_lvl = _local2.str_lvl + mat.decto(man._y / 5);
}
i++;
}
_local3.data["user_level" + edit_lvl] = _local2.toString();
_local3.data["level" + edit_lvl] = true;
trace(_local3.data["user_level" + edit_lvl]);
trace("save_ok");
}
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("LOAD LEVEL");
trace(_local1);
str_lvl = _local1.str_lvl;
n_men = 0;
n_blocks = 0;
i = 0;
while (i < str_lvl.length) {
t = str_lvl.substr(i, 1);
x = mat.todec(str_lvl.substr(i + 1, 2)) * 5;
y = mat.todec(str_lvl.substr(i + 3, 2)) * 5;
if (t == "b") {
n_blocks++;
block = level.attachMovie("block", "block" + n_blocks, n_blocks);
block._x = x;
block._y = y;
}
if (t == "m") {
n_men++;
block = attachMovie("man", "man" + n_men, 1000 + n_men);
block._x = x;
block._y = y;
}
i = i + 5;
}
trace((((t + "-") + x) + "-") + y);
}
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);
}
function lev_get_code1() {
var _local2 = new LoadVars();
_local2.levname = "user_level" + edit_lvl;
_local2.str_lvl = "";
i = 1;
while (i <= n_blocks) {
block = level["block" + i];
if (block._x < 640) {
_local2.str_lvl = _local2.str_lvl + "b";
_local2.str_lvl = _local2.str_lvl + mat.decto(block._x / 5);
_local2.str_lvl = _local2.str_lvl + mat.decto(block._y / 5);
}
i++;
}
i = 1;
while (i <= n_men) {
man = this["man" + i];
if (man._x < 640) {
_local2.str_lvl = _local2.str_lvl + "m";
_local2.str_lvl = _local2.str_lvl + mat.decto(man._x / 5);
_local2.str_lvl = _local2.str_lvl + mat.decto(man._y / 5);
}
i++;
}
lvl_code = _local2.toString();
lc = attachMovie("mc_lvl_code", "mc_lvl_code", 61424);
lc.txt_lvl_code.text = _local2.str_lvl;
lc._x = 320;
lc._y = 220;
trace("level code:");
trace(lvl_code);
}
stop();
adBox._visible = false;
Mouse.show();
cross._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;
Mouse.show();
cross._visible = false;
if (api) {
btn_submit._visible = false;
kongregate.stats.submit("HighScore", score);
}
Frame 35
var o = {n:[11, 15, 9, 12, 15, 9, 10, 14, 14, 0, 11, 12, 6, 13, 12, 7], 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:[11, 15, 9, 12, 15, 9, 10, 14, 14, 0, 11, 12, 6, 13, 12, 7], 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=202", "_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=1250", "_blank");
}
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
stop();
Symbol 39 MovieClip [cross] Frame 1
stop();
Symbol 46 MovieClip [man] Frame 1
stop();
act = true;
Symbol 46 MovieClip [man] Frame 8
stop();
n = random(4);
gotoAndStop(8 + n);
Symbol 56 MovieClip Frame 1
onPress = function () {
getURL ("http://www.coolbuddy.com/?cid=202", "_blank");
};
Symbol 67 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 67 MovieClip Frame 12
gotoAndPlay (2);
Symbol 68 MovieClip Frame 1
stop();
Symbol 190 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 191 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 192 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 193 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 194 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 195 MovieClip [__Packages.mat] Frame 0
class mat
{
function mat () {
}
static function len(o1, o2) {
var _local2 = o2._x - o1._x;
var _local1 = o2._y - o1._y;
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
return(_local3);
}
static function collision(ob1, ob2) {
if (len(ob1, ob2) < (ob1.radius + ob2.radius)) {
return(true);
}
return(false);
}
static function decto(str) {
var _local1;
_local1 = Number(str);
if (_local1 < 30) {
return("0" + _local1.toString(30));
}
return(_local1.toString(30));
}
static function todec(str) {
var _local1 = "0123456789abcdefghijklmnopqrstuvwzyz";
var _local3 = _local1.indexOf(str.charAt(0));
var _local2 = _local1.indexOf(str.charAt(1));
return((_local3 * 30) + _local2);
}
}
Symbol 196 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 197 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 75 MovieClip Frame 1
stop();
this._visible = false;
Symbol 77 MovieClip Frame 1
stop();
this._visible = false;
Symbol 79 MovieClip Frame 1
stop();
this._visible = false;
Symbol 81 MovieClip [sm_music] Frame 1
stop();
this._visible = false;
Symbol 84 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();
gotoAndStop (2);
};
Symbol 84 MovieClip Frame 2
onPress = function () {
_parent.music_on();
gotoAndStop (1);
};
Symbol 88 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=202", "_blank");
}
stop();
this.swapDepths(65302);
Symbol 91 MovieClip Frame 1
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
stop();
onPress = function () {
_parent.snd_off();
gotoAndStop (2);
};
Symbol 91 MovieClip Frame 2
onPress = function () {
_parent.snd_on();
gotoAndStop (1);
};
Symbol 96 MovieClip Frame 1
function onRollOver() {
_parent._parent.snd_ric.start(0, 1);
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
function onPress() {
_parent._parent.snd_shot.start(0, 1);
removeMovieClip(_parent._parent.adBox);
_parent._parent.gotoAndStop("game");
}
stop();
Symbol 98 MovieClip Frame 1
function onRollOver() {
_parent._parent.snd_ric.start(0, 1);
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 101 MovieClip Frame 1
function onRollOver() {
_parent._parent.snd_ric.start(0, 1);
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
function onPress() {
_parent._parent.gotoAndPlay(35);
}
stop();
if (_parent._parent.api) {
gotoAndStop (5);
}
Symbol 101 MovieClip Frame 5
function onRollOver() {
}
function onRollOut() {
}
function onPress() {
}
Symbol 103 MovieClip Frame 1
function onRollOver() {
_parent._parent.snd_ric.start(0, 1);
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
function onRelease() {
getURL ("http://www.coolbuddy.com/?cid=202", "_blank");
}
stop();
Symbol 105 MovieClip Frame 1
function onRollOver() {
_parent._parent.snd_ric.start(0, 1);
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
function onPress() {
_parent._parent.gotoAndStop(7);
}
stop();
Symbol 107 MovieClip Frame 1
function onRollOver() {
_parent._parent.snd_ric.start(0, 1);
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
function onPress() {
_parent._parent.snd_shot.start(0, 1);
_parent._parent.gotoAndStop(43);
}
stop();
Symbol 114 MovieClip Frame 1
function onRollOver() {
_parent._parent.snd_ric.start(0, 1);
gotoAndStop (2);
}
function onRollOut() {
gotoAndStop (1);
}
function onRelease() {
getURL ("http://www.coolbuddy.com/games/game.asp?gid=971", "_blank");
}
stop();
Symbol 118 MovieClip [level] Frame 1
stop();
Symbol 120 MovieClip Frame 1
stop();
this._visible = false;
Symbol 123 MovieClip Frame 1
stop();
this._visible = false;
Symbol 127 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 129 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 135 MovieClip Frame 1
stop();
Symbol 141 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 143 MovieClip Frame 1
stop();
onPress = function () {
_parent.lev_get_code1();
};
Symbol 146 MovieClip Frame 1
function onRelease() {
getURL ("http://coolbuddy.com/games/community/Game_forum.asp?cat=1250", "_blank");
}
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
stop();
Symbol 148 MovieClip Frame 1
function onRelease() {
getURL ("http://coolbuddy.com/games/community/Game_Comments.asp?cat=1250", "_blank");
}
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
stop();
Symbol 150 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 152 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 154 MovieClip Frame 1
stop();
Symbol 157 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 159 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 162 MovieClip Frame 1
function onRelease() {
getURL ("http://coolbuddy.com/games/community/Game_forum.asp?cat=1250", "_blank");
}
function onRollOver() {
this._xscale = 110;
this._yscale = 110;
}
function onRollOut() {
this._xscale = 100;
this._yscale = 100;
}
stop();
Symbol 165 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 168 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 171 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 173 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 175 MovieClip Frame 1
function onPress() {
_parent.lev_clear();
}
stop();
Symbol 180 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 182 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 189 MovieClip Frame 1
onPress = function () {
getURL ("http://www.coolbuddy.com/?cid=184", "_blank");
};