Frame 1
mon_cm = new ContextMenu();
mon_cm.hideBuiltInItems();
_root.menu = mon_cm;
stop();
stop();
stop.init();
Instance of Symbol 58 MovieClip in Frame 1
onClipEvent (load) {
total = _root.getBytesTotal() + " bytes";
}
onClipEvent (enterFrame) {
download = _root.getBytesLoaded() + " bytes";
bytesleft = (_root.getBytesTotal() - _root.getBytesLoaded()) + " bytes";
percent = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "%";
if (percent == "100%") {
_root.gotoAndStop(49);
}
}
Frame 2
_root.son.stop();
stop();
Frame 3
pepito = 0;
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("zik");
_root.go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
_root.go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
_root.nouvelle.enabled = true;
clipvide.onEnterFrame = tester;
};
_root.nouvelle.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
_root.go.enabled = true;
delete clipvide.onEnterFrame;
};
stop();
stop();
Frame 4
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
depart = new Date();
compte = 0;
d = depart.getTime() / 1000;
stop();
_root.onEnterFrame = function () {
temps2 = new Date();
t = temps2.getTime() / 1000;
_root.chrono = 360 - Math.floor(t - _root.d);
if (_root.chrono == 0) {
_root.gotoAndPlay(44);
}
};
Instance of Symbol 136 MovieClip in Frame 4
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 4
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 138 MovieClip "d2" in Frame 4
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d2)) {
_root.gotoAndStop(3);
}
}
Instance of Symbol 138 MovieClip "d3" in Frame 4
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d3)) {
_root.gotoAndPlay(3);
}
}
Instance of Symbol 139 MovieClip "murx" in Frame 4
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.murx)) {
_root.alertemurx.text = "ATTENTION AUX MURS...";
} else {
_root.alertemurx.text = "";
}
}
Instance of Symbol 138 MovieClip "d4" in Frame 4
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4)) {
_root.gotoAndPlay(3);
}
}
Instance of Symbol 140 MovieClip "mur2" in Frame 4
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.mur2)) {
_root.alertemur2.text = "ATTENTION AUX MURS...";
} else {
_root.alertemur2.text = "";
}
}
Instance of Symbol 144 MovieClip "portemagique" in Frame 4
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.portemagique)) {
_root.portemagique.gotoAndPlay(2);
} else {
_root.portemagique.gotoAndStop(1);
}
}
Instance of Symbol 146 MovieClip "detect2" in Frame 4
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect2)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect" in Frame 4
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 148 MovieClip "base1" in Frame 4
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.base1)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 148 MovieClip "base2" in Frame 4
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.base2)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 138 MovieClip "d1" in Frame 4
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d1)) {
_root.gotoAndPlay(3);
}
}
Instance of Symbol 154 MovieClip "luz2" in Frame 4
/* no clip actions */
Instance of Symbol 156 MovieClip "mur1" in Frame 4
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.mur1)) {
_root.alertemur.text = "ATTENTION AUX MURS...";
} else {
_root.alertemur.text = "";
}
}
Instance of Symbol 170 MovieClip "exit1" in Frame 4
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.exit1)) {
_root.gotoAndStop(6);
}
}
Instance of Symbol 136 MovieClip in Frame 4
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 4
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 154 MovieClip "luz2" in Frame 4
/* no clip actions */
Instance of Symbol 136 MovieClip in Frame 4
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Frame 5
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("zik");
_root.go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
_root.go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
_root.nouvelle.enabled = true;
clipvide.onEnterFrame = tester;
};
_root.nouvelle.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
_root.go.enabled = true;
delete clipvide.onEnterFrame;
};
Frame 6
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
compte = 0;
d = depart.getTime() / 1000;
stop();
_root.onEnterFrame = function () {
temps2 = new Date();
t = temps2.getTime() / 1000;
_root.chrono = 300 - Math.floor(t - _root.d);
if (_root.chrono == 0) {
_root.gotoAndPlay(44);
}
};
Instance of Symbol 180 MovieClip "table1" in Frame 6
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.table1)) {
_root.perso.gotoAndPlay(1);
}
}
Instance of Symbol 183 MovieClip "mur2_2" in Frame 6
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.mur2_2)) {
_root.alertemur4.text = "ATTENTION AUX MURS...";
} else {
_root.alertemur4.text = "";
}
}
Instance of Symbol 148 MovieClip "base4" in Frame 6
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.base4)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 138 MovieClip "d2_4" in Frame 6
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d2_4)) {
_root.gotoAndPlay(5);
}
}
Instance of Symbol 146 MovieClip "detect3" in Frame 6
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect3)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect4" in Frame 6
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect4)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 138 MovieClip "d2_5" in Frame 6
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d2_5)) {
_root.gotoAndPlay(5);
}
}
Instance of Symbol 138 MovieClip "d2_3" in Frame 6
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d2_3)) {
if (_root.vitesse > 1) {
_root.vitesse--;
}
}
if (_root.vitesse == 0) {
_root.vitesse++;
}
}
Instance of Symbol 138 MovieClip "d2_1" in Frame 6
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d2_1)) {
_root.gotoAndPlay(5);
}
}
Instance of Symbol 138 MovieClip "d2_6" in Frame 6
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d2_6)) {
if (_root.vitesse > 1) {
_root.vitesse--;
}
}
if (_root.vitesse == 0) {
_root.vitesse++;
}
}
Instance of Symbol 186 MovieClip "mur2_1" in Frame 6
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.mur2_1)) {
_root.alertemur3.text = "ATTENTION AUX MURS...";
if (_root.vitesse > 5) {
_root.vitesse--;
}
if (_root.vitesse == 3) {
_root.vitesse++;
}
} else {
_root.alertemur3.text = "";
}
}
Instance of Symbol 190 MovieClip "mur2_3" in Frame 6
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.mur2_3)) {
_root.alertemur4.text = "ATTENTION AUX MURS...";
} else {
_root.alertemur4.text = "";
}
}
Instance of Symbol 199 MovieClip "clef1" in Frame 6
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.clef1)) {
_root.gotoAndStop(41);
}
}
Instance of Symbol 136 MovieClip in Frame 6
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 6
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 6
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 6
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 6
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 55 MovieClip [bonhomme] "perso" in Frame 6
/* no clip actions */
Frame 7
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("zik");
_root.go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
_root.go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
_root.nouvelle.enabled = true;
clipvide.onEnterFrame = tester;
};
_root.nouvelle.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
_root.go.enabled = true;
delete clipvide.onEnterFrame;
};
Frame 8
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
Instance of Symbol 144 MovieClip "portemagique3" in Frame 8
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.portemagique3)) {
_root.portemagique3.gotoAndStop(2);
} else {
_root.portemagique3.gotoAndStop(6);
}
}
Instance of Symbol 136 MovieClip in Frame 8
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 8
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 138 MovieClip "d3_5" in Frame 8
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d3_5)) {
if (_root.vitesse > 4) {
_root.vitesse--;
}
}
if (_root.vitesse == 2) {
_root.vitesse++;
}
}
Instance of Symbol 146 MovieClip "detect6" in Frame 8
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect6)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect8" in Frame 8
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect8)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect7" in Frame 8
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 146 MovieClip "detect5" in Frame 8
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect5)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 138 MovieClip "d3_3" in Frame 8
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d3_3)) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 138 MovieClip "d3_4" in Frame 8
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d3_4)) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 138 MovieClip "d3_1" in Frame 8
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d3_1)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 211 MovieClip "exit4" in Frame 8
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.exit4)) {
_root.gotoAndStop(10);
}
}
Instance of Symbol 166 MovieClip in Frame 8
onClipEvent (enterFrame) {
sonelec = new Sound(this);
sonelec.attachSound("faisceau");
if (_root.perso.hitTest(this)) {
sonelec.start();
}
}
Instance of Symbol 136 MovieClip in Frame 8
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 8
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 8
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 8
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 55 MovieClip [bonhomme] "perso" in Frame 8
/* no clip actions */
Frame 9
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("zik");
_root.go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
_root.go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
_root.nouvelle.enabled = true;
clipvide.onEnterFrame = tester;
};
_root.nouvelle.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
_root.go.enabled = true;
delete clipvide.onEnterFrame;
};
Frame 10
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
compte = 0;
d = depart.getTime() / 1000;
stop();
_root.onEnterFrame = function () {
temps2 = new Date();
t = temps2.getTime() / 1000;
_root.chrono = 210 - Math.floor(t - _root.d);
if (_root.chrono == 0) {
_root.gotoAndPlay(44);
}
};
Instance of Symbol 144 MovieClip "portemagique4" in Frame 10
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.portemagique4)) {
_root.portemagique4.gotoAndStop(2);
} else {
_root.portemagique4.gotoAndStop(6);
}
}
Instance of Symbol 211 MovieClip "exit5" in Frame 10
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.exit5)) {
_root.gotoAndStop(12);
}
}
Instance of Symbol 219 MovieClip "blocbleu3" in Frame 10
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocbleu3)) {
_root.gotoAndPlay(9);
}
}
Instance of Symbol 148 MovieClip "base9" in Frame 10
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.base9)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect9" in Frame 10
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect9)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 225 MovieClip "grenouille1" in Frame 10
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.grenouille1)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 219 MovieClip "blocbleu" in Frame 10
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocbleu)) {
_root.gotoAndPlay(9);
}
}
Instance of Symbol 227 MovieClip "blocgris" in Frame 10
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocgris)) {
_root.alertemur6.text = "ATTENTION AUX MURS...";
} else {
_root.alertemur6.text = "";
}
}
Instance of Symbol 139 MovieClip "blocnoir" in Frame 10
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocnoir)) {
_root.gotoAndPlay(9);
}
}
Instance of Symbol 225 MovieClip "grenouille2" in Frame 10
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.grenouille2)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 219 MovieClip "blocbleu2" in Frame 10
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocbleu2)) {
_root.gotoAndPlay(9);
}
}
Instance of Symbol 136 MovieClip in Frame 10
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 10
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 10
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 10
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 55 MovieClip [bonhomme] "perso" in Frame 10
/* no clip actions */
Frame 11
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("zik2");
_root.go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
_root.go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
_root.nouvelle.enabled = true;
clipvide.onEnterFrame = tester;
};
_root.nouvelle.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
_root.go.enabled = true;
delete clipvide.onEnterFrame;
};
Frame 12
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
function getdistance(x, y, x1, y1) {
var run;
var rise;
run = x1 - x;
rise = y1 - y;
return(_root.hyp(run, rise));
}
function hyp(a, b) {
return(Math.sqrt((a * a) + (b * b)));
}
MovieClip.prototype.reset = function () {
width = 697;
height = 550;
var dist;
var norm;
this.x = this._x;
this.y = this._y;
this.speed = (Math.random() * 4) + 2;
this.targx = Math.random() * width;
this.targy = Math.random() * height;
dist = _root.getdistance(this.x, this.y, this.targx, this.targy);
norm = this.speed / dist;
this.diffx = (this.targx - this.x) * norm;
this.diffy = (this.targy - this.y) * norm;
};
MovieClip.prototype.move = function () {
if (_root.getdistance(this.x, this.y, this.targx, this.targy) > this.speed) {
this.x = this.x + this.diffx;
this.y = this.y + this.diffy;
} else {
this.x = this.targx;
this.y = this.targy;
if (!this.t) {
this.t = getTimer();
}
if ((getTimer() - this.t) > 1000) {
this.reset();
this.t = 0;
}
}
this._x = this.x;
this._y = this.y;
};
compte = 0;
d = depart.getTime() / 1000;
stop();
_root.onEnterFrame = function () {
temps2 = new Date();
t = temps2.getTime() / 1000;
_root.chrono = 180 - Math.floor(t - _root.d);
if (_root.chrono == 0) {
_root.gotoAndPlay(44);
}
};
Instance of Symbol 144 MovieClip "portemagique6" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.portemagique6)) {
_root.portemagique6.gotoAndStop(2);
} else {
_root.portemagique6.gotoAndStop(6);
}
}
Instance of Symbol 148 MovieClip "base12" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.base12)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect13" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect13)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect10" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect10)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect11" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect11)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect12" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect12)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect14" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect14)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 148 MovieClip "base13" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.base13)) {
_root.gotoAndPlay(11);
}
}
Instance of Symbol 148 MovieClip "base14" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.base14)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 148 MovieClip "base10" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.base10)) {
_root.gotoAndPlay(11);
}
}
Instance of Symbol 148 MovieClip "base11" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.base11)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 225 MovieClip "grenouille3" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.grenouille3)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 211 MovieClip "exit6" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.exit6)) {
_root.gotoAndStop(14);
}
}
Instance of Symbol 236 MovieClip "vase" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.vase)) {
_root.gotoAndPlay(11);
}
}
Instance of Symbol 238 MovieClip "d4_1" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_1)) {
_root.gotoAndPlay(11);
}
}
Instance of Symbol 238 MovieClip "d4_3" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_3)) {
_root.gotoAndPlay(11);
}
}
Instance of Symbol 238 MovieClip "d4_4" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_4)) {
_root.gotoAndPlay(11);
}
}
Instance of Symbol 238 MovieClip "d4_2" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_2)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 166 MovieClip "barriere1" in Frame 12
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.barriere1)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip "a1" in Frame 12
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(_root.a1)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 136 MovieClip in Frame 12
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 12
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 12
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 12
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 12
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 12
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 55 MovieClip [bonhomme] "perso" in Frame 12
/* no clip actions */
Frame 13
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("zik");
_root.go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
_root.go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
_root.nouvelle.enabled = true;
clipvide.onEnterFrame = tester;
};
_root.nouvelle.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
_root.go.enabled = true;
delete clipvide.onEnterFrame;
};
Frame 14
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
compte = 0;
d = depart.getTime() / 1000;
stop();
_root.onEnterFrame = function () {
temps2 = new Date();
t = temps2.getTime() / 1000;
_root.chrono = 150 - Math.floor(t - _root.d);
if (_root.chrono == 0) {
_root.gotoAndPlay(44);
}
};
Instance of Symbol 144 MovieClip "portemagique7" in Frame 14
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.portemagique7)) {
_root.portemagique7.gotoAndStop(2);
} else {
_root.portemagique7.gotoAndStop(6);
}
}
Instance of Symbol 146 MovieClip "detect15" in Frame 14
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect15)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 148 MovieClip "base15" in Frame 14
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.base15)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect14" in Frame 14
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect14)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 225 MovieClip "grenouillex" in Frame 14
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.grenouillex)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 211 MovieClip "exit6" in Frame 14
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.exit6)) {
_root.gotoAndStop(16);
}
}
Instance of Symbol 225 MovieClip "grenouille4" in Frame 14
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.grenouille4)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 254 MovieClip "blocviolet" in Frame 14
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocviolet)) {
if (_root.vitesse > 1) {
_root.vitesse--;
}
}
if (_root.vitesse == 0) {
_root.vitesse++;
}
}
Instance of Symbol 256 MovieClip "blocmarron" in Frame 14
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocmarron)) {
if (_root.vitesse > 1) {
_root.vitesse--;
}
}
if (_root.vitesse == 0) {
_root.vitesse++;
}
}
Instance of Symbol 259 MovieClip "groupetable" in Frame 14
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.groupetable)) {
if (_root.vitesse > 4) {
_root.vitesse--;
}
}
if (_root.vitesse == 2) {
_root.vitesse++;
}
}
Instance of Symbol 261 MovieClip "trucvert" in Frame 14
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.trucvert)) {
_root.gotoAndStop(13);
}
}
Instance of Symbol 254 MovieClip "blocviolethaut" in Frame 14
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocviolethaut)) {
_root.gotoAndPlay(13);
}
}
Instance of Symbol 254 MovieClip "blocvioletbas" in Frame 14
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocvioletbas)) {
_root.gotoAndPlay(13);
}
}
Instance of Symbol 254 MovieClip "blocvioletgauche" in Frame 14
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocvioletgauche)) {
_root.gotoAndPlay(13);
}
}
Instance of Symbol 254 MovieClip "blocvioletdroite" in Frame 14
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocvioletdroite)) {
_root.gotoAndPlay(13);
}
}
Instance of Symbol 136 MovieClip in Frame 14
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 14
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 14
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 14
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 14
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 55 MovieClip [bonhomme] "perso" in Frame 14
/* no clip actions */
Frame 15
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("zik2");
_root.go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
_root.go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
_root.nouvelle.enabled = true;
clipvide.onEnterFrame = tester;
};
_root.nouvelle.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
_root.go.enabled = true;
delete clipvide.onEnterFrame;
};
Frame 16
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
compte = 0;
d = depart.getTime() / 1000;
stop();
_root.onEnterFrame = function () {
temps2 = new Date();
t = temps2.getTime() / 1000;
_root.chrono = 120 - Math.floor(t - _root.d);
if (_root.chrono == 0) {
_root.gotoAndPlay(44);
}
};
Instance of Symbol 254 MovieClip "blocviolethaut" in Frame 16
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocviolethaut)) {
_root.gotoAndPlay(13);
}
}
Instance of Symbol 254 MovieClip "blocviolethaut" in Frame 16
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocviolethaut)) {
_root.gotoAndPlay(13);
}
}
Instance of Symbol 254 MovieClip "blocviolethaut" in Frame 16
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocviolethaut)) {
_root.gotoAndPlay(13);
}
}
Instance of Symbol 254 MovieClip "blocviolethaut" in Frame 16
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocviolethaut)) {
_root.gotoAndPlay(13);
}
}
Instance of Symbol 211 MovieClip "exit6" in Frame 16
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.exit6)) {
_root.gotoAndStop(14);
}
}
Instance of Symbol 168 MovieClip "boutonrond" in Frame 16
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.boutonrond)) {
_root.gotoAndStop(45);
}
}
Instance of Symbol 55 MovieClip [bonhomme] "perso" in Frame 16
/* no clip actions */
Frame 17
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("zik");
_root.go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
_root.go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
_root.nouvelle.enabled = true;
clipvide.onEnterFrame = tester;
};
_root.nouvelle.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
_root.go.enabled = true;
delete clipvide.onEnterFrame;
};
Frame 18
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
function getdistance(x, y, x1, y1) {
var run;
var rise;
run = x1 - x;
rise = y1 - y;
return(_root.hyp(run, rise));
}
function hyp(a, b) {
return(Math.sqrt((a * a) + (b * b)));
}
MovieClip.prototype.reset = function () {
width = 697;
height = 550;
var dist;
var norm;
this.x = this._x;
this.y = this._y;
this.speed = (Math.random() * 4) + 2;
this.targx = Math.random() * width;
this.targy = Math.random() * height;
dist = _root.getdistance(this.x, this.y, this.targx, this.targy);
norm = this.speed / dist;
this.diffx = (this.targx - this.x) * norm;
this.diffy = (this.targy - this.y) * norm;
};
MovieClip.prototype.move = function () {
if (_root.getdistance(this.x, this.y, this.targx, this.targy) > this.speed) {
this.x = this.x + this.diffx;
this.y = this.y + this.diffy;
} else {
this.x = this.targx;
this.y = this.targy;
if (!this.t) {
this.t = getTimer();
}
if ((getTimer() - this.t) > 1000) {
this.reset();
this.t = 0;
}
}
this._x = this.x;
this._y = this.y;
};
compte = 0;
d = depart.getTime() / 1000;
stop();
_root.onEnterFrame = function () {
temps2 = new Date();
t = temps2.getTime() / 1000;
_root.chrono = 110 - Math.floor(t - _root.d);
if (_root.chrono == 0) {
_root.gotoAndPlay(44);
}
};
Instance of Symbol 199 MovieClip "clef2" in Frame 18
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.clef2)) {
_root.gotoAndStop(46);
}
}
Instance of Symbol 248 MovieClip "a3" in Frame 18
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(_root.a3)) {
_root.gotoAndStop(40);
}
}
Instance of Symbol 248 MovieClip "a5" in Frame 18
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(_root.a5)) {
_root.gotoAndStop(40);
}
}
Instance of Symbol 248 MovieClip "a7" in Frame 18
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(_root.a7)) {
_root.gotoAndStop(40);
}
}
Instance of Symbol 248 MovieClip "a4" in Frame 18
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(_root.a4)) {
_root.gotoAndStop(40);
}
}
Instance of Symbol 248 MovieClip "a6" in Frame 18
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(_root.a6)) {
_root.gotoAndStop(40);
}
}
Instance of Symbol 199 MovieClip "clef4" in Frame 18
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.clef4)) {
_root.gotoAndStop(46);
}
}
Instance of Symbol 199 MovieClip "clef6" in Frame 18
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.clef6)) {
_root.gotoAndStop(47);
}
}
Instance of Symbol 199 MovieClip "clef5" in Frame 18
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.clef5)) {
_root.gotoAndStop(46);
}
}
Instance of Symbol 199 MovieClip "clef3" in Frame 18
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.clef3)) {
_root.gotoAndStop(46);
}
}
Instance of Symbol 136 MovieClip in Frame 18
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 18
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 18
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 18
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 18
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 55 MovieClip [bonhomme] "perso" in Frame 18
/* no clip actions */
Frame 19
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("zik2");
_root.go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
_root.go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
_root.nouvelle.enabled = true;
clipvide.onEnterFrame = tester;
};
_root.nouvelle.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
_root.go.enabled = true;
delete clipvide.onEnterFrame;
};
Frame 20
sine_lookup_table = "0.000/.0175/.0349/.0523/.0698/.0872/.1045/.1219/.1392/.1564/.1736/.1908/.2079/.2250/.2419/.2588/.2756/.2924/.3090/.3256/.3420/.3584/.3746/.3907/.4067/.4226/.4384/.4540/.4695/.4848/.5000/.5150/.5299/.5446/.5592/.5736/.5878/.6018/.6157/.6428/.6561/.6691/.6820/.6947/.7071/.7193/.7314/.7431/.7547/.7660/.7771/.7880/.7986/.8090/.8192/.8290/.8387/.8480/.8572/.8660/.8746/.8829/.8910/.8988/.9063/.9135/.9205/.9272/.9336/.9397/.9455/.9511/.9563/.9613/.9659/.9703/.9744/.9781/.9816/.9848/.9877/.9903/.9925/.9945/.9962/.9976/.9986/.9994/.9998/1.000";
Set("/gun:shootchance", 7);
shotspeed = 8;
startDrag ("/ship", true);
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
function getdistance(x, y, x1, y1) {
var run;
var rise;
run = x1 - x;
rise = y1 - y;
return(_root.hyp(run, rise));
}
function hyp(a, b) {
return(Math.sqrt((a * a) + (b * b)));
}
MovieClip.prototype.reset = function () {
width = 697;
height = 550;
var dist;
var norm;
this.x = this._x;
this.y = this._y;
this.speed = (Math.random() * 4) + 2;
this.targx = Math.random() * width;
this.targy = Math.random() * height;
dist = _root.getdistance(this.x, this.y, this.targx, this.targy);
norm = this.speed / dist;
this.diffx = (this.targx - this.x) * norm;
this.diffy = (this.targy - this.y) * norm;
};
MovieClip.prototype.move = function () {
if (_root.getdistance(this.x, this.y, this.targx, this.targy) > this.speed) {
this.x = this.x + this.diffx;
this.y = this.y + this.diffy;
} else {
this.x = this.targx;
this.y = this.targy;
if (!this.t) {
this.t = getTimer();
}
if ((getTimer() - this.t) > 1000) {
this.reset();
this.t = 0;
}
}
this._x = this.x;
this._y = this.y;
};
compte = 0;
d = depart.getTime() / 1000;
stop();
_root.onEnterFrame = function () {
temps2 = new Date();
t = temps2.getTime() / 1000;
_root.chrono = 100 - Math.floor(t - _root.d);
if (_root.chrono == 0) {
_root.gotoAndPlay(44);
}
};
Instance of Symbol 248 MovieClip "a3" in Frame 20
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(_root.a3)) {
_root.gotoAndStop(40);
}
}
Instance of Symbol 248 MovieClip "a4" in Frame 20
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(_root.a4)) {
_root.gotoAndStop(40);
}
}
Instance of Symbol 136 MovieClip in Frame 20
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 20
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 20
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 20
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 20
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 20
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 20
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 170 MovieClip "exitclef" in Frame 20
onClipEvent (enterFrame) {
if (_root.perso.hitTest(this)) {
_root.gotoAndStop(65);
}
}
Instance of Symbol 136 MovieClip in Frame 20
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 20
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 20
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 20
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 20
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 20
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 55 MovieClip [bonhomme] "perso" in Frame 20
/* no clip actions */
Instance of Symbol 277 MovieClip "star" in Frame 20
onClipEvent (enterFrame) {
sontouche = new Sound(this);
sontouche.attachSound("touche");
if (_root.perso.hitTest(this)) {
if (_root.pepito > 0) {
_root.pepito--;
}
sontouche.start();
this._x = -50;
this._y = -50;
}
}
Frame 21
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("zik");
_root.go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
_root.go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
_root.nouvelle.enabled = true;
clipvide.onEnterFrame = tester;
};
_root.nouvelle.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
_root.go.enabled = true;
delete clipvide.onEnterFrame;
};
Frame 22
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
Instance of Symbol 55 MovieClip [bonhomme] "perso" in Frame 22
/* no clip actions */
Frame 24
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("zik");
_root.go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
_root.go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
_root.nouvelle.enabled = true;
clipvide.onEnterFrame = tester;
};
_root.nouvelle.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
_root.go.enabled = true;
delete clipvide.onEnterFrame;
};
Frame 25
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
Instance of Symbol 55 MovieClip [bonhomme] "perso" in Frame 25
/* no clip actions */
Frame 26
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("zik");
_root.go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
_root.go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
_root.nouvelle.enabled = true;
clipvide.onEnterFrame = tester;
};
_root.nouvelle.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
_root.go.enabled = true;
delete clipvide.onEnterFrame;
};
Frame 27
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
compte = 0;
d = depart.getTime() / 1000;
stop();
_root.onEnterFrame = function () {
temps2 = new Date();
t = temps2.getTime() / 1000;
_root.chrono = 80 - Math.floor(t - _root.d);
if (_root.chrono == 0) {
_root.gotoAndPlay(44);
}
};
Instance of Symbol 170 MovieClip "exitclef" in Frame 27
onClipEvent (enterFrame) {
if (_root.perso.hitTest(this)) {
_root.gotoAndStop(22);
}
}
Instance of Symbol 55 MovieClip [bonhomme] "perso" in Frame 27
/* no clip actions */
Frame 28
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("zik");
_root.go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
_root.go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
_root.nouvelle.enabled = true;
clipvide.onEnterFrame = tester;
};
_root.nouvelle.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
_root.go.enabled = true;
delete clipvide.onEnterFrame;
};
Frame 29
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
Instance of Symbol 55 MovieClip [bonhomme] "perso" in Frame 29
/* no clip actions */
Frame 30
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("pre-intro");
son.start(0);
go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
btn2.enabled = true;
clipvide.onEnterFrame = tester;
};
btn2.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
go.enabled = true;
delete clipvide.onEnterFrame;
};
Frame 31
_root.son.stop();
Frame 32
_root.son.stop();
Frame 33
pepito = 0;
Frame 40
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
_root.son.stop();
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("perdu");
son.start(0);
son.stop(0);
go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
btn2.enabled = true;
clipvide.onEnterFrame = tester;
};
btn2.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
go.enabled = true;
delete clipvide.onEnterFrame;
};
stop();
Frame 41
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("zik");
_root.go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
_root.go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
_root.nouvelle.enabled = true;
clipvide.onEnterFrame = tester;
};
_root.nouvelle.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
_root.go.enabled = true;
delete clipvide.onEnterFrame;
};
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
compte = 0;
d = depart.getTime() / 1000;
stop();
_root.onEnterFrame = function () {
temps2 = new Date();
t = temps2.getTime() / 1000;
_root.chrono = 250 - Math.floor(t - _root.d);
if (_root.chrono == 0) {
_root.gotoAndPlay(44);
}
};
Instance of Symbol 144 MovieClip "portemagique2" in Frame 41
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.portemagique2)) {
_root.portemagique2.gotoAndStop(6);
} else {
_root.portemagique2.gotoAndStop(8);
}
}
Instance of Symbol 138 MovieClip "d2_4" in Frame 41
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d2_4)) {
_root.gotoAndPlay(5);
}
}
Instance of Symbol 146 MovieClip "detect3" in Frame 41
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect3)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect4" in Frame 41
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect4)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 148 MovieClip "base3" in Frame 41
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.base3)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 138 MovieClip "d2_5" in Frame 41
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d2_5)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 138 MovieClip "d2_3" in Frame 41
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d2_3)) {
_root.gotoAndPlay(5);
}
}
Instance of Symbol 138 MovieClip "d2_6" in Frame 41
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d2_6)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 183 MovieClip "mur2_2" in Frame 41
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.mur2_2)) {
_root.alertemur4.text = "ATTENTION AUX MURS...";
} else {
_root.alertemur4.text = "";
}
}
Instance of Symbol 186 MovieClip "mur2_1" in Frame 41
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.mur2_1)) {
_root.alertemur3.text = "ATTENTION LES MURS...";
} else {
_root.alertemur3.text = "";
}
}
Instance of Symbol 190 MovieClip "mur2_3" in Frame 41
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.mur2_3)) {
_root.alertemur4.text = "ATTENTION AUX MURS...";
} else {
_root.alertemur4.text = "";
}
}
Instance of Symbol 211 MovieClip "exit2" in Frame 41
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.exit2)) {
_root.gotoAndStop(8);
}
}
Instance of Symbol 138 MovieClip "d2_1" in Frame 41
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d2_1)) {
_root.gotoAndPlay(5);
}
}
Instance of Symbol 55 MovieClip [bonhomme] "perso" in Frame 41
/* no clip actions */
Frame 42
_root.son.stop();
Frame 43
_root.son.stop();
stop();
stop();
Frame 44
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
_root.son.stop();
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("perdu");
son.start(0);
son.stop(0);
go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
btn2.enabled = true;
clipvide.onEnterFrame = tester;
};
btn2.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
go.enabled = true;
delete clipvide.onEnterFrame;
};
stop();
stop();
stop();
stop();
stop();
stop();
stop();
Frame 45
pepito = 0;
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
function getdistance(x, y, x1, y1) {
var run;
var rise;
run = x1 - x;
rise = y1 - y;
return(_root.hyp(run, rise));
}
function hyp(a, b) {
return(Math.sqrt((a * a) + (b * b)));
}
MovieClip.prototype.reset = function () {
width = 697;
height = 550;
var dist;
var norm;
this.x = this._x;
this.y = this._y;
this.speed = (Math.random() * 4) + 2;
this.targx = Math.random() * width;
this.targy = Math.random() * height;
dist = _root.getdistance(this.x, this.y, this.targx, this.targy);
norm = this.speed / dist;
this.diffx = (this.targx - this.x) * norm;
this.diffy = (this.targy - this.y) * norm;
};
MovieClip.prototype.move = function () {
if (_root.getdistance(this.x, this.y, this.targx, this.targy) > this.speed) {
this.x = this.x + this.diffx;
this.y = this.y + this.diffy;
} else {
this.x = this.targx;
this.y = this.targy;
if (!this.t) {
this.t = getTimer();
}
if ((getTimer() - this.t) > 1000) {
this.reset();
this.t = 0;
}
}
this._x = this.x;
this._y = this.y;
};
compte = 0;
d = depart.getTime() / 1000;
stop();
_root.onEnterFrame = function () {
temps2 = new Date();
t = temps2.getTime() / 1000;
_root.chrono = 360 - Math.floor(t - _root.d);
if (_root.chrono == 0) {
_root.gotoAndPlay(44);
}
};
Instance of Symbol 144 MovieClip "portemagique2" in Frame 45
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.portemagique2)) {
_root.portemagique2.gotoAndStop(2);
} else {
_root.portemagique2.gotoAndStop(6);
}
}
Instance of Symbol 136 MovieClip in Frame 45
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 45
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 45
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 45
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 45
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 45
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 45
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 254 MovieClip "blocviolethaut" in Frame 45
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocviolethaut)) {
_root.gotoAndPlay(13);
}
}
Instance of Symbol 254 MovieClip "blocviolethaut" in Frame 45
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocviolethaut)) {
_root.gotoAndPlay(13);
}
}
Instance of Symbol 254 MovieClip "blocviolethaut" in Frame 45
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocviolethaut)) {
_root.gotoAndPlay(13);
}
}
Instance of Symbol 254 MovieClip "blocviolethaut" in Frame 45
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.blocviolethaut)) {
_root.gotoAndPlay(13);
}
}
Instance of Symbol 146 MovieClip "bigone" in Frame 45
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.bigone)) {
_root.gotoAndStop(40);
}
}
Instance of Symbol 211 MovieClip "exit6" in Frame 45
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.exit6)) {
_root.gotoAndStop(18);
}
}
Instance of Symbol 248 MovieClip "a2" in Frame 45
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(_root.a2)) {
_root.gotoAndStop(40);
}
}
Instance of Symbol 146 MovieClip "bigone2" in Frame 45
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.bigone2)) {
_root.gotoAndStop(40);
}
}
Instance of Symbol 55 MovieClip [bonhomme] "perso" in Frame 45
/* no clip actions */
Frame 46
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
compte = 0;
d = depart.getTime() / 1000;
stop();
_root.onEnterFrame = function () {
temps2 = new Date();
t = temps2.getTime() / 1000;
_root.chrono = 80 - Math.floor(t - _root.d);
if (_root.chrono == 0) {
_root.gotoAndPlay(44);
}
};
Instance of Symbol 136 MovieClip in Frame 46
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 144 MovieClip "portemagique" in Frame 46
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.portemagique)) {
_root.portemagique.gotoAndPlay(2);
} else {
_root.portemagique.gotoAndStop(1);
}
}
Instance of Symbol 170 MovieClip "exitpasclef" in Frame 46
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.exitpasclef)) {
_root.gotoAndStop(18);
}
}
Frame 47
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
compte = 0;
d = depart.getTime() / 1000;
stop();
_root.onEnterFrame = function () {
temps2 = new Date();
t = temps2.getTime() / 1000;
_root.chrono = 70 - Math.floor(t - _root.d);
if (_root.chrono == 0) {
_root.gotoAndPlay(44);
}
};
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 47
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 170 MovieClip "exitclef" in Frame 47
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.exitclef)) {
_root.gotoAndStop(20);
}
}
Frame 48
stop();
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
_root.son.stop();
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("pre-intro");
son.start(0);
go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
btn2.enabled = true;
clipvide.onEnterFrame = tester;
};
btn2.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
go.enabled = true;
delete clipvide.onEnterFrame;
};
stop();
Frame 49
stop();
stop();
stop();
stop();
stop();
stop();
stop();
function getdistance(x, y, x1, y1) {
var run;
var rise;
run = x1 - x;
rise = y1 - y;
return(_root.hyp(run, rise));
}
function hyp(a, b) {
return(Math.sqrt((a * a) + (b * b)));
}
MovieClip.prototype.reset = function () {
width = 697;
height = 550;
var dist;
var norm;
this.x = this._x;
this.y = this._y;
this.speed = (Math.random() * 4) + 2;
this.targx = Math.random() * width;
this.targy = Math.random() * height;
dist = _root.getdistance(this.x, this.y, this.targx, this.targy);
norm = this.speed / dist;
this.diffx = (this.targx - this.x) * norm;
this.diffy = (this.targy - this.y) * norm;
};
MovieClip.prototype.move = function () {
if (_root.getdistance(this.x, this.y, this.targx, this.targy) > this.speed) {
this.x = this.x + this.diffx;
this.y = this.y + this.diffy;
} else {
this.x = this.targx;
this.y = this.targy;
if (!this.t) {
this.t = getTimer();
}
if ((getTimer() - this.t) > 1000) {
this.reset();
this.t = 0;
}
}
this._x = this.x;
this._y = this.y;
};
stop();
stop();
stop();
stop();
Frame 50
pepito = 0;
Frame 60
stop();
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("zik2");
_root.go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
_root.go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
_root.nouvelle.enabled = true;
clipvide.onEnterFrame = tester;
};
_root.nouvelle.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
_root.go.enabled = true;
delete clipvide.onEnterFrame;
};
stop();
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
function getdistance(x, y, x1, y1) {
var run;
var rise;
run = x1 - x;
rise = y1 - y;
return(_root.hyp(run, rise));
}
function hyp(a, b) {
return(Math.sqrt((a * a) + (b * b)));
}
MovieClip.prototype.reset = function () {
width = 697;
height = 550;
var dist;
var norm;
this.x = this._x;
this.y = this._y;
this.speed = (Math.random() * 4) + 2;
this.targx = Math.random() * width;
this.targy = Math.random() * height;
dist = _root.getdistance(this.x, this.y, this.targx, this.targy);
norm = this.speed / dist;
this.diffx = (this.targx - this.x) * norm;
this.diffy = (this.targy - this.y) * norm;
};
MovieClip.prototype.move = function () {
if (_root.getdistance(this.x, this.y, this.targx, this.targy) > this.speed) {
this.x = this.x + this.diffx;
this.y = this.y + this.diffy;
} else {
this.x = this.targx;
this.y = this.targy;
if (!this.t) {
this.t = getTimer();
}
if ((getTimer() - this.t) > 1000) {
this.reset();
this.t = 0;
}
}
this._x = this.x;
this._y = this.y;
};
compte = 0;
d = depart.getTime() / 1000;
stop();
_root.onEnterFrame = function () {
temps2 = new Date();
t = temps2.getTime() / 1000;
_root.chrono = 180 - Math.floor(t - _root.d);
if (_root.chrono == 0) {
_root.gotoAndPlay(44);
}
};
Instance of Symbol 211 MovieClip "exit6" in Frame 60
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.exit6)) {
_root.gotoAndStop(30);
}
}
Instance of Symbol 238 MovieClip "d4_1" in Frame 60
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_1)) {
_root.gotoAndPlay(7);
}
}
Instance of Symbol 238 MovieClip "d4_3" in Frame 60
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_3)) {
_root.gotoAndPlay(20);
}
}
Instance of Symbol 238 MovieClip "d4_4" in Frame 60
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_4)) {
_root.gotoAndPlay(11);
}
}
Instance of Symbol 238 MovieClip "d4_2" in Frame 60
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_2)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 136 MovieClip in Frame 60
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 60
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 60
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 60
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 60
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 60
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 60
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 60
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 60
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 60
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 60
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 60
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 60
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 60
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 60
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 199 MovieClip "clef5" in Frame 60
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("clef");
if (_root.perso.hitTest(this)) {
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 248 MovieClip "a1" in Frame 60
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 60
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 60
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 60
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 60
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 60
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 60
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 60
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 60
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip "a1" in Frame 60
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 60
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 60
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 60
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 55 MovieClip [bonhomme] "perso" in Frame 60
/* no clip actions */
Frame 65
stop();
pepito = 0;
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("zik2");
_root.go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
_root.go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
_root.nouvelle.enabled = true;
clipvide.onEnterFrame = tester;
};
_root.nouvelle.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
_root.go.enabled = true;
delete clipvide.onEnterFrame;
};
stop();
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 5 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
function getdistance(x, y, x1, y1) {
var run;
var rise;
run = x1 - x;
rise = y1 - y;
return(_root.hyp(run, rise));
}
function hyp(a, b) {
return(Math.sqrt((a * a) + (b * b)));
}
MovieClip.prototype.reset = function () {
width = 697;
height = 550;
var dist;
var norm;
this.x = this._x;
this.y = this._y;
this.speed = (Math.random() * 4) + 2;
this.targx = Math.random() * width;
this.targy = Math.random() * height;
dist = _root.getdistance(this.x, this.y, this.targx, this.targy);
norm = this.speed / dist;
this.diffx = (this.targx - this.x) * norm;
this.diffy = (this.targy - this.y) * norm;
};
MovieClip.prototype.move = function () {
if (_root.getdistance(this.x, this.y, this.targx, this.targy) > this.speed) {
this.x = this.x + this.diffx;
this.y = this.y + this.diffy;
} else {
this.x = this.targx;
this.y = this.targy;
if (!this.t) {
this.t = getTimer();
}
if ((getTimer() - this.t) > 1000) {
this.reset();
this.t = 0;
}
}
this._x = this.x;
this._y = this.y;
};
compte = 0;
d = depart.getTime() / 1000;
stop();
_root.onEnterFrame = function () {
temps2 = new Date();
t = temps2.getTime() / 1000;
_root.chrono = 150 - Math.floor(t - _root.d);
if (_root.chrono == 0) {
_root.gotoAndPlay(44);
}
};
stop.init();
Instance of Symbol 136 MovieClip in Frame 65
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 248 MovieClip "a1" in Frame 65
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 238 MovieClip "d4_1" in Frame 65
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_1)) {
_root.gotoAndStop(11);
}
}
Instance of Symbol 238 MovieClip "d4_3" in Frame 65
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_3)) {
_root.gotoAndStop(45);
}
}
Instance of Symbol 238 MovieClip "d4_4" in Frame 65
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_4)) {
_root.gotoAndStop(11);
}
}
Instance of Symbol 238 MovieClip "d4_2" in Frame 65
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_2)) {
_root.gotoAndStop(11);
}
}
Instance of Symbol 136 MovieClip in Frame 65
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 65
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 65
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 146 MovieClip "detect13" in Frame 65
onClipEvent (enterFrame) {
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect13" in Frame 65
onClipEvent (enterFrame) {
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect13" in Frame 65
onClipEvent (enterFrame) {
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect13" in Frame 65
onClipEvent (enterFrame) {
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect13" in Frame 65
onClipEvent (enterFrame) {
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 136 MovieClip in Frame 65
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 65
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 65
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 65
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 211 MovieClip "exit6" in Frame 65
onClipEvent (enterFrame) {
if (_root.perso.hitTest(this)) {
_root.gotoAndStop(76);
}
}
Instance of Symbol 55 MovieClip [bonhomme] "perso" in Frame 65
/* no clip actions */
Frame 70
stop();
stop();
pepito = 0;
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("zik2");
_root.go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
_root.go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
_root.nouvelle.enabled = true;
clipvide.onEnterFrame = tester;
};
_root.nouvelle.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
_root.go.enabled = true;
delete clipvide.onEnterFrame;
};
stop();
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 3 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
function getdistance(x, y, x1, y1) {
var run;
var rise;
run = x1 - x;
rise = y1 - y;
return(_root.hyp(run, rise));
}
function hyp(a, b) {
return(Math.sqrt((a * a) + (b * b)));
}
MovieClip.prototype.reset = function () {
width = 697;
height = 550;
var dist;
var norm;
this.x = this._x;
this.y = this._y;
this.speed = (Math.random() * 4) + 2;
this.targx = Math.random() * width;
this.targy = Math.random() * height;
dist = _root.getdistance(this.x, this.y, this.targx, this.targy);
norm = this.speed / dist;
this.diffx = (this.targx - this.x) * norm;
this.diffy = (this.targy - this.y) * norm;
};
MovieClip.prototype.move = function () {
if (_root.getdistance(this.x, this.y, this.targx, this.targy) > this.speed) {
this.x = this.x + this.diffx;
this.y = this.y + this.diffy;
} else {
this.x = this.targx;
this.y = this.targy;
if (!this.t) {
this.t = getTimer();
}
if ((getTimer() - this.t) > 1000) {
this.reset();
this.t = 0;
}
}
this._x = this.x;
this._y = this.y;
};
compte = 0;
d = depart.getTime() / 1000;
stop();
_root.onEnterFrame = function () {
temps2 = new Date();
t = temps2.getTime() / 1000;
_root.chrono = 150 - Math.floor(t - _root.d);
if (_root.chrono == 0) {
_root.gotoAndPlay(44);
}
};
stop.init();
Instance of Symbol 144 MovieClip "portemagique6" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.portemagique6)) {
_root.portemagique6.gotoAndStop(2);
} else {
_root.portemagique6.gotoAndStop(6);
}
}
Instance of Symbol 148 MovieClip "base12" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.base12)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect13" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect13)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect10" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect10)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect11" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect11)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect12" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect12)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 146 MovieClip "detect14" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.detect14)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 148 MovieClip "base13" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.base13)) {
_root.gotoAndPlay(11);
}
}
Instance of Symbol 148 MovieClip "base14" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.base14)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 148 MovieClip "base10" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.base10)) {
_root.gotoAndPlay(11);
}
}
Instance of Symbol 148 MovieClip "base11" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.base11)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 225 MovieClip "grenouille3" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.grenouille3)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 211 MovieClip "exit6" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.exit6)) {
_root.gotoAndStop(14);
}
}
Instance of Symbol 236 MovieClip "vase" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.vase)) {
_root.gotoAndPlay(11);
}
}
Instance of Symbol 238 MovieClip "d4_1" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_1)) {
_root.gotoAndPlay(11);
}
}
Instance of Symbol 238 MovieClip "d4_3" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_3)) {
_root.gotoAndPlay(11);
}
}
Instance of Symbol 238 MovieClip "d4_4" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_4)) {
_root.gotoAndPlay(11);
}
}
Instance of Symbol 238 MovieClip "d4_2" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_2)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 166 MovieClip "barriere1" in Frame 70
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.barriere1)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip "a1" in Frame 70
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(_root.a1)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 136 MovieClip in Frame 70
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 70
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 70
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 70
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 70
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.vitesse++;
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 136 MovieClip in Frame 70
onClipEvent (enterFrame) {
soncroc = new Sound(this);
soncroc.attachSound("croc");
if (_root.perso.hitTest(this)) {
_root.pepito++;
soncroc.start();
this._x = -50;
this._y = -50;
}
}
Instance of Symbol 55 MovieClip [bonhomme] "perso" in Frame 70
/* no clip actions */
Frame 74
stop();
Frame 75
stop();
function getdistance(x, y, x1, y1) {
var run;
var rise;
run = x1 - x;
rise = y1 - y;
return(_root.hyp(run, rise));
}
function hyp(a, b) {
return(Math.sqrt((a * a) + (b * b)));
}
MovieClip.prototype.reset = function () {
width = 300;
height = 200;
var dist;
var norm;
this.x = this._x;
this.y = this._y;
this.speed = (Math.random() * 4) + 2;
this.targx = Math.random() * width;
this.targy = Math.random() * height;
dist = _root.getdistance(this.x, this.y, this.targx, this.targy);
norm = this.speed / dist;
this.diffx = (this.targx - this.x) * norm;
this.diffy = (this.targy - this.y) * norm;
};
MovieClip.prototype.move = function () {
if (_root.getdistance(this.x, this.y, this.targx, this.targy) > this.speed) {
this.x = this.x + this.diffx;
this.y = this.y + this.diffy;
} else {
this.x = this.targx;
this.y = this.targy;
if (!this.t) {
this.t = getTimer();
}
if ((getTimer() - this.t) > 1000) {
this.reset();
this.t = 0;
}
}
this._x = this.x;
this._y = this.y;
};
Frame 76
stop();
pepito = 0;
function tester() {
if (son.position == son.duration) {
son.start(0);
}
}
son = new Sound();
this.createEmptyMovieClip("clipvide", 0);
son.attachSound("zik2");
_root.go.enabled = false;
clipvide.onEnterFrame = tester;
p = 0;
_root.go.onPress = function () {
if (son.position == son.duration) {
p = 0;
}
son.start(p / 1000);
this.enabled = false;
_root.nouvelle.enabled = true;
clipvide.onEnterFrame = tester;
};
_root.nouvelle.onPress = function () {
son.stop();
p = son.position;
this.enabled = false;
_root.go.enabled = true;
delete clipvide.onEnterFrame;
};
stop();
function deplac(clip) {
angle = Math.atan2(y - _root[clip]._y, x - _root[clip]._x);
_root[clip]._x = _root[clip]._x + (Math.cos(angle) * vitesse);
_root[clip]._y = _root[clip]._y + (Math.sin(angle) * vitesse);
if ((angle <= demi_tranche) && (angle >= (-demi_tranche))) {
_root[clip].gotoAndStop(7);
_root[clip].droite.play();
sens = "droite";
} else if ((angle < (-demi_tranche)) && (angle > ((-demi_tranche) - tranche))) {
_root[clip].gotoAndStop(6);
_root[clip].dos_droite.play();
sens = "dos_droite";
} else if ((angle <= ((-demi_tranche) - tranche)) && (angle >= ((-demi_tranche) - (2 * tranche)))) {
_root[clip].gotoAndStop(5);
_root[clip].dos.play();
sens = "dos";
} else if ((angle < ((-demi_tranche) - (2 * tranche))) && (angle > ((-demi_tranche) - (3 * tranche)))) {
_root[clip].gotoAndStop(4);
_root[clip].dos_gauche.play();
sens = "dos_gauche";
} else if ((angle <= ((-demi_tranche) - (3 * tranche))) || (angle >= (demi_tranche + (3 * tranche)))) {
_root[clip].gotoAndStop(3);
_root[clip].gauche.play();
sens = "gauche";
} else if ((angle > demi_tranche) && (angle < (demi_tranche + tranche))) {
_root[clip].gotoAndStop(8);
_root[clip].face_droite.play();
sens = "face_droite";
} else if ((angle >= (demi_tranche + tranche)) && (angle <= (demi_tranche + (tranche * 2)))) {
_root[clip].gotoAndStop(1);
_root[clip].face.play();
sens = "face";
} else {
_root[clip].gotoAndStop(2);
_root[clip].face_gauche.play();
sens = "face_gauche";
}
if ((((_root[clip]._y >= (y - 5)) && (_root[clip]._y <= (y + 5))) && (_root[clip]._x >= (x - 5))) && (_root[clip]._x <= (x + 5))) {
_root[clip][sens].gotoAndStop(3);
delete _root[clip].onEnterFrame;
}
}
onMouseDown = function () {
x = _xmouse;
y = _ymouse;
perso.onEnterFrame = function () {
if (!stop_fonction) {
deplac(perso._name);
}
};
};
x = perso._x;
y = perso._y;
vitesse = 5 + (_root.pepito / 2);
perso.face.stop();
tranche = (Math.PI/4);
demi_tranche = tranche / 2;
if (_root.mur.hitTest(perso, true)) {
_root.gotoAndPlay(2);
}
function getdistance(x, y, x1, y1) {
var run;
var rise;
run = x1 - x;
rise = y1 - y;
return(_root.hyp(run, rise));
}
function hyp(a, b) {
return(Math.sqrt((a * a) + (b * b)));
}
MovieClip.prototype.reset = function () {
width = 697;
height = 550;
var dist;
var norm;
this.x = this._x;
this.y = this._y;
this.speed = (Math.random() * 4) + 2;
this.targx = Math.random() * width;
this.targy = Math.random() * height;
dist = _root.getdistance(this.x, this.y, this.targx, this.targy);
norm = this.speed / dist;
this.diffx = (this.targx - this.x) * norm;
this.diffy = (this.targy - this.y) * norm;
};
MovieClip.prototype.move = function () {
if (_root.getdistance(this.x, this.y, this.targx, this.targy) > this.speed) {
this.x = this.x + this.diffx;
this.y = this.y + this.diffy;
} else {
this.x = this.targx;
this.y = this.targy;
if (!this.t) {
this.t = getTimer();
}
if ((getTimer() - this.t) > 1000) {
this.reset();
this.t = 0;
}
}
this._x = this.x;
this._y = this.y;
};
compte = 0;
d = depart.getTime() / 1000;
stop();
_root.onEnterFrame = function () {
temps2 = new Date();
t = temps2.getTime() / 1000;
_root.chrono = 150 - Math.floor(t - _root.d);
if (_root.chrono == 0) {
_root.gotoAndPlay(44);
}
};
Instance of Symbol 420 MovieClip "neigetombe" in Frame 76
onClipEvent (enterFrame) {
init = function () {
width = 697;
height = 550;
max_snowsize = 10;
snowflakes = 50;
i = 0;
while (i < snowflakes) {
t = attachMovie("snow", "snow" + i, i);
t._alpha = 20 + (Math.random() * 60);
t._x = (-(width / 2)) + (Math.random() * (1.5 * width));
t._y = (-(height / 2)) + (Math.random() * (1.5 * height));
t._xscale = (t._yscale = 50 + (Math.random() * (max_snowsize * 10)));
t.k = 1 + (Math.random() * 2);
t.wind = -1.5 + (Math.random() * 4.2);
t.onEnterFrame = mover;
i++;
}
};
mover = function () {
this._y = this._y + this.k;
this._x = this._x + this.wind;
if (this._y > (height + 10)) {
this._y = -20;
}
if (this._x > (width + 20)) {
this._x = (-(width / 2)) + (Math.random() * (1.5 * width));
this._y = -20;
} else if (this._x < -20) {
this._x = (-(width / 2)) + (Math.random() * (1.5 * width));
this._y = -20;
}
};
init();
}
Instance of Symbol 238 MovieClip "d4_1" in Frame 76
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_1)) {
_root.gotoAndStop(11);
}
}
Instance of Symbol 238 MovieClip "d4_4" in Frame 76
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_4)) {
_root.gotoAndStop(11);
}
}
Instance of Symbol 238 MovieClip "d4_3" in Frame 76
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_3)) {
_root.gotoAndStop(45);
}
}
Instance of Symbol 238 MovieClip "d4_2" in Frame 76
onClipEvent (enterFrame) {
if (_root.perso.hitTest(_root.d4_2)) {
_root.gotoAndStop(11);
}
}
Instance of Symbol 211 MovieClip "exit6" in Frame 76
onClipEvent (enterFrame) {
if (_root.perso.hitTest(this)) {
_root.gotoAndStop(60);
}
}
Instance of Symbol 248 MovieClip in Frame 76
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 76
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 76
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 76
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 76
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 76
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 76
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 76
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip "a1" in Frame 76
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 76
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 76
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 76
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 248 MovieClip in Frame 76
onClipEvent (enterFrame) {
move();
if (_root.perso.hitTest(this)) {
_root.gotoAndPlay(40);
}
}
Instance of Symbol 55 MovieClip [bonhomme] "perso" in Frame 76
/* no clip actions */
Frame 77
stop.init();
Symbol 24 MovieClip Frame 5
gotoAndPlay (1);
Symbol 30 MovieClip Frame 5
gotoAndPlay (1);
Symbol 34 MovieClip Frame 5
gotoAndPlay (1);
Symbol 38 MovieClip Frame 5
gotoAndPlay (1);
Symbol 42 MovieClip Frame 5
gotoAndPlay (1);
Symbol 46 MovieClip Frame 5
gotoAndPlay (1);
Symbol 50 MovieClip Frame 5
gotoAndPlay (1);
Symbol 54 MovieClip Frame 5
gotoAndPlay (1);
Symbol 55 MovieClip [bonhomme] Frame 1
stop();
Symbol 55 MovieClip [bonhomme] Frame 8
stop();
Symbol 55 MovieClip [bonhomme] Frame 9
stop();
Symbol 65 Button
on (release) {
gotoAndStop (49);
}
Symbol 76 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 81 Button
on (release) {
_root.gotoAndStop(31);
}
Symbol 87 Button
on (release) {
_root.gotoAndStop(32);
}
Symbol 95 Button
on (release) {
getURL ("mailto:fberria@gmail.com?subject=Little Pig Adventure");
}
Symbol 101 Button
on (release) {
getURL ("http://berria.free.fr");
}
Symbol 108 Button
on (release) {
_root.son.stop();
_root.son.start();
gotoAndStop (4);
}
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 6
stop();
Symbol 176 Button
on (release) {
vitesse = 3;
_root.son.stop();
_root.son.start();
pepito = 0;
gotoAndStop (6);
}
Symbol 199 MovieClip Frame 1
stop();
Symbol 207 Button
on (release) {
vitesse = 3;
_root.son.stop();
_root.son.start();
pepito = 0;
gotoAndStop (8);
}
Symbol 213 Button
on (release) {
_root.son.stop();
_root.son.start();
pepito = 0;
gotoAndStop (10);
}
Symbol 231 Button
on (release) {
vitesse = 3;
_root.son.stop();
_root.son.start();
pepito = 0;
gotoAndStop (12);
}
Symbol 250 Button
on (release) {
vitesse = 3;
_root.son.stop();
_root.son.start();
pepito = 0;
gotoAndStop (14);
}
Symbol 263 Button
on (release) {
vitesse = 3;
_root.son.stop();
_root.son.start();
pepito = 0;
gotoAndStop (16);
}
Symbol 266 Button
on (release) {
vitesse = 3 + (pepitos / 2);
_root.son.stop();
_root.son.start();
pepito = 0;
gotoAndStop (18);
}
Symbol 272 Button
on (rollOver) {
vitesse = 3 + (pepitos / 2);
pepito = 0;
gotoAndStop (20);
}
Symbol 277 MovieClip Frame 1
my_x = _x;
my_y = _y;
if ((((Number(my_y) > Number(350)) or (Number(my_y) < Number(0))) or (Number(my_x) > Number(650))) or (Number(my_x) < Number(0))) {
removeMovieClip("");
} else {
_x = (Number(my_x) + Number(xmov));
_y = (Number(my_y) + Number(ymov));
}
Symbol 277 MovieClip Frame 2
gotoAndPlay (1);
Symbol 280 MovieClip Frame 1
gunx = _x;
guny = _y;
sx = getProperty("../ship", _x);
sy = getProperty("../ship", _y);
mouse_x = getProperty("../ship", _x) - gunx;
mouse_y = getProperty("../ship", _y) - guny;
if (Number(mouse_x) < 0) {
abs_mouse_x = Number(mouse_x) + Number(mouse_x * -2);
xsign = -1;
} else {
abs_mouse_x = mouse_x;
xsign = 1;
}
if (Number(mouse_y) < 0) {
abs_mouse_y = Number(mouse_y) + Number(mouse_y * -2);
ysign = -1;
} else {
abs_mouse_y = mouse_y;
ysign = 1;
}
input = Number(abs_mouse_x * abs_mouse_x) + Number(abs_mouse_y * abs_mouse_y);
call("sqrt");
hyp = output;
sin_theta = abs_mouse_y / hyp;
counter = 0;
found = 0;
while (!found) {
if (Number(substring(..:sine_lookup_table, Number(counter * 6) + 1, 5)) <= Number(sin_theta)) {
angle = counter;
} else {
found = 1;
}
counter = Number(counter) + 1;
}
if (Number(sx) < Number(gunx)) {
angle = Number(90 - angle) + 90;
}
if (Number(sy) > Number(guny)) {
angle = Number(angle) + 180;
} else {
angle = Number(90 - angle) + 90;
}
_rotation = angle;
shootnow = Number(random(100)) + 1;
if (Number(shootnow) <= Number(shootchance)) {
shotname = Number(shotname) + 1;
if (Number(shotname) >= 1000) {
shotname = 1;
}
duplicateMovieClip ("../star", "shot" + shotname, shotname);
if (Number(abs_mouse_x) >= Number(abs_mouse_y)) {
Set(("../shot" + shotname) + ":xmov", ..:shotspeed * xsign);
Set(("../shot" + shotname) + ":ymov", (..:shotspeed * (abs_mouse_y / abs_mouse_x)) * ysign);
} else {
Set(("../shot" + shotname) + ":ymov", ..:shotspeed * ysign);
Set(("../shot" + shotname) + ":xmov", (..:shotspeed * (abs_mouse_x / abs_mouse_y)) * xsign);
}
setProperty("../shot" + shotname, _rotation , angle);
setProperty("../shot" + shotname, _x , gunx);
setProperty("../shot" + shotname, _y , guny);
}
Symbol 280 MovieClip Frame 2
gotoAndPlay (1);
Symbol 280 MovieClip Frame 9
n = 1;
counter = 0;
while (Number(counter) < 11) {
n = n - (((n * n) - input) / (2 * n));
counter = Number(counter) + 1;
}
output = n;
Symbol 282 Button
on (rollOver) {
vitesse = 2;
gotoAndStop (22);
}
Symbol 284 Button
on (rollOver) {
gotoAndStop (25);
}
Symbol 285 Button
on (rollOver) {
gotoAndStop (27);
}
Symbol 286 Button
on (rollOver) {
gotoAndStop (29);
}
Symbol 297 Button
on (release) {
gotoAndStop (1);
}
Symbol 299 Button
on (release, keyPress "<Enter>") {
gotoAndStop (2);
}
Symbol 304 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 2
password = pass;
switch (password) {
case "gunter" :
_root.gotoAndStop(5);
break;
case "lula" :
_root.gotoAndStop(7);
break;
case "choucroute" :
_root.gotoAndStop(9);
break;
case "tambouille" :
_root.gotoAndStop(11);
break;
case "jambon" :
_root.gotoAndStop(13);
break;
case "fraisetagada" :
_root.gotoAndStop(15);
break;
case "superjambon" :
_root.gotoAndStop(17);
break;
case "tropcool" :
_root.gotoAndStop(19);
break;
case "gunter-strike" :
_root.gotoAndStop(60);
break;
case "metalpigsolid" :
_root.gotoAndStop(65);
break;
case "metalpigliquid" :
_root.gotoAndStop(76);
break;
default :
gotoAndStop (1);
}
Symbol 304 MovieClip Frame 3
stop();
Symbol 304 MovieClip Frame 4
stop();
Symbol 306 Button
on (release) {
gotoAndStop (1);
}
Symbol 346 Button
on (release) {
_root.son.stop();
_root.gotoAndStop(2);
}
Symbol 348 MovieClip Frame 120
stop();
Symbol 371 Button
on (release) {
_root.gotoAndStop(75);
}
Symbol 376 MovieClip Frame 1
stop();
Symbol 377 Button
on (release) {
gotoAndPlay (3);
}
Symbol 379 Button
on (release) {
gotoAndStop (48);
}