Frame 1
stop();
Instance of Symbol 10 MovieClip in Frame 1
onClipEvent (enterFrame) {
prc = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
prc = math.Round(prc);
barre._xscale = prc;
if (99 < prc) {
_root.gotoAndPlay(2);
}
}
Frame 2
stop();
Frame 3
myDate = new Date();
jsemaine = mydate.getDay();
jour = mydate.getDate();
mois = mydate.getMonth();
tabjsemaine = new Array();
tabjsemaine = ["lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi", "dimanche"];
tabmois = new Array();
tabmois = ["janvier", "fevrier", "mars", "avril", "mai", "juin", "juillet", "aout", "septembre", "octobre", "novembre", "decembre"];
txt1 = tabjsemaine[jsemaine - 1];
txt2 = tabmois[mois];
txt = ((((txt1 + " ") + jour) + " ") + txt2) + "<br>";
stop();
Frame 4
getURL ("../../scores/spacekoe/scores.php", "_blank", "POST");
loadMovieNum ("espace.swf", 0);
Symbol 28 Button
on (press) {
fire();
_root.jeu.comptelazer = _root.jeu.comptelazer + 1;
}
Symbol 29 MovieClip Frame 1
function fire() {
i = i + 0;
duplicateMovieClip (_root.jeu.lazer, "lazer" + i, i);
eval ("_root.jeu.lazer" + i)._x = _root.jeu.vaisseau._x;
eval ("_root.jeu.lazer" + i)._y = _root.jeu.vaisseau._y - 5;
musique.start();
}
stop();
musique = new Sound();
musique.attachSound("lazerwave");
Symbol 35 Button
on (press) {
gotoAndPlay (3);
_root.jeu.debutant.gotoAndPlay("go");
pseudo2 = pseudo + "<br>";
_root.niv = "débutant <br>";
}
Symbol 40 Button
on (press) {
gotoAndPlay (3);
_root.jeu.confirmes.gotoAndPlay("go");
pseudo2 = pseudo + "<br>";
_root.niv = "confirmé <br>";
}
Symbol 43 Button
on (press) {
gotoAndPlay (3);
_root.jeu.normal.gotoAndPlay("go");
pseudo2 = pseudo + "<br>";
_root.niv = "normal <br>";
}
Symbol 57 MovieClip Frame 1
function fire() {
i = i + 0;
duplicateMovieClip (_root.jeu.lazer, "lazer" + i, i);
eval ("_root.jeu.lazer" + i)._x = _root.jeu.vaisseau._x;
eval ("_root.jeu.lazer" + i)._y = _root.jeu.vaisseau._y - 5;
musique.start();
}
stop();
musique = new Sound();
musique.attachSound("lazerwave");
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 2
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 30
stop();
Symbol 66 MovieClip Frame 31
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 2
stop();
Symbol 80 Button
on (keyPress "<Space>") {
gotoAndStop (20);
}
Symbol 82 Button
on (keyPress "<Space>") {
gotoAndStop (1);
}
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 20
stopAllSounds();
Symbol 84 MovieClip Frame 1
_root.jeu.lazer0._y = _root.jeu.lazer0._y - 35;
Symbol 84 MovieClip Frame 2
_root.jeu.lazer0._y = _root.jeu.lazer0._y - 35;
Symbol 85 MovieClip Frame 1
function asteroides() {
i = i + 1;
duplicateMovieClip (_root.jeu.asteroide, "asteroide" + i, i);
eval ("_root.jeu.asteroide" + i)._x = _root.jeu.vaisseau._x;
eval ("_root.jeu.asteroide" + i)._y = (_root._y = -150);
}
function verts() {
i = i + 1;
duplicateMovieClip (_root.jeu.ennemis, "ennemis" + i, i);
eval ("_root.jeu.ennemis" + i)._x = _root.jeu.vaisseau._x;
eval ("_root.jeu.ennemis" + i)._y = (_root._y = -150);
}
function bleus() {
i = i + 1;
duplicateMovieClip (_root.jeu.ennemis2, "ennemis2" + i, i);
eval ("_root.jeu.ennemis2" + i)._x = _root.jeu.vaisseau._x + 80;
eval ("_root.jeu.ennemis2" + i)._y = (_root._y = -150);
}
function orange() {
i = i + 1;
duplicateMovieClip (_root.jeu.ennemis3, "ennemis3" + i, i);
eval ("_root.jeu.ennemis3" + i)._x = _root.jeu.vaisseau._x;
eval ("_root.jeu.ennemis3" + i)._y = (_root._y = -150);
}
stop();
i = i + 1;
duplicateMovieClip (_root.jeu.vide, "vide" + i, i);
eval ("_root.jeu.vide" + i)._x = _root.jeu.vaisseau._x;
eval ("_root.jeu.vide" + i)._y = (_root._y = -150);
Symbol 85 MovieClip Frame 4
orange();
Symbol 85 MovieClip Frame 8
verts();
Symbol 85 MovieClip Frame 11
asteroides();
Symbol 85 MovieClip Frame 14
verts();
Symbol 85 MovieClip Frame 18
bleus();
Symbol 85 MovieClip Frame 21
asteroides();
Symbol 85 MovieClip Frame 24
bleus();
Symbol 85 MovieClip Frame 28
orange();
Symbol 85 MovieClip Frame 31
asteroides();
Symbol 85 MovieClip Frame 34
verts();
Symbol 85 MovieClip Frame 37
gotoAndPlay (6);
Symbol 86 MovieClip Frame 1
if (_root.jeu.vies == "0") {
_root.jeu.gotoAndStop("gameover");
}
if (((_root.jeu.tuesvert + _root.jeu.tuesbleu) + _root.jeu.tuesorange) == "30") {
_root.jeu.gotoAndStop("victoire");
}
Symbol 87 MovieClip Frame 1
_root.jeu.secondes = _root.jeu.secondes + 1;
Symbol 88 MovieClip Frame 1
if (_root.jeu.secondes == "60") {
_root.jeu.minutes = _root.jeu.minutes + 1;
_root.jeu.secondes = 0;
}
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 2
stop();
Symbol 93 MovieClip Frame 1
function asteroides() {
i = i + 1;
duplicateMovieClip (_root.jeu.asteroide, "asteroide" + i, i);
eval ("_root.jeu.asteroide" + i)._x = _root.jeu.vaisseau._x;
eval ("_root.jeu.asteroide" + i)._y = (_root._y = -150);
}
function verts() {
i = i + 1;
duplicateMovieClip (_root.jeu.ennemis, "ennemis" + i, i);
eval ("_root.jeu.ennemis" + i)._x = _root.jeu.vaisseau._x;
eval ("_root.jeu.ennemis" + i)._y = (_root._y = -150);
}
function bleus() {
i = i + 1;
duplicateMovieClip (_root.jeu.ennemis2, "ennemis2" + i, i);
eval ("_root.jeu.ennemis2" + i)._x = _root.jeu.vaisseau._x + 80;
eval ("_root.jeu.ennemis2" + i)._y = (_root._y = -150);
}
function orange() {
i = i + 1;
duplicateMovieClip (_root.jeu.ennemis3, "ennemis3" + i, i);
eval ("_root.jeu.ennemis3" + i)._x = _root.jeu.vaisseau._x;
eval ("_root.jeu.ennemis3" + i)._y = (_root._y = -150);
}
stop();
i = i + 1;
duplicateMovieClip (_root.jeu.vide, "vide" + i, i);
eval ("_root.jeu.vide" + i)._x = _root.jeu.vaisseau._x;
eval ("_root.jeu.vide" + i)._y = (_root._y = -150);
Symbol 93 MovieClip Frame 2
asteroides();
Symbol 93 MovieClip Frame 10
verts();
Symbol 93 MovieClip Frame 16
bleus();
Symbol 93 MovieClip Frame 20
asteroides();
Symbol 93 MovieClip Frame 31
verts();
Symbol 93 MovieClip Frame 36
orange();
Symbol 93 MovieClip Frame 40
asteroides();
Symbol 93 MovieClip Frame 60
gotoAndPlay (2);
Symbol 94 MovieClip Frame 1
function asteroides() {
i = i + 1;
duplicateMovieClip (_root.jeu.asteroide, "asteroide" + i, i);
eval ("_root.jeu.asteroide" + i)._x = _root.jeu.vaisseau._x;
eval ("_root.jeu.asteroide" + i)._y = (_root._y = -150);
}
function verts() {
i = i + 1;
duplicateMovieClip (_root.jeu.ennemis, "ennemis" + i, i);
eval ("_root.jeu.ennemis" + i)._x = _root.jeu.vaisseau._x;
eval ("_root.jeu.ennemis" + i)._y = (_root._y = -150);
}
function bleus() {
i = i + 1;
duplicateMovieClip (_root.jeu.ennemis2, "ennemis2" + i, i);
eval ("_root.jeu.ennemis2" + i)._x = _root.jeu.vaisseau._x + 80;
eval ("_root.jeu.ennemis2" + i)._y = (_root._y = -150);
}
function orange() {
i = i + 1;
duplicateMovieClip (_root.jeu.ennemis3, "ennemis3" + i, i);
eval ("_root.jeu.ennemis3" + i)._x = _root.jeu.vaisseau._x;
eval ("_root.jeu.ennemis3" + i)._y = (_root._y = -150);
}
stop();
i = i + 1;
duplicateMovieClip (_root.jeu.vide, "vide" + i, i);
eval ("_root.jeu.vide" + i)._x = _root.jeu.vaisseau._x;
eval ("_root.jeu.vide" + i)._y = (_root._y = -150);
Symbol 94 MovieClip Frame 2
asteroides();
Symbol 94 MovieClip Frame 13
verts();
Symbol 94 MovieClip Frame 25
asteroides();
Symbol 94 MovieClip Frame 38
bleus();
Symbol 94 MovieClip Frame 50
asteroides();
Symbol 94 MovieClip Frame 60
orange();
Symbol 94 MovieClip Frame 70
gotoAndPlay (2);
Symbol 113 Button
on (press) {
loadMovieNum ("espace.swf", 0);
}
Symbol 126 Button
on (press) {
_root.gotoAndPlay(4);
}
Symbol 132 MovieClip Frame 1
stop();
Instance of Symbol 57 MovieClip "vaisseau" in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
Mouse.hide();
startDrag (this, true);
}
Instance of Symbol 60 MovieClip "ennemis" in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 35;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.jeu.vaisseau)) {
_root.jeu.vaisseau.gotoAndPlay(2);
_root.jeu.vies = _root.jeu.vies - 1;
this.gotoAndPlay("houston");
_root.jeu.vaisseau._alpha = _root.jeu.vaisseau._alpha - 15;
this.removeMovieClip();
}
if (this.hitTest(_root.jeu.supprimer)) {
_root.jeu.compte = _root.jeu.compte + 1;
this.removeMovieClip();
}
if (this.hitTest(_root.jeu.lazer0)) {
_root.jeu.lazer0.gotoAndStop("rien");
_root.jeu.tuesvert = _root.jeu.tuesvert + 1;
this.gotoAndStop("explosion");
this.removeMovieClip();
}
}
Instance of Symbol 62 MovieClip "lazer" in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.jeu.supprimerlazer)) {
this.removeMovieClip();
}
}
Instance of Symbol 66 MovieClip "asteroide" in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.jeu.vaisseau)) {
_root.jeu.vaisseau.gotoAndPlay(2);
this.gotoAndPlay("houston");
_root.jeu.vies = _root.jeu.vies - 1;
_root.jeu.vaisseau._alpha = _root.jeu.vaisseau._alpha - 15;
_root.jeu.impactastero = _root.jeu.impactastero + 1;
this.removeMovieClip();
}
if (this.hitTest(_root.jeu.supprimer)) {
this.removeMovieClip();
}
if (this.hitTest(_root.jeu.lazer0)) {
_root.jeu.lazer0.gotoAndStop("rien");
}
}
Instance of Symbol 68 MovieClip "ennemis2" in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 35;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.jeu.vaisseau)) {
_root.jeu.vaisseau.gotoAndPlay(2);
_root.jeu.vies = _root.jeu.vies - 1;
this.gotoAndPlay("houston");
_root.jeu.vaisseau._alpha = _root.jeu.vaisseau._alpha - 15;
this.removeMovieClip();
}
if (this.hitTest(_root.jeu.supprimer)) {
_root.jeu.compte = _root.jeu.compte + 1;
this.removeMovieClip();
}
if (this.hitTest(_root.jeu.lazer0)) {
_root.jeu.lazer0.gotoAndStop("rien");
_root.jeu.tuesbleu = _root.jeu.tuesbleu + 1;
this.gotoAndStop("explosion");
this.removeMovieClip();
}
}
Instance of Symbol 90 MovieClip "ennemis3" in Symbol 132 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y + 50;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.jeu.vaisseau)) {
_root.jeu.vaisseau.gotoAndPlay(2);
_root.jeu.vies = _root.jeu.vies - 1;
this.gotoAndPlay("houston");
_root.jeu.vaisseau._alpha = _root.jeu.vaisseau._alpha - 15;
this.removeMovieClip();
}
if (this.hitTest(_root.jeu.supprimer)) {
_root.jeu.compte = _root.jeu.compte + 1;
this.removeMovieClip();
}
if (this.hitTest(_root.jeu.lazer0)) {
_root.jeu.lazer0.gotoAndStop("rien");
_root.jeu.tuesorange = _root.jeu.tuesorange + 1;
this.gotoAndStop("explosion");
this.removeMovieClip();
}
}
Symbol 132 MovieClip Frame 15
stop();
stop();
Mouse.show();
vert = tuesvert + 0;
bleu = tuesbleu + 0;
orange = tuesorange + 0;
resultat = ((bleu + vert) + orange) + 0;
reussite = (resultat * 100) / 30;
mn = minutes + 0;
sc = secondes;
lazer = comptelazer + 0;
rates = compte + 0;
precisionlazer = (resultat / lazer) * 100;
astero = impactastero + 0;
Symbol 132 MovieClip Frame 23
stop();
stop();
Mouse.show();
vert = tuesvert + 0;
bleu = tuesbleu + 0;
orange = tuesorange + 0;
resultat = ((bleu + vert) + orange) + 0;
reussite = (resultat * 100) / 30;
mn = minutes + 0;
sc = secondes;
lazer = comptelazer + 0;
rates = compte + 0;
precisionlazer = (resultat / lazer) * 100;
astero = impactastero + 0;
score = (vies * resultat) * 50;
_root.score2 = ((vies * resultat) * 50) + "<br>";