Frame 1
function onStingerComplete() {
blocker._alpha = 0;
trace("STINGER HAS COMPLETED");
gotoAndStop ("loading");
}
stop();
var stinger = (new com.candystand.Stinger.Stinger(_root));
stinger.addEventListener("onStingerComplete", onStingerComplete);
com.candystand.ScoreSubmit.Messenger.initialize("par0115rry", "1.0.0");
com.candystand.ScoreSubmit.Game.newGame(1);
Frame 3
stop();
_root.muteon = false;
Stage.showMenu = false;
Stage.scaleMode = "exactFit";
this.onEnterFrame = function () {
var _local2 = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
per_txt = _local2;
load_bar._xscale = _local2;
if (_local2 == 100) {
delete onEnterFrame;
_root.gotoAndStop("menu");
}
};
Frame 8
function playLevel(lev) {
}
function init(uskorenie, maxspeed, maxsteering, numcars, numkerbs, xscale, yscale) {
removeMovieClip(Stering);
removeMovieClip(score_disp);
mm._y = 9;
my_sound = new Sound();
my_sound.attachSound("motor");
my_sound.start(1);
_root.ff = 0;
scores._visible = 0;
timer.txt.text = "0:00";
startTime = new Date();
endMenu._visible = 0;
crash = -1;
logo._visible = 1;
parkplace._visible = 0;
parkhiere._visible = 1;
parkhiere.gotoAndPlay(1);
carplacer._visible = 0;
_root.score_disp.score_txt = totalScore;
pressstop._visible = 0;
_root.gamerun = true;
if (mc_car) {
mc_car.removeMovieClip();
}
this.attachMovie("Car1", "mc_car", 1, {_x:carplacer._x, _y:carplacer._y, _rotation:carplacer._rotation});
this.attachMovie("stering", "Stering", _root.getNextHighestDepth());
Stering._x = 590;
Stering._y = 430;
Stering.gotoAndStop(16);
Stering.onEnterFrame = function () {
if (Key.isDown(37)) {
this.gotoAndStop(this._currentframe - 2);
} else if (Key.isDown(39)) {
this.gotoAndStop(this._currentframe + 2);
}
};
this.attachMovie("scores", "score_disp", _root.getNextHighestDepth());
score_disp._x = 545;
score_disp._y = 30;
score_disp._width = 189;
score_disp._height = 75;
eval ("fonar" + level)._visible = 1;
eval ("fonar" + level).swapDepths(2);
logo.swapDepths(3);
mm.swapDepths(4);
pressstop.swapDepths(this.getNextHighestDepth());
endMenu.swapDepths(this.getNextHighestDepth());
totalMenu.swapDepths(this.getNextHighestDepth());
totalMenu._visible = 0;
totalMenu.best._visible = 0;
endMenu.best._visible = 0;
mc_car._xscale = xscale;
mc_car._yscale = yscale;
mc_car.accel = uskorenie;
mc_car.maxspeed = maxspeed;
mc_car.maxsteering = maxsteering;
mc_car.numparkedcars = numcars;
mc_car.numkerbs = numkerbs;
mc_car.maxnegspeed = -4;
mc_car.deccel = 0.4;
mc_car.friction = 0.91;
mc_car.braking = 0.9;
mc_car.maxwheelrotation = 25;
spacestop = 0;
mc_car.startangle = mc_car._rotation;
mc_car.steering = new Number(0);
mc_car.wheelrotation = new Number(0);
mc_car.ymov = new Number(0);
mc_car.ymov = new Number(0);
mc_car.speed = new Number(0);
mc_car.point = new Object();
mc_car.delta = 16900;
var i = 1;
while (i <= mc_car.numparkedcars) {
eval ("parked" + i)._visible = 0;
i++;
}
var i = 1;
while (i <= mc_car.numkerbs) {
eval (("kerb" + i) + "_mc")._visible = 0;
i++;
}
var i = 1;
while (i <= mc_car.numparkedcars) {
eval (("car" + i) + "_mc")._visible = 0;
i++;
}
mc_car.frontwheelleft_mc._rotation = 0;
mc_car.frontwheelright_mc._rotation = 0;
if (mc_car._currentframe > 1) {
mc_car.gotoAndStop(1);
}
Key.addListener(mc_car);
mc_car.started = true;
gam();
}
function gam() {
delete mc_car.onEnterFrame;
mc_car.onEnterFrame = function () {
if (_root.gamerun) {
if ((my_sound.position / 1000) > ((my_sound.duration / 1000) - 1)) {
my_sound.start(1);
}
var _local2 = new Date();
dd = _local2 - startTime;
nowTime = new Date(dd);
sec = nowTime.getSeconds();
if (sec < 10) {
sec = "0" + sec;
}
timer.txt.text = (nowTime.getMinutes() + ":") + sec;
secc = (nowTime.getMinutes() * 60) + nowTime.getSeconds();
if (((Key.isDown(32) && (spacestop < 1)) && (pressstop._visible == 1)) && (pressstop._currentframe == 15)) {
endMenu._visible = 1;
mm._visible = 0;
endMenu.crash.text = crash;
endMenu.time.text = timer.txt.text;
endMenu.acc.text = (hit * 5) + "%";
pressstop.gotoAndPlay(16);
endMenu.gotoAndPlay(1);
hitt = 100 - (hit * 5);
allAnim("levelcompleted");
levelScore = 1000 - (hitt * 10);
trace(levelScore);
if (levelScore > scoresXML.childNodes[level - 1].childNodes[5].attributes.score) {
endMenu.best._visible = 1;
mm._visible = 0;
}
endMenu.level.text = levelScore;
tempscore = _root.score_disp.timer._currentframe * 2;
trace(tempscore + "score");
totalScore = (totalScore + levelScore) + tempscore;
_root.score_disp.score_txt = totalScore;
_root.score_disp.chance = _root.chance;
if (level == 1) {
score1 = levelScore;
} else if (level == 2) {
score2 = levelScore;
} else if (level == 3) {
score3 = levelScore;
} else if (level == 4) {
score4 = levelScore;
}
spacestop = 1;
delete mc_car.onEnterFrame;
}
mc_car.memox = mc_car._x;
mc_car.memoy = mc_car._y;
mc_car.memorot = mc_car._rotation;
if (Key.isDown(37)) {
mc_car.steering = mc_car.steering - 0.05;
mc_car.wheelrotation = mc_car.wheelrotation - 2.5;
}
if (Key.isDown(39)) {
mc_car.steering = mc_car.steering + 0.05;
mc_car.wheelrotation = mc_car.wheelrotation + 2.5;
}
if (mc_car.steering > mc_car.maxsteering) {
mc_car.steering = mc_car.maxsteering;
}
if (mc_car.steering < (-mc_car.maxsteering)) {
mc_car.steering = -mc_car.maxsteering;
}
if (mc_car.wheelrotation > mc_car.maxwheelrotation) {
mc_car.wheelrotation = mc_car.maxwheelrotation;
}
if (mc_car.wheelrotation < (-mc_car.maxwheelrotation)) {
mc_car.wheelrotation = -mc_car.maxwheelrotation;
}
if (Key.isDown(38)) {
if (mc_car.speed < mc_car.maxspeed) {
snd_mc.gotoAndStop(2);
mc_car.speed = mc_car.speed + mc_car.accel;
} else {
snd_mc.gotoAndStop(1);
}
} else if (Key.isDown(40)) {
if (mc_car.speed <= 0) {
if (mc_car.speed > mc_car.maxnegspeed) {
snd_mc.gotoAndStop(3);
mc_car.speed = mc_car.speed - mc_car.deccel;
}
} else {
snd_mc.gotoAndStop(1);
mc_car.speed = mc_car.speed * mc_car.braking;
}
} else {
snd_mc.gotoAndStop(1);
}
if ((mc_car.speed < 0.5) && (mc_car.speed > -0.4)) {
mc_car.speed = 0;
} else {
mc_car.speed = mc_car.speed * mc_car.friction;
}
renderMove();
if (checkWall()) {
mc_car.speed = 0;
undoMove();
} else if (isOutOfBounds()) {
mc_car.speed = 0;
undoMove();
}
}
};
}
function isOutOfBounds() {
if ((((mc_car._x > 640) || (mc_car._x < 0)) || (mc_car._y > 480)) || (mc_car._y < 0)) {
return(1);
}
}
function undoMove() {
mc_car._x = mc_car.memox;
mc_car._y = mc_car.memoy;
mc_car._rotation = mc_car.memorot;
}
function renderMove() {
mc_car.xmov = mc_car.speed * Math.sin(mc_car.radiance);
mc_car.ymov = mc_car.speed * Math.cos(mc_car.radiance);
mc_car._x = mc_car._x + mc_car.xmov;
mc_car._y = mc_car._y - mc_car.ymov;
vol = int(70 + ((mc_car.speed * mc_car.speed) * 2));
mc_car.radiance = mc_car._rotation * 0.017453;
mc_car.radiance = mc_car.radiance + ((mc_car.steering * mc_car.speed) / 40);
mc_car._rotation = mc_car.radiance * 57.29578;
mc_car.frontwheelleft_mc._rotation = mc_car.wheelrotation;
mc_car.frontwheelright_mc._rotation = mc_car.wheelrotation;
}
function sheckProcent() {
hit = 0;
var a = 1;
while (a <= 20) {
if (eval ("mc_car.hit" + a).hit == 1) {
hit++;
}
a++;
}
if ((hit > 8) && (spacestop < 1)) {
pressstop._visible = 1;
if (pressstop._currentframe == 1) {
pressstop.gotoAndPlay(2);
}
pressstop.txt.accuracy.text = (hit * 5) + "%";
} else {
pressstop.play();
}
}
function checkWall() {
var i = 1;
while (i <= mc_car.numparkedcars) {
var a = 1;
while (a <= 20) {
mc_car.point.x = eval ("mc_car.hit" + a)._x;
mc_car.point.y = eval ("mc_car.hit" + a)._y;
mc_car.localToGlobal(mc_car.point);
if (eval (("car" + i) + "_mc").hitTest(mc_car.point.x, mc_car.point.y, true)) {
mc_car.boom._x = eval ("mc_car.hit" + a)._x;
mc_car.boom._y = eval ("mc_car.hit" + a)._y;
mc_car.boom._visible = 1;
mc_car.boom.gotoAndPlay(1);
_root.cracksnd.start(0, 1);
allAnim("crush");
return(1);
}
if (parkplace.hitTest(mc_car.point.x, mc_car.point.y, true)) {
eval ("mc_car.hit" + a).hit = 1;
} else {
eval ("mc_car.hit" + a).hit = 0;
}
a++;
}
i++;
}
sheckProcent();
if (mc_car.numkerbs > 0) {
var i = 0;
while (i <= mc_car.numkerbs) {
var a = 1;
while (a <= 20) {
mc_car.point.x = eval ("mc_car.hit" + a)._x;
mc_car.point.y = eval ("mc_car.hit" + a)._y;
mc_car.localToGlobal(mc_car.point);
if (eval (("kerb" + (i + 1)) + "_mc").hitTest(mc_car.point.x, mc_car.point.y, true)) {
_root.crushroosnd.start(0, 1);
allAnim("crush");
return(1);
}
a++;
}
i++;
}
}
}
function allAnim(link) {
win = attachMovie(link, link, _root.getNextHighestDepth());
win._x = Stage.width / 2;
win._y = Stage.height / 2;
win.gotoAndPlay(2);
}
sendd._visible = 0;
pressstop._visible = 0;
_root.ff = 0;
_root.level = 1;
_root.chance = 5;
endMenu._visible = 0;
totalMenu._visible = 0;
fonar1._visible = 0;
fonar2._visible = 0;
fonar3._visible = 0;
fonar4._visible = 0;
logo._visible = 0;
scores._visible = 0;
mm._visible = 0;
mm._y = -500;
totalScore = 0;
totalAcc = 0;
totalTimer = 0;
totalCrash = 0;
stop();
_root.menusnd = new Sound();
_root.menusnd.attachSound("menubg");
_root.bg1snd = new Sound();
_root.bg1snd.attachSound("bg1");
_root.bg2snd = new Sound();
_root.bg2snd.attachSound("bg2");
_root.bg3snd = new Sound();
_root.bg3snd.attachSound("bg3");
_root.bg4snd = new Sound();
_root.bg4snd.attachSound("bg4");
_root.cracksnd = new Sound();
_root.cracksnd.attachSound("crushsnd");
_root.crushroosnd = new Sound();
_root.crushroosnd.attachSound("crushroo");
if (_root.muteon == false) {
_root.menusnd.stop();
_root.menusnd.start(0, 999);
_root.menusnd.setVolume(100);
} else {
_root.menusnd.stop();
_root.menusnd.start(0, 999);
_root.menusnd.setVolume(0);
}
Instance of Symbol 92 MovieClip in Frame 8
onClipEvent (load) {
if (_root.muteon == false) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 98 MovieClip in Frame 9
on (release) {
getURL ("http://www.candystand.com", "_blank");
}
Frame 15
_root.level = 1;
_root.score_disp.score_txt = 0;
init(0.7, 8, 0.34, 4, 1, 100, 100);
mm._visible = 1;
pressstop.gotoAndStop(1);
stopAllSounds();
stop();
if (_root.muteon == false) {
_root.bg2snd.stop();
_root.bg2snd.start(0, 999);
_root.bg2snd.setVolume(100);
} else {
_root.bg2snd.stop();
_root.bg2snd.start(0, 999);
_root.bg2snd.setVolume(0);
}
Frame 20
_root.level = 2;
init(0.7, 8, 0.34, 19, 1, 108, 108);
mm._visible = 1;
stopAllSounds();
stop();
if (_root.muteon == false) {
_root.bg1snd.stop();
_root.bg1snd.start(0, 999);
_root.bg1snd.setVolume(100);
} else {
_root.bg1snd.stop();
_root.bg1snd.start(0, 999);
_root.bg1snd.setVolume(0);
}
Frame 25
_root.level = 3;
init(0.7, 8, 0.34, 9, 2, 115, 115);
mm._visible = 1;
stopAllSounds();
stop();
if (_root.muteon == false) {
_root.bg3snd.stop();
_root.bg3snd.start(0, 999);
_root.bg3snd.setVolume(100);
} else {
_root.bg3snd.stop();
_root.bg3snd.start(0, 999);
_root.bg3snd.setVolume(0);
}
Frame 30
_root.level = 4;
init(0.7, 8, 0.34, 5, 1, 110, 100);
mm._visible = 1;
stopAllSounds();
stop();
if (_root.muteon == false) {
_root.bg1snd.stop();
_root.bg1snd.start(0, 999);
_root.bg1snd.setVolume(100);
} else {
_root.bg1snd.stop();
_root.bg1snd.start(0, 999);
_root.bg1snd.setVolume(0);
}
Frame 35
_root.level = 5;
init(0.7, 8, 0.34, 6, 2, 110, 110);
mm._visible = 1;
stopAllSounds();
stop();
if (_root.muteon == false) {
_root.bg4snd.stop();
_root.bg4snd.start(0, 999);
_root.bg4snd.setVolume(100);
} else {
_root.bg4snd.stop();
_root.bg4snd.start(0, 999);
_root.bg4snd.setVolume(0);
}
Frame 40
_root.level = 6;
init(0.7, 8, 0.34, 9, 2, 100, 100);
mm._visible = 1;
stopAllSounds();
stop();
if (_root.muteon == false) {
_root.bg1snd.stop();
_root.bg1snd.start(0, 999);
_root.bg1snd.setVolume(100);
} else {
_root.bg1snd.stop();
_root.bg1snd.start(0, 999);
_root.bg1snd.setVolume(0);
}
Frame 45
_root.level = 7;
init(0.7, 8, 0.34, 7, 3, 100, 100);
mm._visible = 1;
stopAllSounds();
stop();
if (_root.muteon == false) {
_root.bg2snd.stop();
_root.bg2snd.start(0, 999);
_root.bg2snd.setVolume(100);
} else {
_root.bg2snd.stop();
_root.bg2snd.start(0, 999);
_root.bg2snd.setVolume(0);
}
Frame 50
_root.level = 8;
init(0.7, 8, 0.34, 10, 3, 90, 90);
mm._visible = 1;
stopAllSounds();
stop();
if (_root.muteon == false) {
_root.bg3snd.stop();
_root.bg3snd.start(0, 999);
_root.bg3snd.setVolume(100);
} else {
_root.bg3snd.stop();
_root.bg3snd.start(0, 999);
_root.bg3snd.setVolume(0);
}
Frame 55
_root.level = 9;
init(0.7, 8, 0.34, 6, 2, 125, 125);
mm._visible = 1;
stopAllSounds();
stop();
if (_root.muteon == false) {
_root.bg1snd.stop();
_root.bg1snd.start(0, 999);
_root.bg1snd.setVolume(100);
} else {
_root.bg1snd.stop();
_root.bg1snd.start(0, 999);
_root.bg1snd.setVolume(0);
}
Frame 60
_root.level = 10;
init(0.7, 8, 0.34, 5, 1, 115, 115);
mm._visible = 1;
stopAllSounds();
stop();
if (_root.muteon == false) {
_root.bg1snd.stop();
_root.bg1snd.start(0, 999);
_root.bg1snd.setVolume(100);
} else {
_root.bg1snd.stop();
_root.bg1snd.start(0, 999);
_root.bg1snd.setVolume(0);
}
Frame 65
_root.level = 11;
init(0.7, 8, 0.34, 6, 1, 100, 100);
mm._visible = 1;
stopAllSounds();
stop();
if (_root.muteon == false) {
_root.bg2snd.stop();
_root.bg2snd.start(0, 999);
_root.bg2snd.setVolume(100);
} else {
_root.bg2snd.stop();
_root.bg2snd.start(0, 999);
_root.bg2snd.setVolume(0);
}
Frame 70
_root.level = 12;
init(0.7, 8, 0.34, 12, 1, 93, 93);
mm._visible = 1;
stopAllSounds();
stop();
if (_root.muteon == false) {
_root.bg3snd.stop();
_root.bg3snd.start(0, 999);
_root.bg3snd.setVolume(100);
} else {
_root.bg3snd.stop();
_root.bg3snd.start(0, 999);
_root.bg3snd.setVolume(0);
}
Frame 75
_root.level = 13;
init(0.7, 8, 0.34, 10, 2, 90, 90);
mm._visible = 1;
stopAllSounds();
stop();
if (_root.muteon == false) {
_root.bg4snd.stop();
_root.bg4snd.start(0, 999);
_root.bg4snd.setVolume(100);
} else {
_root.bg4snd.stop();
_root.bg4snd.start(0, 999);
_root.bg4snd.setVolume(0);
}
Frame 80
_root.level = 14;
init(0.7, 8, 0.34, 3, 1, 110, 110);
mm._visible = 1;
stopAllSounds();
stop();
if (_root.muteon == false) {
_root.bg2snd.stop();
_root.bg2snd.start(0, 999);
_root.bg2snd.setVolume(100);
} else {
_root.bg2snd.stop();
_root.bg2snd.start(0, 999);
_root.bg2snd.setVolume(0);
}
Frame 85
_root.level = 15;
init(0.7, 8, 0.34, 23, 1, 85, 85);
mm._visible = 1;
stopAllSounds();
stop();
if (_root.muteon == false) {
_root.bg2snd.stop();
_root.bg2snd.start(0, 999);
_root.bg2snd.setVolume(100);
} else {
_root.bg2snd.stop();
_root.bg2snd.start(0, 999);
_root.bg2snd.setVolume(0);
}
if (_root.muteon == false) {
stopAllSounds();
_root.bgsnd.stop();
_root.bg1snd.start(0, 999);
_root.bg1snd.setVolume(100);
} else {
_root.bg1snd.stop();
_root.bg1snd.start(0, 999);
_root.bg1snd.setVolume(0);
}
Frame 93
stop();
removeMovieClip(mc_car);
removeMovieClip(pressstop);
removeMovieClip(Stering);
removeMovieClip(score_disp);
stopAllSounds();
if (_root.muteon == false) {
stopAllSounds();
_root.menusnd.stop();
_root.menusnd.start(0, 999);
_root.menusnd.setVolume(100);
} else {
_root.menusnd.stop();
_root.menusnd.start(0, 999);
_root.menusnd.setVolume(0);
}
com.candystand.ScoreSubmit.Game.__set__score(_root.totalScore);
submit_btn.onRelease = function () {
com.candystand.ScoreSubmit.Game.submitScore();
trace(_root.totalScore + "");
};
Frame 98
stop();
removeMovieClip(mc_car);
removeMovieClip(pressstop);
removeMovieClip(Stering);
removeMovieClip(score_disp);
stopAllSounds();
if (_root.muteon == false) {
stopAllSounds();
_root.menusnd.stop();
_root.menusnd.start(0, 999);
_root.menusnd.setVolume(100);
} else {
_root.menusnd.stop();
_root.menusnd.start(0, 999);
_root.menusnd.setVolume(0);
}
com.candystand.ScoreSubmit.Game.__set__score(_root.totalScore);
submit_btn.onRelease = function () {
com.candystand.ScoreSubmit.Game.submitScore();
trace(_root.totalScore + "");
};
Frame 103
stop();
removeMovieClip(mc_car);
removeMovieClip(pressstop);
removeMovieClip(Stering);
removeMovieClip(score_disp);
stopAllSounds();
if (_root.muteon == false) {
stopAllSounds();
_root.menusnd.stop();
_root.menusnd.start(0, 999);
_root.menusnd.setVolume(100);
} else {
_root.menusnd.stop();
_root.menusnd.start(0, 999);
_root.menusnd.setVolume(0);
}
com.candystand.ScoreSubmit.Game.__set__score(_root.totalScore);
submit_btn.onRelease = function () {
com.candystand.ScoreSubmit.Game.submitScore();
trace(_root.totalScore + "");
};
Frame 107
stop();
removeMovieClip(mc_car);
removeMovieClip(pressstop);
removeMovieClip(Stering);
removeMovieClip(score_disp);
if (_root.muteon == false) {
stopAllSounds();
_root.menusnd.stop();
_root.menusnd.start(0, 999);
_root.menusnd.setVolume(100);
} else {
_root.menusnd.stop();
_root.menusnd.start(0, 999);
_root.menusnd.setVolume(0);
}
Symbol 3 MovieClip [stering] Frame 16
stop();
Symbol 3 MovieClip [stering] Frame 32
stop();
Symbol 8 MovieClip [crush] Frame 2
_root.gamerun = false;
_root.score_disp.timer.stop();
Symbol 8 MovieClip [crush] Frame 124
_root.chance = _root.chance - 1;
if (_root.chance > 0) {
_root.gotoAndStop("crush");
} else {
_root.gotoAndStop("gameover");
}
this.removeMovieClip();
Symbol 13 MovieClip [levelcompleted] Frame 2
_root.score_disp.timer.stop();
Symbol 13 MovieClip [levelcompleted] Frame 97
prelevel = "level" + Number(_root.level + 1);
if (_root.level < 15) {
_root.gotoAndStop(prelevel);
} else {
_root.gotoAndStop("gamewin");
}
this.removeMovieClip();
Symbol 17 MovieClip [timeup] Frame 2
_root.gamerun = false;
Symbol 17 MovieClip [timeup] Frame 90
_root.chance = _root.chance - 1;
if (_root.chance > 0) {
_root.gotoAndStop("crush");
} else {
_root.gotoAndStop("gameover");
}
this.removeMovieClip();
Symbol 24 MovieClip Frame 1
this._visible = false;
Symbol 31 MovieClip [Car1] Frame 1
stop();
frame = 1 + Number(random(2));
this.gotoAndStop(frame);
trace(frame);
Symbol 31 MovieClip [Car1] Frame 2
stop();
frontwheelright_mc._x = 23.8;
frontwheelright_mc._y = -37.1;
frontwheelleft_mc._x = -24.1;
frontwheelleft_mc._y = -37.1;
Symbol 31 MovieClip [Car1] Frame 3
stop();
frontwheelright_mc._x = 24.1;
frontwheelright_mc._y = -28.4;
frontwheelleft_mc._x = -23.9;
frontwheelleft_mc._y = -28.5;
Symbol 44 MovieClip Frame 756
stop();
_root.allAnim("timeup");
Symbol 45 MovieClip [scores] Frame 1
_root.score_disp.score_txt = _root.totalScore;
_root.score_disp.chance = _root.chance;
Symbol 216 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 217 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 218 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 219 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 220 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) {
trace(num + " submit score");
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() {
trace("Score Submited");
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 221 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 222 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 223 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 74 Button
on (release) {
tempframe = "level" + _root.level;
_root.gotoAndStop(tempframe);
}
Symbol 80 Button
on (release) {
_root.gotoAndStop("help");
}
Symbol 83 Button
on (release) {
getURL ("http://www.candystand.com", "_blank");
}
Symbol 84 MovieClip Frame 98
stop();
submit_btn.onRelease = function () {
trace(_root.totalScore + " test fine ");
if (_root.totalScore != undefined) {
com.candystand.ScoreSubmit.Game.__set__score(_root.totalScore);
com.candystand.ScoreSubmit.Game.submitScore();
}
};
Symbol 88 Button
on (release) {
_root.muteon = true;
_root.menusnd.setVolume(0);
gotoAndStop (2);
}
Symbol 91 Button
on (release) {
_root.muteon = false;
_root.menusnd.setVolume(100);
gotoAndStop (1);
}
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 2
stop();
Symbol 107 MovieClip Frame 75
stop();
_root.score_disp.timer.play();
Symbol 127 MovieClip Frame 1
stop();
this._visible = 0;
Symbol 127 MovieClip Frame 15
stop();
Symbol 127 MovieClip Frame 29
stop();
gotoAndStop (1);
Symbol 131 MovieClip Frame 1
stop();
_root.tt = 2;
Symbol 131 MovieClip Frame 2
stop();
_root.tt = 1;
Symbol 131 MovieClip Frame 3
stop();
Symbol 198 Button
on (release) {
getURL ("http://www.gamebusted.com", "_blank");
}
Symbol 201 Button
on (release, keyPress "<Space>") {
tempframe = "level" + _root.level;
_root.gotoAndStop(tempframe);
}
Symbol 206 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 210 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 215 Button
on (release) {
_root.gotoAndStop("menu");
}