Frame 1
stop();
var CPMStarContentSpotID = "3428Q236FDFCE";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
this.attachMovie("fakeloader", "fakeloader", 1);
fakeloader._x = 275;
fakeloader._y = 350;
Frame 2
stop();
var timersplash = 0;
this.onEnterFrame = function () {
timersplash = timersplash + 1;
if (timersplash > 230) {
_root.gotoAndPlay(3);
}
};
Frame 3
function onConnectError(status) {
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function randSpeed(min, max) {
var _local1 = (Math.random() * (max - min)) + min;
return(_local1);
}
stop();
mochi.as2.MochiServices.connect("06a181b306903566", _root, onConnectError);
mochi.as2.MochiServices.connect("06a181b306903566");
this.createEmptyMovieClip("s1", 100000);
sound1 = new Sound(s1);
sound1.attachSound("sound1");
this.createEmptyMovieClip("s2", 100001);
sound2 = new Sound(s2);
sound2.attachSound("sound2");
this.createEmptyMovieClip("s3", 100002);
sound3 = new Sound(s3);
sound3.attachSound("sound3");
this.createEmptyMovieClip("s4", 100003);
sound4 = new Sound(s4);
sound4.attachSound("sound4");
this.createEmptyMovieClip("s5", 100004);
sound5 = new Sound(s5);
sound5.attachSound("sound5");
this.createEmptyMovieClip("s6", 100005);
sound6 = new Sound(s6);
sound6.attachSound("sound6");
this.createEmptyMovieClip("s7", 100006);
boum = new Sound(s7);
boum.attachSound("boum");
this.createEmptyMovieClip("s8", 100007);
bruit = new Sound(s8);
bruit.attachSound("bruit");
this.createEmptyMovieClip("s9", 100008);
sound7 = new Sound(s9);
sound7.attachSound("sound7");
var outofbounds = false;
var nbmenu = randRange(1, 2);
var premenu = true;
var Lovepos = 0;
var panostate = 0;
var vol1 = 0;
var vol2 = 0;
var vol6 = 0;
this.attachMovie("Lovepre", "Lovepre", 11);
Lovepre._x = 297.2;
Lovepre._y = 173.3;
this.attachMovie("crosshair", "crosshair", 12);
crosshair._x = 242;
crosshair._y = 250;
this.attachMovie("pano", "pano", 13);
pano._x = -600;
if (nbmenu == 1) {
this.attachMovie("menu1", "menu1", 1);
menu1._x = -1000;
menu1._alpha = 50;
this.attachMovie("iwanna", "iwanna", 2);
iwanna._x = -1000;
iwanna._y = 70.1;
iwanna._alpha = 50;
}
if (nbmenu == 2) {
this.attachMovie("menu2", "menu2", 1);
menu2._x = -1000;
menu2._alpha = 50;
this.attachMovie("whatis", "whatis", 2);
whatis._x = -1000;
whatis._y = 70.1;
whatis._alpha = 50;
}
this.attachMovie("credits", "credits", 3);
credits._x = -1000;
credits._y = 329.4;
credits._alpha = 50;
this.attachMovie("play", "play", 4);
play._x = -1000;
play._y = 336.2;
play._alpha = 50;
this.attachMovie("Lovemc", "Lovemc", 6);
Lovemc._x = -1000;
Lovemc._y = 221.5;
this.attachMovie("square", "square", 7);
this.attachMovie("square", "square2", 8);
this.attachMovie("square", "square3", 9);
this.attachMovie("cursor", "cursor", 10);
sound3.start(0, 1000);
sound3.setVolume(0);
sound3.setPan(100);
sound5.start(0, 1000);
sound5.setVolume(0);
sound1.start(0, 1000);
sound1.setVolume(0);
sound1.setPan(-100);
bruit.start(0, 1000);
this.onEnterFrame = function () {
if (premenu == true) {
bruit.setVolume(0);
if ((((_ymouse > 237) && (_ymouse < 263)) && (_xmouse > 229)) && (_xmouse < 255)) {
onMouseDown = function () {
Lovepre.removeMovieClip();
crosshair.removeMovieClip();
premenu = false;
};
} else {
onMouseDown = function () {
sausage = true;
};
}
}
cursor._height = 12;
cursor._width = 12;
cursor._x = _xmouse;
cursor._y = _ymouse;
cursor._rotation = cursor._rotation + rotationSpeed;
if (premenu == false) {
if (panostate == 0) {
menu1._x = 0;
menu2._x = 0;
square._visible = false;
square2._visible = false;
square3._visible = false;
square._x = _xmouse;
square._y = (Lovemc._y - 65) - (square._x * 0.36);
square2._x = _xmouse;
square2._y = (Lovemc._y - 45) + (square2._x * 1.35);
square3._x = _xmouse;
square3._y = (Lovemc._y + 535) - (square3._x * 1.12);
distance = Math.sqrt(Math.pow(_xmouse - 275, 2) + Math.pow(_ymouse - 200, 2));
if (outofbounds == false) {
sound3.setVolume(vol6);
sound5.setVolume(vol2);
sound1.setVolume(vol1);
} else {
sound3.setVolume(0);
sound5.setVolume(0);
sound1.setVolume(0);
}
Lovemc._x = (199.2 + ((550 - _xmouse) / 3.5)) + randSpeed(0, distance / 70);
Lovemc._y = (176.5 + ((400 - _ymouse) / 3.5)) + randSpeed(0, distance / 70);
if (_ymouse < square._y) {
if (rotationSpeed < 41) {
rotationSpeed = rotationSpeed + 1;
}
if (vol2 < 20) {
vol2++;
}
iwanna._x = 213.3 + randSpeed((-vol2) / 7, vol2 / 7);
iwanna._y = 70.1 + randSpeed((-vol2) / 7, vol2 / 7);
whatis._x = 242.7 + randSpeed((-vol2) / 7, vol2 / 7);
whatis._y = 71 + randSpeed((-vol2) / 7, vol2 / 7);
onMouseDown = function () {
sound1.stop();
sound3.stop();
sound5.stop();
bruit.stop();
menu1.removeMovieClip();
menu2.removeMovieClip();
Lovemc.removeMovieClip();
play.removeMovieClip();
credits.removeMovieClip();
iwanna.removeMovieClip();
whatis.removeMovieClip();
square.removeMovieClip();
square2.removeMovieClip();
square3.removeMovieClip();
cursor.removeMovieClip();
gotoAndPlay (4);
};
} else {
iwanna._x = 213.3;
iwanna._y = 70.1;
whatis._x = 242.7;
whatis._y = 71;
if (vol2 > 0) {
vol2--;
}
}
if (_ymouse > square2._y) {
if (rotationSpeed < 41) {
rotationSpeed = rotationSpeed + 1;
}
credits._x = 84.3 + randSpeed((-vol1) / 7, vol1 / 7);
credits._y = 329.4 + randSpeed((-vol1) / 7, vol1 / 7);
if (vol1 < 20) {
vol1++;
}
onMouseDown = function () {
panostate = 1;
};
} else {
credits._x = 84.3;
credits._y = 329.4;
if (vol1 > 0) {
vol1--;
}
}
if (_ymouse > square3._y) {
if (rotationSpeed < 41) {
rotationSpeed = rotationSpeed + 1;
}
play._x = 474.1 + randSpeed((-vol6) / 7, vol6 / 7);
play._y = 336.2 + randSpeed((-vol6) / 7, vol6 / 7);
if (vol6 < 20) {
vol6++;
}
onMouseDown = function () {
sound1.stop();
sound3.stop();
sound5.stop();
menu1.removeMovieClip();
menu2.removeMovieClip();
Lovemc.removeMovieClip();
play.removeMovieClip();
credits.removeMovieClip();
iwanna.removeMovieClip();
whatis.removeMovieClip();
square.removeMovieClip();
square2.removeMovieClip();
square3.removeMovieClip();
cursor.removeMovieClip();
gotoAndPlay (5);
};
} else {
play._x = 474.1;
play._y = 336.2;
if (vol6 > 0) {
vol6--;
}
}
if (((_ymouse > square._y) && (_ymouse < square2._y)) && (_ymouse < square3._y)) {
onMouseDown = function () {
sausage = true;
};
rotationSpeed = 5;
}
} else {
pano._x = 0;
}
}
};
Frame 4
function spawntuto(nb, px, py) {
this.attachMovie("squaretuto", "squaretuto" + nb, 30 + nb);
eval ("squaretuto" + nb)._x = px;
eval ("squaretuto" + nb)._y = py;
this.attachMovie("squareOrange", "squareOrange" + nb, 40 + nb);
eval ("squareOrange" + nb)._alpha = 0;
this.attachMovie("glowplate", "glowplate" + nb, 25 + nb);
}
function wipetuto(nb) {
if (eval ("squaretuto" + nb)._alpha > 1) {
eval ("squaretuto" + nb)._alpha = eval ("squaretuto" + nb)._alpha - 1;
}
if (eval ("squareOrange" + nb)._alpha > 1) {
eval ("squareOrange" + nb)._alpha = eval ("squareOrange" + nb)._alpha - 1;
}
if (eval ("glowplate" + nb)._alpha > 1) {
eval ("glowplate" + nb)._alpha = eval ("glowplate" + nb)._alpha - 1;
}
if (eval ("thread" + nb)._alpha > 1) {
eval ("thread" + nb)._alpha = eval ("thread" + nb)._alpha - 1;
}
if (eval ("squaretuto" + nb)._alpha <= 1) {
eval ("squaretuto" + nb).removeMovieClip();
}
if (eval ("squareOrange" + nb)._alpha <= 1) {
eval ("squareOrange" + nb).removeMovieClip();
}
if (eval ("glowplate" + nb)._alpha <= 1) {
eval ("glowplate" + nb).removeMovieClip();
}
if (eval ("thread" + nb)._alpha <= 1) {
eval ("thread" + nb).removeMovieClip();
}
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function randSpeed(min, max) {
var _local1 = (Math.random() * (max - min)) + min;
return(_local1);
}
function write(stuff, nb) {
if (eval ("box" + nb)._alpha < 100) {
eval ("box" + nb).text = stuff;
eval ("box" + nb)._alpha = eval ("box" + nb)._alpha + 2;
}
}
function wipe(nb) {
if (eval ("box" + nb)._alpha > 0) {
eval ("box" + nb)._alpha = eval ("box" + nb)._alpha - 2;
}
}
function spawn() {
this.attachMovie("square", "square", 19);
this.attachMovie("squaredeath", "squaredeath", 18);
sound1.start(0, 1000);
sound1.setVolume(0);
sound2.start(0, 1000);
sound2.setVolume(0);
sound6.start(0, 1000);
sound6.setVolume(0);
}
stop();
var tuto = 0;
var rotationSpeed = 0;
var rotationMax = 0;
var timer = 0;
var timertuto = 0;
var death = 0;
var nbdeath = 0;
var score = 0;
var speedAug = 1;
var m1 = 0;
var m2 = 0;
var m3 = 0;
var m4 = 0;
var m5 = 0;
var m6 = 0;
this.attachMovie("bordVerticalGauche", "bordVerticalGauche", 501);
bordVerticalGauche._x = 5;
bordVerticalGauche._y = 200;
this.attachMovie("bordVerticalDroit", "bordVerticalDroit", 500);
bordVerticalDroit._x = 545;
bordVerticalDroit._y = 200;
this.attachMovie("bordHorizontalHaut", "bordHorizontalHaut", 499);
bordHorizontalHaut._x = 275;
bordHorizontalHaut._y = 5;
this.attachMovie("bordHorizontalBas", "bordHorizontalBas", 498);
bordHorizontalBas._x = 275;
bordHorizontalBas._y = 395;
this.attachMovie("box", "box", 1);
box._x = 275;
box._y = 200;
this.attachMovie("presspace", "presspace", 18);
this.attachMovie("presspace", "presspace2", 19);
presspace._alpha = 0;
presspace2._alpha = 0;
this.attachMovie("toskip", "toskip", 600);
toskip._y = 395;
toskip._x = 275;
box1._alpha = 0;
box2._alpha = 0;
box3._alpha = 0;
box4._alpha = 0;
box5._alpha = 0;
box6._alpha = 0;
box7._alpha = 0;
box8._alpha = 0;
box9._alpha = 0;
box10._alpha = 0;
box11._alpha = 0;
box12._alpha = 0;
box13._alpha = 0;
box14._alpha = 0;
box15._alpha = 0;
box16._alpha = 0;
box17._alpha = 0;
box18._alpha = 0;
box19._alpha = 0;
box20._alpha = 0;
box21._alpha = 0;
box22._alpha = 0;
box23._alpha = 0;
box24._alpha = 0;
box25._alpha = 0;
box26._alpha = 0;
onEnterFrame = function () {
function rotationBlack(objet, nb, sound) {
if (objet._currentframe == 72) {
eval ("aura" + nb)._x = objet._x;
eval ("aura" + nb)._y = objet._y;
eval ("glowplate" + nb)._x = objet._x;
eval ("glowplate" + nb)._y = objet._y;
sound.setPan((objet._x / 2.7) - 100);
glowsound.setPan((objet._x / 2.7) - 100);
eval ("squareOrange" + nb)._x = objet._x;
eval ("squareOrange" + nb)._y = objet._y;
eval ("squareOrange" + nb)._rotation = objet._rotation;
if (Math.sqrt(Math.pow(square._x - objet._x, 2) + Math.pow(square._y - objet._y, 2)) < 100) {
objet._rotation = (Math.atan2(square._y - objet._y, square._x - objet._x) * 180) / Math.PI;
eval ("squareOrange" + nb)._rotation = objet._rotation;
if (death == 1) {
_root.attachMovie("thread", "thread" + nb, 10 + nb);
eval ("thread" + nb)._x = objet._x;
eval ("thread" + nb)._y = objet._y;
eval ("thread" + nb)._rotation = (Math.atan2(square._y - objet._y, square._x - objet._x) * 180) / Math.PI;
eval ("thread" + nb).gotoAndPlay(Math.floor(100 - Math.sqrt(Math.pow(square._x - objet._x, 2) + Math.pow(square._y - objet._y, 2))));
}
sound.setVolume(Math.floor(100 - Math.sqrt(Math.pow(square._x - objet._x, 2) + Math.pow(square._y - objet._y, 2))));
if (eval ("squareOrange" + nb)._alpha < 100) {
eval ("squareOrange" + nb)._alpha = 130 - Math.sqrt(Math.pow(square._x - objet._x, 2) + Math.pow(square._y - objet._y, 2));
}
} else {
eval ("glow" + nb).removeMovieClip();
eval ("circle" + nb).removeMovieClip();
sound.setVolume((77 - objet._currentframe) / 2);
objet._rotation = objet._rotation + 20;
eval ("squareOrange" + nb)._rotation = objet._rotation;
if (eval ("squareOrange" + nb)._alpha > 0) {
eval ("squareOrange" + nb)._alpha = eval ("squareOrange" + nb)._alpha - 5;
}
eval ("thread" + nb).removeMovieClip();
}
if (Math.sqrt(Math.pow(square._x - objet._x, 2) + Math.pow(square._y - objet._y, 2)) < 20) {
death = 2;
}
if (death == 2) {
sound.stop();
}
} else if (objet._currentframe < 35) {
sound.setVolume(objet._currentframe / 2);
} else {
sound.setVolume((77 - objet._currentframe) / 2);
}
}
onMouseDown = function () {
sausage = true;
};
if (Key.isDown(83)) {
mochi.as2.MochiEvents.trackEvent("Tutorial", 1);
squaredeath.removeMovieClip();
square.removeMovieClip();
presspace.removeMovieClip();
presspace2.removeMovieClip();
toskip.removeMovieClip();
squaretuto1.removeMovieClip();
squaretuto2.removeMovieClip();
squaretuto3.removeMovieClip();
squareOrange1.removeMovieClip();
squareOrange2.removeMovieClip();
squareOrange3.removeMovieClip();
thread1.removeMovieClip();
thread2.removeMovieClip();
thread3.removeMovieClip();
gotoAndPlay (5);
}
Mouse.hide();
presspace._x = _xmouse + randSpeed(-1, 1);
presspace._y = _ymouse + randSpeed(-1, 1);
presspace2._x = _xmouse + randSpeed(-1, 1);
presspace2._y = _ymouse + randSpeed(-1, 1);
presspace._rotation = presspace._rotation - 1;
presspace2._rotation = presspace2._rotation - 1;
if (((box3._alpha > 90) && (box3._alpha < 95)) && (tuto == 11)) {
square.removeMovieClip();
squaredeath.gotoAndPlay(180);
}
if ((presspace._alpha > 10) || (presspace2._alpha > 10)) {
if (Key.isDown(83) || (Key.isDown(32) && (tuto == 11))) {
mochi.as2.MochiEvents.trackEvent("Tutorial", 1);
squaredeath.removeMovieClip();
square.removeMovieClip();
presspace.removeMovieClip();
presspace2.removeMovieClip();
toskip.removeMovieClip();
squaretuto1.removeMovieClip();
squaretuto2.removeMovieClip();
squaretuto3.removeMovieClip();
squareOrange1.removeMovieClip();
squareOrange2.removeMovieClip();
squareOrange3.removeMovieClip();
thread1.removeMovieClip();
thread2.removeMovieClip();
thread3.removeMovieClip();
gotoAndPlay (5);
}
}
if (((box1._alpha > 95) && (presspace._alpha < 50)) && (presspace2._alpha < 50)) {
presspace._alpha = 1;
presspace2._alpha = presspace2._alpha + 1;
}
if ((tuto > 2) && (presspace._alpha > 50)) {
presspace._alpha = 50;
presspace2._alpha = 50;
}
if (tuto == 0) {
write("HI,", 1);
if ((death == 0) && (Key.isDown(32))) {
tuto = 1;
death = 1;
masterTimer = 0;
speedAug = 1.5;
rotationMax = 0;
squareBlack7.removeMovieClip();
squareOrange7.removeMovieClip();
glowplate7.removeMovieClip();
spawn();
boum.stop();
bruit.stop();
nbdeath = nbdeath + 1;
}
}
if (death == 1) {
switch (tuto) {
case 1 :
write("YOU'RE A SQUARE.", 2);
timertuto++;
if (timertuto > 120) {
timertuto = 0;
tuto = 2;
}
break;
case 2 :
timertuto++;
wipe(1);
wipe(2);
spawntuto(1, 450, 190);
if (timertuto < 200) {
write("YOU'RE NOT THE ONLY ONE THOUGH.", 3);
}
if (box3._alpha > 95) {
write("THERE ARE .", 4);
write("OTHERS", 8);
}
if (timertuto > 200) {
wipe(3);
wipe(4);
wipe(8);
if (((box3._alpha < 3) && (box4._alpha < 3)) && (box8._alpha < 3)) {
timertuto = 0;
tuto = 3;
}
}
break;
case 3 :
if (score < 10) {
write("GET CLOSE TO OTHERS TO GET THEIR ATTENTION.", 5);
}
if ((score > 50) && (timertuto < 240)) {
write("YOU DRAW FROM THAT CONNECTION.", 3);
write("HAPPINESS", 7);
wipe(5);
}
if ((box5._alpha < 3) && (score >= 10)) {
box5._alpha = 0;
timertuto++;
if (timertuto > 240) {
wipe(7);
wipe(3);
}
if (box3._alpha < 3) {
timertuto = 0;
tuto = 4;
}
}
break;
case 4 :
if (timertuto < 260) {
write("SEE HOW MAKES YOUR HEAD ", 5);
write("HAPPINESS", 9);
write("SPIN", 10);
}
timertuto++;
if (timertuto > 260) {
wipe(5);
wipe(9);
wipe(10);
write("THE YOU GET,", 11);
write("CLOSER", 14);
}
if (box11._alpha > 90) {
write("THE YOU ARE", 12);
write("HAPPIER", 15);
}
if (box12._alpha > 90) {
write("THE YOU SPIN.", 13);
write("FASTER", 16);
}
if ((((box13._alpha > 98) && (box5._alpha < 3)) && (box9._alpha < 3)) && (box10._alpha < 3)) {
timertuto = 0;
tuto = 5;
}
break;
case 5 :
timertuto++;
if (timertuto > 100) {
wipe(11);
wipe(12);
wipe(13);
wipe(14);
wipe(15);
wipe(16);
}
if ((box16._alpha < 3) && (box13._alpha < 3)) {
timertuto = 0;
score = 0;
tuto = 5.5;
}
break;
case 5.5 :
if (timertuto < 100) {
write("OTHERS DON'T LIKE TO SHARE", 3);
write(" ", 17);
}
timertuto++;
if ((timertuto > 150) && (timertuto < 210)) {
wipe(3);
}
if (box3._alpha < 3) {
write("IF YOU APPROACH SEVERAL OTHERS,", 11);
}
if (timertuto > 300) {
write("EACH WILL DO TO TRY AND BE YOUR PERSONNAL FAVORITE", 3);
box8._x = 234.5;
box8._y = 278.4;
write("ANYTHING", 8);
}
if (box8._alpha > 98) {
timertuto = 0;
tuto = 6;
score = 0;
}
break;
case 6 :
timertuto++;
if (timertuto == 2) {
spawntuto(2, 100, 190);
}
if (timertuto == 75) {
squaretuto2.ex = 1;
squaretuto2.dx = 1;
squaretuto1.ex = 1;
squaretuto1.dx = -1;
}
if (score > 150) {
wipe(17);
wipe(3);
wipe(11);
wipe(8);
if ((box3._alpha < 3) && (box11._alpha < 3)) {
timertuto = 0;
score = 0;
tuto = 7;
}
}
break;
case 7 :
if (score < 300) {
write("WHEN CLOSE TO OTHERS,", 5);
write("TWO", 18);
}
if (box18._alpha > 98) {
write(" GIVES YOU AS MUCH HAPPINESS.", 21);
write("EACH OF THEM", 19);
write("TWICE", 20);
}
if (score > 300) {
wipe(5);
wipe(18);
wipe(19);
wipe(20);
wipe(21);
if ((box5._alpha < 3) && (box18._alpha < 3)) {
timertuto = 0;
score = 0;
tuto = 8;
}
}
break;
case 8 :
timertuto++;
if (timertuto == 2) {
spawntuto(3, squaretuto1._x, 250);
}
if (timertuto == 75) {
squaretuto3.ex = 1;
squaretuto3.dx = squaretuto1.dx;
}
if (score < 750) {
write("WHEN CLOSE TO OTHERS,", 5);
write("THREE", 22);
}
if (box22._alpha > 98) {
write(" GIVES YOU AS MUCH HAPPINESS.", 21);
write("EACH OF THEM", 23);
write("THREE", 24);
write("TIMES", 25);
}
if (score > 750) {
wipe(5);
wipe(22);
wipe(21);
wipe(23);
wipe(24);
wipe(25);
if ((box25._alpha < 3) && (box22._alpha < 3)) {
timertuto = 0;
score = 0;
tuto = 9;
}
}
break;
case 9 :
if (score < 200) {
write("AND SO ON...", 3);
}
if (score > 200) {
wipe(3);
if (box3._alpha < 3) {
score = 0;
tuto = 10;
}
}
break;
case 10 :
timertuto++;
if (timertuto < 120) {
write("IT'S NO WONDER YOU SPIN SO FAST WHEN YOU'RE CLOSE TO FIVE OR SIX OTHERS...", 5);
}
if (timertuto > 300) {
wipe(5);
}
if ((timertuto > 360) && (box5._alpha < 3)) {
timertuto = 0;
tuto = 11;
}
break;
case 11 :
write("YOUR GOAL IS TO GATHER AS MUCH HAPPINESS AS YOU CAN.", 26);
timertuto++;
if (timertuto <= 180) {
break;
}
write("SO IF YOU'RE SPINNING TOO SLOW,", 11);
if (timertuto > 260) {
box8._x = 26.5;
box8._y = 284.2;
write("LOOK AROUND YOU", 8);
}
if (timertuto <= 340) {
break;
}
write(" , MAYBE YOU WOULD BE HAPPIER SOMEPLACE ELSE...", 3);
}
}
if (death == 1) {
if (multiplier == 0) {
speedAugTot = speedAug;
} else {
speedAugTot = speedAug / multiplier;
}
var divide = (5 * _root.multiplier);
masterTimer = masterTimer + 1;
if (thread1._height > 0) {
m1 = 1;
t1 = 5 + (thread1._currentframe / 5);
} else {
m1 = 0;
t1 = 0;
}
if (thread2._height > 0) {
m2 = 1;
t2 = 5 + (thread2._currentframe / 5);
} else {
m2 = 0;
t2 = 0;
}
if (thread3._height > 0) {
m3 = 1;
t3 = 5 + (thread3._currentframe / 5);
} else {
m3 = 0;
t3 = 0;
}
if (thread4._height > 0) {
m4 = 1;
t4 = 5 + (thread4._currentframe / 5);
} else {
m4 = 0;
t4 = 0;
}
if (thread5._height > 0) {
m5 = 1;
t5 = 5 + (thread5._currentframe / 5);
} else {
m5 = 0;
t5 = 0;
}
if (thread6._height > 0) {
m6 = 1;
t6 = 5 + (thread6._currentframe / 5);
} else {
m6 = 0;
t6 = 0;
}
if (thread7._height > 0) {
m7 = 1;
t7 = 5 + (thread7._currentframe / 5);
} else {
m7 = 0;
t7 = 0;
}
multiplier = (((((m1 + m2) + m3) + m4) + m5) + m6) + m7;
boxes.box3._alpha = (((((t1 + t2) + t3) + t4) + t5) + t6) + t7;
if (multiplier == 0) {
square._rotation = square._rotation + 0.5;
}
rotationSpeed = (((((t1 + t2) + t3) + t4) + t5) + t6) + t7;
square._rotation = square._rotation + rotationSpeed;
} else {
multiplier = 0;
}
if (rotationSpeed >= rotationMax) {
rotationMax = rotationSpeed;
}
if (((death != 1) && (Key.isDown(32))) && (presspace._alpha > 40)) {
death = 1;
masterTimer = 0;
speedAug = 1.5;
rotationMax = 0;
squareBlack7.removeMovieClip();
squareOrange7.removeMovieClip();
glowplate7.removeMovieClip();
presspace.removeMovieClip();
presspace2.removeMovieClip();
sound1.stop();
sound6.stop();
spawn();
boum.stop();
bruit.stop();
nbdeath = nbdeath + 1;
}
switch (death) {
case 1 :
if (((tuto > 2) && (tuto < 11)) && (box6._alpha > 0)) {
box6._alpha = box6._alpha - 2;
}
Mouse.hide();
if ((((_xmouse >= (_root.bordVerticalGauche._x + (_root.bordVerticalGauche._width / 2))) && (_xmouse <= (_root.bordVerticalDroit._x - (_root.bordVerticalDroit._width / 2)))) && (_ymouse >= (_root.bordHorizontalHaut._y + (_root.bordHorizontalHaut._height / 2)))) && (_ymouse <= (_root.bordHorizontalBas._y - (_root.bordHorizontalBas._height / 2)))) {
square._x = _xmouse;
square._y = _ymouse;
} else {
if (square._x <= ((_root.bordVerticalGauche._x + (_root.bordVerticalGauche._width / 2)) + 5)) {
square._x = (_root.bordVerticalGauche._x + (_root.bordVerticalGauche._width / 2)) + 5;
}
if (square._x >= ((_root.bordVerticalDroit._x - (_root.bordVerticalDroit._width / 2)) - 5)) {
square._x = (_root.bordVerticalDroit._x - (_root.bordVerticalDroit._width / 2)) - 5;
}
if (square._y <= ((_root.bordHorizontalHaut._y + (_root.bordHorizontalHaut._height / 2)) + 5)) {
square._y = (_root.bordHorizontalHaut._y + (_root.bordHorizontalHaut._height / 2)) + 5;
}
if (square._y >= ((_root.bordHorizontalBas._y - (_root.bordHorizontalBas._height / 2)) - 5)) {
square._y = (_root.bordHorizontalBas._y - (_root.bordHorizontalBas._height / 2)) - 5;
}
}
break;
case 2 :
if (tuto > 2) {
if (nbdeath == 1) {
write("BUT IF YOU GET TOO CLOSE, YOU'LL GET HURT.", 6);
}
if (nbdeath == 2) {
write("I TOLD YOU, DON'T GET TOO CLOSE...", 6);
}
if (nbdeath == 3) {
write("WATCH OUT, DON'T GET TOO CLOSE...", 6);
}
if (nbdeath == 4) {
write("STILL, DON'T GET TOO CLOSE...", 6);
}
if (nbdeath == 5) {
write("COME ON, BE MORE CAREFUL...", 6);
}
if (nbdeath == 6) {
write("DON'T COME CRYING NOW, I WARNED YOU ENOUGH...", 6);
}
if (nbdeath > 6) {
nbdeath = 2;
}
}
dice = 0;
}
rotationBlack(squaretuto1, 1, sound2);
rotationBlack(squaretuto2, 2, sound1);
rotationBlack(squaretuto3, 3, sound6);
};
Frame 5
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function randSpeed(min, max) {
var _local1 = (Math.random() * (max - min)) + min;
return(_local1);
}
function spawn() {
stopAllSounds();
this.attachMovie("auraplate", "auraplate", 18);
this.attachMovie("square", "square", 19);
this.attachMovie("squaredeath", "squaredeath", 20);
i = 1;
while (i < 7) {
this.attachMovie("squareBlack", "squareBlack" + i, 30 + i);
i++;
}
squareBlack1._x = randRange(20, 160);
squareBlack1._y = randRange(75, 175);
squareBlack2._x = randRange(20, 160);
squareBlack2._y = randRange(225, 325);
squareBlack3._x = randRange(200, 340);
squareBlack3._y = randRange(260, 380);
squareBlack4._x = randRange(380, 530);
squareBlack4._y = randRange(225, 325);
squareBlack5._x = randRange(380, 530);
squareBlack5._y = randRange(75, 175);
squareBlack6._x = randRange(200, 340);
squareBlack6._y = randRange(20, 120);
i = 1;
while (i < 7) {
this.attachMovie("squareOrange", "squareOrange" + i, 40 + i);
eval ("squareOrange" + i)._alpha = 0;
i++;
}
i = 1;
while (i < 7) {
this.attachMovie("glowplate", "glowplate" + i, 21 + i);
i++;
}
sound1.start(0, 1000);
sound1.setVolume(0);
sound2.start(0, 1000);
sound2.setVolume(0);
sound3.start(0, 1000);
sound3.setVolume(0);
sound4.start(0, 1000);
sound4.setVolume(0);
sound5.start(0, 1000);
sound5.setVolume(0);
sound6.start(0, 1000);
sound6.setVolume(0);
sound7.start(0, 1000);
sound7.setVolume(0);
}
stop();
var kongregate = _global.kongregate;
kongregate.services.connect();
var death = 3;
var score = 0;
var speedAug = 1.5;
var speedAugTimer = 0;
var masterTimer = 0;
var multiplier = 0;
var dice = 0;
var rotationSpeed = 0;
var rotationMax = 0;
var multiplierMax = 0;
var timer1 = 0;
var timer2 = 0;
var timer3 = 0;
var timer4 = 0;
var timer5 = 0;
var timer6 = 0;
var timer7 = 0;
this.attachMovie("boxes", "boxes", 514);
boxes.box3._alpha = 100;
this.attachMovie("stats", "stats", 515);
stats._x = -600;
_root.attachMovie("presspace", "presspace", 520);
_root.attachMovie("presspace", "presspace2", 521);
var m1 = 0;
var m2 = 0;
var m3 = 0;
var m4 = 0;
var m5 = 0;
var m6 = 0;
this.attachMovie("bordVerticalGauche", "bordVerticalGauche", 501);
bordVerticalGauche._x = 5;
bordVerticalGauche._y = 200;
this.attachMovie("bordVerticalDroit", "bordVerticalDroit", 500);
bordVerticalDroit._x = 545;
bordVerticalDroit._y = 200;
this.attachMovie("bordHorizontalHaut", "bordHorizontalHaut", 499);
bordHorizontalHaut._x = 275;
bordHorizontalHaut._y = 5;
this.attachMovie("bordHorizontalBas", "bordHorizontalBas", 498);
bordHorizontalBas._x = 275;
bordHorizontalBas._y = 395;
this.attachMovie("box", "box", 1);
box._x = 275;
box._y = 200;
onEnterFrame = function (tuto) {
function rotationBlack(objet, nb, sound) {
if (objet._currentframe == 72) {
eval ("glowplate" + nb)._x = objet._x;
eval ("glowplate" + nb)._y = objet._y;
sound.setPan((objet._x / 2.7) - 100);
glowsound.setPan((objet._x / 2.7) - 100);
eval ("squareOrange" + nb)._x = objet._x;
eval ("squareOrange" + nb)._y = objet._y;
eval ("squareOrange" + nb)._rotation = objet._rotation;
if (Math.sqrt(Math.pow(square._x - objet._x, 2) + Math.pow(square._y - objet._y, 2)) < 100) {
objet._rotation = (Math.atan2(square._y - objet._y, square._x - objet._x) * 180) / Math.PI;
eval ("squareOrange" + nb)._rotation = objet._rotation;
if (death == 1) {
_root.attachMovie("thread", "thread" + nb, 10 + nb);
eval ("thread" + nb)._x = objet._x;
eval ("thread" + nb)._y = objet._y;
eval ("thread" + nb)._rotation = (Math.atan2(square._y - objet._y, square._x - objet._x) * 180) / Math.PI;
eval ("thread" + nb).gotoAndPlay(Math.floor(100 - Math.sqrt(Math.pow(square._x - objet._x, 2) + Math.pow(square._y - objet._y, 2))));
}
sound.setVolume(Math.floor(100 - Math.sqrt(Math.pow(square._x - objet._x, 2) + Math.pow(square._y - objet._y, 2))));
if (eval ("squareOrange" + nb)._alpha < 100) {
eval ("squareOrange" + nb)._alpha = 130 - Math.sqrt(Math.pow(square._x - objet._x, 2) + Math.pow(square._y - objet._y, 2));
}
} else {
eval ("glow" + nb).removeMovieClip();
eval ("circle" + nb).removeMovieClip();
sound.setVolume((74 - objet._currentframe) / 2);
objet._rotation = objet._rotation + 21;
eval ("squareOrange" + nb)._rotation = objet._rotation;
if (eval ("squareOrange" + nb)._alpha > 0) {
eval ("squareOrange" + nb)._alpha = eval ("squareOrange" + nb)._alpha - 5;
}
eval ("thread" + nb).removeMovieClip();
}
if (Math.sqrt(Math.pow(square._x - objet._x, 2) + Math.pow(square._y - objet._y, 2)) < 20) {
death = 2;
}
if (death == 2) {
sound.stop();
}
} else if (objet._currentframe < 35) {
sound.setVolume(objet._currentframe / 2);
} else {
sound.setVolume((74 - objet._currentframe) / 2);
}
}
stats.box21.text = int((timer1 / 60) * 100) / 100;
stats.box22.text = int((timer2 / 60) * 100) / 100;
stats.box23.text = int((timer3 / 60) * 100) / 100;
stats.box24.text = int((timer4 / 60) * 100) / 100;
stats.box25.text = int((timer5 / 60) * 100) / 100;
stats.box26.text = int((timer6 / 60) * 100) / 100;
stats.box27.text = int((timer7 / 60) * 100) / 100;
if (Key.isDown(38)) {
boxes.box3._alpha = 100;
}
if (Key.isDown(40)) {
boxes.box3._alpha = 0;
}
onMouseDown = function () {
sausage = true;
};
presspace._x = _xmouse + randSpeed(-1, 1);
presspace._y = _ymouse + randSpeed(-1, 1);
presspace2._x = _xmouse + randSpeed(-1, 1);
presspace2._y = _ymouse + randSpeed(-1, 1);
presspace._rotation = presspace._rotation - 1;
presspace2._rotation = presspace2._rotation - 1;
presspace._alpha = 50;
presspace2._alpha = 50;
if (death == 1) {
tip = randRange(2, 13);
this.attachMovie("randomtip", "randomtip", 60);
randomtip._x = 550;
randomtip._y = 200;
randomtip._alpha = 0;
this.attachMovie("backtomenu", "backtomenu", 70);
backtomenu._x = 485;
backtomenu._y = 0;
backtomenu._alpha = 0;
this.attachMovie("more", "more", 511);
more._x = 0;
more._y = 400;
more._alpha = 0;
this.attachMovie("pmg", "pmg", 513);
pmg._x = 170;
pmg._y = 400;
pmg._alpha = 0;
this.attachMovie("submit", "submit", 512);
submit._x = 100;
submit._y = 400;
submit._alpha = 0;
if (multiplier == 0) {
speedAugTot = speedAug;
} else {
speedAugTot = speedAug / multiplier;
}
var divide = (5 * _root.multiplier);
switch (multiplier) {
case 1 :
timer1++;
break;
case 2 :
timer2++;
break;
case 3 :
timer3++;
break;
case 4 :
timer4++;
break;
case 5 :
timer5++;
break;
case 6 :
timer6++;
break;
case 7 :
timer7++;
}
masterTimer = masterTimer + 1;
speedAugTimer = speedAugTimer + 1;
if ((speedAugTimer >= 60) && (speedAug < 100)) {
dice = randRange(1, 10);
speedAug = speedAug + 0.05;
speedAugTimer = 0;
}
if ((multiplier == squareBlack1.nbBlack) && (squareBlack1.nbBlack < 7)) {
squareBlack1.nbBlack = squareBlack1.nbBlack + 1;
}
if (squareBlack1.nbBlack == 7) {
if ((((square._x <= 150) || (square._x >= 400)) || (square._y <= 100)) || (square._y >= 300)) {
this.attachMovie("squareBlack", "squareBlack" + squareBlack1.nbBlack, 30 + squareBlack1.nbBlack);
if ((((square._x <= 150) || (square._x >= 400)) || (square._y <= 100)) || (square._y >= 300)) {
eval ("squareBlack" + squareBlack1.nbBlack)._x = 275;
eval ("squareBlack" + squareBlack1.nbBlack)._y = 200;
}
this.attachMovie("squareOrange", "squareOrange" + squareBlack1.nbBlack, 40 + squareBlack1.nbBlack);
this.attachMovie("glowplate", "glowplate" + squareBlack1.nbBlack, 21 + squareBlack1.nbBlack);
squareBlack1.nbBlack = squareBlack1.nbBlack + 1;
}
}
}
if (thread1._height > 0) {
m1 = 1;
t1 = 5 + (thread1._currentframe / 5);
} else {
m1 = 0;
t1 = 0;
}
if (thread2._height > 0) {
m2 = 1;
t2 = 5 + (thread2._currentframe / 5);
} else {
m2 = 0;
t2 = 0;
}
if (thread3._height > 0) {
m3 = 1;
t3 = 5 + (thread3._currentframe / 5);
} else {
m3 = 0;
t3 = 0;
}
if (thread4._height > 0) {
m4 = 1;
t4 = 5 + (thread4._currentframe / 5);
} else {
m4 = 0;
t4 = 0;
}
if (thread5._height > 0) {
m5 = 1;
t5 = 5 + (thread5._currentframe / 5);
} else {
m5 = 0;
t5 = 0;
}
if (thread6._height > 0) {
m6 = 1;
t6 = 5 + (thread6._currentframe / 5);
} else {
m6 = 0;
t6 = 0;
}
if (thread7._height > 0) {
m7 = 1;
t7 = 5 + (thread7._currentframe / 5);
} else {
m7 = 0;
t7 = 0;
}
multiplier = (((((m1 + m2) + m3) + m4) + m5) + m6) + m7;
if (multiplier == 0) {
square._rotation = square._rotation + 0.5;
}
rotationSpeed = (((((t1 + t2) + t3) + t4) + t5) + t6) + t7;
square._rotation = square._rotation + rotationSpeed;
if (rotationSpeed >= rotationMax) {
rotationMax = rotationSpeed;
}
if (multiplier >= multiplierMax) {
multiplierMax = multiplier;
}
if (squareBlack7._currentframe == 30) {
mochi.as2.MochiEvents.trackEvent("square7", 1);
}
if (((death != 1) && (Key.isDown(32))) && (stats._x < 0)) {
death = 1;
score = 0;
masterTimer = 0;
timer1 = 0;
timer2 = 0;
timer3 = 0;
timer4 = 0;
timer5 = 0;
timer6 = 0;
timer7 = 0;
speedAug = 1.5;
rotationMax = 0;
multiplierMax = 0;
squareBlack7.removeMovieClip();
squareOrange7.removeMovieClip();
glowplate7.removeMovieClip();
presspace.removeMovieClip();
presspace2.removeMovieClip();
sound7.stop();
spawn();
boum.stop();
bruit.stop();
mochi.as2.MochiEvents.startPlay();
}
switch (death) {
case 1 :
if ((((_xmouse >= (_root.bordVerticalGauche._x + (_root.bordVerticalGauche._width / 2))) && (_xmouse <= (_root.bordVerticalDroit._x - (_root.bordVerticalDroit._width / 2)))) && (_ymouse >= (_root.bordHorizontalHaut._y + (_root.bordHorizontalHaut._height / 2)))) && (_ymouse <= (_root.bordHorizontalBas._y - (_root.bordHorizontalBas._height / 2)))) {
square._x = _xmouse;
square._y = _ymouse;
} else {
if (square._x <= ((_root.bordVerticalGauche._x + (_root.bordVerticalGauche._width / 2)) + 5)) {
square._x = (_root.bordVerticalGauche._x + (_root.bordVerticalGauche._width / 2)) + 5;
}
if (square._x >= ((_root.bordVerticalDroit._x - (_root.bordVerticalDroit._width / 2)) - 5)) {
square._x = (_root.bordVerticalDroit._x - (_root.bordVerticalDroit._width / 2)) - 5;
}
if (square._y <= ((_root.bordHorizontalHaut._y + (_root.bordHorizontalHaut._height / 2)) + 5)) {
square._y = (_root.bordHorizontalHaut._y + (_root.bordHorizontalHaut._height / 2)) + 5;
}
if (square._y >= ((_root.bordHorizontalBas._y - (_root.bordHorizontalBas._height / 2)) - 5)) {
square._y = (_root.bordHorizontalBas._y - (_root.bordHorizontalBas._height / 2)) - 5;
}
}
box1.text = " ";
boxes.box3._x = square._x + 15;
boxes.box3._y = square._y + 15;
boxes.box3.text = score + (rotationMax * 10);
box2.text = " ";
box3.text = " ";
box4.text = " ";
box5.text = " ";
box6.text = " ";
box7.text = " ";
box8.text = " ";
break;
case 2 :
mochi.as2.MochiEvents.endPlay();
boxes.box3.text = " ";
if (squaredeath._currentframe == 2) {
boum.start();
}
if (squaredeath._currentframe == 150) {
bruit.start(0, 100);
}
if (squaredeath._currentframe > 170) {
randomtip.gotoAndPlay(tip);
if (randomtip._x > 275) {
randomtip._x = randomtip._x - 20;
}
if (randomtip._alpha < 90) {
randomtip._alpha = randomtip._alpha + 2.5;
}
if (backtomenu._y < 10) {
backtomenu._y = backtomenu._y + 1;
}
if (backtomenu._alpha < 100) {
backtomenu._alpha = backtomenu._alpha + 2;
}
if (more._y > 380) {
more._y = more._y - 1;
}
if (more._alpha < 100) {
more._alpha = more._alpha + 2;
}
if (pmg._y > 380) {
pmg._y = pmg._y - 1;
}
if (pmg._alpha < 100) {
pmg._alpha = pmg._alpha + 2;
}
if (submit._y > 380) {
submit._y = submit._y - 1;
}
if (submit._alpha < 100) {
submit._alpha = submit._alpha + 2;
}
}
if ((((((_ymouse < 32) && (_xmouse > 485)) || ((_ymouse > 380) && (_xmouse < 91))) || (stats._x > -10)) || (((_ymouse > 380) && (_xmouse < 160)) && (_xmouse > 100))) || (((_ymouse > 380) && (_xmouse < 310)) && (_xmouse > 170))) {
presspace.gotoAndPlay(50);
presspace2.gotoAndPlay(50);
} else {
presspace.gotoAndPlay(31);
presspace2.gotoAndPlay(31);
}
if ((_ymouse < 32) && (_xmouse > 485)) {
backtomenu.gotoAndPlay(2);
}
if ((_ymouse > 380) && (_xmouse < 91)) {
more.gotoAndPlay(2);
}
if ((Math.floor((score / masterTimer) * score) - score) < 0) {
riskBonus = 0;
} else {
riskBonus = Math.floor((score / masterTimer) * score) - score;
}
if (squaredeath._currentframe == 10) {
box4.text = rotationMax * 10;
box4._alpha = 70;
box2.text = "MAX SPINNING SPEED";
box2._alpha = 80;
box1.text = score;
box1._alpha = 60;
box6.text = "HAPPINESS TOTAL";
box6._alpha = 50;
box7.text = "FINAL SCORE";
box7._alpha = 60;
box7._x = -70;
box8.text = box7.text;
box8._alpha = box7._alpha;
box8._x = box7._x + randSpeed(0, 1);
box8._y = box7._y + randSpeed(0, 1);
box3._x = -70;
box3._y = 250;
box3.text = score + (rotationMax * 10);
finalscore = score + (rotationMax * 10);
playtime = Math.floor(masterTimer / 60);
kongregate.stats.submit("HighScore", finalscore);
kongregate.stats.submit("RotationMax", rotationMax);
kongregate.stats.submit("NbOthers", multiplierMax);
kongregate.stats.submit("PlayTime", playtime);
kongregate.stats.submit("tsptw1", int((timer1 / 60) * 100) / 100);
kongregate.stats.submit("tsptw2", int((timer2 / 60) * 100) / 100);
kongregate.stats.submit("tsptw3", int((timer3 / 60) * 100) / 100);
kongregate.stats.submit("tsptw4", int((timer4 / 60) * 100) / 100);
kongregate.stats.submit("tsptw5", int((timer5 / 60) * 100) / 100);
kongregate.stats.submit("tsptw6", int((timer6 / 60) * 100) / 100);
kongregate.stats.submit("tsptw7", int((timer7 / 60) * 100) / 100);
mochi.as2.MochiEvents.trackEvent("HighScore", finalscore);
mochi.as2.MochiEvents.trackEvent("RotationMax", rotationMax);
mochi.as2.MochiEvents.trackEvent("multipliermax", multiplierMax);
mochi.as2.MochiEvents.trackEvent("tsptw1", int((timer1 / 60) * 100) / 100);
mochi.as2.MochiEvents.trackEvent("tsptw2", int((timer2 / 60) * 100) / 100);
mochi.as2.MochiEvents.trackEvent("tsptw3", int((timer3 / 60) * 100) / 100);
mochi.as2.MochiEvents.trackEvent("tsptw4", int((timer4 / 60) * 100) / 100);
mochi.as2.MochiEvents.trackEvent("tsptw5", int((timer5 / 60) * 100) / 100);
mochi.as2.MochiEvents.trackEvent("tsptw6", int((timer6 / 60) * 100) / 100);
mochi.as2.MochiEvents.trackEvent("tsptw7", int((timer7 / 60) * 100) / 100);
box3._alpha = 60;
box5._x = -70 + randSpeed(0.5, 2);
box5._y = 250 + randSpeed(0.5, 2);
box5.text = score + (rotationMax * 10);
box5._alpha = 60;
submit.onRelease = function () {
Mouse.show();
var _local3 = {n:[14, 8, 9, 7, 3, 3, 3, 8, 7, 5, 7, 11, 13, 7, 12, 5], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var _local4 = _local3.f(0, "e8973338757bd7c5");
mochi.as2.MochiScores.showLeaderboard({onDisplay:function () {
_root._y = _root._y + -30;
_root.attachMovie("boxlol", "boxlol", 700);
boxlol._x = 275;
boxlol._y = 200;
box.removeMovieClip();
}, onClose:function () {
_root._y = _root._y + 30;
boxlol.removeMovieClip();
_root.attachMovie("box", "box", 1);
box._x = 275;
box._y = 200;
stop();
}, boardID:_local4, score:_root.finalscore});
};
}
dice = 0;
bordVerticalGauche._width = 10;
bordVerticalDroit._width = 10;
bordHorizontalHaut._height = 10;
bordHorizontalBas._height = 10;
}
rotationBlack(squareBlack1, 1, sound1);
rotationBlack(squareBlack2, 2, sound2);
rotationBlack(squareBlack3, 3, sound3);
rotationBlack(squareBlack4, 4, sound4);
rotationBlack(squareBlack5, 5, sound5);
rotationBlack(squareBlack6, 6, sound6);
rotationBlack(squareBlack7, 7, sound7);
rotationBlack(squareBlack8, 8, sound8);
rotationBlack(squareBlack9, 9, sound9);
};
Frame 6
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function randSpeed(min, max) {
var _local1 = (Math.random() * (max - min)) + min;
return(_local1);
}
stop();
var outofbounds = false;
var nbmenu = randRange(1, 2);
var premenu = true;
var Lovepos = 0;
var panostate = 0;
var vol1 = 0;
var vol2 = 0;
var vol6 = 0;
this.attachMovie("Lovepre", "Lovepre", 11);
Lovepre._x = 297.2;
Lovepre._y = 173.3;
this.attachMovie("crosshair", "crosshair", 12);
crosshair._x = 242;
crosshair._y = 250;
this.attachMovie("pano", "pano", 13);
pano._x = -600;
if (nbmenu == 1) {
this.attachMovie("menu1", "menu1", 1);
menu1._x = -1000;
menu1._alpha = 50;
this.attachMovie("iwanna", "iwanna", 2);
iwanna._x = -1000;
iwanna._y = 70.1;
iwanna._alpha = 50;
}
if (nbmenu == 2) {
this.attachMovie("menu2", "menu2", 1);
menu2._x = -1000;
menu2._alpha = 50;
this.attachMovie("whatis", "whatis", 2);
whatis._x = -1000;
whatis._y = 70.1;
whatis._alpha = 50;
}
this.attachMovie("credits", "credits", 3);
credits._x = -1000;
credits._y = 329.4;
credits._alpha = 50;
this.attachMovie("play", "play", 4);
play._x = -1000;
play._y = 336.2;
play._alpha = 50;
this.attachMovie("Lovemc", "Lovemc", 6);
Lovemc._x = -1000;
Lovemc._y = 221.5;
this.attachMovie("square", "square", 7);
this.attachMovie("square", "square2", 8);
this.attachMovie("square", "square3", 9);
this.attachMovie("cursor", "cursor", 10);
sound3.start(0, 1000);
sound3.setVolume(0);
sound3.setPan(100);
sound5.start(0, 1000);
sound5.setVolume(0);
sound1.start(0, 1000);
sound1.setVolume(0);
sound1.setPan(-100);
bruit.start(0, 1000);
this.onEnterFrame = function () {
Mouse.show();
if (premenu == true) {
bruit.setVolume(0);
if ((((_ymouse > 237) && (_ymouse < 263)) && (_xmouse > 229)) && (_xmouse < 255)) {
onMouseDown = function () {
Lovepre.removeMovieClip();
crosshair.removeMovieClip();
premenu = false;
};
} else {
onMouseDown = function () {
sausage = true;
};
}
}
cursor._height = 12;
cursor._width = 12;
cursor._x = _xmouse;
cursor._y = _ymouse;
cursor._rotation = cursor._rotation + rotationSpeed;
if (premenu == false) {
if (panostate == 0) {
menu1._x = 0;
menu2._x = 0;
square._visible = false;
square2._visible = false;
square3._visible = false;
square._x = _xmouse;
square._y = (Lovemc._y - 65) - (square._x * 0.36);
square2._x = _xmouse;
square2._y = (Lovemc._y - 45) + (square2._x * 1.35);
square3._x = _xmouse;
square3._y = (Lovemc._y + 535) - (square3._x * 1.12);
distance = Math.sqrt(Math.pow(_xmouse - 275, 2) + Math.pow(_ymouse - 200, 2));
if (outofbounds == false) {
sound3.setVolume(vol6);
sound5.setVolume(vol2);
sound1.setVolume(vol1);
} else {
sound3.setVolume(0);
sound5.setVolume(0);
sound1.setVolume(0);
}
Lovemc._x = (199.2 + ((550 - _xmouse) / 3.5)) + randSpeed(0, distance / 70);
Lovemc._y = (176.5 + ((400 - _ymouse) / 3.5)) + randSpeed(0, distance / 70);
if (_ymouse < square._y) {
if (rotationSpeed < 41) {
rotationSpeed = rotationSpeed + 1;
}
if (vol2 < 20) {
vol2++;
}
iwanna._x = 213.3 + randSpeed((-vol2) / 7, vol2 / 7);
iwanna._y = 70.1 + randSpeed((-vol2) / 7, vol2 / 7);
whatis._x = 242.7 + randSpeed((-vol2) / 7, vol2 / 7);
whatis._y = 71 + randSpeed((-vol2) / 7, vol2 / 7);
onMouseDown = function () {
sound1.stop();
sound3.stop();
sound5.stop();
bruit.stop();
menu1.removeMovieClip();
menu2.removeMovieClip();
Lovemc.removeMovieClip();
play.removeMovieClip();
credits.removeMovieClip();
iwanna.removeMovieClip();
whatis.removeMovieClip();
square.removeMovieClip();
square2.removeMovieClip();
square3.removeMovieClip();
cursor.removeMovieClip();
gotoAndPlay (4);
};
} else {
iwanna._x = 213.3;
iwanna._y = 70.1;
whatis._x = 242.7;
whatis._y = 71;
if (vol2 > 0) {
vol2--;
}
}
if (_ymouse > square2._y) {
if (rotationSpeed < 41) {
rotationSpeed = rotationSpeed + 1;
}
credits._x = 84.3 + randSpeed((-vol1) / 7, vol1 / 7);
credits._y = 329.4 + randSpeed((-vol1) / 7, vol1 / 7);
if (vol1 < 20) {
vol1++;
}
onMouseDown = function () {
panostate = 1;
};
} else {
credits._x = 84.3;
credits._y = 329.4;
if (vol1 > 0) {
vol1--;
}
}
if (_ymouse > square3._y) {
if (rotationSpeed < 41) {
rotationSpeed = rotationSpeed + 1;
}
play._x = 474.1 + randSpeed((-vol6) / 7, vol6 / 7);
play._y = 336.2 + randSpeed((-vol6) / 7, vol6 / 7);
if (vol6 < 20) {
vol6++;
}
onMouseDown = function () {
sound1.stop();
sound3.stop();
sound5.stop();
menu1.removeMovieClip();
menu2.removeMovieClip();
Lovemc.removeMovieClip();
play.removeMovieClip();
credits.removeMovieClip();
iwanna.removeMovieClip();
whatis.removeMovieClip();
square.removeMovieClip();
square2.removeMovieClip();
square3.removeMovieClip();
cursor.removeMovieClip();
gotoAndPlay (5);
};
} else {
play._x = 474.1;
play._y = 336.2;
if (vol6 > 0) {
vol6--;
}
}
if (((_ymouse > square._y) && (_ymouse < square2._y)) && (_ymouse < square3._y)) {
onMouseDown = function () {
sausage = true;
};
rotationSpeed = 5;
}
} else {
pano._x = 0;
}
}
};
Symbol 20 MovieClip Frame 134
stop();
Symbol 24 MovieClip Frame 136
stop();
Symbol 28 MovieClip Frame 139
stop();
Symbol 31 MovieClip [hg_sponsornoblue] Frame 1
this.onRelease = function () {
getURL ("http://www.hairygames.com/", "_blank");
};
Symbol 41 MovieClip [crosshair] Frame 1
this.onEnterFrame = function () {
this._rotation = this._rotation + (2 + (this._currentframe / 5));
};
Symbol 56 MovieClip [glow] Frame 1
var frame = 0;
this.onEnterFrame = function () {
if ((this._currentframe > 0) && (this._currentframe < 100)) {
frame = this._currentframe;
}
if ((this._currentframe > 100) && (this._currentframe < 200)) {
frame = this._currentframe - 100;
}
if ((this._currentframe > 200) && (this._currentframe < 300)) {
frame = this._currentframe - 200;
}
if ((this._currentframe > 300) && (this._currentframe < 400)) {
frame = this._currentframe - 300;
}
if ((this._currentframe > 400) && (this._currentframe < 500)) {
frame = this._currentframe - 400;
}
if ((this._currentframe > 500) && (this._currentframe < 600)) {
frame = this._currentframe - 500;
}
if ((this._currentframe > 600) && (this._currentframe < 700)) {
frame = this._currentframe - 600;
}
if ((this._currentframe > 700) && (this._currentframe < 800)) {
frame = this._currentframe - 700;
}
this.gotoAndPlay((_root.multiplier * 100) + frame);
if (_root.multiplier == 0) {
this.removeMovieClip();
}
};
Symbol 56 MovieClip [glow] Frame 145
this.removeMovieClip();
Symbol 56 MovieClip [glow] Frame 245
this.removeMovieClip();
Symbol 56 MovieClip [glow] Frame 345
this.removeMovieClip();
Symbol 56 MovieClip [glow] Frame 445
this.removeMovieClip();
Symbol 56 MovieClip [glow] Frame 545
this.removeMovieClip();
Symbol 56 MovieClip [glow] Frame 645
this.removeMovieClip();
Symbol 56 MovieClip [glow] Frame 745
this.removeMovieClip();
Symbol 64 MovieClip [squareOrange] Frame 1
this.onEnterFrame = function () {
gotoAndPlay(_root.multiplier);
};
Symbol 77 MovieClip [back2] Frame 1
this.onRollOver = function () {
_root.bruit.setVolume(100);
};
this.onRollOut = function () {
_root.bruit.setVolume(0);
};
this.onRelease = function () {
_root.stats._x = -600;
};
Symbol 92 MovieClip [lou] Frame 1
this.onRelease = function () {
getURL ("http://www.loulubie.fr", "_blank");
};
Symbol 96 MovieClip [back] Frame 1
this.onRollOver = function () {
_root.bruit.setVolume(100);
};
this.onRollOut = function () {
_root.bruit.setVolume(0);
};
this.onRelease = function () {
_root.pano._x = -600;
_root.panostate = 0;
};
Symbol 102 MovieClip Frame 110
stop();
Symbol 105 MovieClip [hg_sponsorldb] Frame 1
this.onRelease = function () {
getURL ("http://www.hairygames.com/", "_blank");
};
Symbol 117 MovieClip [box] Frame 1
this.onRollOver = function () {
Mouse.hide();
_root.bruit.setVolume(100);
};
this.onRollOut = function () {
_root.bruit.setVolume(0);
};
this.onEnterFrame = function () {
this.gotoAndPlay(_root.multiplier + 1);
if (_root._currentframe == 4) {
this.gotoAndPlay(10);
}
};
Symbol 121 MovieClip [thread] Frame 1
this.onEnterFrame = function () {
if (_root.death == 2) {
this.removeMovieClip();
}
};
Symbol 123 MovieClip [squaretuto] Frame 72
stop();
var timer = 0;
var nbBlack = 6;
var dy = 0;
var dx = 0;
var ey = 0;
var ex = 0;
this.onEnterFrame = function () {
if ((((this._x < -100) || (this._x > 650)) || (this._y < -100)) || (this._y > 500)) {
this.removeMovieClip();
}
this._x = this._x + ((dx * ex) * _root.speedAugTot);
this._y = this._y + ((dy * ey) * _root.speedAugTot);
if (_root.tuto < 10) {
if (this._x <= ((_root.bordVerticalGauche._x + (_root.bordVerticalGauche._width / 2)) + 10)) {
dx = 1;
this._x = (_root.bordVerticalGauche._x + (_root.bordVerticalGauche._width / 2)) + 10;
}
if (this._x >= ((_root.bordVerticalDroit._x - (_root.bordVerticalDroit._width / 2)) - 10)) {
dx = -1;
this._x = (_root.bordVerticalDroit._x - (_root.bordVerticalDroit._width / 2)) - 10;
}
if (this._y <= ((_root.bordHorizontalHaut._y + (_root.bordHorizontalHaut._height / 2)) + 10)) {
dy = 1;
this._y = (_root.bordHorizontalHaut._y + (_root.bordHorizontalHaut._height / 2)) + 10;
}
if (this._y >= ((_root.bordHorizontalBas._y - (_root.bordHorizontalBas._height / 2)) - 10)) {
dy = -1;
this._y = (_root.bordHorizontalBas._y - (_root.bordHorizontalBas._height / 2)) - 10;
}
}
timermax = Math.sqrt(Math.pow(_root.square._x - this._x, 2) + Math.pow(_root.square._y - this._y, 2));
if (Math.sqrt(Math.pow(_root.square._x - this._x, 2) + Math.pow(_root.square._y - this._y, 2)) < 100) {
timer++;
if ((timer >= (timermax / 15)) && (_root.death == 1)) {
_root.score = _root.score + _root.multiplier;
timer = 0;
}
}
};
Symbol 125 MovieClip [squareBlack] Frame 72
function randSpeed(min, max) {
var _local1 = (Math.random() * (max - min)) + min;
return(_local1);
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
stop();
var timer = 0;
var nbBlack = 6;
var dy = randRange(0, 1);
var dx = randRange(0, 1);
if (dy == 0) {
dy = -1;
}
if (dx == 0) {
dx = -1;
}
ex = randSpeed(0.2, 1);
ey = randSpeed(0.2, 1);
this.onEnterFrame = function () {
if ((((this._x < -10) || (this._x > 560)) || (this._y < -10)) || (this._y > 410)) {
this.removeMovieClip();
}
this._x = this._x + ((dx * ex) * _root.speedAugTot);
this._y = this._y + ((dy * ey) * _root.speedAugTot);
if (_root.death == 1) {
if (this._x <= ((_root.bordVerticalGauche._x + (_root.bordVerticalGauche._width / 2)) + 10)) {
dx = 1;
this._x = (_root.bordVerticalGauche._x + (_root.bordVerticalGauche._width / 2)) + 10;
}
if (this._x >= ((_root.bordVerticalDroit._x - (_root.bordVerticalDroit._width / 2)) - 10)) {
dx = -1;
this._x = (_root.bordVerticalDroit._x - (_root.bordVerticalDroit._width / 2)) - 10;
}
if (this._y <= ((_root.bordHorizontalHaut._y + (_root.bordHorizontalHaut._height / 2)) + 10)) {
dy = 1;
this._y = (_root.bordHorizontalHaut._y + (_root.bordHorizontalHaut._height / 2)) + 10;
}
if (this._y >= ((_root.bordHorizontalBas._y - (_root.bordHorizontalBas._height / 2)) - 10)) {
dy = -1;
this._y = (_root.bordHorizontalBas._y - (_root.bordHorizontalBas._height / 2)) - 10;
}
} else {
ey = 2;
ex = 2;
}
timermax = Math.sqrt(Math.pow(_root.square._x - this._x, 2) + Math.pow(_root.square._y - this._y, 2));
if (Math.sqrt(Math.pow(_root.square._x - this._x, 2) + Math.pow(_root.square._y - this._y, 2)) < 100) {
timer++;
if ((timer >= (timermax / 15)) && (_root.death == 1)) {
_root.score = _root.score + _root.multiplier;
timer = 0;
}
}
};
Symbol 144 MovieClip [squaredeath] Frame 1
stop();
Symbol 144 MovieClip [squaredeath] Frame 180
_root.attachMovie("presspace", "presspace", 520);
_root.presspace._alpha = 50;
_root.attachMovie("presspace", "presspace2", 521);
_root.presspace2._alpha = 50;
Symbol 144 MovieClip [squaredeath] Frame 316
_root.auraplate.removeMovieClip();
this.removeMovieClip();
Symbol 150 MovieClip [cursor] Frame 1
this.onEnterFrame = function () {
if (_root.rotationSpeed <= 30) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(Math.floor(_root.rotationSpeed / 2));
}
};
Symbol 157 MovieClip [square] Frame 1
this.onEnterFrame = function () {
if (_root.death == 2) {
_root.squaredeath._x = this._x;
_root.squaredeath._y = this._y;
_root.squaredeath.gotoAndPlay(2);
this.removeMovieClip();
} else if (_root.multiplier == 0) {
this.gotoAndPlay(1);
} else if (_root.rotationSpeed <= 30) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(Math.floor(_root.rotationSpeed / 2));
}
};
Symbol 158 MovieClip [bordVerticalDroit] Frame 1
function randSpeed(min, max) {
var _local1 = (Math.random() * (max - min)) + min;
return(_local1);
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var debut = 0;
var dice = 0;
var walls = 1;
var taille = 0;
var vitesse = 0;
var temps = 0;
this.onEnterFrame = function () {
if (_root.masterTimer >= 300) {
if (walls == 1) {
dice = _root.dice;
vitesse = randSpeed(0.1, 2);
taille = randRange(60, 300);
temps = randRange(1, 60);
}
if (dice == 2) {
walls = 2;
if (this._width <= taille) {
this._width = this._width + vitesse;
}
if (this._width >= taille) {
debut = debut + 1;
}
}
if (debut >= temps) {
walls = 1;
if (this._width >= 10) {
this._width = this._width - 1;
}
}
if (this._width < 11) {
debut = 0;
}
}
};
Symbol 159 MovieClip [bordVerticalGauche] Frame 1
function randSpeed(min, max) {
var _local1 = (Math.random() * (max - min)) + min;
return(_local1);
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var debut = 0;
var dice = 0;
var walls = 1;
var taille = 0;
var vitesse = 0;
var temps = 0;
this.onEnterFrame = function () {
if (_root.masterTimer >= 300) {
if (walls == 1) {
dice = _root.dice;
vitesse = randSpeed(0.1, 2);
taille = randRange(60, 300);
temps = randRange(1, 60);
}
if (dice == 1) {
walls = 2;
if (this._width <= taille) {
this._width = this._width + vitesse;
}
if (this._width >= taille) {
debut = debut + 1;
}
}
if (debut >= temps) {
walls = 1;
if (this._width >= 10) {
this._width = this._width - 1;
}
}
if (this._width < 11) {
debut = 0;
}
}
};
Symbol 160 MovieClip [bordHorizontalBas] Frame 1
function randSpeed(min, max) {
var _local1 = (Math.random() * (max - min)) + min;
return(_local1);
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var debut = 0;
var dice = 0;
var walls = 1;
var taille = 0;
var vitesse = 0;
var temps = 0;
this.onEnterFrame = function () {
if (_root.masterTimer >= 300) {
if (walls == 1) {
dice = _root.dice;
vitesse = randSpeed(0.1, 2);
taille = randRange(40, 200);
temps = randRange(1, 60);
}
if (dice == 4) {
walls = 2;
if (this._height <= taille) {
this._height = this._height + vitesse;
}
if (this._height >= taille) {
debut = debut + 1;
}
}
if (debut >= temps) {
walls = 1;
if (this._height >= 10) {
this._height = this._height - 1;
}
}
if (this._height < 11) {
debut = 0;
}
}
};
Symbol 161 MovieClip [bordHorizontalHaut] Frame 1
function randSpeed(min, max) {
var _local1 = (Math.random() * (max - min)) + min;
return(_local1);
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
var debut = 0;
var dice = 0;
var walls = 1;
var taille = 0;
var vitesse = 0;
var temps = 0;
this.onEnterFrame = function () {
if (_root.masterTimer >= 300) {
if (walls == 1) {
dice = _root.dice;
vitesse = randSpeed(0.1, 2);
taille = randRange(40, 200);
temps = randRange(1, 60);
}
if (dice == 3) {
walls = 2;
if (this._height <= taille) {
this._height = this._height + vitesse;
}
if (this._height >= taille) {
debut = debut + 1;
}
}
if (debut >= temps) {
walls = 1;
if (this._height >= 10) {
this._height = this._height - 1;
}
}
if (this._height < 11) {
debut = 0;
}
}
};
Symbol 165 MovieClip [circle] Frame 50
this.removeMovieClip();
Symbol 168 MovieClip [auraplate] Frame 1
i = 1;
while (i < 7) {
this.attachMovie("aura", "aura" + i, i);
i++;
}
this.onEnterFrame = function () {
aura1._x = _root.squareBlack1._x;
aura2._x = _root.squareBlack2._x;
aura3._x = _root.squareBlack3._x;
aura4._x = _root.squareBlack4._x;
aura5._x = _root.squareBlack5._x;
aura6._x = _root.squareBlack6._x;
aura7._x = _root.squareBlack7._x;
aura1._y = _root.squareBlack1._y;
aura2._y = _root.squareBlack2._y;
aura3._y = _root.squareBlack3._y;
aura4._y = _root.squareBlack4._y;
aura5._y = _root.squareBlack5._y;
aura6._y = _root.squareBlack6._y;
aura7._y = _root.squareBlack7._y;
};
Symbol 169 MovieClip [glowplate] Frame 1
function randSpeed(min, max) {
var _local1 = (Math.random() * (max - min)) + min;
return(_local1);
}
var timer = 0;
this.onEnterFrame = function () {
timermax = Math.sqrt(Math.pow(_root.square._x - this._x, 2) + Math.pow(_root.square._y - this._y, 2));
if (Math.sqrt(Math.pow(_root.square._x - this._x, 2) + Math.pow(_root.square._y - this._y, 2)) < 100) {
timer++;
if ((timer >= (timermax / 10)) && (_root.death == 1)) {
this.attachMovie("glow", "glow" + _root.masterTimer, _root.masterTimer);
eval ("glow" + _root.masterTimer)._rotation = ((Math.atan2(_root.square._y - this._y, _root.square._x - this._x) * 180) / Math.PI) + 180;
eval ("glow" + _root.masterTimer)._x = randSpeed(-1, 1);
eval ("glow" + _root.masterTimer)._y = randSpeed(-1, 1);
timer = 0;
}
}
};
Symbol 184 MovieClip [presspace] Frame 31
stop();
Symbol 184 MovieClip [presspace] Frame 50
stop();
Symbol 219 MovieClip [Lovemc] Frame 1
this.onRollOver = function () {
_root.bruit.setVolume(100);
_root.outofbounds = false;
};
this.onRollOut = function () {
_root.bruit.setVolume(0);
_root.outofbounds = true;
};
stop();
Symbol 245 MovieClip [randomtip] Frame 1
stop();
Symbol 245 MovieClip [randomtip] Frame 2
stop();
Symbol 245 MovieClip [randomtip] Frame 3
stop();
Symbol 245 MovieClip [randomtip] Frame 4
stop();
Symbol 245 MovieClip [randomtip] Frame 5
stop();
Symbol 245 MovieClip [randomtip] Frame 6
stop();
Symbol 245 MovieClip [randomtip] Frame 7
stop();
Symbol 245 MovieClip [randomtip] Frame 8
stop();
Symbol 245 MovieClip [randomtip] Frame 9
stop();
Symbol 245 MovieClip [randomtip] Frame 10
stop();
Symbol 245 MovieClip [randomtip] Frame 11
stop();
Symbol 245 MovieClip [randomtip] Frame 12
stop();
Symbol 245 MovieClip [randomtip] Frame 13
stop();
Symbol 247 MovieClip [pmg] Frame 1
this.onRollOver = function () {
_root.bruit.setVolume(100);
};
this.onRollOut = function () {
_root.bruit.setVolume(0);
};
this.onRelease = function () {
getURL ("http://www.hairygames.com/", "_blank");
};
Symbol 247 MovieClip [pmg] Frame 2
this.onRollOver = function () {
_root.bruit.setVolume(100);
};
this.onRollOut = function () {
_root.bruit.setVolume(0);
};
this.onRelease = function () {
getURL ("http://www.hairygames.com/", "_blank");
};
Symbol 250 MovieClip [more] Frame 1
this.onRollOver = function () {
_root.bruit.setVolume(100);
};
this.onRollOut = function () {
_root.bruit.setVolume(0);
};
stop();
Symbol 250 MovieClip [more] Frame 2
this.onRollOver = function () {
_root.bruit.setVolume(100);
};
this.onRelease = function () {
_root.stats._x = 0;
};
Symbol 254 MovieClip [submit] Frame 1
this.onRollOver = function () {
_root.bruit.setVolume(100);
Mouse.show();
};
stop();
Symbol 254 MovieClip [submit] Frame 2
this.onRollOver = function () {
_root.bruit.setVolume(100);
};
this.onRollOut = function () {
_root.bruit.setVolume(0);
};
this.onRelease = function () {
var _local3 = {n:[14, 8, 9, 7, 3, 3, 3, 8, 7, 5, 7, 11, 13, 7, 12, 5], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var _local4 = _local3.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:e8973338757bd7c5, score:_root.finalscore});
};
Symbol 255 MovieClip [backtomenu] Frame 1
this.onRollOver = function () {
_root.bruit.setVolume(100);
};
stop();
Symbol 255 MovieClip [backtomenu] Frame 2
this.onRollOver = function () {
_root.bruit.setVolume(100);
};
this.onRollOut = function () {
_root.bruit.setVolume(0);
};
this.onRelease = function () {
_root.death = 3;
_root.bordVerticalGauche.removeMovieClip();
_root.bordVerticalDroit.removeMovieClip();
_root.bordHorizontalHaut.removeMovieClip();
_root.bordHorizontalBas.removeMovieClip();
_root.randomtip.removeMovieClip();
_root.presspace.removeMovieClip();
_root.presspace2.removeMovieClip();
_root.more.removeMovieClip();
_root.submit.removeMovieClip();
_root.stats.removeMovieClip();
_root.bordVerticalGauche.removeMovieClip();
_root.pmg.removeMovieClip();
_root.sound2.stop();
_root.bruit.stop();
_root.boum.stop();
_root.gotoAndPlay(6);
this.removeMovieClip();
};
Symbol 257 MovieClip [yes] Frame 1
this.onRelease = function () {
_root.death = 3;
_root.bordHorizontalHaut.removeMovieClip();
_root.bordHorizontalBas.removeMovieClip();
_root.bordVerticalGauche.removeMovieClip();
_root.bordVerticalDroit.removeMovieClip();
_root.presspace.removeMovieClip();
_root.presspace2.removeMovieClip();
_root.randomtip.removeMovieClip();
_root.backtomenu.removeMovieClip();
_root.sound2.stop();
_root.bruit.stop();
_root.boum.stop();
_root.gotoAndPlay(4);
this.removeMovieClip();
};
Symbol 259 MovieClip [no] Frame 1
this.onRelease = function () {
_root.backtomenu.gotoAndPlay(1);
};
Symbol 263 MovieClip [fakeloader] Frame 301
_root.attachMovie("playbutton", "playbutton", 2);
_root.playbutton._x = 275;
_root.playbutton._y = 350;
this.removeMovieClip();
Symbol 268 MovieClip [playbutton] Frame 1
stop();
this.onRollOver = function () {
gotoAndPlay (2);
};
Symbol 268 MovieClip [playbutton] Frame 2
stop();
this.onRelease = function () {
_root.gotoAndPlay(2);
this.removeMovieClip();
};
this.onRollOut = function () {
this.gotoAndPlay(1);
};
Symbol 278 MovieClip [hg_sponsor] Frame 1
this.onRelease = function () {
getURL ("http://www.hairygames.com/", "_blank");
};
Symbol 278 MovieClip [hg_sponsor] Frame 230
stop();
Symbol 332 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 333 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 334 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.9.1 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "services" :
mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args);
break;
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "social" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://link.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static var CONNECTED = "onConnected";
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 335 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 336 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function requestFunding(properties) {
mochi.as2.MochiServices.send("social_requestFunding", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 337 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("social_hideLoginWidget");
}
static function requestLogin(properties) {
mochi.as2.MochiServices.send("social_requestLogin", properties);
}
static function getFriendsList(properties) {
mochi.as2.MochiServices.send("social_getFriendsList", properties);
}
static function postToStream(properties) {
mochi.as2.MochiServices.send("social_postToStream", properties);
}
static function inviteFriends(properties) {
mochi.as2.MochiServices.send("social_inviteFriends", properties);
}
static function requestFan(properties) {
mochi.as2.MochiServices.send("social_requestFan", properties);
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("social_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var FRIEND_LIST = "FriendsList";
static var PROFILE_DATA = "ProfileData";
static var GAMEPLAY_DATA = "GameplayData";
static var ACTION_CANCELED = "onCancel";
static var ACTION_COMPLETE = "onComplete";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 338 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}