Frame 1
musik = new Sound();
musik.attachSound("musik");
musik.setvolume(100);
musik.start(0);
thesound = 1;
error = new Sound();
error.attachSound("entree.wav");
Frame 2
_root.entree = new Sound();
_root.entree.attachSound("entree.wav");
_root.tir = new Sound();
_root.tir.attachSound("tir.wav");
stop();
Frame 3
vies = 3;
score = 0;
munitions = 200;
afficheMunitions = "Munitions: " + munitions;
bonus = 0;
additionnel = 0;
go = 1;
tour = 0;
tour_total = 0;
parcours = 0;
tab = [[5, 100, 1, "trajet1", "", 0, 0], [10, 100, 1, "trajet2", "", 0, 0], [15, 100, 1, "trajet3", "", 0, 0], [20, 100, 1, "trajet4", "", 0, 0], [25, 100, 1, "trajet5", "", 0, 0], [30, 100, 1, "trajet6", "", 0, 0], [30, 100, 1, "trajet7", "", 0, 0], [30, 100, 1, "trajet8", "", 0, 0], [10, 100, 1, "trajet1", "trajet4", 0, 0], [10, 100, 1, "trajet2", "trajet3", 0, 0], [10, 100, 2, "trajet1", "", 0, 0], [15, 100, 2, "trajet2", "", 0, 0], [20, 100, 2, "trajet3", "", 0, 0], [25, 100, 2, "trajet4", "", 0, 0], [30, 100, 2, "trajet5", "", 0, 0], [30, 100, 2, "trajet6", "", 0, 0], [30, 100, 2, "trajet7", "", 0, 0], [30, 100, 2, "trajet8", "", 0, 0], [14, 100, 2, "trajet1", "trajet4", 0, 0], [14, 100, 2, "trajet2", "trajet3", 0, 0], [10, 100, 2, "trajet1", "", 1, 0], [14, 100, 2, "trajet5", "trajet8", 0, 0], [14, 100, 2, "trajet6", "trajet7", 0, 0], [25, 100, 2, "trajet4", "", 2, 0], [30, 100, 2, "trajet5", "", 2, 0], [30, 100, 2, "trajet6", "", 2, 0], [18, 100, 2, "trajet1", "trajet4", 1, 1], [30, 100, 2, "trajet8", "", 0, 0], [14, 100, 2, "trajet1", "trajet4", 0, 0], [14, 100, 2, "trajet2", "trajet3", 0, 0], [10, 100, 2, "trajet1", "", 0, 0], [15, 100, 2, "trajet2", "", 0, 0], [20, 100, 2, "trajet3", "", 0, 0], [25, 100, 2, "trajet4", "", 0, 0], [30, 100, 2, "trajet5", "", 0, 0], [30, 100, 2, "trajet6", "", 0, 0], [30, 100, 2, "trajet7", "", 0, 0], [30, 100, 2, "trajet8", "", 0, 0], [14, 100, 2, "trajet1", "trajet4", 0, 0], [14, 100, 2, "trajet2", "trajet3", 0, 0], [10, 100, 2, "trajet1", "", 0, 0], [15, 100, 2, "trajet2", "", 0, 0], [20, 100, 2, "trajet3", "", 0, 0], [25, 100, 2, "trajet4", "", 0, 0], [30, 100, 2, "trajet5", "", 0, 0], [30, 100, 2, "trajet6", "", 0, 0], [30, 100, 2, "trajet7", "", 0, 0], [30, 100, 2, "trajet8", "", 0, 0], [14, 100, 2, "trajet1", "trajet4", 0, 0], [14, 100, 2, "trajet2", "trajet3", 0, 0], [10, 100, 2, "trajet1", "", 0, 0], [15, 100, 2, "trajet2", "", 0, 0], [20, 100, 2, "trajet3", "", 0, 0], [25, 100, 2, "trajet4", "", 0, 0], [30, 100, 2, "trajet5", "", 0, 0], [30, 100, 2, "trajet6", "", 0, 0], [30, 100, 2, "trajet7", "", 0, 0], [30, 100, 2, "trajet8", "", 0, 0], [14, 100, 2, "trajet1", "trajet4", 0, 0], [14, 100, 2, "trajet2", "trajet3", 0, 0]];
_root.onEnterFrame = function () {
afficheScore = "Score: " add score;
afficheMunitions = "Ammo: " + munitions;
if (bonus == 1) {
choix = random(10);
if (choix < 3) {
bonus_10pts._x = random(260) + 1;
bonus = 2;
}
if (choix == 3) {
bonus_vie._x = random(260) + 1;
bonus = 2;
}
if (choix > 3) {
bonus_munitions._x = random(260) + 1;
bonus = 2;
}
}
if (bonus == 5) {
choix = random(10);
if (choix < 3) {
malus_munitions._x = random(260) + 1;
bonus = 2;
}
if (choix == 3) {
malus_vie._x = random(260) + 1;
bonus = 2;
}
if (choix > 3) {
malus_10pts._x = random(260) + 1;
bonus = 2;
}
}
if (bonus == 10) {
choix = random(10);
if (choix < 3) {
sbonus_munitions._x = random(260) + 1;
bonus = 2;
}
if (choix == 3) {
sbonus_vie._x = random(260) + 1;
bonus = 2;
}
if (choix > 3) {
sbonus_10pts._x = random(260) + 1;
bonus = 2;
}
}
if (bonus_10pts._x > 0) {
bonus_10pts._y = bonus_10pts._y + 5;
if (bonus_10pts._y > 400) {
bonus_10pts._x = -35;
bonus_10pts._y = -35;
bonus = 0;
}
}
if (bonus_munitions._x > 0) {
bonus_munitions._y = bonus_munitions._y + 5;
if (bonus_munitions._y > 400) {
bonus_munitions._x = -35;
bonus_munitions._y = -35;
bonus = 0;
}
}
if (bonus_vie._x > 0) {
bonus_vie._y = bonus_vie._y + 5;
if (bonus_vie._y > 400) {
bonus_vie._x = -35;
bonus_vie._y = -35;
bonus = 0;
}
}
if (malus_10pts._x > 0) {
malus_10pts._y = malus_10pts._y + 5;
if (malus_10pts._y > 400) {
malus_10pts._x = -35;
malus_10pts._y = -35;
bonus = 0;
}
}
if (malus_munitions._x > 0) {
malus_munitions._y = malus_munitions._y + 5;
if (malus_munitions._y > 400) {
malus_munitions._x = -35;
malus_munitions._y = -35;
bonus = 0;
}
}
if (malus_vie._x > 0) {
malus_vie._y = malus_vie._y + 5;
if (malus_vie._y > 400) {
malus_vie._x = -35;
malus_vie._y = -35;
bonus = 0;
}
}
if (sbonus_10pts._x > 0) {
sbonus_10pts._y = sbonus_10pts._y + 5;
if (sbonus_10pts._y > 400) {
sbonus_10pts._x = -35;
sbonus_10pts._y = -35;
bonus = 0;
}
}
if (sbonus_munitions._x > 0) {
sbonus_munitions._y = sbonus_munitions._y + 5;
if (sbonus_munitions._y > 400) {
sbonus_munitions._x = -35;
sbonus_munitions._y = -35;
bonus = 0;
}
}
if (sbonus_vie._x > 0) {
sbonus_vie._y = sbonus_vie._y + 5;
if (sbonus_vie._y > 400) {
sbonus_vie._x = -35;
sbonus_vie._y = -35;
bonus = 0;
}
}
if (go == 1) {
comptemechant = tab[tour][0] + additionnel;
attente = tab[tour][1];
ecart_modeles = tab[tour][2];
ajout = tab[tour][4];
modif = tab[tour][5];
modif2 = tab[tour][6];
score_next = score + comptemechant;
muni_next = munitions - comptemechant;
parcours = 0;
attak.nextFrame();
attak.attachMovie(tab[tour][3], "modele", ((additionnel + 1) * 100) + tour);
if (ajout != "") {
attak.attachMovie(tab[tour][4], "modele2", ((additionnel + 2) * 100) + tour);
}
if (tour == (tab.length - 1)) {
tour = 0;
additionnel = additionnel + 2;
tour_total++;
} else {
tour++;
tour_total++;
}
go = 0;
}
};
stop();
Instance of Symbol 109 MovieClip "HEROS" in Frame 3
onClipEvent (load) {
compteur = 0;
comptearebours = 0;
elanH = 0;
elanV = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
if (elanH <= 8) {
elanH++;
}
} else if (Key.isDown(37)) {
if (elanH >= -8) {
elanH--;
}
} else if (elanH < 0) {
elanH++;
} else if (elanH != 0) {
elanH--;
}
if (((_x + elanH) > 0) && ((_x + elanH) < 300)) {
_x = (_x + elanH);
}
setProperty(this, _rotation , elanH);
if (Key.isDown(40)) {
if (elanV <= 8) {
elanV++;
}
} else if (Key.isDown(38)) {
if (elanV >= -8) {
elanV--;
}
} else if (elanV < 0) {
elanV++;
} else if (elanV != 0) {
elanV--;
}
if (((_y + elanV) > 0) && ((_y + elanV) < 400)) {
_y = (_y + elanV);
}
if ((Key.isDown(32) && (comptearebours <= 0)) && (_root.munitions > 0)) {
_root.munitions--;
if (_root.thesound == 1) {
_root.tir.start(0);
}
if (compteur == 16) {
compteur = 0;
}
duplicateMovieClip (_root.MISSILE, "missile" + compteur, compteur + 1);
setProperty("_root.missile" + compteur, _x , this._x);
setProperty("_root.missile" + compteur, _y , this._y);
compteur++;
comptearebours = 2;
} else if (comptearebours > 0) {
comptearebours--;
}
}
Instance of Symbol 111 MovieClip "MISSILE" in Frame 3
onClipEvent (enterFrame) {
if (_y > -15) {
_y = (_y - 10);
} else {
_x = -100;
}
}
Instance of Symbol 118 MovieClip "VIE" in Frame 3
onClipEvent (load) {
gotoAndPlay(_root.vies + 1);
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_root.gotoAndStop("perdu");
}
}
Instance of Symbol 109 MovieClip "HEROS" in Frame 4
onClipEvent (load) {
compteur = 0;
comptearebours = 0;
elanH = 0;
elanV = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
if (elanH <= 8) {
elanH++;
}
} else if (Key.isDown(37)) {
if (elanH >= -8) {
elanH--;
}
} else if (elanH < 0) {
elanH++;
} else if (elanH != 0) {
elanH--;
}
if (((_x + elanH) > 0) && ((_x + elanH) < 300)) {
_x = (_x + elanH);
}
setProperty(this, _rotation , elanH);
if (Key.isDown(40)) {
if (elanV <= 8) {
elanV++;
}
} else if (Key.isDown(38)) {
if (elanV >= -8) {
elanV--;
}
} else if (elanV < 0) {
elanV++;
} else if (elanV != 0) {
elanV--;
}
if (((_y + elanV) > 0) && ((_y + elanV) < 400)) {
_y = (_y + elanV);
}
if ((Key.isDown(32) && (comptearebours <= 0)) && (_root.munitions > 0)) {
_root.munitions--;
if (_root.thesound == 1) {
_root.tir.start(0);
}
if (compteur == 16) {
compteur = 0;
}
duplicateMovieClip (_root.MISSILE, "missile" + compteur, compteur + 1);
setProperty("_root.missile" + compteur, _x , this._x);
setProperty("_root.missile" + compteur, _y , this._y);
compteur++;
comptearebours = 2;
} else if (comptearebours > 0) {
comptearebours--;
}
}
Frame 20
comptemechant = 5;
attente = 100;
ecart_modeles = 1;
score_next = score + comptemechant;
Frame 21
_root.modele.stop();
duplicateMovieClip ("_root.modele", "mechant" add comptemechant, comptemechant + 20);
comptemechant--;
ecart = ecart_modeles;
Frame 23
if ((ecart--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (comptemechant > 0) {
gotoAndPlay(_currentframe - 2);
}
Frame 25
if ((attente--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (score == score_next) {
bonus = 1;
} else {
bonus = 5;
}
Frame 30
comptemechant = 10;
attente = 100;
ecart_modeles = 1;
score_next = score + comptemechant;
Frame 31
_root.modele.stop();
duplicateMovieClip ("_root.modele", "mechant" add comptemechant, comptemechant + 20);
comptemechant--;
ecart = ecart_modeles;
Frame 33
if ((ecart--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (comptemechant > 0) {
gotoAndPlay(_currentframe - 2);
}
Frame 35
if ((attente--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (score == score_next) {
bonus = 1;
} else {
bonus = 5;
}
Frame 40
comptemechant = 15;
attente = 100;
ecart_modeles = 1;
score_next = score + comptemechant;
Frame 41
_root.modele.stop();
duplicateMovieClip ("_root.modele", "mechant" add comptemechant, comptemechant + 20);
comptemechant--;
ecart = ecart_modeles;
Frame 43
if ((ecart--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (comptemechant > 0) {
gotoAndPlay(_currentframe - 2);
}
Frame 45
if ((attente--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (score == score_next) {
bonus = 1;
} else {
bonus = 5;
}
Frame 50
comptemechant = 20;
attente = 100;
ecart_modeles = 10;
score_next = score + comptemechant;
Frame 51
_root.modele.stop();
duplicateMovieClip ("_root.modele", "mechant" add comptemechant, comptemechant + 20);
comptemechant--;
ecart = ecart_modeles;
Frame 53
if ((ecart--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (comptemechant > 0) {
gotoAndPlay(_currentframe - 2);
}
Frame 55
if ((attente--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (score == score_next) {
bonus = 1;
} else {
bonus = 5;
}
Frame 60
comptemechant = 25;
attente = 100;
ecart_modeles = 10;
score_next = score + comptemechant;
Frame 61
_root.modele.stop();
duplicateMovieClip ("_root.modele", "mechant" add comptemechant, comptemechant + 20);
comptemechant--;
ecart = ecart_modeles;
Frame 63
if ((ecart--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (comptemechant > 0) {
gotoAndPlay(_currentframe - 2);
}
Frame 65
if ((attente--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (score == score_next) {
bonus = 1;
} else {
bonus = 5;
}
Frame 70
comptemechant = 30;
attente = 100;
ecart_modeles = 10;
score_next = score + comptemechant;
Frame 71
_root.modele.stop();
duplicateMovieClip ("_root.modele", "mechant" add comptemechant, comptemechant + 20);
comptemechant--;
ecart = ecart_modeles;
Frame 73
if ((ecart--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (comptemechant > 0) {
gotoAndPlay(_currentframe - 2);
}
Frame 75
if ((attente--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (score == score_next) {
bonus = 1;
} else {
bonus = 5;
}
Frame 80
comptemechant = 25;
attente = 100;
ecart_modeles = 10;
score_next = score + comptemechant;
Frame 81
_root.modele.stop();
duplicateMovieClip ("_root.modele", "mechant" add comptemechant, comptemechant + 20);
comptemechant--;
ecart = ecart_modeles;
Frame 83
if ((ecart--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (comptemechant > 0) {
gotoAndPlay(_currentframe - 2);
}
Frame 85
if ((attente--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (score == score_next) {
bonus = 1;
} else {
bonus = 5;
}
Frame 90
comptemechant = 30;
attente = 100;
ecart_modeles = 10;
score_next = score + comptemechant;
Frame 91
_root.modele.stop();
duplicateMovieClip ("_root.modele", "mechant" add comptemechant, comptemechant + 20);
comptemechant--;
ecart = ecart_modeles;
Frame 93
if ((ecart--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (comptemechant > 0) {
gotoAndPlay(_currentframe - 2);
}
Frame 95
if ((attente--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (score == score_next) {
bonus = 1;
} else {
bonus = 5;
}
Frame 100
comptemechant = 10;
attente = 100;
ecart_modeles = 1;
score_next = score + comptemechant;
Frame 101
_root.modele.stop();
_root.modele2.stop();
duplicateMovieClip ("_root.modele", "mechant" add comptemechant, comptemechant + 20);
comptemechant--;
duplicateMovieClip ("_root.modele2", "mechant" add comptemechant, comptemechant + 20);
comptemechant--;
ecart = ecart_modeles;
Frame 103
if ((ecart--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (comptemechant > 0) {
gotoAndPlay(_currentframe - 2);
}
Frame 105
if ((attente--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (score == score_next) {
bonus = 1;
} else {
bonus = 5;
}
Frame 110
comptemechant = 20;
attente = 100;
ecart_modeles = 1;
score_next = score + comptemechant;
Frame 111
_root.modele.stop();
_root.modele2.stop();
duplicateMovieClip ("_root.modele", "mechant" add comptemechant, comptemechant + 20);
comptemechant--;
duplicateMovieClip ("_root.modele2", "mechant" add comptemechant, comptemechant + 20);
comptemechant--;
ecart = ecart_modeles;
Frame 113
if ((ecart--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (comptemechant > 0) {
gotoAndPlay(_currentframe - 2);
}
Frame 115
if ((attente--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (score == score_next) {
bonus = 1;
} else {
bonus = 5;
}
Frame 120
comptemechant = 20;
attente = 100;
ecart_modeles = 1;
score_next = score + comptemechant;
Frame 121
_root.modele.stop();
_root.modele2.stop();
duplicateMovieClip ("_root.modele", "mechant" add comptemechant, comptemechant + 20);
comptemechant--;
duplicateMovieClip ("_root.modele2", "mechant" add comptemechant, comptemechant + 20);
comptemechant--;
ecart = ecart_modeles;
Frame 123
if ((ecart--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (comptemechant > 0) {
gotoAndPlay(_currentframe - 2);
}
Frame 125
if ((attente--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (score == score_next) {
bonus = 1;
} else {
bonus = 5;
}
Frame 161
gotoAndPlay (20);
Frame 162
stop();
Frame 167
stop();
Instance of Symbol 111 MovieClip "MISSILE" in Frame 167
onClipEvent (enterFrame) {
_y = (_y - 10);
}
Symbol 12 MovieClip Frame 1
i = 0;
while (i < 16) {
if (this.hitTest("_root.missile" add i)) {
removeMovieClip("_root.missile" add i);
gotoAndPlay (3);
}
i++;
}
if (this.hitTest("_root.HEROS")) {
_root.HEROS.gotoAndPlay(12);
_root.HEROS._name = "PROTECT";
}
Symbol 12 MovieClip Frame 2
gotoAndPlay (1);
Symbol 12 MovieClip Frame 10
stop();
removeMovieClip(_parent);
_root.score = _root.score + 1;
Symbol 15 MovieClip [trajet8] Frame 1
cadre._x = -400;
Symbol 15 MovieClip [trajet8] Frame 129
stop();
_root.parcours++;
removeMovieClip(this);
Symbol 22 MovieClip Frame 1
i = 0;
while (i < 16) {
if (this.hitTest("_root.missile" add i)) {
removeMovieClip("_root.missile" add i);
gotoAndPlay (3);
}
i++;
}
if (this.hitTest("_root.HEROS")) {
_root.HEROS.gotoAndPlay(12);
_root.HEROS._name = "PROTECT";
}
Symbol 22 MovieClip Frame 2
gotoAndPlay (1);
Symbol 22 MovieClip Frame 8
stop();
removeMovieClip(_parent);
_root.score = _root.score + 1;
_root.afficheScore = "Score:" add _root.score;
Symbol 23 MovieClip [trajet7] Frame 1
cadre._x = -400;
Symbol 23 MovieClip [trajet7] Frame 124
stop();
_root.parcours++;
removeMovieClip(this);
Symbol 25 MovieClip Frame 1
i = 0;
while (i < 16) {
if (this.hitTest("_root.missile" add i)) {
removeMovieClip("_root.missile" add i);
gotoAndPlay (3);
}
i++;
}
if (this.hitTest("_root.HEROS")) {
_root.HEROS.gotoAndPlay(12);
_root.HEROS._name = "PROTECT";
}
Symbol 25 MovieClip Frame 2
gotoAndPlay (1);
Symbol 25 MovieClip Frame 10
stop();
removeMovieClip(_parent);
_root.score = _root.score + 1;
Symbol 26 MovieClip [trajet6] Frame 1
cadre._x = -400;
Symbol 26 MovieClip [trajet6] Frame 160
stop();
_root.parcours++;
removeMovieClip(this);
Symbol 28 MovieClip Frame 1
i = 0;
while (i < 16) {
if (this.hitTest("_root.missile" add i)) {
removeMovieClip("_root.missile" add i);
gotoAndPlay (3);
}
i++;
}
if (this.hitTest("_root.HEROS")) {
_root.HEROS.gotoAndPlay(12);
_root.HEROS._name = "PROTECT";
}
Symbol 28 MovieClip Frame 2
gotoAndPlay (1);
Symbol 28 MovieClip Frame 8
stop();
removeMovieClip(_parent);
_root.score = _root.score + 1;
_root.afficheScore = "Score:" add _root.score;
Symbol 29 MovieClip [trajet5] Frame 1
cadre._x = -400;
Symbol 29 MovieClip [trajet5] Frame 124
stop();
_root.parcours++;
removeMovieClip(this);
Symbol 31 MovieClip Frame 1
i = 0;
while (i < 16) {
if (this.hitTest("_root.missile" add i)) {
removeMovieClip("_root.missile" add i);
gotoAndPlay (3);
}
i++;
}
if (this.hitTest("_root.HEROS")) {
_root.HEROS.gotoAndPlay(12);
_root.HEROS._name = "PROTECT";
}
Symbol 31 MovieClip Frame 2
gotoAndPlay (1);
Symbol 31 MovieClip Frame 10
stop();
removeMovieClip(_parent);
_root.score = _root.score + 1;
Symbol 32 MovieClip [trajet4] Frame 1
cadre._x = -400;
Symbol 32 MovieClip [trajet4] Frame 105
stop();
_root.parcours++;
removeMovieClip(this);
Symbol 34 MovieClip Frame 1
i = 0;
while (i < 16) {
if (this.hitTest("_root.missile" add i)) {
removeMovieClip("_root.missile" add i);
gotoAndPlay (3);
}
i++;
}
if (this.hitTest("_root.HEROS")) {
_root.HEROS.gotoAndPlay(12);
_root.HEROS._name = "PROTECT";
}
Symbol 34 MovieClip Frame 2
gotoAndPlay (1);
Symbol 34 MovieClip Frame 8
stop();
removeMovieClip(_parent);
_root.score = _root.score + 1;
_root.afficheScore = "Score:" add _root.score;
Symbol 35 MovieClip [trajet3] Frame 1
cadre._x = -400;
Symbol 35 MovieClip [trajet3] Frame 101
stop();
_root.parcours++;
removeMovieClip(this);
Symbol 37 MovieClip Frame 1
i = 0;
while (i < 16) {
if (this.hitTest("_root.missile" add i)) {
removeMovieClip("_root.missile" add i);
gotoAndPlay (3);
}
i++;
}
if (this.hitTest("_root.HEROS")) {
_root.HEROS.gotoAndPlay(12);
_root.HEROS._name = "PROTECT";
}
Symbol 37 MovieClip Frame 2
gotoAndPlay (1);
Symbol 37 MovieClip Frame 10
stop();
removeMovieClip(_parent);
_root.score = _root.score + 1;
Symbol 38 MovieClip [trajet2] Frame 1
cadre._x = -400;
Symbol 38 MovieClip [trajet2] Frame 71
stop();
_root.parcours++;
removeMovieClip(this);
Symbol 40 MovieClip Frame 1
i = 0;
while (i < 16) {
if (this.hitTest("_root.missile" add i)) {
removeMovieClip("_root.missile" add i);
gotoAndPlay (3);
}
i++;
}
if (this.hitTest("_root.HEROS")) {
_root.HEROS.gotoAndPlay(12);
_root.HEROS._name = "PROTECT";
}
Symbol 40 MovieClip Frame 2
gotoAndPlay (1);
Symbol 40 MovieClip Frame 8
stop();
removeMovieClip(_parent);
_root.score = _root.score + 1;
Symbol 41 MovieClip [trajet1] Frame 1
cadre._x = -400;
Symbol 41 MovieClip [trajet1] Frame 101
stop();
_root.parcours++;
removeMovieClip(this);
Symbol 56 Button
on (release) {
if (_root.thesound == 0) {
_root.snd_ok._alpha = 0;
_root.thesound = 1;
stopAllSounds();
_root.error.start(0, 1);
} else {
stopAllSounds();
_root.snd_ok._alpha = 100;
_root.thesound = 0;
}
}
Symbol 71 Button
on (press) {
_root.go_url = "http://www.my-iq.net/index.php?ref=" + _root.test_qi._url;
getURL (_root.go_url);
}
on (rollOver) {
_root.iq._alpha = 50;
}
on (rollOut) {
_root.iq._alpha = 100;
}
Symbol 73 MovieClip Frame 25
gotoAndPlay (1);
Symbol 88 Button
on (press) {
_root.go_url = "http://www.zodiac-games.com";
getURL (_root.go_url);
}
on (rollOver) {
_root.zodiac._alpha = 50;
}
on (rollOut) {
_root.zodiac._alpha = 100;
}
Symbol 91 MovieClip Frame 1
if (this.hitTest("_root.HEROS")) {
_root.vies = 3;
_root.VIE.gotoAndStop(4);
this._y = -35;
this._x = -100;
bonus = 0;
}
Symbol 99 Button
on (press) {
_root.nextFrame();
}
on (rollOver) {
_root.starti._alpha = 50;
}
on (rollOut) {
_root.starti._alpha = 100;
}
Symbol 109 MovieClip Frame 1
if (_root.thesound == 1) {
_root.entree.start(0);
}
this._x = 150;
this._y = 330;
rebours = 100;
this._name = "PROTECT";
Symbol 109 MovieClip Frame 9
rebours--;
if (rebours == 0) {
gotoAndStop (11);
this._name = "HEROS";
}
Symbol 109 MovieClip Frame 10
gotoAndPlay (9);
Symbol 109 MovieClip Frame 11
stop();
Symbol 109 MovieClip Frame 18
_root.vies--;
_root.VIE.gotoAndPlay(_root.vies + 1);
if (_root.vies == 0) {
_root.gotoAndStop("perdu");
this.gotoAndStop(1);
}
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 121 MovieClip Frame 1
if (this.hitTest("_root.HEROS")) {
if (_root.vies < 3) {
_root.vies++;
_root.VIE.gotoAndPlay(_root.vies + 1);
}
this._y = -35;
this._x = -100;
bonus = 0;
}
Symbol 125 MovieClip Frame 1
if (this.hitTest("_root.HEROS")) {
_root.score = _root.score + 10;
_root.score_next = _root.score_next + 10;
this._y = -35;
this._x = -100;
bonus = 0;
}
Symbol 127 MovieClip Frame 1
if (this.hitTest("_root.HEROS")) {
_root.munitions = _root.munitions + 100;
_root.muni_next = _root.muni_next + 100;
this._y = -35;
this._x = -100;
bonus = 0;
}
Symbol 129 MovieClip Frame 1
if (this.hitTest("_root.HEROS")) {
_root.vies--;
this._y = -35;
this._x = -100;
bonus = 0;
_root.VIE.gotoAndPlay(_root.vies + 1);
if (_root.vies == 0) {
_root.vies++;
_root.HEROS.gotoAndPlay(12);
_root.gotoAndStop("perdu");
}
}
Symbol 130 MovieClip Frame 1
if (this.hitTest("_root.HEROS")) {
if (_root.munitions > 100) {
_root.munitions = _root.munitions - 100;
_root.muni_next = _root.muni_next - 100;
} else {
_root.munitions = 0;
_root.muni_next = 0;
}
this._y = -35;
this._x = -100;
bonus = 0;
}
Symbol 133 MovieClip Frame 1
if (this.hitTest("_root.HEROS")) {
if (_root.score > 10) {
_root.score = _root.score - 10;
_root.score_next = _root.score_next - 10;
}
this._y = -35;
this._x = -100;
bonus = 0;
}
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 2
modele.stop();
duplicateMovieClip (modele, "mechant" + _root.comptemechant, 20 + _root.comptemechant);
switch (_root.modif) {
case 1 :
this["mechant" + _root.comptemechant]._y = 120 - (_root.comptemechant * 30);
break;
case 2 :
this["mechant" + _root.comptemechant]._x = 120 - _root.comptemechant;
}
_root.comptemechant--;
if (_root.ajout != "") {
modele2.stop();
duplicateMovieClip (modele2, "mechant" + _root.comptemechant, 60 + _root.comptemechant);
switch (_root.modif2) {
case 1 :
this["mechant" + _root.comptemechant]._y = 120 - (_root.comptemechant * 30);
break;
case 2 :
this["mechant" + _root.comptemechant]._x = 120 - _root.comptemechant;
}
_root.comptemechant--;
}
ecart = _root.ecart_modeles;
play();
Symbol 136 MovieClip Frame 4
if ((ecart--) > 0) {
gotoAndPlay(_currentframe - 1);
} else if (_root.comptemechant > 0) {
gotoAndPlay(_currentframe - 2);
}
Symbol 136 MovieClip Frame 6
if (((_root.attente--) < 0) and (_root.parcours == (_root.score_next - _root.score))) {
if (_root.score == _root.score_next) {
if (_root.munitions == _root.muni_next) {
_root.bonus = 10;
} else {
_root.bonus = 1;
}
} else {
_root.bonus = 5;
}
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 136 MovieClip Frame 15
_root.go = 1;
this.modele.removeMovieClip();
if (_root.ajout != "") {
this.modele2.removeMovieClip();
}
this.gotoAndStop(1);
Symbol 138 MovieClip Frame 1
if (this.hitTest("_root.HEROS")) {
_root.munitions = _root.munitions + 300;
_root.muni_next = _root.muni_next + 300;
this._y = -35;
this._x = -100;
bonus = 0;
}
Symbol 141 MovieClip Frame 1
if (this.hitTest("_root.HEROS")) {
_root.score = _root.score + 100;
_root.score_next = _root.score_next + 100;
this._y = -35;
this._x = -100;
bonus = 0;
}
Symbol 153 Button
on (press) {
_root.gotoAndStop(2);
}
on (rollOver) {
_root.starti._alpha = 50;
}
on (rollOut) {
_root.starti._alpha = 100;
}