Frame 1
stop();
Instance of Symbol 5 MovieClip "barre" in Frame 1
onClipEvent (enterFrame) {
total = _root.getBytesTotal();
actuel = _root.getBytesLoaded();
pourcentage = Math.round((actuel / total) * 70);
this._xscale = pourcentage;
if (total == actuel) {
_root.play();
}
}
Frame 21
stop();
Frame 41
stop();
Instance of Symbol 78 MovieClip "sol" in Frame 41
onClipEvent (load) {
x = _root.heros._x;
y = _root.heros._y;
gravite = 0;
anciennegravite = 0;
elan = 0;
direction = "right";
anciennedirection = "right";
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.heros.bras.play();
}
if (Key.isDown(39)) {
direction = "right";
if ((gravite == 0) && (anciennegravite == 0)) {
_root.heros.gotoAndStop(1);
} else {
_root.heros.gotoAndStop(2);
}
if (elan > -10) {
elan = elan - 1;
}
} else if (Key.isDown(37)) {
direction = "left";
if ((gravite == 0) && (anciennegravite == 0)) {
_root.heros.gotoAndStop(5);
} else {
_root.heros.gotoAndStop(6);
}
if (elan < 10) {
elan = elan + 1;
}
} else if (Key.isDown(17)) {
if (direction == "right") {
_root.heros.gotoAndStop(4);
} else {
_root.heros.gotoAndStop(8);
}
if (elan < 0) {
elan = elan + 1;
} else if (elan > 0) {
elan = elan - 1;
}
} else {
if (elan < 0) {
elan = elan + 1;
} else if (elan > 0) {
elan = elan - 1;
}
if (direction == "right") {
if ((gravite == 0) && (anciennegravite == 0)) {
_root.heros.gotoAndStop(3);
} else {
_root.heros.gotoAndStop(2);
}
} else if ((gravite == 0) && (anciennegravite == 0)) {
_root.heros.gotoAndStop(7);
} else {
_root.heros.gotoAndStop(6);
}
}
anciennegravite = gravite;
if (this.hitTest(x, y - 1, true)) {
gravite = 0;
ij = 0;
do {
ij = ij + 1;
test = y - ij;
} while (this.hitTest(x, test - 1, true) && (ij < 20));
if (Key.isDown(38) && (ij < 20)) {
gravite = -10;
}
if (ij == 20) {
ij = 0;
if (anciennedirection == "right") {
_x = ((_x - elan) - 1);
_root.arriereplan._x = (_root.arriereplan._x - elan) - 1;
} else {
_x = ((_x - elan) + 1);
_root.arriereplan._x = (_root.arriereplan._x - elan) + 1;
}
if (Key.isDown(38)) {
if (elan < 0) {
elan = 16;
} else if (elan > 0) {
elan = -16;
}
gravite = -12;
} else {
elan = 0;
}
}
_y = (_y + ij);
_root.arriereplan._y = _root.arriereplan._y + ij;
} else if (this.hitTest(x, y, true)) {
gravite = 0;
if (Key.isDown(38)) {
gravite = -16;
}
} else {
if (gravite < 15) {
gravite = gravite + 1;
}
if (this.hitTest(x, y - 55, true) && (gravite < 0)) {
gravite = -gravite;
}
}
_root.arriereplan._y = _root.arriereplan._y - gravite;
_y = (_y - gravite);
_x = (_x + elan);
_root.arriereplan._x = _root.arriereplan._x + elan;
if (elan > 0) {
anciennedirection = "right";
} else if (elan < 0) {
anciennedirection = "left";
}
}
Instance of Symbol 138 MovieClip "etat" in Frame 41
onClipEvent (load) {
function modifier(valeur) {
this.vie = this.vie + valeur;
if (this.vie <= 0) {
_root.heros.gotoAndPlay("mort");
_root.heros._name = "muerte";
}
if (this.vie > 100) {
this.vie = 100;
}
this.barrevie._xscale = this.vie;
}
if (!isNaN(vie)) {
vie = 100;
}
trace("vie :" + vie);
}
Instance of Symbol 145 MovieClip "tir" in Frame 41
onClipEvent (load) {
if (this._name != "tir") {
if (_root.sol.direction == "right") {
direction = 180;
} else {
direction = 0;
}
this._rotation = direction;
_x = _root.heros._x;
_y = (_root.heros._y - 24);
} else {
this._name = this._name + "fini";
}
}
onClipEvent (enterFrame) {
if (this._name.indexOf("fini", 0) == -1) {
if (_root.sol.hitTest(_x, _y, true)) {
play();
}
_x = ((_x - (20 * Math.cos((direction * Math.PI) / 180))) + _root.sol.elan);
_y = ((_y - (20 * Math.sin((direction * Math.PI) / 180))) - _root.sol.gravite);
}
}
Instance of Symbol 77 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (this.hittest(_root.heros.carre)) {
this.play();
_root.etat.modifier(50);
}
}
Frame 65
stop();
Instance of Symbol 168 MovieClip "sol" in Frame 80
onClipEvent (load) {
x = _root.heros._x;
y = _root.heros._y;
gravite = 0;
anciennegravite = 0;
elan = 0;
direction = "right";
anciennedirection = "right";
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.heros.bras.play();
}
if (Key.isDown(39)) {
direction = "right";
if ((gravite == 0) && (anciennegravite == 0)) {
_root.heros.gotoAndStop(1);
} else {
_root.heros.gotoAndStop(2);
}
if (elan > -10) {
elan = elan - 1;
}
} else if (Key.isDown(37)) {
direction = "left";
if ((gravite == 0) && (anciennegravite == 0)) {
_root.heros.gotoAndStop(5);
} else {
_root.heros.gotoAndStop(6);
}
if (elan < 10) {
elan = elan + 1;
}
} else if (Key.isDown(17)) {
if (direction == "right") {
_root.heros.gotoAndStop(4);
} else {
_root.heros.gotoAndStop(8);
}
if (elan < 0) {
elan = elan + 1;
} else if (elan > 0) {
elan = elan - 1;
}
} else {
if (elan < 0) {
elan = elan + 1;
} else if (elan > 0) {
elan = elan - 1;
}
if (direction == "right") {
if ((gravite == 0) && (anciennegravite == 0)) {
_root.heros.gotoAndStop(3);
} else {
_root.heros.gotoAndStop(2);
}
} else if ((gravite == 0) && (anciennegravite == 0)) {
_root.heros.gotoAndStop(7);
} else {
_root.heros.gotoAndStop(6);
}
}
anciennegravite = gravite;
if (this.hitTest(x, y - 1, true)) {
gravite = 0;
ij = 0;
do {
ij = ij + 1;
test = y - ij;
} while (this.hitTest(x, test - 1, true) && (ij < 20));
if (Key.isDown(38) && (ij < 20)) {
gravite = -10;
}
if (ij == 20) {
ij = 0;
if (anciennedirection == "right") {
_x = ((_x - elan) - 1);
_root.arriereplan._x = (_root.arriereplan._x - elan) - 1;
} else {
_x = ((_x - elan) + 1);
_root.arriereplan._x = (_root.arriereplan._x - elan) + 1;
}
if (Key.isDown(38)) {
if (elan < 0) {
elan = 16;
} else if (elan > 0) {
elan = -16;
}
gravite = -12;
} else {
elan = 0;
}
}
_y = (_y + ij);
_root.arriereplan._y = _root.arriereplan._y + ij;
} else if (this.hitTest(x, y, true)) {
gravite = 0;
if (Key.isDown(38)) {
gravite = -16;
}
} else {
if (gravite < 15) {
gravite = gravite + 1;
}
if (this.hitTest(x, y - 55, true) && (gravite < 0)) {
gravite = -gravite;
}
}
_root.arriereplan._y = _root.arriereplan._y - gravite;
_y = (_y - gravite);
_x = (_x + elan);
_root.arriereplan._x = _root.arriereplan._x + elan;
if (elan > 0) {
anciennedirection = "right";
} else if (elan < 0) {
anciennedirection = "left";
}
}
Frame 94
stop();
Frame 118
stop();
Symbol 14 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 20
stop();
Symbol 32 Button
on (release) {
_root.play();
}
Symbol 33 Button
on (release) {
_root.scroll.play();
}
Symbol 46 MovieClip Frame 25
stop();
Instance of Symbol 48 MovieClip in Symbol 49 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.heros.carre)) {
_root.gotoAndPlay(66);
}
}
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 12
stop();
Instance of Symbol 72 MovieClip in Symbol 73 MovieClip Frame 1
onClipEvent (load) {
PV = 4;
}
onClipEvent (enterFrame) {
if (this._name.indexOf("fini", 0) == -1) {
if (touche <= 0) {
if ((_root.heros._y > ((Math.round(_parent._y) + _root.sol._y) - 35)) && (_root.heros._y < ((Math.round(_parent._y) + _root.sol._y) + 55))) {
if ((_root.heros._x > (Math.round(_parent._x) + _root.sol._x)) && (_root.heros._x < ((Math.round(_parent._x) + _root.sol._x) + 250))) {
this.gotoAndStop(3);
_parent._x = _parent._x + 9;
if (this.carre.hittest(_root.heros.carre)) {
_root.sol.elan = -12;
_root.etat.modifier(-10);
}
} else if ((_root.heros._x < (Math.round(_parent._x) + _root.sol._x)) && (_root.heros._x > ((Math.round(_parent._x) + _root.sol._x) - 250))) {
this.gotoAndStop(2);
_parent._x = _parent._x - 9;
if (this.carre.hittest(_root.heros.carre)) {
_root.sol.elan = 12;
_root.etat.modifier(-10);
_root.etat.bip.gotoAndPlay(10);
}
} else {
this.gotoAndStop(1);
}
} else {
this.gotoAndStop(1);
}
} else {
touche = touche - 1;
this.gotoAndStop(17);
}
i = 1;
while (i < 5) {
if (this.hittest("_root.tir" + i)) {
eval ("_root.tir" + i)._name = ("tir" + i) + "fini";
eval (("_root.tir" + i) + "fini").play();
PV = PV - 3;
if (PV <= 0) {
this.gotoAndPlay(4);
this._name = this._name + "fini";
} else {
touche = 3;
}
}
i++;
}
if (this.hittest("_root.heros.bras.lame")) {
eval ("_root.tir" + i)._name = ("tir" + i) + "fini";
eval (("_root.tir" + i) + "fini").play();
PV = PV - 1;
if (PV <= 0) {
this.gotoAndPlay(4);
this._name = this._name + "fini";
} else {
touche = 10;
}
}
}
}
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 21
stop();
Instance of Symbol 77 MovieClip in Symbol 78 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.heros.carre)) {
this.play();
_root.etat.modifier(50);
}
}
Symbol 102 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 7
gotoAndStop (1);
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 7
gotoAndStop (1);
Symbol 123 MovieClip Frame 7
_root.tirfini.duplicateMovieClip("tir" + this.compteurtir, this.compteurtir);
this.compteurtir = this.compteurtir + 1;
if (this.compteurtir > 5) {
this.compteurtir = 1;
}
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 2
stop();
Symbol 133 MovieClip Frame 3
stop();
Symbol 133 MovieClip Frame 4
stop();
Instance of Symbol 123 MovieClip in Symbol 133 MovieClip Frame 4
onClipEvent (load) {
compteurtir = 1;
}
Symbol 133 MovieClip Frame 5
stop();
Symbol 133 MovieClip Frame 6
stop();
Symbol 133 MovieClip Frame 7
stop();
Symbol 133 MovieClip Frame 8
stop();
Symbol 133 MovieClip Frame 25
stop();
_root.play();
_root.etat.removeMovieClip();
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 2
this._name = this._name add "fini";
play();
Symbol 145 MovieClip Frame 6
this.removeMovieClip();
Symbol 145 MovieClip Frame 7
stop();
Symbol 147 MovieClip Frame 86
stop();
Symbol 151 Button
on (release) {
_root.gotoAndStop(21);
}
Instance of Symbol 72 MovieClip in Symbol 167 MovieClip Frame 1
onClipEvent (load) {
PV = 16;
}
onClipEvent (enterFrame) {
if (this._name.indexOf("fini", 0) == -1) {
if (touche <= 0) {
if ((_root.heros._y > ((Math.round(_parent._y) + _root.sol._y) - 35)) && (_root.heros._y < ((Math.round(_parent._y) + _root.sol._y) + 55))) {
if ((_root.heros._x > (Math.round(_parent._x) + _root.sol._x)) && (_root.heros._x < ((Math.round(_parent._x) + _root.sol._x) + 250))) {
this.gotoAndStop(3);
_parent._x = _parent._x + 9;
if (this.carre.hittest(_root.heros.carre)) {
_root.sol.elan = -12;
_root.etat.modifier(-10);
}
} else if ((_root.heros._x < (Math.round(_parent._x) + _root.sol._x)) && (_root.heros._x > ((Math.round(_parent._x) + _root.sol._x) - 250))) {
this.gotoAndStop(2);
_parent._x = _parent._x - 9;
if (this.carre.hittest(_root.heros.carre)) {
_root.sol.elan = 12;
_root.etat.modifier(-10);
_root.etat.bip.gotoAndPlay(10);
}
} else {
this.gotoAndStop(1);
}
} else {
this.gotoAndStop(1);
}
} else {
touche = touche - 1;
this.gotoAndStop(17);
}
i = 1;
while (i < 5) {
if (this.hittest("_root.tir" + i)) {
eval ("_root.tir" + i)._name = ("tir" + i) + "fini";
eval (("_root.tir" + i) + "fini").play();
touche = 3;
}
i++;
}
if (this.hittest("_root.heros.bras.lame")) {
eval ("_root.tir" + i)._name = ("tir" + i) + "fini";
eval (("_root.tir" + i) + "fini").play();
PV = PV - 2;
if (PV <= 0) {
this.gotoAndPlay(4);
this._name = this._name + "fini";
} else {
touche = 3;
}
}
}
}
Instance of Symbol 77 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.heros.carre)) {
this.play();
_root.etat.modifier(50);
}
}