Frame 4
ifFrameLoaded (12) {
gotoAndStop (6);
}
loadVariablesNum ("./hof.txt", 0);
Frame 5
gotoAndPlay (4);
Frame 6
Mouse.hide();
startDrag ("/cur", true);
stop();
Frame 7
stop();
Frame 8
stop();
Frame 9
startDrag ("/cur", true);
Frame 10
stop();
Frame 12
function chVitesse(vit) {
if (0 < speedx) {
speedx = vit;
} else {
speedx = -vit;
}
if (0 < speedy) {
speedy = vit;
} else {
speedy = -vit;
}
}
sound.gotoAndPlay(55);
_root.redoublant = false;
startDrag ("/lance_carries", true, 180, 420, 580, 420);
ballx = getProperty("/lance_carries", _x);
bally = 400;
vflu = 20;
vnor = 10;
vbon = 6;
speedx = vnor;
speedy = -vnor;
ballwidth = 16;
fluorwidth = 53;
paddlewidth = 55;
topBonus = false;
speedBonusy = 4;
bricknumber = 0;
for (var dent in Structures) {
var maDent = Structures[dent];
if (typeof(maDent) == "movieclip") {
bricknumber++;
}
}
topSacre = false;
topDent = false;
vies.gotoAndPlay(carries);
veut_sacrifier = 0;
Set("/:level", 1);
if (_root.redoublant) {
topFluor = 1;
} else {
topFluor = 0;
}
Frame 13
if (5 < Number(carries)) {
if (topBonus) {
bonus.removeMovieClip();
}
if (topFluorman != 0) {
Fluorman.removeMovieClip();
}
gotoAndPlay (90);
}
setProperty("/carrie", _x , getProperty("/lance_carries", _x));
ballx = getProperty("/lance_carries", _x);
bally = 400;
setProperty("/carrie", _y , bally);
Frame 14
gotoAndPlay (13);
Frame 15
if (5 < Number(carries)) {
if (topBonus) {
bonus.removeMovieClip();
}
if (topFluorman != 0) {
Fluorman.removeMovieClip();
}
gotoAndPlay (90);
}
if (bricknumber == 0) {
chVitesse(vnor);
if (topBonus) {
bonus.removeMovieClip();
}
if (topFluorman != 0) {
Fluorman.removeMovieClip();
}
Set("/:level", 2);
gotoAndPlay (220);
}
call("prog");
Frame 16
gotoAndPlay (15);
Frame 21
if ((bricknumber == 1) and (topSacre == false)) {
topSacre = true;
now = new Date();
depart_time = now.getTime();
}
if ((bricknumber == 1) and (topSacre == true)) {
now = new Date();
arrivee_time = now.getTime();
delta = arrivee_time - depart_time;
if (4000 < delta) {
sacrifice.gotoAndPlay(2);
if (veut_sacrifier == true) {
for (dent in Structures) {
var maDent = Structures[dent];
if (typeof(maDent) == "movieclip") {
if (maDent.vis == true) {
sound.gotoAndPlay(2);
bricknumber--;
Set("/:score", /:score + maDent.nbPoints);
maDent.gotoAndPlay(2);
sacrifice.gotoAndPlay(1);
if (5 >= carries) {
carries++;
vies.nextFrame();
}
break;
}
}
}
}
}
}
ballx = ballx + speedx;
bally = bally + speedy;
for (dent in Structures) {
var maDent = Structures[dent];
if (typeof(maDent) == "movieclip") {
if ((carrie.hitTest(maDent) and (maDent.vis == true)) and (topDent == false)) {
topDent = true;
nomDent = maDent;
maDent.nbHit--;
if (maDent.nbHit == 0) {
if (((parseInt(Math.random() * 5) + 1) < 2) and (topBonus == false)) {
tBonus = parseInt(Math.random() * 3) + 1;
if (tBonus == 1) {
duplicateMovieClip ("bonusB", "bonus", 1);
} else if (tBonus == 2) {
duplicateMovieClip ("bonusV", "bonus", 1);
} else if (tBonus == 3) {
duplicateMovieClip ("bonusP", "bonus", 1);
}
setProperty("bonus", _x , (Math.random() * 470) + 150);
setProperty("bonus", _y , 10);
topBonus = true;
bonusy = bonus._y;
}
sound.gotoAndPlay(2);
bricknumber--;
Set("/:score", /:score + maDent.nbPoints);
maDent.gotoAndPlay(2);
} else {
sound.gotoAndPlay(2);
}
if (Math.abs(speedy) < Math.abs(speedx)) {
speedx = -speedx;
ballx = ballx + speedx;
} else {
speedy = -speedy;
bally = bally + speedy;
}
break;
}
if (((carrie.hitTest(maDent) == false) and (topDent == true)) and (maDent == nomDent)) {
topDent = false;
}
}
}
if (topBonus == true) {
bonusy = bonusy + speedBonusy;
if (lance_carries.hitTest(bonus)) {
if (tBonus == 3) {
Set("/:score", /:score + 350);
sound.gotoAndPlay(65);
chVitesse(vnor);
setProperty("/lance_carries", _width , 54);
}
if (tBonus == 1) {
Set("/:score", /:score + 500);
sound.gotoAndPlay(65);
if (1 < carries) {
carries--;
vies.prevFrame();
}
} else if (tBonus == 2) {
Set("/:score", /:score + 200);
sound.gotoAndPlay(65);
chVitesse(vbon);
}
bonus.removeMovieClip();
topBonus = false;
} else if (404 >= bonusy) {
setProperty("bonus", _y , bonusy);
} else {
bonus.removeMovieClip();
topBonus = false;
}
}
if (topFluor != 0) {
if ((fluorman_x >= (620 - (fluorwidth / 2))) or ((150 + (fluorwidth / 2)) >= fluorman_x)) {
fluorman_speedx = -fluorman_speedx;
}
if ((fluorman_y >= 150) or (4 >= fluorman_y)) {
fluorman_speedy = -fluorman_speedy;
}
fluorman_x = fluorman_x + fluorman_speedx;
fluorman_y = fluorman_y + fluorman_speedy;
if (carrie.hitTest(Fluorman)) {
sound.gotoAndPlay(70);
speedx = -speedx;
speedy = -speedy;
ballx = ballx + speedx;
bally = bally + speedy;
if (topFluor == 1) {
chVitesse(vflu);
} else if (topFluor == 2) {
chVitesse(vflu);
} else if (topFluor == 3) {
setProperty("/lance_carries", _width , 30);
}
}
setProperty("Fluorman", _x , fluorman_x);
setProperty("Fluorman", _y , fluorman_y);
}
if ((Number(ballx) >= Number(620 - (ballwidth / 2))) or (Number(150 + Number(ballwidth / 2)) >= Number(ballx))) {
speedx = -speedx;
ballx = Number(ballx) + Number(speedx);
sound.gotoAndPlay(38);
}
if (Number(1 + Number(int(ballwidth / 2))) >= Number(bally)) {
sound.gotoAndPlay(38);
speedy = -speedy;
bally = Number(bally) + Number(speedy);
}
paddlex = getProperty("lance_carries", _x);
if (((404 < Number(bally)) and (Number((paddlex - (paddlewidth / 2)) - 8) < Number(ballx))) and (Number(ballx) < Number(Number(Number(paddlex) + Number(paddlewidth / 2)) + 8))) {
if (Number(ballx) < Number(Number(paddlex - (paddlewidth / 2)) + Number(int(paddlewidth / 5)))) {
speedx = speedx - 6;
} else if (Number((Number(paddlex) + Number(paddlewidth / 2)) - int(paddlewidth / 5)) < Number(ballx)) {
speedx = Number(speedx) + 6;
} else if (Number(ballx) < Number(Number(paddlex - (paddlewidth / 2)) + Number(int(paddlewidth / 3)))) {
speedx = speedx - 3;
} else if (Number((Number(paddlex) + Number(paddlewidth / 2)) - int(paddlewidth / 3)) < Number(ballx)) {
speedx = Number(speedx) + 3;
}
speedy = -speedy;
bally = Number(bally) + Number(speedy);
sound.gotoAndPlay(21);
} else if (404 < Number(bally)) {
if (Number(carries) < 5) {
background.gotoAndPlay(2);
}
carries++;
vies.nextFrame();
chVitesse(vnor);
speedy = -speedy;
ballx = getProperty("/lance_carries", _x);
bally = 400;
setProperty("/lance_carries", _width , 54);
if (topBonus) {
bonus.removeMovieClip();
topBonus = false;
}
gotoAndPlay (13);
}
setProperty("/carrie", _x , ballx);
setProperty("/carrie", _y , bally);
Frame 25
function chVitesse(vit) {
if (0 < speedx) {
speedx = vit;
} else {
speedx = -vit;
}
if (0 < speedy) {
speedy = vit;
} else {
speedy = -vit;
}
}
startDrag ("/lance_carries", true, 180, 420, 580, 420);
ballx = getProperty("/lance_carries", _x);
bally = 400;
vflu = 20;
vnor = 10;
vbon = 6;
speedx = vnor;
speedy = -vnor;
ballwidth = 16;
fluorwidth = 53;
paddlewidth = 55;
topBonus = false;
speedBonusy = 4;
bricknumber = 0;
for (var dent in Structures) {
var maDent = Structures[dent];
if (typeof(maDent) == "movieclip") {
bricknumber++;
}
}
topSacre = false;
topDent = false;
if (_root.redoublant) {
topFluor = 2;
} else {
topFluor = 0;
}
vies.gotoAndPlay(carries);
veut_sacrifier = 0;
Set("/:level", 2);
Frame 26
if (5 < Number(carries)) {
if (topBonus) {
bonus.removeMovieClip();
}
if (topFluorman != 0) {
Fluorman.removeMovieClip();
}
gotoAndPlay (90);
}
setProperty("/carrie", _x , getProperty("/lance_carries", _x));
ballx = getProperty("/lance_carries", _x);
bally = 400;
setProperty("/carrie", _y , bally);
Frame 27
gotoAndPlay (26);
Frame 28
if (5 < Number(carries)) {
if (topBonus) {
bonus.removeMovieClip();
}
if (topFluorman != 0) {
Fluorman.removeMovieClip();
}
gotoAndPlay (90);
}
if (bricknumber == 0) {
chVitesse(vnor);
if (topBonus) {
bonus.removeMovieClip();
}
if (topFluorman != 0) {
Fluorman.removeMovieClip();
}
Set("/:level", 3);
gotoAndPlay (220);
}
call("prog2");
Frame 29
gotoAndPlay (28);
Frame 34
if ((bricknumber == 1) and (topSacre == false)) {
topSacre = true;
now = new Date();
depart_time = now.getTime();
}
if ((bricknumber == 1) and (topSacre == true)) {
now = new Date();
arrivee_time = now.getTime();
delta = arrivee_time - depart_time;
if (4000 < delta) {
sacrifice.gotoAndPlay(2);
if (veut_sacrifier == true) {
for (dent in Structures) {
var maDent = Structures[dent];
if (typeof(maDent) == "movieclip") {
if (maDent.vis == true) {
sound.gotoAndPlay(2);
bricknumber--;
Set("/:score", /:score + maDent.nbPoints);
maDent.gotoAndPlay(2);
sacrifice.gotoAndPlay(1);
if (5 >= carries) {
carries++;
vies.nextFrame();
}
break;
}
}
}
}
}
}
ballx = ballx + speedx;
bally = bally + speedy;
for (dent in Structures) {
var maDent = Structures[dent];
if (typeof(maDent) == "movieclip") {
if ((carrie.hitTest(maDent) and (maDent.vis == true)) and (topDent == false)) {
topDent = true;
nomDent = maDent;
maDent.nbHit--;
if (maDent.nbHit == 0) {
if (((parseInt(Math.random() * 5) + 1) < 2) and (topBonus == false)) {
tBonus = parseInt(Math.random() * 3) + 1;
if (tBonus == 1) {
duplicateMovieClip ("bonusB", "bonus", 1);
} else if (tBonus == 2) {
duplicateMovieClip ("bonusV", "bonus", 1);
} else if (tBonus == 3) {
duplicateMovieClip ("bonusP", "bonus", 1);
}
setProperty("bonus", _x , (Math.random() * 470) + 150);
setProperty("bonus", _y , 10);
topBonus = true;
bonusy = bonus._y;
}
sound.gotoAndPlay(2);
bricknumber--;
Set("/:score", /:score + maDent.nbPoints);
maDent.gotoAndPlay(2);
} else {
sound.gotoAndPlay(2);
}
if (Math.abs(speedy) < Math.abs(speedx)) {
speedx = -speedx;
ballx = ballx + speedx;
} else {
speedy = -speedy;
bally = bally + speedy;
}
break;
}
if (((carrie.hitTest(maDent) == false) and (topDent == true)) and (maDent == nomDent)) {
topDent = false;
}
}
}
if (topBonus == true) {
bonusy = bonusy + speedBonusy;
if (lance_carries.hitTest(bonus)) {
if (tBonus == 3) {
Set("/:score", /:score + 350);
sound.gotoAndPlay(65);
chVitesse(vnor);
setProperty("/lance_carries", _width , 54);
}
if (tBonus == 1) {
Set("/:score", /:score + 500);
sound.gotoAndPlay(65);
if (1 < carries) {
carries--;
vies.prevFrame();
}
} else if (tBonus == 2) {
Set("/:score", /:score + 200);
sound.gotoAndPlay(65);
chVitesse(vbon);
}
bonus.removeMovieClip();
topBonus = false;
} else if (404 >= bonusy) {
setProperty("bonus", _y , bonusy);
} else {
bonus.removeMovieClip();
topBonus = false;
}
}
if (topFluor != 0) {
if ((fluorman_x >= (620 - (fluorwidth / 2))) or ((150 + (fluorwidth / 2)) >= fluorman_x)) {
fluorman_speedx = -fluorman_speedx;
}
if ((fluorman_y >= 150) or (4 >= fluorman_y)) {
fluorman_speedy = -fluorman_speedy;
}
fluorman_x = fluorman_x + fluorman_speedx;
fluorman_y = fluorman_y + fluorman_speedy;
if (carrie.hitTest(Fluorman)) {
sound.gotoAndPlay(70);
speedx = -speedx;
speedy = -speedy;
ballx = ballx + speedx;
bally = bally + speedy;
if (topFluor == 1) {
chVitesse(vflu);
} else if (topFluor == 2) {
chVitesse(vflu);
} else if (topFluor == 3) {
setProperty("/lance_carries", _width , 30);
}
}
setProperty("Fluorman", _x , fluorman_x);
setProperty("Fluorman", _y , fluorman_y);
}
if ((Number(ballx) >= Number(620 - (ballwidth / 2))) or (Number(150 + Number(ballwidth / 2)) >= Number(ballx))) {
speedx = -speedx;
ballx = Number(ballx) + Number(speedx);
sound.gotoAndPlay(38);
}
if (Number(1 + Number(int(ballwidth / 2))) >= Number(bally)) {
sound.gotoAndPlay(38);
speedy = -speedy;
bally = Number(bally) + Number(speedy);
}
paddlex = getProperty("lance_carries", _x);
if (((404 < Number(bally)) and (Number((paddlex - (paddlewidth / 2)) - 8) < Number(ballx))) and (Number(ballx) < Number(Number(Number(paddlex) + Number(paddlewidth / 2)) + 8))) {
if (Number(ballx) < Number(Number(paddlex - (paddlewidth / 2)) + Number(int(paddlewidth / 5)))) {
speedx = speedx - 6;
} else if (Number((Number(paddlex) + Number(paddlewidth / 2)) - int(paddlewidth / 5)) < Number(ballx)) {
speedx = Number(speedx) + 6;
} else if (Number(ballx) < Number(Number(paddlex - (paddlewidth / 2)) + Number(int(paddlewidth / 3)))) {
speedx = speedx - 3;
} else if (Number((Number(paddlex) + Number(paddlewidth / 2)) - int(paddlewidth / 3)) < Number(ballx)) {
speedx = Number(speedx) + 3;
}
speedy = -speedy;
bally = Number(bally) + Number(speedy);
sound.gotoAndPlay(21);
} else if (404 < Number(bally)) {
if (Number(carries) < 5) {
background.gotoAndPlay(2);
}
carries++;
vies.nextFrame();
chVitesse(vnor);
speedy = -speedy;
ballx = getProperty("/lance_carries", _x);
bally = 400;
setProperty("/lance_carries", _width , 54);
if (topBonus) {
bonus.removeMovieClip();
topBonus = false;
}
gotoAndPlay (26);
}
setProperty("/carrie", _x , ballx);
setProperty("/carrie", _y , bally);
Frame 38
function chVitesse(vit) {
if (0 < speedx) {
speedx = vit;
} else {
speedx = -vit;
}
if (0 < speedy) {
speedy = vit;
} else {
speedy = -vit;
}
}
startDrag ("/lance_carries", true, 180, 420, 580, 420);
ballx = getProperty("/lance_carries", _x);
bally = 400;
vflu = 20;
vnor = 10;
vbon = 6;
speedx = vnor;
speedy = -vnor;
ballwidth = 16;
fluorwidth = 53;
paddlewidth = 55;
topBonus = false;
speedBonusy = 4;
bricknumber = 0;
for (var dent in Structures) {
var maDent = Structures[dent];
if (typeof(maDent) == "movieclip") {
bricknumber++;
}
}
topSacre = false;
topDent = false;
if (_root.redoublant) {
topFluor = 3;
} else {
topFluor = 0;
}
vies.gotoAndPlay(carries);
veut_sacrifier = 0;
Set("/:level", 3);
Frame 39
if (5 < Number(carries)) {
if (topBonus) {
bonus.removeMovieClip();
}
if (topFluorman != 0) {
Fluorman.removeMovieClip();
}
gotoAndPlay (90);
}
setProperty("/carrie", _x , getProperty("/lance_carries", _x));
ballx = getProperty("/lance_carries", _x);
bally = 400;
setProperty("/carrie", _y , bally);
Frame 40
gotoAndPlay (39);
Frame 41
if (5 < Number(carries)) {
if (topBonus) {
bonus.removeMovieClip();
}
if (topFluorman != 0) {
Fluorman.removeMovieClip();
}
gotoAndPlay (90);
}
if (bricknumber == 0) {
chVitesse(vnor);
if (topBonus) {
bonus.removeMovieClip();
}
if (topFluorman != 0) {
Fluorman.removeMovieClip();
}
Set("/:level", 4);
gotoAndPlay (220);
}
call("prog3");
Frame 42
gotoAndPlay (41);
Frame 47
if ((bricknumber == 1) and (topSacre == false)) {
topSacre = true;
now = new Date();
depart_time = now.getTime();
}
if ((bricknumber == 1) and (topSacre == true)) {
now = new Date();
arrivee_time = now.getTime();
delta = arrivee_time - depart_time;
if (4000 < delta) {
sacrifice.gotoAndPlay(2);
if (veut_sacrifier == true) {
for (dent in Structures) {
var maDent = Structures[dent];
if (typeof(maDent) == "movieclip") {
if (maDent.vis == true) {
sound.gotoAndPlay(2);
bricknumber--;
Set("/:score", /:score + maDent.nbPoints);
maDent.gotoAndPlay(2);
sacrifice.gotoAndPlay(1);
if (5 >= carries) {
carries++;
vies.nextFrame();
}
break;
}
}
}
}
}
}
ballx = ballx + speedx;
bally = bally + speedy;
for (dent in Structures) {
var maDent = Structures[dent];
if (typeof(maDent) == "movieclip") {
if ((carrie.hitTest(maDent) and (maDent.vis == true)) and (topDent == false)) {
topDent = true;
nomDent = maDent;
maDent.nbHit--;
if (maDent.nbHit == 0) {
if (((parseInt(Math.random() * 5) + 1) < 2) and (topBonus == false)) {
tBonus = parseInt(Math.random() * 3) + 1;
if (tBonus == 1) {
duplicateMovieClip ("bonusB", "bonus", 1);
} else if (tBonus == 2) {
duplicateMovieClip ("bonusV", "bonus", 1);
} else if (tBonus == 3) {
duplicateMovieClip ("bonusP", "bonus", 1);
}
setProperty("bonus", _x , (Math.random() * 470) + 150);
setProperty("bonus", _y , 10);
topBonus = true;
bonusy = bonus._y;
}
sound.gotoAndPlay(2);
bricknumber--;
Set("/:score", /:score + maDent.nbPoints);
maDent.gotoAndPlay(2);
} else {
sound.gotoAndPlay(2);
}
if (Math.abs(speedy) < Math.abs(speedx)) {
speedx = -speedx;
ballx = ballx + speedx;
} else {
speedy = -speedy;
bally = bally + speedy;
}
break;
}
if (((carrie.hitTest(maDent) == false) and (topDent == true)) and (maDent == nomDent)) {
topDent = false;
}
}
}
if (topBonus == true) {
bonusy = bonusy + speedBonusy;
if (lance_carries.hitTest(bonus)) {
if (tBonus == 3) {
Set("/:score", /:score + 350);
sound.gotoAndPlay(65);
chVitesse(vnor);
setProperty("/lance_carries", _width , 54);
}
if (tBonus == 1) {
Set("/:score", /:score + 500);
sound.gotoAndPlay(65);
if (1 < carries) {
carries--;
vies.prevFrame();
}
} else if (tBonus == 2) {
Set("/:score", /:score + 200);
sound.gotoAndPlay(65);
chVitesse(vbon);
}
bonus.removeMovieClip();
topBonus = false;
} else if (404 >= bonusy) {
setProperty("bonus", _y , bonusy);
} else {
bonus.removeMovieClip();
topBonus = false;
}
}
if (topFluor != 0) {
if ((fluorman_x >= (620 - (fluorwidth / 2))) or ((150 + (fluorwidth / 2)) >= fluorman_x)) {
fluorman_speedx = -fluorman_speedx;
}
if ((fluorman_y >= 150) or (4 >= fluorman_y)) {
fluorman_speedy = -fluorman_speedy;
}
fluorman_x = fluorman_x + fluorman_speedx;
fluorman_y = fluorman_y + fluorman_speedy;
if (carrie.hitTest(Fluorman)) {
sound.gotoAndPlay(70);
speedx = -speedx;
speedy = -speedy;
ballx = ballx + speedx;
bally = bally + speedy;
if (topFluor == 1) {
chVitesse(vflu);
} else if (topFluor == 2) {
chVitesse(vflu);
} else if (topFluor == 3) {
setProperty("/lance_carries", _width , 30);
}
}
setProperty("Fluorman", _x , fluorman_x);
setProperty("Fluorman", _y , fluorman_y);
}
if ((Number(ballx) >= Number(620 - (ballwidth / 2))) or (Number(150 + Number(ballwidth / 2)) >= Number(ballx))) {
speedx = -speedx;
ballx = Number(ballx) + Number(speedx);
sound.gotoAndPlay(38);
}
if (Number(1 + Number(int(ballwidth / 2))) >= Number(bally)) {
sound.gotoAndPlay(38);
speedy = -speedy;
bally = Number(bally) + Number(speedy);
}
paddlex = getProperty("lance_carries", _x);
if (((404 < Number(bally)) and (Number((paddlex - (paddlewidth / 2)) - 8) < Number(ballx))) and (Number(ballx) < Number(Number(Number(paddlex) + Number(paddlewidth / 2)) + 8))) {
if (Number(ballx) < Number(Number(paddlex - (paddlewidth / 2)) + Number(int(paddlewidth / 5)))) {
speedx = speedx - 6;
} else if (Number((Number(paddlex) + Number(paddlewidth / 2)) - int(paddlewidth / 5)) < Number(ballx)) {
speedx = Number(speedx) + 6;
} else if (Number(ballx) < Number(Number(paddlex - (paddlewidth / 2)) + Number(int(paddlewidth / 3)))) {
speedx = speedx - 3;
} else if (Number((Number(paddlex) + Number(paddlewidth / 2)) - int(paddlewidth / 3)) < Number(ballx)) {
speedx = Number(speedx) + 3;
}
speedy = -speedy;
bally = Number(bally) + Number(speedy);
sound.gotoAndPlay(21);
} else if (404 < Number(bally)) {
if (Number(carries) < 5) {
background.gotoAndPlay(2);
}
carries++;
vies.nextFrame();
chVitesse(vnor);
speedy = -speedy;
ballx = getProperty("/lance_carries", _x);
bally = 400;
setProperty("/lance_carries", _width , 54);
if (topBonus) {
bonus.removeMovieClip();
topBonus = false;
}
gotoAndPlay (39);
}
setProperty("/carrie", _x , ballx);
setProperty("/carrie", _y , bally);
Frame 51
function chVitesse(vit) {
if (0 < speedx) {
speedx = vit;
} else {
speedx = -vit;
}
if (0 < speedy) {
speedy = vit;
} else {
speedy = -vit;
}
}
startDrag ("/lance_carries", true, 180, 420, 580, 420);
ballx = getProperty("/lance_carries", _x);
bally = 400;
vflu = 20;
vnor = 10;
vbon = 6;
speedx = vnor;
speedy = -vnor;
ballwidth = 16;
fluorwidth = 53;
paddlewidth = 55;
topBonus = false;
speedBonusy = 4;
bricknumber = 0;
for (var dent in Structures) {
var maDent = Structures[dent];
if (typeof(maDent) == "movieclip") {
bricknumber++;
}
}
topSacre = false;
topDent = false;
vies.gotoAndPlay(carries);
veut_sacrifier = 0;
Set("/:level", 4);
topFluor = 1;
Frame 52
if (5 < Number(carries)) {
if (topBonus) {
bonus.removeMovieClip();
}
if (topFluorman != 0) {
Fluorman.removeMovieClip();
}
gotoAndPlay (90);
}
setProperty("/carrie", _x , getProperty("/lance_carries", _x));
ballx = getProperty("/lance_carries", _x);
bally = 400;
setProperty("/carrie", _y , bally);
Frame 53
gotoAndPlay (52);
Frame 54
if (5 < Number(carries)) {
if (topBonus) {
bonus.removeMovieClip();
}
if (topFluorman != 0) {
Fluorman.removeMovieClip();
}
gotoAndPlay (90);
}
if (bricknumber == 0) {
chVitesse(vnor);
if (topBonus) {
bonus.removeMovieClip();
}
if (topFluorman != 0) {
Fluorman.removeMovieClip();
}
Set("/:level", 5);
gotoAndPlay (220);
}
call("prog4");
Frame 55
gotoAndPlay (54);
Frame 60
if ((bricknumber == 1) and (topSacre == false)) {
topSacre = true;
now = new Date();
depart_time = now.getTime();
}
if ((bricknumber == 1) and (topSacre == true)) {
now = new Date();
arrivee_time = now.getTime();
delta = arrivee_time - depart_time;
if (4000 < delta) {
sacrifice.gotoAndPlay(2);
if (veut_sacrifier == true) {
for (dent in Structures) {
var maDent = Structures[dent];
if (typeof(maDent) == "movieclip") {
if (maDent.vis == true) {
sound.gotoAndPlay(2);
bricknumber--;
Set("/:score", /:score + maDent.nbPoints);
maDent.gotoAndPlay(2);
sacrifice.gotoAndPlay(1);
if (5 >= carries) {
carries++;
vies.nextFrame();
}
break;
}
}
}
}
}
}
ballx = ballx + speedx;
bally = bally + speedy;
for (dent in Structures) {
var maDent = Structures[dent];
if (typeof(maDent) == "movieclip") {
if ((carrie.hitTest(maDent) and (maDent.vis == true)) and (topDent == false)) {
topDent = true;
nomDent = maDent;
maDent.nbHit--;
if (maDent.nbHit == 0) {
if (((parseInt(Math.random() * 5) + 1) < 2) and (topBonus == false)) {
tBonus = parseInt(Math.random() * 3) + 1;
if (tBonus == 1) {
duplicateMovieClip ("bonusB", "bonus", 1);
} else if (tBonus == 2) {
duplicateMovieClip ("bonusV", "bonus", 1);
} else if (tBonus == 3) {
duplicateMovieClip ("bonusP", "bonus", 1);
}
setProperty("bonus", _x , (Math.random() * 470) + 150);
setProperty("bonus", _y , 10);
topBonus = true;
bonusy = bonus._y;
}
sound.gotoAndPlay(2);
bricknumber--;
Set("/:score", /:score + maDent.nbPoints);
maDent.gotoAndPlay(2);
} else {
sound.gotoAndPlay(2);
}
if (Math.abs(speedy) < Math.abs(speedx)) {
speedx = -speedx;
ballx = ballx + speedx;
} else {
speedy = -speedy;
bally = bally + speedy;
}
break;
}
if (((carrie.hitTest(maDent) == false) and (topDent == true)) and (maDent == nomDent)) {
topDent = false;
}
}
}
if (topBonus == true) {
bonusy = bonusy + speedBonusy;
if (lance_carries.hitTest(bonus)) {
if (tBonus == 3) {
Set("/:score", /:score + 350);
sound.gotoAndPlay(65);
chVitesse(vnor);
setProperty("/lance_carries", _width , 54);
}
if (tBonus == 1) {
Set("/:score", /:score + 500);
sound.gotoAndPlay(65);
if (1 < carries) {
carries--;
vies.prevFrame();
}
} else if (tBonus == 2) {
Set("/:score", /:score + 200);
sound.gotoAndPlay(65);
chVitesse(vbon);
}
bonus.removeMovieClip();
topBonus = false;
} else if (404 >= bonusy) {
setProperty("bonus", _y , bonusy);
} else {
bonus.removeMovieClip();
topBonus = false;
}
}
if (topFluor != 0) {
if ((fluorman_x >= (620 - (fluorwidth / 2))) or ((150 + (fluorwidth / 2)) >= fluorman_x)) {
fluorman_speedx = -fluorman_speedx;
}
if ((fluorman_y >= 150) or (4 >= fluorman_y)) {
fluorman_speedy = -fluorman_speedy;
}
fluorman_x = fluorman_x + fluorman_speedx;
fluorman_y = fluorman_y + fluorman_speedy;
if (carrie.hitTest(Fluorman)) {
sound.gotoAndPlay(70);
speedx = -speedx;
speedy = -speedy;
ballx = ballx + speedx;
bally = bally + speedy;
if (topFluor == 1) {
chVitesse(vflu);
} else if (topFluor == 2) {
chVitesse(vflu);
} else if (topFluor == 3) {
setProperty("/lance_carries", _width , 30);
}
}
setProperty("Fluorman", _x , fluorman_x);
setProperty("Fluorman", _y , fluorman_y);
}
if ((Number(ballx) >= Number(620 - (ballwidth / 2))) or (Number(150 + Number(ballwidth / 2)) >= Number(ballx))) {
speedx = -speedx;
ballx = Number(ballx) + Number(speedx);
sound.gotoAndPlay(38);
}
if (Number(1 + Number(int(ballwidth / 2))) >= Number(bally)) {
sound.gotoAndPlay(38);
speedy = -speedy;
bally = Number(bally) + Number(speedy);
}
paddlex = getProperty("lance_carries", _x);
if (((404 < Number(bally)) and (Number((paddlex - (paddlewidth / 2)) - 8) < Number(ballx))) and (Number(ballx) < Number(Number(Number(paddlex) + Number(paddlewidth / 2)) + 8))) {
if (Number(ballx) < Number(Number(paddlex - (paddlewidth / 2)) + Number(int(paddlewidth / 5)))) {
speedx = speedx - 6;
} else if (Number((Number(paddlex) + Number(paddlewidth / 2)) - int(paddlewidth / 5)) < Number(ballx)) {
speedx = Number(speedx) + 6;
} else if (Number(ballx) < Number(Number(paddlex - (paddlewidth / 2)) + Number(int(paddlewidth / 3)))) {
speedx = speedx - 3;
} else if (Number((Number(paddlex) + Number(paddlewidth / 2)) - int(paddlewidth / 3)) < Number(ballx)) {
speedx = Number(speedx) + 3;
}
speedy = -speedy;
bally = Number(bally) + Number(speedy);
sound.gotoAndPlay(21);
} else if (404 < Number(bally)) {
if (Number(carries) < 5) {
background.gotoAndPlay(2);
}
carries++;
vies.nextFrame();
chVitesse(vnor);
speedy = -speedy;
ballx = getProperty("/lance_carries", _x);
bally = 400;
setProperty("/lance_carries", _width , 54);
if (topBonus) {
bonus.removeMovieClip();
topBonus = false;
}
gotoAndPlay (52);
}
setProperty("/carrie", _x , ballx);
setProperty("/carrie", _y , bally);
Frame 64
function chVitesse(vit) {
if (0 < speedx) {
speedx = vit;
} else {
speedx = -vit;
}
if (0 < speedy) {
speedy = vit;
} else {
speedy = -vit;
}
}
startDrag ("/lance_carries", true, 180, 420, 580, 420);
ballx = getProperty("/lance_carries", _x);
bally = 400;
vflu = 20;
vnor = 10;
vbon = 6;
speedx = vnor;
speedy = -vnor;
ballwidth = 16;
fluorwidth = 53;
paddlewidth = 55;
topBonus = false;
speedBonusy = 4;
bricknumber = 0;
for (var dent in Structures) {
var maDent = Structures[dent];
if (typeof(maDent) == "movieclip") {
bricknumber++;
}
}
topSacre = false;
topDent = false;
vies.gotoAndPlay(carries);
veut_sacrifier = 0;
Set("/:level", 5);
topFluor = 2;
Frame 65
if (5 < Number(carries)) {
if (topBonus) {
bonus.removeMovieClip();
}
if (topFluorman != 0) {
Fluorman.removeMovieClip();
}
gotoAndPlay (90);
}
setProperty("/carrie", _x , getProperty("/lance_carries", _x));
ballx = getProperty("/lance_carries", _x);
bally = 400;
setProperty("/carrie", _y , bally);
Frame 66
gotoAndPlay (65);
Frame 67
if (5 < Number(carries)) {
if (topBonus) {
bonus.removeMovieClip();
}
if (topFluorman != 0) {
Fluorman.removeMovieClip();
}
gotoAndPlay (90);
}
if (bricknumber == 0) {
chVitesse(vnor);
if (topBonus) {
bonus.removeMovieClip();
}
if (topFluorman != 0) {
Fluorman.removeMovieClip();
}
Set("/:level", 6);
gotoAndPlay (220);
}
call("prog5");
Frame 68
gotoAndPlay (67);
Frame 73
if ((bricknumber == 1) and (topSacre == false)) {
topSacre = true;
now = new Date();
depart_time = now.getTime();
}
if ((bricknumber == 1) and (topSacre == true)) {
now = new Date();
arrivee_time = now.getTime();
delta = arrivee_time - depart_time;
if (4000 < delta) {
sacrifice.gotoAndPlay(2);
if (veut_sacrifier == true) {
for (dent in Structures) {
var maDent = Structures[dent];
if (typeof(maDent) == "movieclip") {
if (maDent.vis == true) {
sound.gotoAndPlay(2);
bricknumber--;
Set("/:score", /:score + maDent.nbPoints);
maDent.gotoAndPlay(2);
sacrifice.gotoAndPlay(1);
if (5 >= carries) {
carries++;
vies.nextFrame();
}
break;
}
}
}
}
}
}
ballx = ballx + speedx;
bally = bally + speedy;
for (dent in Structures) {
var maDent = Structures[dent];
if (typeof(maDent) == "movieclip") {
if ((carrie.hitTest(maDent) and (maDent.vis == true)) and (topDent == false)) {
topDent = true;
nomDent = maDent;
maDent.nbHit--;
if (maDent.nbHit == 0) {
if (((parseInt(Math.random() * 5) + 1) < 2) and (topBonus == false)) {
tBonus = parseInt(Math.random() * 3) + 1;
if (tBonus == 1) {
duplicateMovieClip ("bonusB", "bonus", 1);
} else if (tBonus == 2) {
duplicateMovieClip ("bonusV", "bonus", 1);
} else if (tBonus == 3) {
duplicateMovieClip ("bonusP", "bonus", 1);
}
setProperty("bonus", _x , (Math.random() * 470) + 150);
setProperty("bonus", _y , 10);
topBonus = true;
bonusy = bonus._y;
}
sound.gotoAndPlay(2);
bricknumber--;
Set("/:score", /:score + maDent.nbPoints);
maDent.gotoAndPlay(2);
} else {
sound.gotoAndPlay(2);
}
if (Math.abs(speedy) < Math.abs(speedx)) {
speedx = -speedx;
ballx = ballx + speedx;
} else {
speedy = -speedy;
bally = bally + speedy;
}
break;
}
if (((carrie.hitTest(maDent) == false) and (topDent == true)) and (maDent == nomDent)) {
topDent = false;
}
}
}
if (topBonus == true) {
bonusy = bonusy + speedBonusy;
if (lance_carries.hitTest(bonus)) {
if (tBonus == 3) {
Set("/:score", /:score + 350);
sound.gotoAndPlay(65);
chVitesse(vnor);
setProperty("/lance_carries", _width , 54);
}
if (tBonus == 1) {
Set("/:score", /:score + 500);
sound.gotoAndPlay(65);
if (1 < carries) {
carries--;
vies.prevFrame();
}
} else if (tBonus == 2) {
Set("/:score", /:score + 200);
sound.gotoAndPlay(65);
chVitesse(vbon);
}
bonus.removeMovieClip();
topBonus = false;
} else if (404 >= bonusy) {
setProperty("bonus", _y , bonusy);
} else {
bonus.removeMovieClip();
topBonus = false;
}
}
if (topFluor != 0) {
if ((fluorman_x >= (620 - (fluorwidth / 2))) or ((150 + (fluorwidth / 2)) >= fluorman_x)) {
fluorman_speedx = -fluorman_speedx;
}
if ((fluorman_y >= 150) or (4 >= fluorman_y)) {
fluorman_speedy = -fluorman_speedy;
}
fluorman_x = fluorman_x + fluorman_speedx;
fluorman_y = fluorman_y + fluorman_speedy;
if (carrie.hitTest(Fluorman)) {
sound.gotoAndPlay(70);
speedx = -speedx;
speedy = -speedy;
ballx = ballx + speedx;
bally = bally + speedy;
if (topFluor == 1) {
chVitesse(vflu);
} else if (topFluor == 2) {
chVitesse(vflu);
} else if (topFluor == 3) {
setProperty("/lance_carries", _width , 30);
}
}
setProperty("Fluorman", _x , fluorman_x);
setProperty("Fluorman", _y , fluorman_y);
}
if ((Number(ballx) >= Number(620 - (ballwidth / 2))) or (Number(150 + Number(ballwidth / 2)) >= Number(ballx))) {
speedx = -speedx;
ballx = Number(ballx) + Number(speedx);
sound.gotoAndPlay(38);
}
if (Number(1 + Number(int(ballwidth / 2))) >= Number(bally)) {
sound.gotoAndPlay(38);
speedy = -speedy;
bally = Number(bally) + Number(speedy);
}
paddlex = getProperty("lance_carries", _x);
if (((404 < Number(bally)) and (Number((paddlex - (paddlewidth / 2)) - 8) < Number(ballx))) and (Number(ballx) < Number(Number(Number(paddlex) + Number(paddlewidth / 2)) + 8))) {
if (Number(ballx) < Number(Number(paddlex - (paddlewidth / 2)) + Number(int(paddlewidth / 5)))) {
speedx = speedx - 6;
} else if (Number((Number(paddlex) + Number(paddlewidth / 2)) - int(paddlewidth / 5)) < Number(ballx)) {
speedx = Number(speedx) + 6;
} else if (Number(ballx) < Number(Number(paddlex - (paddlewidth / 2)) + Number(int(paddlewidth / 3)))) {
speedx = speedx - 3;
} else if (Number((Number(paddlex) + Number(paddlewidth / 2)) - int(paddlewidth / 3)) < Number(ballx)) {
speedx = Number(speedx) + 3;
}
speedy = -speedy;
bally = Number(bally) + Number(speedy);
sound.gotoAndPlay(21);
} else if (404 < Number(bally)) {
if (Number(carries) < 5) {
background.gotoAndPlay(2);
}
carries++;
vies.nextFrame();
chVitesse(vnor);
speedy = -speedy;
ballx = getProperty("/lance_carries", _x);
bally = 400;
setProperty("/lance_carries", _width , 54);
if (topBonus) {
bonus.removeMovieClip();
topBonus = false;
}
gotoAndPlay (65);
}
setProperty("/carrie", _x , ballx);
setProperty("/carrie", _y , bally);
Frame 77
function chVitesse(vit) {
if (0 < speedx) {
speedx = vit;
} else {
speedx = -vit;
}
if (0 < speedy) {
speedy = vit;
} else {
speedy = -vit;
}
}
startDrag ("/lance_carries", true, 180, 420, 580, 420);
ballx = getProperty("/lance_carries", _x);
bally = 400;
vflu = 20;
vnor = 10;
vbon = 6;
speedx = vnor;
speedy = -vnor;
ballwidth = 16;
fluorwidth = 53;
paddlewidth = 55;
topBonus = false;
speedBonusy = 4;
bricknumber = 0;
for (var dent in Structures) {
var maDent = Structures[dent];
if (typeof(maDent) == "movieclip") {
bricknumber++;
}
}
topSacre = false;
topDent = false;
vies.gotoAndPlay(carries);
veut_sacrifier = 0;
Set("/:level", 6);
topFluor = 3;
Frame 78
if (5 < Number(carries)) {
if (topBonus) {
bonus.removeMovieClip();
}
if (topFluorman != 0) {
Fluorman.removeMovieClip();
}
gotoAndPlay (90);
}
setProperty("/carrie", _x , getProperty("/lance_carries", _x));
ballx = getProperty("/lance_carries", _x);
bally = 400;
setProperty("/carrie", _y , bally);
Frame 79
gotoAndPlay (78);
Frame 80
if (5 < Number(carries)) {
if (topBonus) {
bonus.removeMovieClip();
}
if (topFluorman != 0) {
Fluorman.removeMovieClip();
}
gotoAndPlay (90);
}
if (bricknumber == 0) {
chVitesse(vnor);
if (topBonus) {
bonus.removeMovieClip();
}
if (topFluorman != 0) {
Fluorman.removeMovieClip();
}
Set("/:level", 7);
gotoAndPlay (220);
}
call("prog6");
Frame 81
gotoAndPlay (80);
Frame 86
if ((bricknumber == 1) and (topSacre == false)) {
topSacre = true;
now = new Date();
depart_time = now.getTime();
}
if ((bricknumber == 1) and (topSacre == true)) {
now = new Date();
arrivee_time = now.getTime();
delta = arrivee_time - depart_time;
if (4000 < delta) {
sacrifice.gotoAndPlay(2);
if (veut_sacrifier == true) {
for (dent in Structures) {
var maDent = Structures[dent];
if (typeof(maDent) == "movieclip") {
if (maDent.vis == true) {
sound.gotoAndPlay(2);
bricknumber--;
Set("/:score", /:score + maDent.nbPoints);
maDent.gotoAndPlay(2);
sacrifice.gotoAndPlay(1);
if (5 >= carries) {
carries++;
vies.nextFrame();
}
break;
}
}
}
}
}
}
ballx = ballx + speedx;
bally = bally + speedy;
for (dent in Structures) {
var maDent = Structures[dent];
if (typeof(maDent) == "movieclip") {
if ((carrie.hitTest(maDent) and (maDent.vis == true)) and (topDent == false)) {
topDent = true;
nomDent = maDent;
maDent.nbHit--;
if (maDent.nbHit == 0) {
if (((parseInt(Math.random() * 5) + 1) < 2) and (topBonus == false)) {
tBonus = parseInt(Math.random() * 3) + 1;
if (tBonus == 1) {
duplicateMovieClip ("bonusB", "bonus", 1);
} else if (tBonus == 2) {
duplicateMovieClip ("bonusV", "bonus", 1);
} else if (tBonus == 3) {
duplicateMovieClip ("bonusP", "bonus", 1);
}
setProperty("bonus", _x , (Math.random() * 470) + 150);
setProperty("bonus", _y , 10);
topBonus = true;
bonusy = bonus._y;
}
sound.gotoAndPlay(2);
bricknumber--;
Set("/:score", /:score + maDent.nbPoints);
maDent.gotoAndPlay(2);
} else {
sound.gotoAndPlay(2);
}
if (Math.abs(speedy) < Math.abs(speedx)) {
speedx = -speedx;
ballx = ballx + speedx;
} else {
speedy = -speedy;
bally = bally + speedy;
}
break;
}
if (((carrie.hitTest(maDent) == false) and (topDent == true)) and (maDent == nomDent)) {
topDent = false;
}
}
}
if (topBonus == true) {
bonusy = bonusy + speedBonusy;
if (lance_carries.hitTest(bonus)) {
if (tBonus == 3) {
Set("/:score", /:score + 350);
sound.gotoAndPlay(65);
chVitesse(vnor);
setProperty("/lance_carries", _width , 54);
}
if (tBonus == 1) {
Set("/:score", /:score + 500);
sound.gotoAndPlay(65);
if (1 < carries) {
carries--;
vies.prevFrame();
}
} else if (tBonus == 2) {
Set("/:score", /:score + 200);
sound.gotoAndPlay(65);
chVitesse(vbon);
}
bonus.removeMovieClip();
topBonus = false;
} else if (404 >= bonusy) {
setProperty("bonus", _y , bonusy);
} else {
bonus.removeMovieClip();
topBonus = false;
}
}
if (topFluor != 0) {
if ((fluorman_x >= (620 - (fluorwidth / 2))) or ((150 + (fluorwidth / 2)) >= fluorman_x)) {
fluorman_speedx = -fluorman_speedx;
}
if ((fluorman_y >= 150) or (4 >= fluorman_y)) {
fluorman_speedy = -fluorman_speedy;
}
fluorman_x = fluorman_x + fluorman_speedx;
fluorman_y = fluorman_y + fluorman_speedy;
if (carrie.hitTest(Fluorman)) {
sound.gotoAndPlay(70);
speedx = -speedx;
speedy = -speedy;
ballx = ballx + speedx;
bally = bally + speedy;
if (topFluor == 1) {
chVitesse(vflu);
} else if (topFluor == 2) {
chVitesse(vflu);
} else if (topFluor == 3) {
setProperty("/lance_carries", _width , 30);
}
}
setProperty("Fluorman", _x , fluorman_x);
setProperty("Fluorman", _y , fluorman_y);
}
if ((Number(ballx) >= Number(620 - (ballwidth / 2))) or (Number(150 + Number(ballwidth / 2)) >= Number(ballx))) {
speedx = -speedx;
ballx = Number(ballx) + Number(speedx);
sound.gotoAndPlay(38);
}
if (Number(1 + Number(int(ballwidth / 2))) >= Number(bally)) {
sound.gotoAndPlay(38);
speedy = -speedy;
bally = Number(bally) + Number(speedy);
}
paddlex = getProperty("lance_carries", _x);
if (((404 < Number(bally)) and (Number((paddlex - (paddlewidth / 2)) - 8) < Number(ballx))) and (Number(ballx) < Number(Number(Number(paddlex) + Number(paddlewidth / 2)) + 8))) {
if (Number(ballx) < Number(Number(paddlex - (paddlewidth / 2)) + Number(int(paddlewidth / 5)))) {
speedx = speedx - 6;
} else if (Number((Number(paddlex) + Number(paddlewidth / 2)) - int(paddlewidth / 5)) < Number(ballx)) {
speedx = Number(speedx) + 6;
} else if (Number(ballx) < Number(Number(paddlex - (paddlewidth / 2)) + Number(int(paddlewidth / 3)))) {
speedx = speedx - 3;
} else if (Number((Number(paddlex) + Number(paddlewidth / 2)) - int(paddlewidth / 3)) < Number(ballx)) {
speedx = Number(speedx) + 3;
}
speedy = -speedy;
bally = Number(bally) + Number(speedy);
sound.gotoAndPlay(21);
} else if (404 < Number(bally)) {
if (Number(carries) < 5) {
background.gotoAndPlay(2);
}
carries++;
vies.nextFrame();
chVitesse(vnor);
speedy = -speedy;
ballx = getProperty("/lance_carries", _x);
bally = 400;
setProperty("/lance_carries", _width , 54);
if (topBonus) {
bonus.removeMovieClip();
topBonus = false;
}
gotoAndPlay (78);
}
setProperty("/carrie", _x , ballx);
setProperty("/carrie", _y , bally);
Frame 90
stopDrag();
for (dent in Structures) {
if (typeof(Structures[dent]) == "movieclip") {
removeMovieClip(Structures[dent]);
}
}
play();
Frame 214
Mouse.hide();
startDrag ("/cur", true);
if (/:score6 < _root.score) {
gotoAndPlay (216);
}
Frame 215
stop();
Frame 216
stop();
Frame 220
Mouse.hide();
startDrag ("/cur", true);
Frame 222
stop();
Symbol 10 MovieClip Frame 4
stop();
Symbol 16 MovieClip Frame 4
stop();
Symbol 22 MovieClip Frame 4
stop();
Symbol 26 MovieClip Frame 4
stop();
Symbol 30 MovieClip Frame 4
stop();
Symbol 34 MovieClip Frame 4
stop();
Symbol 38 Button
on (press) {
gotoAndPlay (8);
}
Symbol 40 Button
on (press) {
gotoAndPlay (7);
}
Symbol 42 Button
on (press) {
Set("/:score", 0);
carries = 1;
speed = 10;
gotoAndPlay (12);
}
Symbol 44 Button
on (press) {
gotoAndPlay (9);
}
Symbol 45 Button
on (keyPress "1") {
Set("/:score", 0);
carries = 1;
speed = 10;
gotoAndPlay (12);
}
on (keyPress "2") {
Set("/:score", 0);
carries = 1;
speed = 10;
gotoAndPlay (25);
}
on (keyPress "3") {
Set("/:score", 0);
carries = 1;
speed = 10;
gotoAndPlay (38);
}
on (keyPress "4") {
Set("/:score", 0);
carries = 1;
speed = 10;
gotoAndPlay (51);
}
on (keyPress "5") {
Set("/:score", 0);
carries = 1;
speed = 10;
gotoAndPlay (64);
}
on (keyPress "6") {
Set("/:score", 0);
carries = 1;
speed = 10;
gotoAndPlay (77);
}
on (keyPress "v") {
Set("/:score", 0);
carries = -100;
speed = 10;
gotoAndPlay (77);
}
Symbol 59 Button
on (press) {
Set("/:score", 0);
carries = 1;
speed = 10;
gotoAndPlay (12);
}
Symbol 62 Button
on (press) {
gotoAndStop (6);
}
Symbol 64 Button
on (press) {
getURL ("http://steeg.free.fr/wp_cassedent.htm", "_blank");
}
Symbol 67 Button
on (press) {
Set("/:score", 0);
carries = 1;
speed = 10;
gotoAndPlay (12);
}
on (keyPress "2") {
Set("/:score", 0);
carries = 1;
speed = 10;
gotoAndPlay (25);
}
on (keyPress "3") {
Set("/:score", 0);
carries = 1;
speed = 10;
gotoAndPlay (38);
}
on (keyPress "4") {
Set("/:score", 0);
carries = 1;
speed = 10;
gotoAndPlay (51);
}
on (keyPress "5") {
Set("/:score", 0);
carries = 1;
speed = 10;
gotoAndPlay (64);
}
on (keyPress "6") {
Set("/:score", 0);
carries = 1;
speed = 10;
gotoAndPlay (77);
}
on (keyPress "<Space>") {
Set("/:score", 0);
carries = -50;
speed = 7;
gotoAndPlay (12);
}
Symbol 90 MovieClip Frame 1
play = 0;
stop();
Symbol 90 MovieClip Frame 2
play = Number(play) + 1;
tellTarget ("/sound") {
gotoAndPlay (26);
};
setProperty("/ball", _visible , false);
tellTarget ("/") {
stop();
};
Symbol 90 MovieClip Frame 3
if (Number(play) < 3) {
gotoAndPlay (2);
} else {
if (Number(endgame) == Number(false)) {
tellTarget ("/") {
play();
};
}
if (Number(/:endgame) == Number(false)) {
setProperty("/ball", _visible , true);
}
gotoAndStop (1);
}
Symbol 95 MovieClip Frame 1
vis = true;
nbHit = 1;
nbPoints = 100;
stop();
Symbol 95 MovieClip Frame 2
vis = false;
sound.gotoAndPlay(2);
Symbol 95 MovieClip Frame 10
stop();
Symbol 99 MovieClip Frame 1
vis = true;
nbHit = 1;
nbPoints = 100;
stop();
Symbol 99 MovieClip Frame 2
vis = false;
sound.gotoAndPlay(2);
Symbol 99 MovieClip Frame 10
stop();
Symbol 103 MovieClip Frame 1
vis = true;
nbHit = 2;
nbPoints = 200;
stop();
Symbol 103 MovieClip Frame 2
vis = false;
sound.gotoAndPlay(2);
Symbol 103 MovieClip Frame 10
stop();
Symbol 107 MovieClip Frame 1
vis = true;
nbHit = 4;
nbPoints = 400;
stop();
Symbol 107 MovieClip Frame 2
vis = false;
sound.gotoAndPlay(2);
Symbol 107 MovieClip Frame 10
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 2
stop();
Symbol 118 MovieClip Frame 3
stop();
Symbol 118 MovieClip Frame 4
stop();
Symbol 118 MovieClip Frame 5
stop();
Symbol 118 MovieClip Frame 6
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 20
gotoAndPlay (1);
Symbol 128 MovieClip Frame 25
gotoAndPlay (1);
Symbol 128 MovieClip Frame 37
gotoAndPlay (1);
Symbol 128 MovieClip Frame 50
gotoAndPlay (1);
Symbol 128 MovieClip Frame 60
gotoAndPlay (1);
Symbol 128 MovieClip Frame 68
gotoAndPlay (1);
Symbol 128 MovieClip Frame 74
gotoAndPlay (1);
Symbol 130 MovieClip Frame 14
stop();
Symbol 131 MovieClip Frame 14
stop();
Symbol 132 MovieClip Frame 14
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 2
stop();
Symbol 137 Button
on (keyPress "<Space>") {
veut_sacrifier = 1;
}
on (keyPress "0") {
gotoAndPlay (6);
}
Symbol 138 Button
on (press) {
var posX = getProperty("lance_carries", _x);
if (posX < 400) {
speedx = -speedx;
}
if (topFluor == 1) {
duplicateMovieClip ("Fluor01", "Fluorman", 2);
fluorman_speedx = 2;
fluorman_speedy = 2;
} else if (topFluor == 2) {
duplicateMovieClip ("Fluor02", "Fluorman", 2);
fluorman_speedx = 4;
fluorman_speedy = 4;
} else if (topFluor == 3) {
duplicateMovieClip ("Fluor03", "Fluorman", 2);
fluorman_speedx = 4;
fluorman_speedy = 4;
}
if (0 < topFluor) {
setProperty("Fluorman", _x , parseInt(Math.random() * 470) + 150);
setProperty("Fluorman", _y , 10);
fluorman_x = Fluorman._x;
fluorman_y = Fluorman._y;
}
gotoAndPlay (15);
}
Symbol 143 Button
on (press) {
var posX = getProperty("lance_carries", _x);
if (posX < 400) {
speedx = -speedx;
}
if (topFluor == 1) {
duplicateMovieClip ("Fluor01", "Fluorman", 2);
fluorman_speedx = 2;
fluorman_speedy = 2;
} else if (topFluor == 2) {
duplicateMovieClip ("Fluor02", "Fluorman", 2);
fluorman_speedx = 4;
fluorman_speedy = 4;
} else if (topFluor == 3) {
duplicateMovieClip ("Fluor03", "Fluorman", 2);
fluorman_speedx = 4;
fluorman_speedy = 4;
}
if (0 < topFluor) {
setProperty("Fluorman", _x , parseInt(Math.random() * 470) + 150);
setProperty("Fluorman", _y , 10);
fluorman_x = Fluorman._x;
fluorman_y = Fluorman._y;
}
gotoAndPlay (28);
}
Symbol 148 Button
on (press) {
var posX = getProperty("lance_carries", _x);
if (posX < 400) {
speedx = -speedx;
}
if (topFluor == 1) {
duplicateMovieClip ("Fluor01", "Fluorman", 2);
fluorman_speedx = 2;
fluorman_speedy = 2;
} else if (topFluor == 2) {
duplicateMovieClip ("Fluor02", "Fluorman", 2);
fluorman_speedx = 4;
fluorman_speedy = 4;
} else if (topFluor == 3) {
duplicateMovieClip ("Fluor03", "Fluorman", 2);
fluorman_speedx = 4;
fluorman_speedy = 4;
}
if (0 < topFluor) {
setProperty("Fluorman", _x , parseInt(Math.random() * 470) + 150);
setProperty("Fluorman", _y , 10);
fluorman_x = Fluorman._x;
fluorman_y = Fluorman._y;
}
gotoAndPlay (41);
}
Symbol 153 Button
on (press) {
var posX = getProperty("lance_carries", _x);
if (posX < 400) {
speedx = -speedx;
}
if (topFluor == 1) {
duplicateMovieClip ("Fluor01", "Fluorman", 2);
fluorman_speedx = 2;
fluorman_speedy = 2;
} else if (topFluor == 2) {
duplicateMovieClip ("Fluor02", "Fluorman", 2);
fluorman_speedx = 4;
fluorman_speedy = 4;
} else if (topFluor == 3) {
duplicateMovieClip ("Fluor03", "Fluorman", 2);
fluorman_speedx = 4;
fluorman_speedy = 4;
}
if (0 < topFluor) {
setProperty("Fluorman", _x , parseInt(Math.random() * 470) + 150);
setProperty("Fluorman", _y , 10);
fluorman_x = Fluorman._x;
fluorman_y = Fluorman._y;
}
gotoAndPlay (54);
}
Symbol 158 Button
on (press) {
var posX = getProperty("lance_carries", _x);
if (posX < 400) {
speedx = -speedx;
}
if (topFluor == 1) {
duplicateMovieClip ("Fluor01", "Fluorman", 2);
fluorman_speedx = 2;
fluorman_speedy = 2;
} else if (topFluor == 2) {
duplicateMovieClip ("Fluor02", "Fluorman", 2);
fluorman_speedx = 4;
fluorman_speedy = 4;
} else if (topFluor == 3) {
duplicateMovieClip ("Fluor03", "Fluorman", 2);
fluorman_speedx = 4;
fluorman_speedy = 4;
}
if (0 < topFluor) {
setProperty("Fluorman", _x , parseInt(Math.random() * 470) + 150);
setProperty("Fluorman", _y , 10);
fluorman_x = Fluorman._x;
fluorman_y = Fluorman._y;
}
gotoAndPlay (67);
}
Symbol 163 Button
on (press) {
var posX = getProperty("lance_carries", _x);
if (posX < 400) {
speedx = -speedx;
}
if (topFluor == 1) {
duplicateMovieClip ("Fluor01", "Fluorman", 2);
fluorman_speedx = 2;
fluorman_speedy = 2;
} else if (topFluor == 2) {
duplicateMovieClip ("Fluor02", "Fluorman", 2);
fluorman_speedx = 4;
fluorman_speedy = 4;
} else if (topFluor == 3) {
duplicateMovieClip ("Fluor03", "Fluorman", 2);
fluorman_speedx = 4;
fluorman_speedy = 4;
}
if (0 < topFluor) {
setProperty("Fluorman", _x , parseInt(Math.random() * 470) + 150);
setProperty("Fluorman", _y , 10);
fluorman_x = Fluorman._x;
fluorman_y = Fluorman._y;
}
gotoAndPlay (80);
}
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 2
stop();
Symbol 173 Button
on (release) {
gotoAndPlay (6);
}
on (rollOver) {
tellTarget ("BT Back") {
gotoAndStop (2);
};
}
on (rollOut) {
tellTarget ("BT Back") {
gotoAndStop (1);
};
}
Symbol 177 Button
on (release) {
if (/:score < /:score5) {
Set("/:nom6", /:nom);
Set("/:score6", /:score);
} else if (/:score < /:score4) {
Set("/:nom6", /:nom5);
Set("/:nom5", /:nom);
Set("/:score6", /:score5);
Set("/:score5", /:score);
} else if (/:score < /:score3) {
Set("/:nom6", /:nom5);
Set("/:nom5", /:nom4);
Set("/:nom4", /:nom);
Set("/:score6", /:score5);
Set("/:score5", /:score4);
Set("/:score4", _/:score);
} else if (/:score < /:score2) {
Set("/:nom6", /:nom5);
Set("/:nom5", /:nom4);
Set("/:nom4", /:nom3);
Set("/:nom3", /:nom);
Set("/:score6", /:score5);
Set("/:score5", /:score4);
Set("/:score4", /:score3);
Set("/:score3", /:score);
} else if (/:score < /:score1) {
Set("/:nom6", /:nom5);
Set("/:nom5", /:nom4);
Set("/:nom4", /:nom3);
Set("/:nom3", /:nom2);
Set("/:nom2", /:nom);
Set("/:score6", /:score5);
Set("/:score5", /:score4);
Set("/:score4", /:score3);
Set("/:score3", /:score2);
Set("/:score2", /:score);
} else {
Set("/:nom6", /:nom5);
Set("/:nom5", /:nom4);
Set("/:nom4", /:nom3);
Set("/:nom3", /:nom2);
Set("/:nom2", /:nom1);
Set("/:nom1", /:nom);
Set("/:score6", /:score5);
Set("/:score5", /:score4);
Set("/:score4", /:score3);
Set("/:score3", /:score2);
Set("/:score2", /:score1);
Set("/:score1", /:score);
}
gotoAndPlay (9);
}
Symbol 181 Button
on (press) {
if (/:level == 1) {
gotoAndPlay (12);
}
if (/:level == 2) {
gotoAndPlay (25);
}
if (/:level == 3) {
gotoAndPlay (38);
}
if (/:level == 4) {
gotoAndPlay (51);
}
if (/:level == 5) {
gotoAndPlay (64);
}
if (/:level == 6) {
gotoAndPlay (77);
}
if (/:level == 7) {
_root.redoublant = true;
gotoAndPlay (12);
}
}