Frame 1
function dump(str) {
var _local2 = new Date();
str = (((("[" + _local2.getHours()) + ":") + _local2.getMinutes()) + "] ") + str;
trace(str);
debugText.text = debugText.text + (str + newline);
debugText.scroll = debugText.maxscroll;
}
function onStingerComplete() {
com.candystand.ScoreSubmit.Messenger.initialize("pp2871nmJi", "0.0.0");
dump("");
dump("--- BEGIN GAME PARAMETERS ---");
dump("SESSION ID: " + com.candystand.ScoreSubmit.Constants.__get__sessionId());
dump("SW1: " + com.candystand.ScoreSubmit.Constants.__get__quiturl());
dump("SW2: " + com.candystand.ScoreSubmit.Constants.__get__copyright());
dump("SW3: " + com.candystand.ScoreSubmit.Constants.__get__playerId());
dump("SW4: " + com.candystand.ScoreSubmit.Constants.__get__scoreurl());
dump("SW5: " + com.candystand.ScoreSubmit.Constants.__get__multiplayurl());
dump("SW6: " + com.candystand.ScoreSubmit.Constants.__get__uniqueId());
dump("SW9: " + com.candystand.ScoreSubmit.Constants.__get__brandingPath());
dump("SWLIST: " + com.candystand.ScoreSubmit.Constants.__get__stingerPath());
dump((((((((("TRACKING PARAMS: load=" + com.candystand.ScoreSubmit.Constants.__get__sendLoad()) + " play=") + com.candystand.ScoreSubmit.Constants.__get__sendPlay()) + " over=") + com.candystand.ScoreSubmit.Constants.__get__sendGameover()) + " quit=") + com.candystand.ScoreSubmit.Constants.__get__sendQuit()) + " method=") + com.candystand.ScoreSubmit.Constants.__get__sendMethod());
dump("TRACKING URL: " + com.candystand.ScoreSubmit.Constants.__get__trackingurl());
dump("--- END GAME PARAMETERS ---");
dump("");
gotoAndPlay (2);
}
function submitScore() {
dump("Submitting Score");
com.candystand.ScoreSubmit.Game.__set__score(_root.totalscore);
com.candystand.ScoreSubmit.Game.submitScore();
dump("SUBMITING SCORE");
dump("** SENDING QUIT TRACKING EVENT");
}
var stinger = (new com.candystand.Stinger.Stinger(_root));
stinger.addEventListener("onStingerComplete", onStingerComplete);
Frame 2
function itemHandler1(obj, item) {
getURL (sponsorurl, "_blank");
}
stop();
_global.sponsorurl = "http://www.candystand.com/";
_global.walkurl = "http://www.candystand.com/show-content.do?key=prizmapuzzle2walkthrough";
percentDone = 0;
lvl = 0;
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
item1 = new ContextMenuItem("Play More Games!", itemHandler1);
myMenu.customItems.push(item1);
_root.menu = myMenu;
level0 = "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
level0a = "";
level1 = "000000000000000000000000000000000000000000000000000601011200000000000000310100000000000000000000000000000000000000000000000000000000";
level1a = "Silen";
level1s = 135;
level2 = "000000000012000000000000000006010000011200000010010000210100001200000000010100000301000000001100001001000000000000000000000000000000";
level2a = "Silen";
level2s = 850;
level3 = "000000000000000000000000011201000102010000000201000121010001080000000006000001610100000000000000020100019100000000000000000900000000";
level3a = "Silen";
level3s = 1045;
level4 = "000000140000140100000013010000011400001201000000020100000102000014010100001401000001140000110101000014010000000000000001000000150000";
level4a = "Silen";
level4s = 555;
level5 = "000000120000000000120000000002010200010100000010011101010102001200000001010201010201110100001101000001010100000000000001010100000000";
level5a = "Mikozoid";
level5s = 2400;
level5s = 700;
level6 = "001200190000000100120000010208010000070213000000000041112100010000001701096100810600010000120201000001150212000000000000000000000000";
level6a = "Mikozoid";
level6s = 1000;
level7 = "000001060019001415010018000000010000011213001700000000020100010000002100000118000000000021112121001600000003000000210101010100150000";
level7a = "Mikozoid";
level7s = 450;
level8 = "000000000012000000000000000042061000120000000011011012620710001200000001110110122208100000000000011101101200000000000000000100000000";
level8a = "Mikozoid";
level8s = 1250;
level9 = "000781000001151200000010000009020012000012000000100000211200126313000000614200000101000000118100001006000001010000000000000070080000";
level9a = "Mikozoid";
level9s = 2000;
level10 = "000100130200130100120013000200001800000114001000170101030000000000120100010101000000011600112000000001010102010000010101000000000000";
level10a = "Mikozoid";
level10s = 2150;
level11 = "000009010801070106000000010103010101030101000101014101120141010100014141218111812141410061016141412141614161000000010141014101010000";
level11a = "CRYSTALL_m";
level11s = 1750;
level12 = "000106140000120100000001000000000301000012000121161101000000001101010123004141005000000001011816001541000000000000010107010200000000";
level12a = "CRYSTALL_m";
level12s = 2450;
level13 = "000000000033010000000000200611001100111600000000000102120201000000000000110201021100000000001000000016010100000000000000120100000000";
level13a = "Wertolet";
level13s = 1460;
level14 = "000000121204000000000000121204040101010000000010040101010167460100090100000129880101210006101201000001000061410000081007000011810000";
level14a = "LERO";
level14s = 2475;
level15 = "000112011201120112010001060106010601060106002134343621343436243400010121013601210136010001010114010101010101000000161101010101010000";
level15a = "LERO";
level15s = 765;
level16 = "000012230000112112060010004120000001017555101709000041810000017295410154030052011810201600041000161820140832170000011212002007100000";
level16a = "Artem";
level16s = 4015;
level17 = "001300151107150311010000110018100001000011120000030000001011211206002000032008000000110002811814001561511811160000011211091600180000";
level17a = "Artem";
level17s = 3280;
level18 = "002012000020000014120000090000120000070000001000710000009110030100100831000000510603000000180000121800000000000000120000000012160000";
level18a = "EvGenius";
level18s = 1185;
level19 = "001101061203121001070001097212021320000181001202021920000000010100121020000000014110010001080121010110010201100000000000000000110000";
level19a = "Hale32bit";
level19s = 2930;
level20 = "008210000006000171000012000002010101011201160001010101025101010900070101710201010101000001031001010102000061970000010008000032410000";
level20a = "CRYSTALL_m";
level20s = 4710;
level21 = "000000000000130612000000000000000300000027001301000101121213010000000002121201010001170019510000021800010001000000320000000000150000";
level21a = "IHERO21";
level21s = 1405;
level22 = "001900020001130100000001010001010000010101000020010101000120000011010100000102000000021712011801010101140000000000010101030000000000";
level22a = "CRYSTALL_m";
level22s = 1650;
level23 = "005232020701000103010071010100000141003001030102000101100101000000120001010601010100000000120100000100000101000000000050000101080000";
level23a = "CRYSTALL_m";
level23s = 3700;
level24 = "000000190000000600000000010100010200001048101301001212120201000000000002021212124121570027100000016181216291000000691000007500910000";
level24a = "IHERO21";
level24s = 2290;
level25 = "000000008802200000000000000016001710180010001802001512311219000267090000141213122000001400000000000200104600000000000016000000000000";
level25a = "IHERO21";
level25s = 945;
level26 = "000000010101000000110000041300010001030117000000005101120012011300000000170012100200000000040007010101010001000000191001010101010000";
level26a = "Alastor G";
level26s = 1130;
level27 = "001200000000081000000000070200005857581181000000100039213778761269000000180000780006100000120200000000010012000000000018010100020000";
level27a = "Wertolet";
level27s = 1420;
level28 = "000111101202001811100011160015001512021218110000190000002013120301001800001601160000150611010001480700183902110000039169810211010000";
level28a = "Wertolet";
level28s = 3200;
level29 = "000101010101106101070001110101230101128101000101010112060101015100100141030101611201010008018112011121010101000000010101100901030000";
level29a = "Mikozoid";
level29s = 3325;
level30 = "000810150419100700000013000901120106001300000092520111015292000000002072011101721400000002100000110000100200000000010211020100000000";
level30a = "Alastor G";
level30s = 655;
level31 = "000000111112111100000000111112120612121111000011121209201012121100000011111212121111000012040000110011000081110000040310000012210000";
level31a = "CurlySue";
level31s = 4300;
level32 = "001200181900120100010000140200520800000110091300122000000210000000920300000018010100000000010110000000006631000000070000000000000000";
level32a = "Wertolet";
level32s = 1745;
level33 = "000000011201001100000000010700000261410012007000180101120106210000001220000103010000300001040050000000080100000000010000010100000000";
level33a = "Silen";
level33s = 2225;
level34 = "000000000001120100000000000021010861010102000001020750112109106100120190016101410102011200000101620121210110000000000001120101060000";
level34a = "Hale32bit";
level34s = 1495;
level35 = "001110100000000102010008020001010013000015000039009600180013030700125912741100000000061200010000001800001615000000010117000209010000";
level35a = "Raidho";
level35s = 2140;
level36 = "000014000001150000000013000001010001211614000001011811121116000401001301211100110217000020000219151900001517000000000206010102170000";
level36a = "Raidho";
level36s = 2210;
level37 = "000101001551000000000013000011190002111200000081010000090101420100000001010017150101000711121100010342000000000000000000001800000000";
level37a = "Raidho";
level37s = 2145;
level38 = "001202131101120106120008131900021120001411811300132000000011000015111016000000001610171018020158001800100912020000071202782018360000";
level38a = "Wertolet";
level38s = 2035;
level39 = "000000010110000902120000011202160131010001010108200201021602910600000151012001010214010101120007711020011200000000020000000100000000";
level39a = "Wertolet";
level39s = 3870;
level40 = "006972012000140001080070010700000118120016109100000014120201191401061000161601200000010112011901010400360271720000011601312110630000";
level40a = "Kornao";
level40s = 3875;
levelCompile = function () {
z = "";
i = 0;
while (i < 6) {
j = 0;
while (j < 11) {
obj = back[("tesla" + i) + j];
if (obj._visible == true) {
x = obj._currentframe;
if (obj.bar1._visible) {
x = x + (obj.bar1._currentframe * 20);
} else if (x < 10) {
x = "0" + x;
}
} else {
x = "00";
}
z = z + x;
j = j + 1;
}
i = i + 1;
}
return(z);
};
Frame 3
totalBytes = Math.round(_root.getBytesTotal() / 1024);
loadedBytes = Math.round(_root.getBytesLoaded() / 1024);
if (percentDone < Math.round((loadedBytes / totalBytes) * 100)) {
percentDone = percentDone + 1;
}
preloaderBar._xscale = percentDone;
preloaderEff._x = percentDone * 6.4;
if (percentDone >= 100) {
_root.gotoAndPlay(5);
}
Frame 4
gotoAndPlay (3);
Frame 10
function stepCoord(dif) {
switch (dif) {
case 0 :
xx = 100;
yy = 0;
break;
case 1 :
xx = 50;
yy = -38;
break;
case 2 :
xx = 0;
yy = -75;
break;
case 3 :
xx = -50;
yy = -38;
break;
case 4 :
xx = -100;
yy = 0;
break;
case 5 :
xx = -50;
yy = 38;
break;
case 6 :
xx = 0;
yy = 75;
break;
case 7 :
xx = 50;
yy = 38;
}
}
stop();
totalscore = 0;
var my_so = SharedObject.getLocal("prizma_2", "/");
lvlrec = new Array();
if (my_so.data.lvlrec[0] == undefined) {
my_so.data.lvlrec = new Array();
my_so.data.lvlrec[0] = 0;
}
lvlmedal = new Array();
if (my_so.data.lvlmedal[0] == undefined) {
my_so.data.lvlmedal = new Array();
my_so.data.lvlmedal[0] = 0;
my_so.data.lvlmedal[1] = 0;
my_so.data.lvlmedal[11] = 0;
my_so.data.lvlmedal[21] = 0;
}
i = 1;
while (i < 41) {
lvlmedal[i] = my_so.data.lvlmedal[i];
lvlrec[i] = my_so.data.lvlrec[i];
if (lvlrec[i] != undefined) {
totalscore = totalscore + lvlrec[i];
}
i++;
}
menu_screen.tar = "main";
my_lvl = 40;
var play_laser1 = new Sound(_root);
play_laser1.attachSound("snd_laser1");
var play_laser2 = new Sound(_root);
play_laser2.attachSound("snd_laser2");
var play_laser3 = new Sound(_root);
play_laser3.attachSound("snd_laser3");
var play_powerdown = new Sound(_root);
play_powerdown.attachSound("snd_powerdown");
var play_on = new Sound(_root);
play_on.attachSound("snd_on");
var play_pre = new Sound(_root);
play_pre.attachSound("snd_pre");
var play_record = new Sound(_root);
play_record.attachSound("snd_record");
var play_medal = new Sound(_root);
play_medal.attachSound("snd_medal");
var play_score = new Sound(_root);
play_score.attachSound("snd_score");
var play_music = new Sound(_root);
play_music.attachSound("snd_mus");
play_music.start(0, 999);
showscore._visible = false;
tesla._visible = false;
select._visible = false;
fly._visible = false;
fly.stop();
star._visible = false;
marker.select._visible = false;
menu_screen.swapDepths(99999);
win_screen.swapDepths(99998);
level_screen.swapDepths(99997);
inter.swapDepths(99990);
select.swapDepths(10000);
marker.swapDepths(9999);
eff.swapDepths(9998);
back.gotoAndStop(2);
menu_screen.gotoAndPlay(2);
inter._y = 540;
begin = 0;
edit = false;
camp = true;
menu_type = 0;
begin_type = 0;
help = true;
bonus = 0;
medal = 0;
lvl = 0;
aim = 0;
inform = 2;
music = 2;
step = 5;
stepmax = 5;
minute = 0;
sec = 0;
sec_str = "00";
msec = 0;
score = 0;
need_score = 0;
global_score = 0;
plus = 0;
obj = 0;
fly = 0;
xx = 0;
yy = 0;
ii = 0;
target = 0;
targ = 0;
targ_cur = 0;
targ_cur_last = 0;
targ_true = false;
tar1 = 0;
tar2 = 0;
tar3 = 0;
tar4 = 0;
addscore_count = 0;
fly_count = 0;
tutor_count = 0;
eff_count = 0;
i = 0;
while (i < 6) {
j = 0;
while (j < 11) {
map[j] = 0;
j = j + 1;
}
i = i + 1;
}
i = 0;
while (i < 6) {
j = 0;
while (j < 11) {
if ((j % 2) == 0) {
plus = 0;
} else {
plus = 50;
}
obj = back.attachMovie("tesla", ("tesla" + i) + j, (j * 10) + i);
obj._x = (plus + 45) + (i * 100);
obj._y = 50 + (j * 38);
obj.posx = i;
obj.posy = j;
obj.x = i;
obj.y = j;
obj.stop();
obj._visible = false;
j = j + 1;
}
i = i + 1;
}
loadLevel = function () {
inter._y = 540;
aim = 0;
trace(lvl);
if (lvl == 0) {
begin = -1;
} else {
begin = 0;
showscore._visible = true;
}
step = 5;
stepmax = 5;
score = 0;
record = 0;
combo = 1;
addscore_count = 0;
fly_count = 0;
tutor_count = 0;
eff_count = 0;
combo_count = 0;
minute = 0;
sec = 0;
sec_str = "0:00";
msec = 0;
need_min = Math.floor(_root[("level" + lvl) + "timer"] / 60);
need_sec = _root[("level" + lvl) + "timer"] % 60;
need_str = (need_min + ":") + need_sec;
need_score = _root[("level" + lvl) + "score"];
levelname = (("Level " + lvl) + " by ") + _root[("level" + lvl) + "a"];
k = 0;
map = _root["level" + lvl];
i = 0;
while (i < 6) {
j = 0;
while (j < 11) {
obj = back[("tesla" + i) + j];
obj.type = Number(map.substr(k, 2));
k = k + 2;
if (obj.type > 20) {
x = obj.type % 20;
y = (obj.type - x) / 20;
obj.type = x;
obj.bar1._visible = (obj.bar2._visible = true);
obj.bar1.gotoAndStop(y);
obj.bar2.gotoAndStop(y);
} else {
obj.bar1._visible = (obj.bar2._visible = false);
}
obj.gotoAndStop(obj.type);
obj.inform.gotoAndStop(obj.type);
obj.ramka.gotoAndStop(1);
if (obj.type == 0) {
obj._visible = false;
} else {
obj._visible = true;
if (inform == 1) {
obj.inform._visible = false;
}
}
if ((obj.type > 5) and (obj.type < 10)) {
obj.img.gotoAndStop(obj.type - 4);
} else {
obj.img.gotoAndStop(2);
}
if (((obj.type > 9) and (obj.type < 13)) and (edit == false)) {
z = _root.attachMovie("nexus", ("nexus" + i) + j, _root.getNextHighestDepth());
z._x = obj._x;
z._y = obj._y - 7;
if (obj.type == 10) {
z._visible = false;
}
if (obj.type == 11) {
aim = aim + 1;
z._visible = false;
}
if (obj.type == 12) {
if (obj.bar1._visible == false) {
z._visible = true;
} else {
z._visible = false;
}
}
}
j = j + 1;
}
i = i + 1;
}
switch (lvl) {
case 1 :
createTutor(245, 288, 3, "Start", "Click here to start");
createTutor(295, 130, 2, "Switch", "Move here to open Finish");
break;
case 2 :
createTutor(396, 326, 4, "Charger", "Increase your move count");
createTutor(296, 64, 2, "Teleport", "Move to any Start elements");
break;
case 3 :
createTutor(34, 403, 4, "Helper", "Click here to hide hints");
createTutor(650, 25, 3, "Rewards", "Speed up to get more scores");
break;
case 99 :
createTutor(0, -5, 4, "Alt. controls", "Hold left button and move mouse cursor");
}
};
_global.playSound = function (info) {
_root[info].start();
};
_global.openMenu = function (info) {
menu_screen.tablo.img.close = true;
menu_screen.tablo.img.tar = info;
};
lengthdir_x = function (len, dir) {
return(Math.cos((dir * Math.PI) / 180) * len);
};
lengthdir_y = function (len, dir) {
return((-Math.sin((dir * Math.PI) / 180)) * len);
};
collisionPoint = function (x, y) {
i = 0;
while (i < 6) {
j = 0;
while (j < 11) {
obj = back[("tesla" + i) + j];
if (x > (obj._x - 25)) {
if (x < (obj._x + 25)) {
if (y > (obj._y - 19)) {
if (y < (obj._y + 19)) {
if (target.type == -1) {
if (obj.type < 1) {
obj = undefined;
}
}
return(obj);
}
}
}
}
j = j + 1;
}
i = i + 1;
}
};
createEff = function (x1, y1, x2, y2) {
eff.lineStyle(10, 7208956, 10);
eff.moveTo(x1 - ((x1 - x2) / 5), (y1 - ((y1 - y2) / 5)) - 20);
eff.lineTo(x2 - ((x2 - x1) / 5), (y2 - ((y2 - y1) / 5)) - 20);
eff.lineStyle(6, 12058617, 30);
eff.moveTo(x1 - ((x1 - x2) / 10), (y1 - ((y1 - y2) / 10)) - 20);
eff.lineTo(x2 - ((x2 - x1) / 10), (y2 - ((y2 - y1) / 10)) - 20);
eff.lineStyle(3, 16777215, 60);
eff.moveTo(x1, y1 - 20);
eff.lineTo(x2, y2 - 20);
eff_count++;
obj = eff.attachMovie("eff_bitmap", "eff" + eff_count, eff.getNextHighestDepth());
obj._x = x1;
obj._y = y1 - 20;
obj._rotation = Math.random() * 360;
};
createFly = function (x, y, count) {
i = count;
stepCoord(Math.floor(marker.select._rotation / 45));
xx = xx / count;
yy = yy / count;
while (i--) {
fly_count++;
obj = this.attachMovie("fly", "fly" + fly_count, 11000 + fly_count);
obj._x = x;
obj._y = y;
obj._rotation = Math.random() * 360;
}
};
createStar = function (x, y, w, h, count) {
i = count;
while (i--) {
fly_count++;
obj = this.attachMovie("star", "star" + fly_count, 110000 + fly_count);
obj._x = x + (Math.random() * w);
obj._y = y + (Math.random() * h);
obj.gotoAndPlay(Math.random() * 15);
}
};
createTutor = function (x, y, typ, nam, des) {
tutor_count++;
obj = this.attachMovie("tutor" + typ, "tutor" + tutor_count, 99990 + tutor_count);
obj._x = x;
obj._y = y;
obj.nam = nam;
obj.des = des;
};
addScore = function () {
this["play_laser" + Math.min(3, combo)].start();
addscore_count = addscore_count + 1;
combo_count = 60;
score = score + ((5 * combo) + 5);
obj = _root.attachMovie("text_addscore", "text_addscore_" + addscore_count, 10000 + addscore_count);
obj.txt.text = String("+" + ((5 * combo) + 5));
obj._x = target._x;
obj._y = target._y;
if (target.type < 13) {
combo = combo + 1;
}
};
levelClear = function () {
eff.clear();
i = 0;
while (i < 6) {
j = 0;
while (j < 11) {
obj = _root.back[("tesla" + i) + j];
obj._visible = false;
if ((obj._currentframe > 9) and (obj._currentframe < 13)) {
_root[("nexus" + obj.x) + obj.y].removeMovieClip();
}
j = j + 1;
}
i = i + 1;
}
if (eff_count > 0) {
i = 1;
while (i <= eff_count) {
obj = _root.eff["eff" + i];
obj.removeMovieClip();
i = i + 1;
}
eff_count = 0;
}
if (tutor_count > 0) {
i = 1;
while (i <= tutor_count) {
obj = _root["tutor" + i];
obj.removeMovieClip();
i = i + 1;
}
tutor_count = 0;
}
marker._visible = false;
select._visible = false;
};
endLevel = function (die) {
if (begin != -1) {
levelClear();
begin = -1;
switch (die) {
case 0 :
fly_count = 0;
menu_screen.tar = "score";
menu_screen.gotoAndPlay(2);
break;
case 1 :
level_screen.text_level.text = String("Level " + lvl);
level_screen.gotoAndPlay(2);
break;
case 2 :
level_screen.text_level.text = String("Not Enough Energy");
level_screen.gotoAndPlay(3);
play_powerdown.start();
break;
case 3 :
level_screen.text_level.text = String("No Moves Left");
level_screen.gotoAndPlay(3);
play_powerdown.start();
break;
case 4 :
level_screen.text_level.text = String("Editor Mode");
level_screen.gotoAndPlay(3);
edit = true;
break;
case 5 :
level_screen.text_level.text = String("Tester Mode");
level_screen.gotoAndPlay(3);
edit = false;
lvl = 0;
level0 = editor.map;
}
}
};
heroPos = function () {
herox = target.posx;
heroy = target.posy;
marker._x = target._x;
marker._y = target._y;
marker.select._visible = false;
};
targetSet = function () {
heroPos();
tar1 = collisionPoint(marker._x + 50, marker._y - 38);
tar2 = collisionPoint(marker._x - 50, marker._y - 38);
tar3 = collisionPoint(marker._x - 50, marker._y + 38);
tar4 = collisionPoint(marker._x + 50, marker._y + 38);
i = 1;
while (i < 5) {
if (_root["tar" + i].bar1._visible == true) {
_root["tar" + i] = undefined;
}
i++;
}
if ((((tar1 == undefined) and (tar2 == undefined)) and (tar3 == undefined)) and (tar4 == undefined)) {
endLevel(3);
}
marker.t1._alpha = (marker.t2._alpha = (marker.t3._alpha = (marker.t4._alpha = 0)));
if (tar1 == undefined) {
marker.t1._visible = false;
} else {
marker.t1._visible = true;
}
if (tar2 == undefined) {
marker.t2._visible = false;
} else {
marker.t2._visible = true;
}
if (tar3 == undefined) {
marker.t3._visible = false;
} else {
marker.t3._visible = true;
}
if (tar4 == undefined) {
marker.t4._visible = false;
} else {
marker.t4._visible = true;
}
};
changeTesla = function () {
marker.effect._xscale = (marker.effect._yscale = 250);
createEff(marker._x, marker._y, target._x, target._y);
addScore();
if (target.type == 11) {
aim = aim - 1;
}
if (aim == 0) {
endLevel(0);
}
step = step - 1;
switch (target.type) {
case 2 :
step = step + 5;
inter.text_step._yscale = 150;
break;
case 3 :
step = step + 10;
inter.text_step._yscale = 150;
break;
case 4 :
step = step + 15;
inter.text_step._yscale = 150;
break;
case 6 :
case 7 :
case 8 :
case 9 :
i = 0;
while (i < 6) {
j = 0;
while (j < 11) {
obj = _root.back[("tesla" + i) + j];
if (obj.bar1._visible == true) {
if (obj.bar1._currentframe == (target.img._currentframe - 1)) {
obj.bar1._visible = (obj.bar2._visible = false);
z = _root.attachMovie("eff_bar", "eff_bar", _root.getNextHighestDepth());
z._x = obj._x;
z._y = obj._y;
}
}
j = j + 1;
}
i = i + 1;
}
break;
case 10 :
begin = 0;
target.ramka.gotoAndPlay(12);
i = 0;
while (i < 6) {
j = 0;
while (j < 11) {
obj = _root.back[("tesla" + i) + j];
if (obj.type == 11) {
_root[("nexus" + obj.x) + obj.y]._visible = false;
}
if (obj.type == 12) {
if (obj.bar1._visible == false) {
_root[("nexus" + obj.x) + obj.y]._visible = true;
}
}
j = j + 1;
}
i = i + 1;
}
eff_count++;
obj = eff.attachMovie("eff_bitmap", "eff" + eff_count, eff.getNextHighestDepth());
obj._x = target._x;
obj._y = target._y - 20;
obj._rotation = Math.random() * 360;
obj = _root.attachMovie("eff_line", "eff_line" + eff_count, _root.getNextHighestDepth());
obj._x = target._x;
obj._y = target._y - 20;
obj.gotoAndPlay("up");
break;
case 11 :
_root[("nexus" + target.x) + target.y]._visible = false;
}
if (step < 1) {
endLevel(2);
}
eff._alpha = Math.min(120, 70 + (10 * step));
marker.select._alpha = Math.min(120, 70 + (10 * step));
if ((target._currentframe > 12) and (step > 0)) {
stepCoord(target._currentframe - 13);
ii = 0;
if (true) {
ii = ii + 1;
targ = collisionPoint(target._x + (ii * xx), target._y + (ii * yy));
if (targ != undefined) {
if (targ.type != 0) {
if ((targ.type < 0) or (obj.bar1._visible == true)) {
endLevel(3);
// unexpected jump
}
createEff(target._x, target._y, targ._x, targ._y);
target.type = -2;
target.img.gotoAndStop(1);
target = targ;
heroPos();
changeTesla();
// unexpected jump
}
// unexpected jump
}
endLevel(3);
}
} else {
target.type = -1;
target.img.gotoAndStop(1);
target.inform.gotoAndStop(1);
if (target._currentframe != 10) {
targetSet();
} else {
x = 0;
i = 0;
while (i < 6) {
j = 0;
while (j < 11) {
z = back[("tesla" + i) + j];
if (z.type == 12) {
if (z.bar1._visible == false) {
x = 1;
break;
}
}
j = j + 1;
}
i = i + 1;
}
if (x == 0) {
endLevel(3);
}
}
}
};
onEnterFrame = function () {
if (edit == false) {
if (begin > -1) {
targ_cur = collisionPoint(_xmouse, _ymouse);
if ((((targ_cur == tar1) or (targ_cur == tar2)) or (targ_cur == tar3)) or (targ_cur == tar4)) {
targ_true = true;
} else {
targ_true = false;
}
if (begin == 0) {
marker._visible = false;
select._visible = false;
if (targ_cur.bar1._visible == false) {
if (targ_cur.type == 12) {
select._visible = true;
select._x = _root._xmouse;
select._y = _root._ymouse;
select.light._x = (select.bord._x = targ_cur._x - _root._xmouse);
select.light._y = (select.bord._y = targ_cur._y - _root._ymouse);
select.light.gotoAndStop(targ_cur.type);
select.bord.gotoAndStop(targ_cur.type);
}
}
}
if (begin == 1) {
marker.select._visible = false;
select._visible = false;
if (targ_cur != undefined) {
if (targ_true == true) {
marker.select._xscale = Math.sqrt(Math.pow(marker._x - _xmouse, 2) + Math.pow((marker._y - 20) - _ymouse, 2));
marker.select._rotation = (Math.atan2(_ymouse - (marker._y - 20), _xmouse - marker._x) / Math.PI) * 180;
marker.select._visible = true;
select._visible = true;
select._x = _root._xmouse;
select._y = _root._ymouse;
select.light._x = (select.bord._x = targ_cur._x - _root._xmouse);
select.light._y = (select.bord._y = targ_cur._y - _root._ymouse);
select.light.gotoAndStop(targ_cur.type);
select.bord.gotoAndStop(targ_cur.type);
if ((msec % 5) == 0) {
createFly(_root._xmouse, _root._ymouse, 1);
}
}
}
if (combo_count > 0) {
combo_count = combo_count - 1;
} else {
combo = 1;
}
if (msec == 30) {
msec = 1;
if (sec == 59) {
minute = minute + 1;
sec = 0;
sec_str = "00";
} else {
sec = sec + 1;
if (sec < 10) {
sec_str = (minute + ":0") + sec;
} else {
sec_str = (minute + ":") + sec;
}
}
} else {
msec = msec + 1;
}
}
if (inter._y > 480) {
inter._y = inter._y - 5;
}
if (inter.text_step._yscale > 100) {
inter.text_step._yscale = inter.text_step._yscale - 10;
}
} else if (inter._y < 540) {
inter._y = inter._y + 5;
}
if (mousePressed == true) {
if (begin == 0) {
target = collisionPoint(_root._xmouse, _root._ymouse);
if (target != undefined) {
if (target.type == 12) {
if (targ_cur.bar1._visible == false) {
i = 0;
while (i < 6) {
j = 0;
while (j < 11) {
obj = back[("tesla" + i) + j];
if (obj.type == 11) {
_root[("nexus" + obj.x) + obj.y]._visible = true;
}
if (obj.type == 12) {
_root[("nexus" + obj.x) + obj.y]._visible = false;
}
j = j + 1;
}
i = i + 1;
}
marker.effect._xscale = (marker.effect._yscale = 250);
target.img.gotoAndStop(1);
target.type = -1;
begin = 1;
addScore();
targetSet();
marker._visible = true;
obj = _root.attachMovie("eff_line", "eff_line" + eff_count, _root.getNextHighestDepth());
obj._x = target._x;
obj._y = target._y - 20;
obj.gotoAndPlay("down");
}
}
}
} else if (begin == 1) {
target = collisionPoint(_root._xmouse, _root._ymouse);
if (target != undefined) {
if (target.type > 0) {
if ((((target == tar1) || (target == tar2)) || (target == tar3)) || (target == tar4)) {
changeTesla();
}
}
}
}
}
} else {
targ_cur = collisionPoint(_xmouse, _ymouse);
if (targ_cur_last != targ_cur) {
targ_cur_last.ramka.gotoAndPlay(12);
targ_cur.ramka.gotoAndPlay(2);
}
targ_cur_last = targ_cur;
if (mousePressed == true) {
mousePressed = false;
if (inter.cursor > 0) {
z = ("" + targ_cur.x) + targ_cur.y;
if ((((((z != "00") and (z != "010")) and (z != "50")) and (z != "51")) and (z != "59")) and (z != "510")) {
targ_cur._visible = true;
targ_frame = targ_cur._currentframe;
switch (inter.cursor) {
case 1 :
targ_cur.gotoAndStop(12);
break;
case 2 :
targ_cur.gotoAndStop(1);
break;
case 3 :
if ((targ_frame < 2) or (targ_frame > 3)) {
targ_cur.gotoAndStop(2);
} else {
targ_cur.nextFrame();
}
break;
case 4 :
targ_frame = targ_cur.bar1._currentframe;
if (targ_cur.bar1._visible == true) {
if (targ_frame == 4) {
targ_cur.bar1._visible = false;
targ_cur.bar2._visible = false;
} else {
targ_cur.bar1.nextFrame();
targ_cur.bar2.nextFrame();
}
} else {
targ_cur.bar1._visible = true;
targ_cur.bar2._visible = true;
targ_cur.bar1.gotoAndStop(1);
targ_cur.bar1.gotoAndStop(1);
}
break;
case 5 :
if ((targ_frame < 6) or (targ_frame > 8)) {
targ_cur.gotoAndStop(6);
targ_cur.img.gotoAndStop(2);
} else {
targ_cur.nextFrame();
targ_cur.img.gotoAndStop(targ_cur._currentframe - 4);
}
break;
case 6 :
targ_cur.gotoAndStop(10);
break;
case 7 :
if ((targ_frame < 13) or (targ_frame > 19)) {
targ_cur.gotoAndStop(13);
} else {
targ_cur.nextFrame();
}
break;
case 8 :
targ_cur.gotoAndStop(11);
break;
case 9 :
targ_cur.gotoAndStop(1);
targ_cur._visible = false;
targ_cur.bar1._visible = false;
targ_cur.bar2._visible = false;
}
targ_cur.inform.gotoAndStop(targ_cur._currentframe);
}
}
}
if (inter._y > 480) {
inter._y = inter._y - 5;
}
}
};
onMouseDown = function () {
mousePressed = true;
};
onMouseUp = function () {
mousePressed = false;
};
loadLevel();
Symbol 15 MovieClip [tutor4] Frame 1
gotoAndPlay(Math.floor(Math.random() * 10));
Symbol 15 MovieClip [tutor4] Frame 21
name.text = nam;
Symbol 15 MovieClip [tutor4] Frame 29
desc.text = des;
Symbol 15 MovieClip [tutor4] Frame 35
stop();
Symbol 18 MovieClip [tutor3] Frame 1
gotoAndPlay(Math.floor(Math.random() * 10));
Symbol 18 MovieClip [tutor3] Frame 21
name.text = nam;
Symbol 18 MovieClip [tutor3] Frame 29
desc.text = des;
Symbol 18 MovieClip [tutor3] Frame 35
stop();
Symbol 23 MovieClip Frame 1
stop();
Symbol 28 MovieClip Frame 2
stop();
Symbol 33 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 11
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 2
stop();
Symbol 58 MovieClip Frame 2
stop();
Symbol 63 MovieClip Frame 2
stop();
Symbol 69 MovieClip Frame 2
stop();
Symbol 76 MovieClip Frame 2
stop();
Symbol 81 MovieClip Frame 2
stop();
Symbol 86 MovieClip Frame 2
stop();
Symbol 91 MovieClip Frame 2
stop();
Symbol 96 MovieClip Frame 2
stop();
Symbol 101 MovieClip Frame 2
stop();
Symbol 106 MovieClip Frame 2
stop();
Symbol 111 MovieClip Frame 2
stop();
Symbol 116 MovieClip Frame 2
stop();
Symbol 121 MovieClip Frame 2
stop();
Symbol 126 MovieClip Frame 2
stop();
Symbol 133 MovieClip [text_addscore] Frame 20
this.removeMovieClip();
Symbol 135 MovieClip Frame 1
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
};
Symbol 140 MovieClip [fly] Frame 31
this.removeMovieClip();
Symbol 141 MovieClip [star] Frame 1
rot = Math.ceil((Math.random() * 6) - 3);
alp = Math.ceil((Math.random() * 3) + 3);
onEnterFrame = function () {
_y = (_y - (Math.random() * 1));
_rotation = (_rotation + rot);
_alpha = (_alpha - alp);
if (_alpha < 1) {
this.removeMovieClip();
}
};
Symbol 147 Button
on (release) {
if (_root.begin == -2) {
_root.menu_screen.tablo.play();
_root.menu_screen.play();
_root.begin = -1;
_root.menu_type = 0;
_root.lvl = numb;
}
}
Symbol 152 Button
on (release) {
if (_root.begin == -2) {
_root.menu_screen.tablo.play();
_root.menu_screen.play();
_root.begin = -1;
_root.menu_type = 0;
_root.lvl = numb;
}
}
Symbol 156 Button
on (release) {
if (_root.begin == -2) {
_root.menu_screen.tablo.play();
_root.menu_screen.play();
_root.begin = -1;
_root.menu_type = 0;
_root.lvl = numb;
}
}
Symbol 160 MovieClip [tutor2] Frame 1
gotoAndPlay(Math.floor(Math.random() * 10));
Symbol 160 MovieClip [tutor2] Frame 21
name.text = nam;
Symbol 160 MovieClip [tutor2] Frame 29
desc.text = des;
Symbol 160 MovieClip [tutor2] Frame 35
stop();
Symbol 163 MovieClip [tutor1] Frame 1
gotoAndPlay(Math.floor(Math.random() * 10));
Symbol 163 MovieClip [tutor1] Frame 21
name.text = nam;
Symbol 163 MovieClip [tutor1] Frame 29
desc.text = des;
Symbol 163 MovieClip [tutor1] Frame 35
stop();
Symbol 166 MovieClip [eff_line] Frame 9
this.removeMovieClip();
Symbol 166 MovieClip [eff_line] Frame 18
this.removeMovieClip();
Symbol 171 MovieClip [eff_glass] Frame 1
dir = 45 + random(90);
vspeed = 0;
speed = 5 + random(9);
rot = 40 - random(80);
timer = 20 + random(20);
_rotation = random(360);
onEnterFrame = function () {
_rotation = (_rotation + rot);
_x = (_x + _root.lengthdir_x(speed, dir));
_y = (_y + (_root.lengthdir_y(speed, dir) + vspeed));
vspeed = vspeed + 0.5;
if (timer > 0) {
timer--;
if (timer < 10) {
_alpha = (_alpha - 10);
}
} else {
this.removeMovieClip();
}
};
Symbol 174 MovieClip [eff_bar] Frame 15
this.removeMovieClip();
Symbol 418 MovieClip [__Packages.com.candystand.ScoreSubmit.Constants] Frame 0
class com.candystand.ScoreSubmit.Constants
{
static var __swlist, __brandingPath, __sessionId, __playerId, __uniqueId, __multiplayId, __copyright, __quiturl, __scoreurl, __trackingurl, __multiplayurl, __trackingParams, __flashVersion, __screenSize, __gameData, __gameVersion, __downloadTime, __systemSpeed, __sendLoad, __sendPlay, __sendGameover, __sendQuit, __sendMethod;
function Constants () {
}
static function get MD5Key() {
return(__MD5Key);
}
static function get stingerPath() {
return(__swlist);
}
static function set brandingPath(p) {
if (_level0.sw9 == undefined) {
__brandingPath = p;
}
//return(brandingPath);
}
static function get brandingPath() {
return(__brandingPath);
}
static function get sessionId() {
return(__sessionId);
}
static function get playerId() {
return(__playerId);
}
static function get uniqueId() {
return(__uniqueId);
}
static function get multiplayId() {
return(__multiplayId);
}
static function get copyright() {
return(__copyright);
}
static function get quiturl() {
return(__quiturl);
}
static function get scoreurl() {
return(__scoreurl);
}
static function get trackingurl() {
return(__trackingurl);
}
static function get ugcsaveurl() {
return(__ugcsaveurl);
}
static function get ugcloadurl() {
return(__ugcloadurl);
}
static function get ugcrateurl() {
return(__ugcrateurl);
}
static function get ugclisturl() {
return(__ugclisturl);
}
static function get multiplayurl() {
return(__multiplayurl);
}
static function get trackingParams() {
return(__trackingParams);
}
static function get flashVersion() {
return(__flashVersion);
}
static function get screenSize() {
return(__screenSize);
}
static function get gameData() {
return(__gameData);
}
static function get gameVersion() {
return(__gameVersion);
}
static function get downloadTime() {
return(__downloadTime);
}
static function get systemSpeed() {
return(__systemSpeed);
}
static function get sendLoad() {
return(__sendLoad);
}
static function get sendPlay() {
return(__sendPlay);
}
static function get sendGameover() {
return(__sendGameover);
}
static function get sendQuit() {
return(__sendQuit);
}
static function get sendMethod() {
return(__sendMethod);
}
static function initialize(gData, gVersion, dTime) {
if (__initialized) {
return(undefined);
}
__initialized = true;
gData = ((gData == undefined) ? "" : (gData));
gVersion = ((gVersion == undefined) ? "" : (gVersion));
dTime = (dTime ? (dTime) : 0);
__sessionId = (((_level0.session_id == undefined) || (String(_level0.session_id).length == 0)) ? "-1" : (_level0.session_id));
__playerId = (((_level0.sw3 == undefined) || (String(_level0.sw3).length == 0)) ? "-1" : (_level0.sw3));
__uniqueId = ((_level0.sw6 == undefined) ? "18324" : (_level0.sw6));
__multiplayId = "";
__swlist = ((_level0.swlist == undefined) ? "http://www.candystand.com/games/stingers/stinger_big_blue.swf" : (_level0.swlist));
__brandingPath = ((_level0.sw9 == undefined) ? "./us" : (_level0.sw9));
__copyright = ((_level0.sw2 == undefined) ? "" : (_level0.sw2));
__quiturl = ((_level0.sw1 == undefined) ? "" : (_level0.sw1));
__scoreurl = ((_level0.sw4 == undefined) ? "" : (_level0.sw4));
__multiplayurl = ((_level0.sw5 == undefined) ? "" : (_level0.sw5));
__trackingurl = ((_level0.sw7 == undefined) ? "" : ((((_level0.sw7 + "&events=") + _level0.events) + "&url=") + _level0.url));
__flashVersion = System.capabilities.version.split(" ")[1];
__screenSize = (Stage.width + "by") + Stage.height;
__gameData = gData;
__gameVersion = gVersion;
__downloadTime = dTime;
__systemSpeed = getSpeed();
var _local4 = ((_level0.sw8 == undefined) ? "ugcsaveurl%3Dhttp%3A%2F%2Fstage.candystand.com%2Fugc%2Fsave%26ugcloadurl%3Dhttp%3A%2F%2Fstage.candystand.com%2Fugc%2Fget%26ugcrateurl%3Dhttp%3A%2F%2Fstage.candystand.com%2Fugc%2Frate%26ugclisturl%3Dhttp%3A%2F%2Fstage.candystand.com%2Fugc%2Flist" : (_level0.sw8));
parseExtraParams(_local4);
parseUrl();
trace("Constants.initialize() __quitUrl: " + __quiturl);
trace("Constants.initialize() __scoreurl: " + __scoreurl);
trace("Constants.initialize() __multiplayerurl: " + __multiplayurl);
trace("Constants.initialize() __trackingurl: " + __trackingurl);
}
static function getSpeed() {
return(0);
}
static function parseExtraParams(extraparams) {
var _local2 = unescape(extraparams).split("&");
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].indexOf("ugcsaveurl") != -1) {
__ugcsaveurl = unescape(_local2[_local1]).substr(unescape(_local2[_local1]).indexOf("=") + 1, unescape(_local2[_local1]).length);
} else if (_local2[_local1].indexOf("ugcloadurl") != -1) {
__ugcloadurl = unescape(_local2[_local1]).substr(unescape(_local2[_local1]).indexOf("=") + 1, unescape(_local2[_local1]).length);
} else if (_local2[_local1].indexOf("ugclisturl") != -1) {
__ugclisturl = unescape(_local2[_local1]).substr(unescape(_local2[_local1]).indexOf("=") + 1, unescape(_local2[_local1]).length);
} else if (_local2[_local1].indexOf("ugcrateurl") != -1) {
__ugcrateurl = unescape(_local2[_local1]).substr(unescape(_local2[_local1]).indexOf("=") + 1, unescape(_local2[_local1]).length);
}
_local1++;
}
}
static function parseUrl() {
__trackingParams = {};
var _local7 = [];
__trackingurl = unescape(__trackingurl);
if (__trackingurl.indexOf("url=") != -1) {
_local7 = __trackingurl.split("url=");
var _local8 = String(_local7[0]);
__trackingurl = String(_local7[1]);
if (_local8.indexOf("&") != -1) {
var _local6 = _local8.split("&");
var _local1 = 0;
while (_local1 < 2) {
var _local2 = String(_local6[_local1]);
if (_local2.indexOf("method") != -1) {
__sendMethod = String(_local2.split("=")[1]).toUpperCase();
} else {
var _local9 = String(_local2.split("=")[1]);
__sendLoad = Boolean(Number(_local9.charAt(0)));
__sendPlay = Boolean(Number(_local9.charAt(1)));
__sendGameover = Boolean(Number(_local9.charAt(2)));
__sendQuit = Boolean(Number(_local9.charAt(3)));
}
_local1++;
}
} else {
__sendMethod = ((_local8.indexOf("method") == -1) ? "GET" : (String(_local8.split("=")[1]).toUpperCase()));
if (_local8.indexOf("events") != -1) {
var _local9 = String(_local8.split("=")[1]);
__sendLoad = Boolean(Number(_local9.charAt(0)));
__sendPlay = Boolean(Number(_local9.charAt(1)));
__sendGameover = Boolean(Number(_local9.charAt(2)));
__sendQuit = Boolean(Number(_local9.charAt(3)));
} else {
__sendLoad = (__sendPlay = (__sendGameover = (__sendQuit = true)));
}
}
} else {
__sendMethod = "GET";
__sendLoad = (__sendPlay = (__sendGameover = (__sendQuit = true)));
}
if (__trackingurl.indexOf("?") != -1) {
_local7 = __trackingurl.split("?");
__trackingurl = String(_local7[0]);
var _local10 = String(_local7[1]);
var _local3;
if (_local10.indexOf("&") != -1) {
var _local5 = _local10.split("&");
var _local1 = 0;
while (_local1 < _local5.length) {
var _local4 = String(_local5[_local1]);
_local3 = _local4.split("=");
__trackingParams[String(_local3[0])] = String(_local3[1]);
_local1++;
}
} else {
_local3 = _local10.split("=");
__trackingParams[String(_local3[0])] = String(_local3[1]);
}
}
}
static function getIdString() {
return((((__playerId + "") + __sessionId) + "") + __uniqueId);
}
static function getTrackingParams() {
var _local1 = "";
for (var _local2 in __trackingParams) {
_local1 = _local1 + ((("&" + _local2) + "=") + __trackingParams[_local2]);
}
return(_local1);
}
static function getJavaTracking(action, rn, hash) {
var _local1 = "";
_local1 = (((((("action=" + action) + "&userid=") + __playerId) + "&sid=") + __sessionId) + "&gameid=") + __uniqueId;
_local1 = _local1 + (((("&rn=" + rn) + getTrackingParams()) + "&cr=") + hash);
return(_local1);
}
static var __MD5Key = "wD9c84X0vA";
static var __initialized = false;
static var __ugcsaveurl = "";
static var __ugcloadurl = "";
static var __ugclisturl = "";
static var __ugcrateurl = "";
}
Symbol 419 MovieClip [__Packages.com.candystand.Stinger.Stinger] Frame 0
class com.candystand.Stinger.Stinger
{
var stingerPath, stingerClip, stingerLoader, testInterval;
function Stinger (parentClip) {
mx.events.EventDispatcher.initialize(this);
if (((_root.swlist == undefined) || (_root.swlist == "")) || (_root.swlist.length < 1)) {
stingerPath = "http://www.candystand.com/games/stingers/stinger_big_blue.swf";
} else {
stingerPath = _root.swlist;
}
stingerClip = parentClip.createEmptyMovieClip("stinger", parentClip.getNextHighestDepth());
stingerLoader = new MovieClipLoader();
stingerLoader.addListener(this);
stingerLoader.loadClip(stingerPath, stingerClip);
clearInterval(testInterval);
testInterval = setInterval(this, "run", 100);
}
function dispatchEvent() {
}
function addEventListener() {
}
function removeEventListener() {
}
function onLoadProgress(clip, bytesLoaded, bytesTotal) {
}
function onLoadComplete(clip) {
trace("STINGER LOADED");
}
function onLoadInit(clip) {
var _local3 = (Stage.width - stingerClip.thewidth) / 2;
var _local2 = (Stage.height - stingerClip.theheight) / 2;
stingerClip._x = _local3;
stingerClip._y = _local2;
}
function run() {
if ((stingerClip._currentframe > 1) && (stingerClip._currentframe == stingerClip._totalframes)) {
clearInterval(testInterval);
stingerClip._visible = false;
stingerClip.removeMovieClip();
isComplete = true;
dispatchEvent({type:"onStingerComplete", target:this});
}
}
static var isComplete = false;
}
Symbol 420 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 421 MovieClip [__Packages.com.candystand.ScoreSubmit.Messenger] Frame 0
class com.candystand.ScoreSubmit.Messenger
{
static var __md5Key, __blowfishKey, __timesExecuted, __kaInterval;
function Messenger () {
}
static function initialize(gameKey, gVersion) {
if (__initialized) {
return(undefined);
}
__initialized = true;
var _local1 = Math.round(getTimer() / 1000);
com.candystand.ScoreSubmit.Constants.initialize("none", gVersion, _local1);
com.candystand.ScoreSubmit.Game.initialize();
__md5Key = com.candystand.ScoreSubmit.Constants.MD5Key;
__blowfishKey = gameKey;
com.candystand.ScoreSubmit.Blowfish.initialize(__blowfishKey);
load();
}
static function sendAction(action, skipCheck) {
if ((action == "play") && (!com.candystand.ScoreSubmit.Constants.__get__sendPlay())) {
return(undefined);
}
if ((action == "over") && (!com.candystand.ScoreSubmit.Constants.__get__sendGameover())) {
return(undefined);
}
if (!skipCheck) {
if (action == "play") {
com.candystand.ScoreSubmit.Game.newGame();
return(undefined);
}
if (action == "over") {
com.candystand.ScoreSubmit.Game.endGame();
return(undefined);
}
}
var _local7 = false;
switch (com.candystand.ScoreSubmit.Constants.__get__sendMethod()) {
case "DISABLED" :
return(undefined);
case "JAVASCRIPT" :
_local7 = true;
case "GET" :
var _local6 = getTimer();
var _local4 = (((action + "") + com.candystand.ScoreSubmit.Constants.getIdString()) + "") + _local6;
_local4 = _local4 + __md5Key;
var _local5 = com.candystand.ScoreSubmit.MD5.hex_md5(_local4);
trace("Messenger.sendAction() preMD5: " + _local4);
trace("Messenger.sendAction() hash: " + _local5);
if (_local7) {
getURL (("javascript: TrackingEvent( " + com.candystand.ScoreSubmit.Constants.getJavaTracking(action, _local6, _local5)) + " );");
} else {
var _local1 = new LoadVars();
_local1.action = action;
_local1.gameid = com.candystand.ScoreSubmit.Constants.uniqueId;
_local1.userid = com.candystand.ScoreSubmit.Constants.playerId;
_local1.sid = com.candystand.ScoreSubmit.Constants.sessionId;
_local1.rn = _local6;
_local1.cr = _local5;
for (var _local3 in com.candystand.ScoreSubmit.Constants.__get__trackingParams()) {
_local1[_local3] = com.candystand.ScoreSubmit.Constants.__get__trackingParams()[_local3];
}
_local1.sendAndLoad(com.candystand.ScoreSubmit.Constants.__get__trackingurl(), {}, "GET");
}
}
}
static function load() {
if (!com.candystand.ScoreSubmit.Constants.__get__sendLoad()) {
return(undefined);
}
var _local6 = false;
switch (com.candystand.ScoreSubmit.Constants.__get__sendMethod()) {
case "DISABLED" :
return(undefined);
case "JAVASCRIPT" :
_local6 = true;
case "GET" :
var _local5 = getTimer();
var _local3 = (("load" + com.candystand.ScoreSubmit.Constants.getIdString()) + "") + _local5;
_local3 = _local3 + __md5Key;
var _local4 = com.candystand.ScoreSubmit.MD5.hex_md5(_local3);
trace("Messenger.load() preMD5: " + _local3);
trace("Messenger.load() hash: " + _local4);
if (_local6) {
getURL (("javascript: TrackingEvent( " + com.candystand.ScoreSubmit.Constants.getJavaTracking("load", _local5, _local4)) + " );");
} else {
var _local1 = new LoadVars();
_local1.action = "load";
_local1.gameid = com.candystand.ScoreSubmit.Constants.uniqueId;
_local1.userid = com.candystand.ScoreSubmit.Constants.playerId;
_local1.sid = com.candystand.ScoreSubmit.Constants.sessionId;
_local1.d1 = com.candystand.ScoreSubmit.Constants.downloadTime;
_local1.rn = _local5;
_local1.cr = _local4;
for (var _local2 in com.candystand.ScoreSubmit.Constants.__get__trackingParams()) {
_local1[_local2] = com.candystand.ScoreSubmit.Constants.__get__trackingParams()[_local2];
}
_local1.sendAndLoad(com.candystand.ScoreSubmit.Constants.__get__trackingurl(), {}, "GET");
}
}
}
static function keepAlive() {
if (com.candystand.ScoreSubmit.Constants.__get__sendMethod() == "DISABLED") {
return(undefined);
}
var _local1 = new LoadVars();
__timesExecuted++;
var _local6 = __timesExecuted;
var _local5 = getTimer();
var _local3 = (("keepalive" + com.candystand.ScoreSubmit.Constants.getIdString()) + "") + _local5;
_local3 = _local3 + __md5Key;
var _local4 = com.candystand.ScoreSubmit.MD5.hex_md5(_local3);
trace("Messenger.keepAlive() preMD5: " + _local3);
trace("Messenger.keepAlive() hash: " + _local4);
_local1.action = "keepalive";
_local1.gameid = com.candystand.ScoreSubmit.Constants.uniqueId;
_local1.userid = com.candystand.ScoreSubmit.Constants.playerId;
_local1.sid = com.candystand.ScoreSubmit.Constants.sessionId;
_local1.d1 = _local6;
_local1.rn = _local5;
_local1.cr = _local4;
for (var _local2 in com.candystand.ScoreSubmit.Constants.__get__trackingParams()) {
_local1[_local2] = com.candystand.ScoreSubmit.Constants.__get__trackingParams()[_local2];
}
_local1.sendAndLoad(com.candystand.ScoreSubmit.Constants.__get__trackingurl(), {}, "GET");
}
static function quit(time) {
clearInterval(__kaInterval);
if (!com.candystand.ScoreSubmit.Constants.__get__sendQuit()) {
return(undefined);
}
var _local6 = false;
switch (com.candystand.ScoreSubmit.Constants.__get__sendMethod()) {
case "DISABLED" :
return(undefined);
case "JAVASCRIPT" :
_local6 = true;
case "GET" :
var _local5 = getTimer();
var _local3 = (("quit" + com.candystand.ScoreSubmit.Constants.getIdString()) + "") + _local5;
_local3 = _local3 + __md5Key;
var _local4 = com.candystand.ScoreSubmit.MD5.hex_md5(_local3);
trace("Messenger.quit() preMD5: " + _local3);
trace("Messenger.quit() hash: " + _local4);
if (_local6) {
getURL (("javascript: TrackingEvent( " + com.candystand.ScoreSubmit.Constants.getJavaTracking("load", _local5, _local4)) + " );");
} else {
var _local1 = new LoadVars();
_local1.action = "quit";
_local1.gameid = com.candystand.ScoreSubmit.Constants.uniqueId;
_local1.userid = com.candystand.ScoreSubmit.Constants.playerId;
_local1.sid = com.candystand.ScoreSubmit.Constants.sessionId;
_local1.d1 = time;
_local1.rn = _local5;
_local1.cr = _local4;
for (var _local2 in com.candystand.ScoreSubmit.Constants.__get__trackingParams()) {
_local1[_local2] = com.candystand.ScoreSubmit.Constants.__get__trackingParams()[_local2];
}
_local1.sendAndLoad(com.candystand.ScoreSubmit.Constants.__get__trackingurl(), {}, "GET");
}
}
getURL (com.candystand.ScoreSubmit.Constants.__get__quiturl());
}
static function submitScore(preMD5) {
var _local2 = com.candystand.ScoreSubmit.MD5.hex_md5(preMD5 + __blowfishKey);
var _local1 = com.candystand.ScoreSubmit.Blowfish.enc64str((preMD5 + "&cr=") + _local2);
trace("Messenger.submitScore() preMD5: " + preMD5);
trace("Messenger.submitScore() hash: " + _local2);
trace("Messenger.submitScore() encoded: " + _local1);
var _local3 = ((com.candystand.ScoreSubmit.Constants.__get__scoreurl().indexOf("?") != -1) ? "&" : "?");
quit();
getURL (((com.candystand.ScoreSubmit.Constants.__get__scoreurl() + _local3) + "param=") + _local1);
}
static var __initialized = false;
}
Symbol 422 MovieClip [__Packages.com.candystand.ScoreSubmit.Game] Frame 0
class com.candystand.ScoreSubmit.Game
{
static var __get__scoreReversed, __scoreExtraParams, __gamesPlayed, __playTime, __gameResets, __numPlayers, __cheated, __playStart;
function Game () {
}
static function set score(num) {
if (!isNaN(num)) {
__score = num;
if (_scoreReversed) {
if ((__score < __highscore) || (__highscore == 0)) {
__highscore = __score;
}
} else if (__score > __highscore) {
__highscore = __score;
}
}
//return(score);
}
static function get score() {
return(__score);
}
static function get highScore() {
return(__highscore);
}
static function set scoreReversed(v) {
_scoreReversed = v;
//return(__get__scoreReversed());
}
static function set leaderboardId(num) {
if (!isNaN(num)) {
__leaderboardId = num;
}
//return(leaderboardId);
}
static function get leaderboardId() {
return(__leaderboardId);
}
static function initialize() {
if (__initialized) {
return(undefined);
}
__initialized = true;
__scoreExtraParams = {};
__gamesPlayed = 0;
__playTime = 0;
__gameResets = 0;
__numPlayers = 0;
__cheated = false;
__score = 0;
}
static function quit() {
var _local1 = getTimer();
var _local2 = _local1 - __playStart;
__playTime = __playTime + Math.round(_local2 / 1000);
com.candystand.ScoreSubmit.Messenger.quit(__playTime);
__playTime = 0;
__gameResets = 0;
__gamesPlayed = 0;
}
static function newGame(players) {
__numPlayers = (players ? (players) : 1);
__playStart = getTimer();
__gamesPlayed++;
__gameResets = 0;
__score = 0;
__cheated = false;
com.candystand.ScoreSubmit.Messenger.sendAction("play", true);
}
static function endGame() {
var _local1 = getTimer();
var _local2 = _local1 - __playStart;
__playTime = __playTime + Math.round(_local2 / 1000);
com.candystand.ScoreSubmit.Messenger.sendAction("over", true);
}
static function restart() {
var _local1 = getTimer();
var _local2 = _local1 - __playStart;
__playTime = __playTime + Math.round(_local2 / 1000);
newGame(__numPlayers);
}
static function submitScore() {
var _local2 = new Date();
var _local4 = _local2.getFullYear();
var _local8 = (((_local2.getMonth() + "/") + _local2.getDate()) + "/") + _local4;
var _local9 = (_local2.getHours() * 60) * 60;
var _local5 = _local2.getMinutes() * 60;
var _local6 = (_local2.getSeconds() + _local5) + _local9;
var _local7 = Number(!__cheated);
var _local1 = (((((("gamename=" + com.candystand.ScoreSubmit.Constants.__get__uniqueId()) + "&score=") + __highscore) + "&pn=") + com.candystand.ScoreSubmit.Constants.__get__playerId()) + "&sf=") + _local7;
_local1 = _local1 + ((((getGameData() + "&ms=") + com.candystand.ScoreSubmit.Constants.__get__systemSpeed()) + "&mr=0&bd=0&pi=") + com.candystand.ScoreSubmit.Constants.__get__flashVersion());
_local1 = _local1 + ((((((("&ds=" + com.candystand.ScoreSubmit.Constants.__get__downloadTime()) + "&dt=") + _local8) + "&ss=") + com.candystand.ScoreSubmit.Constants.__get__screenSize()) + "&sp=") + com.candystand.ScoreSubmit.Constants.__get__gameData());
_local1 = _local1 + ((((((("&sn=" + com.candystand.ScoreSubmit.Constants.__get__multiplayId()) + "&tt=") + _local6) + "&vr=") + com.candystand.ScoreSubmit.Constants.__get__gameVersion()) + "&gid=") + com.candystand.ScoreSubmit.Constants.__get__uniqueId());
if (__leaderboardId != -1) {
_local1 = _local1 + ("&gamelevel=" + __leaderboardId);
}
for (var _local3 in __scoreExtraParams) {
_local1 = _local1 + ((("&" + _local3) + "=") + String(__scoreExtraParams[_local3]));
}
com.candystand.ScoreSubmit.Messenger.submitScore(_local1);
}
static function reset() {
__gameResets++;
__cheated = false;
}
static function catchCheat() {
__cheated = true;
}
static function getGameData() {
return((((((("&np=" + __numPlayers) + "&ng=") + __gamesPlayed) + "&nr=") + __gameResets) + "&tp=") + __playTime);
}
static function addScoreParam(label, value) {
if ((label != undefined) && (value != undefined)) {
__scoreExtraParams[label] = value;
}
}
static function removeScoreParam(label) {
delete __scoreExtraParams[label];
}
static var __initialized = false;
static var __score = 0;
static var __highscore = 0;
static var __leaderboardId = -1;
static var _scoreReversed = false;
}
Symbol 423 MovieClip [__Packages.com.candystand.ScoreSubmit.Blowfish] Frame 0
class com.candystand.ScoreSubmit.Blowfish
{
static var __blowfish;
function Blowfish () {
}
static function initialize(key) {
var _local11 = [];
var _local9;
var _local10;
_local10 = key.length;
_local9 = 0;
while (_local9 < _local10) {
_local11[_local9] = key.charCodeAt(_local9);
_local9++;
}
var _local1;
var _local2;
var _local8;
var _local3;
__blowfish = {};
__blowfish.blf_P = [];
__blowfish.blf_S = [];
__blowfish.blf_S[0] = [];
__blowfish.blf_S[1] = [];
__blowfish.blf_S[2] = [];
__blowfish.blf_S[3] = [];
_local3 = new Array(608135816, 2242054355, 320440878, 57701188, 2752067618, 698298832, 137296536, 3964562569, 1160258022, 953160567, 3193202383, 887688300, 3232508343, 3380367581, 1065670069, 3041331479, 2450970073, 2306472731);
_local1 = 0;
while (_local1 <= 17) {
__blowfish.blf_P[_local1] = _local3[_local1];
_local1++;
}
_local3 = new Array(3509652390, 2564797868, 805139163, 3491422135, 3101798381, 1780907670, 3128725573, 4046225305, 614570311, 3012652279, 134345442, 2240740374, 1667834072, 1901547113, 2757295779, 4103290238, 227898511, 1921955416, 1904987480, 2182433518, 2069144605, 3260701109, 2620446009, 720527379, 3318853667, 677414384, 3393288472, 3101374703, 2390351024, 1614419982, 1822297739, 2954791486, 3608508353, 3174124327, 2024746970, 1432378464, 3864339955, 2857741204, 1464375394, 1676153920, 1439316330, 715854006, 3033291828, 289532110, 2706671279, 2087905683, 3018724369, 1668267050, 732546397, 1947742710, 3462151702, 2609353502, 2950085171, 1814351708, 2050118529, 680887927, 999245976, 1800124847, 3300911131, 1713906067, 1641548236, 4213287313, 1216130144, 1575780402);
_local1 = 0;
while (_local1 <= 63) {
__blowfish.blf_S[0][_local1] = _local3[_local1];
_local1++;
}
_local3 = new Array(4018429277, 3917837745, 3693486850, 3949271944, 596196993, 3549867205, 258830323, 2213823033, 772490370, 2760122372, 1774776394, 2652871518, 566650946, 4142492826, 1728879713, 2882767088, 1783734482, 3629395816, 2517608232, 2874225571, 1861159788, 326777828, 3124490320, 2130389656, 2716951837, 967770486, 1724537150, 2185432712, 2364442137, 1164943284, 2105845187, 998989502, 3765401048, 2244026483, 1075463327, 1455516326, 1322494562, 910128902, 469688178, 1117454909, 936433444, 3490320968, 3675253459, 1240580251, 122909385, 2157517691, 634681816, 4142456567, 3825094682, 3061402683, 2540495037, 79693498, 3249098678, 1084186820, 1583128258, 426386531, 1761308591, 1047286709, 322548459, 995290223, 1845252383, 2603652396, 3431023940, 2942221577);
_local1 = 0;
while (_local1 <= 63) {
__blowfish.blf_S[0][_local1 + 64] = _local3[_local1];
_local1++;
}
_local3 = new Array(3202600964, 3727903485, 1712269319, 422464435, 3234572375, 1170764815, 3523960633, 3117677531, 1434042557, 442511882, 3600875718, 1076654713, 1738483198, 4213154764, 2393238008, 3677496056, 1014306527, 4251020053, 793779912, 2902807211, 842905082, 4246964064, 1395751752, 1040244610, 2656851899, 3396308128, 445077038, 3742853595, 3577915638, 679411651, 2892444358, 2354009459, 1767581616, 3150600392, 3791627101, 3102740896, 284835224, 4246832056, 1258075500, 768725851, 2589189241, 3069724005, 3532540348, 1274779536, 3789419226, 2764799539, 1660621633, 3471099624, 4011903706, 913787905, 3497959166, 737222580, 2514213453, 2928710040, 3937242737, 1804850592, 3499020752, 2949064160, 2386320175, 2390070455, 2415321851, 4061277028, 2290661394, 2416832540);
_local1 = 0;
while (_local1 <= 63) {
__blowfish.blf_S[0][_local1 + 128] = _local3[_local1];
_local1++;
}
_local3 = new Array(1336762016, 1754252060, 3520065937, 3014181293, 791618072, 3188594551, 3933548030, 2332172193, 3852520463, 3043980520, 413987798, 3465142937, 3030929376, 4245938359, 2093235073, 3534596313, 375366246, 2157278981, 2479649556, 555357303, 3870105701, 2008414854, 3344188149, 4221384143, 3956125452, 2067696032, 3594591187, 2921233993, 2428461, 544322398, 577241275, 1471733935, 610547355, 4027169054, 1432588573, 1507829418, 2025931657, 3646575487, 545086370, 48609733, 2200306550, 1653985193, 298326376, 1316178497, 3007786442, 2064951626, 458293330, 2589141269, 3591329599, 3164325604, 727753846, 2179363840, 146436021, 1461446943, 4069977195, 705550613, 3059967265, 3887724982, 4281599278, 3313849956, 1404054877, 2845806497, 146425753, 1854211946);
_local1 = 0;
while (_local1 <= 63) {
__blowfish.blf_S[0][_local1 + 192] = _local3[_local1];
_local1++;
}
_local3 = new Array(1266315497, 3048417604, 3681880366, 3289982499, 2909710000, 1235738493, 2632868024, 2414719590, 3970600049, 1771706367, 1449415276, 3266420449, 422970021, 1963543593, 2690192192, 3826793022, 1062508698, 1531092325, 1804592342, 2583117782, 2714934279, 4024971509, 1294809318, 4028980673, 1289560198, 2221992742, 1669523910, 35572830, 157838143, 1052438473, 1016535060, 1802137761, 1753167236, 1386275462, 3080475397, 2857371447, 1040679964, 2145300060, 2390574316, 1461121720, 2956646967, 4031777805, 4028374788, 33600511, 2920084762, 1018524850, 629373528, 3691585981, 3515945977, 2091462646, 2486323059, 586499841, 988145025, 935516892, 3367335476, 2599673255, 2839830854, 265290510, 3972581182, 2759138881, 3795373465, 1005194799, 847297441, 406762289);
_local1 = 0;
while (_local1 <= 63) {
__blowfish.blf_S[1][_local1] = _local3[_local1];
_local1++;
}
_local3 = new Array(1314163512, 1332590856, 1866599683, 4127851711, 750260880, 613907577, 1450815602, 3165620655, 3734664991, 3650291728, 3012275730, 3704569646, 1427272223, 778793252, 1343938022, 2676280711, 2052605720, 1946737175, 3164576444, 3914038668, 3967478842, 3682934266, 1661551462, 3294938066, 4011595847, 840292616, 3712170807, 616741398, 312560963, 711312465, 1351876610, 322626781, 1910503582, 271666773, 2175563734, 1594956187, 70604529, 3617834859, 1007753275, 1495573769, 4069517037, 2549218298, 2663038764, 504708206, 2263041392, 3941167025, 2249088522, 1514023603, 1998579484, 1312622330, 694541497, 2582060303, 2151582166, 1382467621, 776784248, 2618340202, 3323268794, 2497899128, 2784771155, 503983604, 4076293799, 907881277, 423175695, 432175456);
_local1 = 0;
while (_local1 <= 63) {
__blowfish.blf_S[1][_local1 + 64] = _local3[_local1];
_local1++;
}
_local3 = new Array(1378068232, 4145222326, 3954048622, 3938656102, 3820766613, 2793130115, 2977904593, 26017576, 3274890735, 3194772133, 1700274565, 1756076034, 4006520079, 3677328699, 720338349, 1533947780, 354530856, 688349552, 3973924725, 1637815568, 332179504, 3949051286, 53804574, 2852348879, 3044236432, 1282449977, 3583942155, 3416972820, 4006381244, 1617046695, 2628476075, 3002303598, 1686838959, 431878346, 2686675385, 1700445008, 1080580658, 1009431731, 832498133, 3223435511, 2605976345, 2271191193, 2516031870, 1648197032, 4164389018, 2548247927, 300782431, 375919233, 238389289, 3353747414, 2531188641, 2019080857, 1475708069, 455242339, 2609103871, 448939670, 3451063019, 1395535956, 2413381860, 1841049896, 1491858159, 885456874, 4264095073, 4001119347);
_local1 = 0;
while (_local1 <= 63) {
__blowfish.blf_S[1][_local1 + 128] = _local3[_local1];
_local1++;
}
_local3 = new Array(1565136089, 3898914787, 1108368660, 540939232, 1173283510, 2745871338, 3681308437, 4207628240, 3343053890, 4016749493, 1699691293, 1103962373, 3625875870, 2256883143, 3830138730, 1031889488, 3479347698, 1535977030, 4236805024, 3251091107, 2132092099, 1774941330, 1199868427, 1452454533, 157007616, 2904115357, 342012276, 595725824, 1480756522, 206960106, 497939518, 591360097, 863170706, 2375253569, 3596610801, 1814182875, 2094937945, 3421402208, 1082520231, 3463918190, 2785509508, 435703966, 3908032597, 1641649973, 2842273706, 3305899714, 1510255612, 2148256476, 2655287854, 3276092548, 4258621189, 236887753, 3681803219, 274041037, 1734335097, 3815195456, 3317970021, 1899903192, 1026095262, 4050517792, 356393447, 2410691914, 3873677099, 3682840055);
_local1 = 0;
while (_local1 <= 63) {
__blowfish.blf_S[1][_local1 + 192] = _local3[_local1];
_local1++;
}
_local3 = new Array(3913112168, 2491498743, 4132185628, 2489919796, 1091903735, 1979897079, 3170134830, 3567386728, 3557303409, 857797738, 1136121015, 1342202287, 507115054, 2535736646, 337727348, 3213592640, 1301675037, 2528481711, 1895095763, 1721773893, 3216771564, 62756741, 2142006736, 835421444, 2531993523, 1442658625, 3659876326, 2882144922, 676362277, 1392781812, 170690266, 3921047035, 1759253602, 3611846912, 1745797284, 664899054, 1329594018, 3901205900, 3045908486, 2062866102, 2865634940, 3543621612, 3464012697, 1080764994, 553557557, 3656615353, 3996768171, 991055499, 499776247, 1265440854, 648242737, 3940784050, 980351604, 3713745714, 1749149687, 3396870395, 4211799374, 3640570775, 1161844396, 3125318951, 1431517754, 545492359, 4268468663, 3499529547);
_local1 = 0;
while (_local1 <= 63) {
__blowfish.blf_S[2][_local1] = _local3[_local1];
_local1++;
}
_local3 = new Array(1437099964, 2702547544, 3433638243, 2581715763, 2787789398, 1060185593, 1593081372, 2418618748, 4260947970, 69676912, 2159744348, 86519011, 2512459080, 3838209314, 1220612927, 3339683548, 133810670, 1090789135, 1078426020, 1569222167, 845107691, 3583754449, 4072456591, 1091646820, 628848692, 1613405280, 3757631651, 526609435, 236106946, 48312990, 2942717905, 3402727701, 1797494240, 859738849, 992217954, 4005476642, 2243076622, 3870952857, 3732016268, 765654824, 3490871365, 2511836413, 1685915746, 3888969200, 1414112111, 2273134842, 3281911079, 4080962846, 172450625, 2569994100, 980381355, 4109958455, 2819808352, 2716589560, 2568741196, 3681446669, 3329971472, 1835478071, 660984891, 3704678404, 4045999559, 3422617507, 3040415634, 1762651403);
_local1 = 0;
while (_local1 <= 63) {
__blowfish.blf_S[2][_local1 + 64] = _local3[_local1];
_local1++;
}
_local3 = new Array(1719377915, 3470491036, 2693910283, 3642056355, 3138596744, 1364962596, 2073328063, 1983633131, 926494387, 3423689081, 2150032023, 4096667949, 1749200295, 3328846651, 309677260, 2016342300, 1779581495, 3079819751, 111262694, 1274766160, 443224088, 298511866, 1025883608, 3806446537, 1145181785, 168956806, 3641502830, 3584813610, 1689216846, 3666258015, 3200248200, 1692713982, 2646376535, 4042768518, 1618508792, 1610833997, 3523052358, 4130873264, 2001055236, 3610705100, 2202168115, 4028541809, 2961195399, 1006657119, 2006996926, 3186142756, 1430667929, 3210227297, 1314452623, 4074634658, 4101304120, 2273951170, 1399257539, 3367210612, 3027628629, 1190975929, 2062231137, 2333990788, 2221543033, 2438960610, 1181637006, 548689776, 2362791313, 3372408396);
_local1 = 0;
while (_local1 <= 63) {
__blowfish.blf_S[2][_local1 + 128] = _local3[_local1];
_local1++;
}
_local3 = new Array(3104550113, 3145860560, 296247880, 1970579870, 3078560182, 3769228297, 1714227617, 3291629107, 3898220290, 166772364, 1251581989, 493813264, 448347421, 195405023, 2709975567, 677966185, 3703036547, 1463355134, 2715995803, 1338867538, 1343315457, 2802222074, 2684532164, 233230375, 2599980071, 2000651841, 3277868038, 1638401717, 4028070440, 3237316320, 6314154, 819756386, 300326615, 590932579, 1405279636, 3267499572, 3150704214, 2428286686, 3959192993, 3461946742, 1862657033, 1266418056, 963775037, 2089974820, 2263052895, 1917689273, 448879540, 3550394620, 3981727096, 150775221, 3627908307, 1303187396, 508620638, 2975983352, 2726630617, 1817252668, 1876281319, 1457606340, 908771278, 3720792119, 3617206836, 2455994898, 1729034894, 1080033504);
_local1 = 0;
while (_local1 <= 63) {
__blowfish.blf_S[2][_local1 + 192] = _local3[_local1];
_local1++;
}
_local3 = new Array(976866871, 3556439503, 2881648439, 1522871579, 1555064734, 1336096578, 3548522304, 2579274686, 3574697629, 3205460757, 3593280638, 3338716283, 3079412587, 564236357, 2993598910, 1781952180, 1464380207, 3163844217, 3332601554, 1699332808, 1393555694, 1183702653, 3581086237, 1288719814, 691649499, 2847557200, 2895455976, 3193889540, 2717570544, 1781354906, 1676643554, 2592534050, 3230253752, 1126444790, 2770207658, 2633158820, 2210423226, 2615765581, 2414155088, 3127139286, 673620729, 2805611233, 1269405062, 4015350505, 3341807571, 4149409754, 1057255273, 2012875353, 2162469141, 2276492801, 2601117357, 993977747, 3918593370, 2654263191, 753973209, 36408145, 2530585658, 25011837, 3520020182, 2088578344, 530523599, 2918365339, 1524020338, 1518925132);
_local1 = 0;
while (_local1 <= 63) {
__blowfish.blf_S[3][_local1] = _local3[_local1];
_local1++;
}
_local3 = new Array(3760827505, 3759777254, 1202760957, 3985898139, 3906192525, 674977740, 4174734889, 2031300136, 2019492241, 3983892565, 4153806404, 3822280332, 352677332, 2297720250, 60907813, 90501309, 3286998549, 1016092578, 2535922412, 2839152426, 457141659, 509813237, 4120667899, 652014361, 1966332200, 2975202805, 55981186, 2327461051, 676427537, 3255491064, 2882294119, 3433927263, 1307055953, 942726286, 933058658, 2468411793, 3933900994, 4215176142, 1361170020, 2001714738, 2830558078, 3274259782, 1222529897, 1679025792, 2729314320, 3714953764, 1770335741, 151462246, 3013232138, 1682292957, 1483529935, 471910574, 1539241949, 458788160, 3436315007, 1807016891, 3718408830, 978976581, 1043663428, 3165965781, 1927990952, 4200891579, 2372276910, 3208408903);
_local1 = 0;
while (_local1 <= 63) {
__blowfish.blf_S[3][_local1 + 64] = _local3[_local1];
_local1++;
}
_local3 = new Array(3533431907, 1412390302, 2931980059, 4132332400, 1947078029, 3881505623, 4168226417, 2941484381, 1077988104, 1320477388, 886195818, 18198404, 3786409000, 2509781533, 112762804, 3463356488, 1866414978, 891333506, 18488651, 661792760, 1628790961, 3885187036, 3141171499, 876946877, 2693282273, 1372485963, 791857591, 2686433993, 3759982718, 3167212022, 3472953795, 2716379847, 445679433, 3561995674, 3504004811, 3574258232, 54117162, 3331405415, 2381918588, 3769707343, 4154350007, 1140177722, 4074052095, 668550556, 3214352940, 367459370, 261225585, 2610173221, 4209349473, 3468074219, 3265815641, 314222801, 3066103646, 3808782860, 282218597, 3406013506, 3773591054, 379116347, 1285071038, 846784868, 2669647154, 3771962079, 3550491691, 2305946142);
_local1 = 0;
while (_local1 <= 63) {
__blowfish.blf_S[3][_local1 + 128] = _local3[_local1];
_local1++;
}
_local3 = new Array(453669953, 1268987020, 3317592352, 3279303384, 3744833421, 2610507566, 3859509063, 266596637, 3847019092, 517658769, 3462560207, 3443424879, 370717030, 4247526661, 2224018117, 4143653529, 4112773975, 2788324899, 2477274417, 1456262402, 2901442914, 1517677493, 1846949527, 2295493580, 3734397586, 2176403920, 1280348187, 1908823572, 3871786941, 846861322, 1172426758, 3287448474, 3383383037, 1655181056, 3139813346, 901632758, 1897031941, 2986607138, 3066810236, 3447102507, 1393639104, 373351379, 950779232, 625454576, 3124240540, 4148612726, 2007998917, 544563296, 2244738638, 2330496472, 2058025392, 1291430526, 424198748, 50039436, 29584100, 3605783033, 2429876329, 2791104160, 1057563949, 3255363231, 3075367218, 3463963227, 1469046755, 985887462);
_local1 = 0;
while (_local1 <= 63) {
__blowfish.blf_S[3][_local1 + 192] = _local3[_local1];
_local1++;
}
var _local7;
var _local6;
var _local5;
var _local4;
_local2 = 0;
_local1 = 0;
while (_local1 <= 17) {
_local7 = 0;
_local8 = 0;
while (_local8 <= 3) {
_local7 = (_local7 << 8) | _local11[_local2];
_local2 = _local2 + 1;
if (_local2 >= _local10) {
_local2 = 0;
}
_local8++;
}
__blowfish.blf_P[_local1] = __blowfish.blf_P[_local1] ^ _local7;
_local1++;
}
_local6 = 0;
_local5 = 0;
_local1 = 0;
while (_local1 <= 17) {
_local4 = DoBlowEnc(_local6, _local5);
__blowfish.blf_P[_local1] = _local4[0];
__blowfish.blf_P[_local1 + 1] = _local4[1];
_local6 = _local4[0];
_local5 = _local4[1];
_local1 = _local1 + 2;
}
_local1 = 0;
while (_local1 <= 3) {
_local2 = 0;
while (_local2 <= 255) {
_local4 = DoBlowEnc(_local6, _local5);
__blowfish.blf_S[_local1][_local2] = _local4[0];
__blowfish.blf_S[_local1][_local2 + 1] = _local4[1];
_local6 = _local4[0];
_local5 = _local4[1];
_local2 = _local2 + 2;
}
_local1++;
}
}
static function enc64str(intxt) {
var _local13;
var _local17;
var _local11;
var _local1;
var _local2;
var _local4 = [];
var _local3 = [];
var _local16;
var _local15;
var _local9;
var _local8;
var _local7;
var _local6;
var _local12;
var _local14;
_local17 = intxt.length;
_local14 = ((int(_local17 / 8) + 1) * 8) - _local17;
_local12 = "";
_local1 = 0;
while (_local1 <= _local14) {
_local12 = _local12 + chr(_local14);
_local1++;
}
intxt = intxt + _local12;
_local17 = intxt.length;
_local11 = int(_local17 / 8);
_local1 = 0;
while (_local1 < _local11) {
_local2 = 0;
while (_local2 <= 3) {
_local4[_local2] = intxt.charCodeAt((_local1 * 8) + _local2);
_local2++;
}
_local16 = (((_local4[0] << 24) | (_local4[1] << 16)) | (_local4[2] << 8)) | _local4[3];
_local2 = 0;
while (_local2 <= 3) {
_local4[_local2] = intxt.charCodeAt(((_local1 * 8) + _local2) + 4);
_local2++;
}
_local15 = (((_local4[0] << 24) | (_local4[1] << 16)) | (_local4[2] << 8)) | _local4[3];
_local3[_local1 * 2] = _local16;
_local3[(_local1 * 2) + 1] = _local15;
_local1++;
}
_local1 = 0;
while (_local1 < (_local11 * 2)) {
var _local10 = DoBlowEnc(_local3[_local1], _local3[_local1 + 1]);
_local3[_local1] = _local10[0];
_local3[_local1 + 1] = _local10[1];
_local1 = _local1 + 2;
}
_local13 = [];
_local1 = 0;
while (_local1 < _local11) {
_local9 = (_local3[_local1 * 2] & 4278190080) >>> 24;
_local8 = (_local3[_local1 * 2] & 16711680) >>> 16;
_local7 = (_local3[_local1 * 2] & 65280) >>> 8;
_local6 = _local3[_local1 * 2] & 255;
_local13.push(_local9, _local8, _local7, _local6);
_local9 = (_local3[(_local1 * 2) + 1] & 4278190080) >>> 24;
_local8 = (_local3[(_local1 * 2) + 1] & 16711680) >>> 16;
_local7 = (_local3[(_local1 * 2) + 1] & 65280) >>> 8;
_local6 = _local3[(_local1 * 2) + 1] & 255;
_local13.push(_local9, _local8, _local7, _local6);
_local1++;
}
return(com.candystand.ScoreSubmit.Base64.Encode64(_local13));
}
static function dec64str(intxt) {
var _local5;
var _local16;
var _local12;
var _local1;
var _local2;
var _local4 = [];
var _local3 = [];
var _local14;
var _local13;
var _local10;
var _local9;
var _local8;
var _local7;
var _local15;
var _local6;
_local6 = com.candystand.ScoreSubmit.Base64.Decode64(intxt);
_local16 = _local6.length;
_local12 = int(_local16 / 8);
_local1 = 0;
while (_local1 < _local12) {
_local2 = 0;
while (_local2 <= 3) {
_local4[_local2] = _local6[(_local1 * 8) + _local2];
_local2++;
}
_local14 = (((_local4[0] << 24) | (_local4[1] << 16)) | (_local4[2] << 8)) | _local4[3];
_local2 = 0;
while (_local2 <= 3) {
_local4[_local2] = _local6[((_local1 * 8) + _local2) + 4];
_local2++;
}
_local13 = (((_local4[0] << 24) | (_local4[1] << 16)) | (_local4[2] << 8)) | _local4[3];
_local3[_local1 * 2] = _local14;
_local3[(_local1 * 2) + 1] = _local13;
_local1++;
}
_local1 = 0;
while (_local1 < (_local12 * 2)) {
var _local11 = DoBlowDec(_local3[_local1], _local3[_local1 + 1]);
_local3[_local1] = _local11[0];
_local3[_local1 + 1] = _local11[1];
_local1 = _local1 + 2;
}
_local5 = "";
_local1 = 0;
while (_local1 < _local12) {
_local10 = (_local3[_local1 * 2] & 4278190080) >>> 24;
_local9 = (_local3[_local1 * 2] & 16711680) >>> 16;
_local8 = (_local3[_local1 * 2] & 65280) >>> 8;
_local7 = _local3[_local1 * 2] & 255;
_local5 = _local5 + String.fromCharCode(_local10, _local9, _local8, _local7);
_local10 = (_local3[(_local1 * 2) + 1] & 4278190080) >>> 24;
_local9 = (_local3[(_local1 * 2) + 1] & 16711680) >>> 16;
_local8 = (_local3[(_local1 * 2) + 1] & 65280) >>> 8;
_local7 = _local3[(_local1 * 2) + 1] & 255;
_local5 = _local5 + String.fromCharCode(_local10, _local9, _local8, _local7);
_local1++;
}
_local15 = _local5.slice(-1).charCodeAt(0);
if (_local15 > 8) {
_local15 = 0;
}
_local5 = _local5.substring(0, _local5.length - _local15);
return(_local5);
}
static function DoBlowEnc(dat1, dat2) {
var _local2;
var _local4;
var _local5 = [];
_local2 = 0;
while (_local2 <= 15) {
dat1 = dat1 ^ __blowfish.blf_P[_local2];
dat2 = dat2 ^ blf_F(dat1);
_local4 = dat1;
dat1 = dat2;
dat2 = _local4;
_local2++;
}
_local4 = dat1;
dat1 = dat2;
dat2 = _local4;
dat2 = dat2 ^ __blowfish.blf_P[16];
dat1 = dat1 ^ __blowfish.blf_P[17];
_local5[0] = dat1;
_local5[1] = dat2;
return(_local5);
}
static function DoBlowDec(dat1, dat2) {
var _local5 = [];
var _local1;
var _local4;
_local1 = 17;
while (_local1 >= 2) {
dat1 = dat1 ^ __blowfish.blf_P[_local1];
dat2 = dat2 ^ blf_F(dat1);
_local4 = dat1;
dat1 = dat2;
dat2 = _local4;
_local1 = _local1 - 1;
}
_local4 = dat1;
dat1 = dat2;
dat2 = _local4;
dat2 = dat2 ^ __blowfish.blf_P[1];
dat1 = dat1 ^ __blowfish.blf_P[0];
_local5[0] = dat1;
_local5[1] = dat2;
return(_local5);
}
static function blf_F(x) {
var _local6;
var _local5;
var _local4;
var _local3;
var _local1;
_local6 = (x & 4278190080) >>> 24;
_local5 = (x & 16711680) >>> 16;
_local4 = (x & 65280) >>> 8;
_local3 = x & 255;
_local1 = __blowfish.blf_S[0][_local6] + __blowfish.blf_S[1][_local5];
_local1 = _local1 ^ __blowfish.blf_S[2][_local4];
_local1 = _local1 + __blowfish.blf_S[3][_local3];
return(_local1);
}
}
Symbol 424 MovieClip [__Packages.com.candystand.ScoreSubmit.Base64] Frame 0
class com.candystand.ScoreSubmit.Base64
{
function Base64 () {
}
static function Encode64(intxt) {
var _local5;
var _local6;
var _local8;
var _local4;
var _local1;
var _local2 = [];
var _local10;
var _local9;
var _local7 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
_local6 = intxt.length;
_local8 = int(_local6 / 3);
_local5 = "";
_local4 = 0;
while (_local4 < _local8) {
_local1 = 0;
while (_local1 <= 2) {
if (typeof(intxt) == "string") {
_local2[_local1] = intxt.charCodeAt((_local4 * 3) + _local1);
} else {
_local2[_local1] = intxt[(_local4 * 3) + _local1];
}
_local1++;
}
_local5 = _local5 + Encq(_local2, _local7);
_local4++;
}
_local10 = _local6 % 3;
if (_local10 == 1) {
if (typeof(intxt) == "string") {
_local2[0] = intxt.charCodeAt(_local6 - 1);
_local2[1] = 0;
_local2[2] = 0;
} else {
_local2[0] = intxt[_local6 - 1];
_local2[1] = 0;
_local2[2] = 0;
}
_local9 = Encq(_local2, _local7);
_local5 = (_local5 + _local9.slice(0, 2)) + "==";
}
if (_local10 == 2) {
if (typeof(intxt) == "string") {
_local2[0] = intxt.charCodeAt(_local6 - 2);
_local2[1] = intxt.charCodeAt(_local6 - 1);
_local2[2] = 0;
} else {
_local2[0] = intxt[_local6 - 2];
_local2[1] = intxt[_local6 - 1];
_local2[2] = 0;
}
_local9 = Encq(_local2, _local7);
_local5 = (_local5 + _local9.slice(0, 3)) + "=";
}
return(_local5);
}
static function Decode64(intxt) {
var _local11;
var _local3 = new Array();
var _local8 = new Array();
var _local10 = new Array();
var _local2;
var _local4;
var _local6;
var _local7;
var _local1 = new Array();
var _local5;
_local11 = "";
_local2 = 0;
_local4 = 0;
while (_local4 <= 255) {
_local8[_local4] = -1;
_local4++;
}
_local8.splice(43, 1, 62);
_local8.splice(47, 11, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61);
_local8.splice(61, 1, 64);
_local8.splice(65, 26, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25);
_local8.splice(97, 26, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51);
_local6 = 0;
while (_local6 < intxt.length) {
_local7 = _local8[intxt.charCodeAt(_local6)];
if (_local7 >= 0) {
_local3[_local2] = _local7;
_local2++;
if (_local2 == 4) {
_local5 = Decq(_local3);
_local1.push(_local5[0]);
_local1.push(_local5[1]);
_local1.push(_local5[2]);
if (_local3[3] == 64) {
_local1.pop();
}
if (_local3[2] == 64) {
_local1.pop();
}
_local2 = 0;
}
}
_local6++;
}
return(_local1);
}
static function Encq(btab, etab) {
var _local1;
var _local2;
_local1 = "";
_local2 = (btab[0] >> 2) & 63;
_local1 = _local1 + etab.charAt(_local2);
_local2 = ((btab[0] & 3) << 4) | ((btab[1] >> 4) & 15);
_local1 = _local1 + etab.charAt(_local2);
_local2 = ((btab[1] & 15) << 2) | ((btab[2] >> 6) & 3);
_local1 = _local1 + etab.charAt(_local2);
_local2 = btab[2] & 63;
_local1 = _local1 + etab.charAt(_local2);
return(_local1);
}
static function Decq(btab) {
var _local3 = new Array();
var _local1;
var _local4 = "";
_local1 = (btab[0] << 2) | ((btab[1] >> 4) & 3);
_local3[0] = _local1;
_local1 = ((btab[1] & 15) << 4) | ((btab[2] >> 2) & 15);
_local3[1] = _local1;
_local1 = ((btab[2] & 3) << 6) | btab[3];
_local3[2] = _local1;
return(_local3);
}
}
Symbol 425 MovieClip [__Packages.com.candystand.ScoreSubmit.MD5] Frame 0
class com.candystand.ScoreSubmit.MD5
{
function MD5 () {
}
static function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * __chrsz)));
}
static function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * __chrsz)));
}
static function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * __chrsz)));
}
static function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
static function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
static function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
static function md5_vm_test() {
return(hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72");
}
static function core_md5(x, len) {
var _local10;
var _local9;
var _local8;
var _local7;
x[len >> 5] = x[len >> 5] | (128 << (len & 31));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local11 = x.length;
var _local5 = 0;
while (_local5 < _local11) {
_local10 = _local4;
_local9 = _local3;
_local8 = _local2;
_local7 = _local1;
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
var _local13 = Array(_local4, _local3, _local2, _local1);
return(_local13);
}
static function md5_cmn(q, a, b, x, s, t) {
var _local1 = safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b);
return(_local1);
}
static function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
static function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
static function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
static function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
static function core_hmac_md5(key, data) {
var _local2 = str2binl(key);
if (_local2.length > 16) {
_local2 = core_md5(_local2, key.length * __chrsz);
}
var _local3 = Array(16);
var _local4 = Array(16);
var _local1 = 0;
while (_local1 < 16) {
_local3[_local1] = _local2[_local1] ^ 909522486;
_local4[_local1] = _local2[_local1] ^ 1549556828;
_local1++;
}
var _local5 = core_md5(_local3.concat(str2binl(data)), 512 + (data.length * __chrsz));
return(core_md5(_local4.concat(_local5), 640));
}
static function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
static function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
static function str2binl(str) {
var _local2 = Array();
var _local3 = (1 << __chrsz) - 1;
var _local4 = str.length * __chrsz;
var _local1 = 0;
while (_local1 < _local4) {
_local2[_local1 >> 5] = _local2[_local1 >> 5] | ((str.charCodeAt(_local1 / __chrsz) & _local3) << (_local1 & 31));
_local1 = _local1 + __chrsz;
}
return(_local2);
}
static function binl2str(bin) {
var _local2 = "";
var _local3 = (1 << __chrsz) - 1;
var _local4 = bin.length * 32;
var _local1 = 0;
while (_local1 < _local4) {
_local2 = _local2 + String.fromCharCode((bin[_local1 >> 5] >>> (_local1 & 31)) & _local3);
_local1 = _local1 + __chrsz;
}
return(_local2);
}
static function binl2hex(binarray) {
var _local2 = (__hexcase ? "0123456789ABCDEF" : "0123456789abcdef");
var _local4 = "";
var _local5 = binarray.length * 4;
var _local1 = 0;
while (_local1 < _local5) {
_local4 = _local4 + (_local2.charAt((binarray[_local1 >> 2] >> (((_local1 & 3) * 8) + 4)) & 15) + _local2.charAt((binarray[_local1 >> 2] >> ((_local1 & 3) * 8)) & 15));
_local1++;
}
return(_local4);
}
static function binl2b64(binarray) {
var _local8 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local5 = "";
var _local6 = binarray.length * 4;
var _local7 = 4 * _local6;
var _local1 = 0;
while (_local1 < _local6) {
var _local4 = ((((binarray[_local1 >> 2] >> (8 * (_local1 & 3))) & 255) << 16) | (((binarray[(_local1 + 1) >> 2] >> (8 * ((_local1 + 1) & 3))) & 255) << 8)) | ((binarray[(_local1 + 2) >> 2] >> (8 * ((_local1 + 2) & 3))) & 255);
_local1 = _local1 + 3;
}
var _local2 = 0;
while (_local2 < 4) {
if (((_local1 * 8) + (_local2 * 6)) > _local7) {
_local5 = _local5 + __b64pad;
} else {
_local5 = _local5 + _local8.charAt((_local4 >> (6 * (3 - _local2))) & 63);
}
_local2++;
}
return(_local5);
}
static var __hexcase = 0;
static var __b64pad = "";
static var __chrsz = 8;
}
Symbol 178 MovieClip Frame 1
onEnterFrame = function () {
_yscale = (80 + (Math.random() * 20));
_xscale = (80 + (Math.random() * 20));
};
Symbol 180 MovieClip Frame 1
onEnterFrame = function () {
_alpha = (90 + (Math.random() * 20));
};
Symbol 184 Button
on (rollOver) {
_root.play_on.start();
}
on (release) {
getURL (sponsorurl, "_blank");
_root.play_pre.start();
}
Symbol 188 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.lvl != 0) {
x = Math.ceil(_root.lvl / 10);
if (x != _currentframe) {
gotoAndStop(x);
}
}
};
Symbol 191 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation + 1);
_yscale = (80 + (Math.random() * 40));
_xscale = (80 + (Math.random() * 40));
};
Symbol 195 MovieClip Frame 30
onEnterFrame = function () {
if (_currentframe == 30) {
xx = Math.round(Math.random() * 7);
yy = Math.round(Math.random() * 6);
_x = (45 + (xx * 100));
_y = (50 + (yy * 75.5));
}
};
Symbol 196 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation + 1);
_alpha = (100 + (Math.random() * 20));
if (_xscale > 125) {
_yscale = (_yscale - 25);
_xscale = (_yscale - 25);
}
};
Symbol 208 Button
on (release) {
if (_root.music == 2) {
_root.music = 1;
new Sound().setVolume(0);
} else {
_root.music = 2;
new Sound().setVolume(100);
}
}
Symbol 210 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_root.music);
};
Symbol 218 Button
on (release) {
if (_root.inform == 2) {
_root.inform = 1;
i = 0;
while (i < 6) {
j = 0;
while (j < 11) {
obj = _root.back[("tesla" + i) + j];
obj.inform._visible = false;
j = j + 1;
}
i = i + 1;
}
} else {
_root.inform = 2;
i = 0;
while (i < 6) {
j = 0;
while (j < 11) {
obj = _root.back[("tesla" + i) + j];
obj.inform._visible = true;
j = j + 1;
}
i = i + 1;
}
}
}
Symbol 220 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_root.inform);
};
Symbol 233 Button
on (release) {
if (_root.begin > -1) {
_root.menu_screen.gotoAndPlay(2);
_root.menu_screen.tar = "submit";
_root.begin = -1;
_root.lvl = 0;
}
}
Symbol 240 Button
on (release) {
if (_root.begin > -1) {
_root.endLevel(1);
_root.begin = -1;
}
}
Symbol 246 Button
on (rollOver) {
_root.play_on.start();
}
on (release) {
_root.submitScore();
_root.play_pre.start();
}
Symbol 249 Button
on (rollOver) {
_root.play_on.start();
}
on (release) {
getURL (walkurl, "_blank");
_root.play_pre.start();
}
Symbol 262 MovieClip Frame 1
_visible = false;
stop();
Symbol 262 MovieClip Frame 3
_visible = true;
Symbol 262 MovieClip Frame 40
_root.back.gotoAndStop(1);
_root.loadLevel(_root["level" + _root.lvl]);
Symbol 265 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation + 1);
_yscale = (250 + (Math.random() * 100));
_xscale = (250 + (Math.random() * 100));
};
Symbol 276 Button
on (release) {
if (_root.begin == -2) {
_root.totalscore = _root.totalscore + (_root.score + _root.bonus);
_root.win_screen.tablo.play();
_root.begin = -1;
_root.win_screen.play();
_root.menu_type = 2;
}
}
Symbol 283 Button
on (release) {
if (_root.begin == -2) {
_root.win_screen.tablo.play();
_root.begin = -1;
_root.win_screen.play();
_root.menu_type = 3;
_root.begin_type = 1;
}
}
Symbol 284 Button
on (release) {
if (_root.begin == -2) {
_root.win_screen.tablo.play();
_root.begin = -1;
_root.win_screen.play();
_root.menu_type = 1;
}
}
Symbol 291 Button
on (release) {
if (_root.begin == -2) {
_root.totalscore = _root.totalscore + (_root.score + _root.bonus);
_root.win_screen.tablo.play();
_root.begin = -1;
_root.win_screen.play();
_root.menu_type = 3;
_root.begin_type = 1;
}
}
Symbol 292 Button
on (release) {
if (_root.begin == -2) {
_root.win_screen.tablo.play();
_root.begin = -1;
_root.win_screen.play();
_root.menu_type = 2;
_root.begin_type = 2;
}
}
Symbol 293 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 2
if (_root.score < _root.need_score) {
text1.rec.gotoAndStop(1);
} else {
text1.rec.gotoAndStop(2);
_root.createStar(320 - (text1.rec._width / 2), 400 + text1._y, text1.rec._width, text1.rec._height, 10);
_root.play_laser1.start();
}
text1.txt.text = _root.score;
Symbol 321 MovieClip Frame 12
_root.bonus = 0;
have = ((_root.minute * 1800) + (_root.sec * 30)) + _root.msec;
need = (_root.need_min * 1800) + (_root.need_sec * 30);
if (have < need) {
_root.bonus = Math.round((need - have) / 5);
}
if (need < have) {
text2.rec.gotoAndStop(1);
} else {
text2.rec.gotoAndStop(2);
_root.createStar(320 - (text2.rec._width / 2), 400 + text2._y, text2.rec._width, text2.rec._height, 10);
_root.play_laser2.start();
}
text2.txt.text = _root.bonus;
Symbol 321 MovieClip Frame 22
_root.medal = (text1.rec._currentframe + text2.rec._currentframe) - 1;
text3.rec.gotoAndStop(_root.medal);
if (_root.medal > 1) {
_root.createStar(320 - (text3.rec._width / 2), 400 + text3._y, text3.rec._width, text3.rec._height, 20);
_root.play_laser3.start();
}
text3.txt.text = (_root.totalscore + _root.score) + _root.bonus;
Symbol 321 MovieClip Frame 27
stop();
Symbol 324 MovieClip Frame 1
_visible = false;
stop();
Symbol 324 MovieClip Frame 2
_visible = true;
Symbol 324 MovieClip Frame 9
_root.back.gotoAndStop(2);
_root.levelClear();
Symbol 324 MovieClip Frame 10
if (_root.lvl == 40) {
text_win.text = "Game Complete!";
} else {
text_win.text = "Level Complete";
}
Symbol 324 MovieClip Frame 23
if (_root.lvl == 40) {
buttons.gotoAndStop(2);
} else {
buttons.gotoAndStop(1);
}
Symbol 324 MovieClip Frame 43
stop();
tablo.play();
_root.begin = -2;
Symbol 324 MovieClip Frame 60
if (_root.lvl >= _root.my_lvl) {
_root.my_lvl = _root.lvl + 1;
_root.my_so.data.my_lvl = _root.my_lvl;
_root.my_so.flush();
}
if (_root.lvlmedal[_root.lvl] < _root.medal) {
_root.lvlmedal[_root.lvl] = _root.medal;
_root.my_so.data.lvlmedal[_root.lvl] = _root.medal;
_root.my_so.flush();
}
switch (_root.menu_type) {
case 1 :
_root.level_screen.text_level.text = String("Level " + _root.lvl);
_root.level_screen.gotoAndPlay(2);
break;
case 2 :
_root.lvl = _root.lvl + 1;
if (_root.lvl == 41) {
_root.lvl = 1;
_root.menu_screen.gotoAndPlay(2);
} else {
_root.level_screen.text_level.text = String("Level " + _root.lvl);
_root.level_screen.gotoAndPlay(2);
}
break;
case 3 :
_root.menu_screen.gotoAndPlay(2);
}
Symbol 332 MovieClip Frame 1
stop();
if (_root.lvl > 0) {
if (_root.lvl == 40) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
Symbol 335 Button
on (rollOver) {
gotoAndPlay ("on");
}
on (rollOut) {
gotoAndPlay ("off");
}
on (release) {
if (_root.begin == -2) {
gotoAndPlay (1);
_root.begin = -1;
switch (_parent.tar) {
case "main" :
switch (_name) {
case "but1" :
openMenu("select");
break;
case "but2" :
openMenu("achi");
break;
case "but3" :
_root.submitScore();
break;
case "but4" :
openMenu("credit");
break;
case "but5" :
_root.begin = -2;
getURL (sponsorurl, "_blank");
break;
case "but6" :
_root.begin = -2;
getURL (walkurl, "_blank");
}
break;
case "score" :
switch (_name) {
case "but1" :
if (_root.lvl == 40) {
_root.submitScore();
} else {
openMenu("select");
}
_root.lvl = 0;
break;
case "but2" :
_root.menu_screen.play();
break;
case "but3" :
if (_root.lvl == 40) {
openMenu("main");
} else {
_root.submitScore();
}
_root.lvl = 0;
break;
case "but4" :
openMenu("select");
break;
case "but5" :
_root.begin = -2;
getURL (sponsorurl, "_blank");
}
break;
case "submit" :
switch (_name) {
case "but1" :
_root.submitScore();
break;
case "but2" :
openMenu("main");
}
break;
case "select" :
case "achi" :
case "credit" :
case "walk" :
openMenu("main");
break;
case "help" :
_root.menu_screen.play();
}
_root.play_pre.start();
}
}
Symbol 339 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 8
stop();
Symbol 350 Button
on (release) {
if (_root.begin == -2) {
_root.begin = -1;
_root.lvl = id;
if (_root.help == true) {
_root.help = false;
openMenu("help");
} else {
_root.menu_screen.play();
}
}
}
Symbol 357 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 12
stop();
Symbol 385 MovieClip Frame 1
rectxt._visible = false;
addtxt._visible = false;
totaladd = 0;
meter.eff._visible = true;
medal = 0;
snd_timer = 0;
score = _root.score;
totalscore = _root.totalscore;
score_add = 0;
half = _root[("level" + _root.lvl) + "s"] / 2;
step = 200 / _root[("level" + _root.lvl) + "s"];
plus = (Math.round(score / 1000) * 5) + 5;
i = 0;
while (i < 3) {
if (_root.lvlmedal[_root.lvl] > i) {
meter["star" + i].gotoAndStop("on");
}
i++;
}
medal_have = Math.ceil((score + 1) / half);
if (_root.lvlmedal[_root.lvl] < medal_have) {
_root.lvlmedal[_root.lvl] = medal_have;
_root.my_so.data.lvlmedal[_root.lvl] = medal_have;
}
trace("have=" + medal_have);
if (_root.lvlmedal[_root.lvl + 1] == undefined) {
_root.lvlmedal[_root.lvl + 1] = 0;
_root.my_so.data.lvlmedal[_root.lvl + 1] = 0;
}
if (_root.lvlrec[_root.lvl] == undefined) {
totaladd = score;
} else if (score > _root.lvlrec[_root.lvl]) {
totaladd = score - _root.lvlrec[_root.lvl];
}
if (totaladd > 0) {
_root.lvlrec[_root.lvl] = score;
_root.my_so.data.lvlrec[_root.lvl] = score;
rectxt._visible = true;
addtxt._visible = true;
addtxt.text = ("(+" + totaladd) + ")";
}
_root.my_so.flush();
scorex.text = score;
_root.totalscore = totalscore + totaladd;
totalscorex.text = _root.totalscore;
rectxt._x = (scorex._x + scorex.textWidth) + 10;
addtxt._x = (totalscorex._x + totalscorex.textWidth) + 10;
onEnterFrame = function () {
if (score > 0) {
if (score > plus) {
totalscore = totalscore + plus;
meter.eff._x = meter.eff._x + (step * plus);
score = score - plus;
score_add = score_add + plus;
} else {
totalscore = totalscore + score;
meter.eff._x = meter.eff._x + (step * score);
score_add = score_add + score;
score = 0;
}
if (snd_timer == 0) {
_root.play_score.start();
snd_timer = 2;
} else {
snd_timer--;
}
}
if (medal < 3) {
meter.eff._x = step * score_add;
if (score_add >= (half * medal)) {
meter["star" + medal].gotoAndPlay(2);
if (medal < 2) {
_root.play_record.start();
} else {
_root.play_medal.start();
}
medal++;
}
} else if (medal == 3) {
meter.eff._visible = false;
meter.eff._x = 0;
medal = 4;
}
};
Symbol 405 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 1
cur.gotoAndStop(1);
e1.gotoAndStop(2);
e2.gotoAndStop(2);
e3.gotoAndStop(2);
e4.gotoAndStop(2);
e5.gotoAndStop(2);
Symbol 406 MovieClip Frame 20
cur.gotoAndStop(2);
e1.gotoAndStop(1);
Symbol 406 MovieClip Frame 34
e2.gotoAndStop(1);
Symbol 406 MovieClip Frame 44
e3.gotoAndStop(1);
Symbol 406 MovieClip Frame 54
e4.gotoAndStop(1);
Symbol 406 MovieClip Frame 64
e5.gotoAndStop(1);
Symbol 406 MovieClip Frame 70
cur.gotoAndStop(1);
Symbol 409 MovieClip Frame 1
close = false;
_alpha = 0;
tar = "close";
gotoAndStop(tar);
onEnterFrame = function () {
if (close == false) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
} else if (_alpha != 100) {
_alpha = 100;
}
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
_alpha = 0;
close = false;
gotoAndStop(tar);
_root.begin = -2;
}
};
Symbol 409 MovieClip Frame 2
stop();
but1.img.title = "START GAME";
but2.img.title = "Achievements";
but3.img.title = "Submit Score";
but4.img.title = "Credits";
but5.img.title = "More Games";
but6.img.title = "Walkthrough";
Symbol 409 MovieClip Frame 3
but1.img.title = "Main Menu";
stat_lvl = 0;
stat_star = 0;
i = 1;
while (i < 41) {
z = this["lvl" + i];
z.id = i;
if (_root.lvlmedal[i] != undefined) {
z.gotoAndStop(_root.lvlmedal[i] + 2);
stat_lvl++;
stat_star = stat_star + _root.lvlmedal[i];
}
i++;
}
Symbol 409 MovieClip Frame 4
if (_root.lvl == 40) {
but1.img.title = "SUBMIT SCORE";
but3.img.title = "Main Menu";
} else {
but1.img.title = "CONTINUE";
but3.img.title = "Submit Score";
}
but2.img.title = "Restart";
but4.img.title = "Level Select";
but5.img.title = "More Games";
title = ("LEVEL " + _root.lvl) + " RESULTS";
Symbol 409 MovieClip Frame 5
but1.img.title = "Main Menu";
Symbol 409 MovieClip Frame 6
but1.img.title = "SUBMIT SCORE";
but2.img.title = "Main Menu";
Symbol 409 MovieClip Frame 7
but1.img.title = "Main Menu";
Symbol 409 MovieClip Frame 8
but1.img.title = "Main Menu";
Symbol 409 MovieClip Frame 9
but1.img.title = "Continue";
Symbol 411 MovieClip Frame 1
_visible = false;
stop();
Symbol 411 MovieClip Frame 2
_visible = true;
_root.showscore._visible = false;
play();
Symbol 411 MovieClip Frame 9
_root.back.gotoAndStop(2);
_root.levelClear();
_root.menu_type = 0;
Symbol 411 MovieClip Frame 31
_root.menu_type = _root.begin_type;
Symbol 411 MovieClip Frame 44
stop();
_root.begin = -2;
openMenu(tar);
Symbol 411 MovieClip Frame 56
_root.level_screen.text_level.text = String("Level " + _root.lvl);
_root.level_screen.gotoAndPlay(2);
Symbol 411 MovieClip Frame 68
_root.back.gotoAndStop(1);
Symbol 417 MovieClip Frame 1
stop();
_alpha = 0;
needload = false;
onEnterFrame = function () {
if (action != undefined) {
gotoAndStop(action);
switch (action) {
case "LOAD" :
needload = true;
case "SAVE" :
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
break;
case "DONE" :
if (needload == true) {
_root.loadLevel(map);
needload = false;
}
case "NO" :
if (_alpha <= 0) {
break;
}
_alpha = (_alpha - 5);
}
if (_alpha < 1) {
action = undefined;
needload = false;
gotoAndStop (1);
}
}
};