Frame 2
stop();
_root.langue = 0;
Frame 3
stop();
_root.langue = 1;
Frame 4
stopAllSounds();
_root.music = new Sound();
_root.music.attachSound("casino");
_root.music.start(0, 10000000);
_root.musique = 1;
stop();
if (_root.langue == 0) {
_root.txt1 = "presents";
_root.txt2 = "a game by";
} else if (_root.langue == 1) {
_root.txt1 = "pr\u00E9sente";
_root.txt2 = "un jeu de";
}
Frame 5
stop();
if (_root.langue == 0) {
_root.dial1 = "Good evening and welcome to the casino...";
_root.dial2 = "My name is Amandine, I\u2019m your hostess for evening and I am with you to give you luck...";
_root.dial3 = "I feel that you will gain a lot of money and I am ready to remove one of my clothes every time you will give me 100 $...";
_root.dial4 = "Do you want to test your luck?";
} else if (_root.langue == 1) {
_root.dial1 = "Bonsoir et bienvenu au casino...";
_root.dial2 = "Mon nom est Amandine, je suis votre h\u00F4tesse pour la soir\u00E9e et je suis ici pour vous porter chance...";
_root.dial3 = "Je sens que vous allez gagner beaucoup d\u2019argent et je suis pr\u00EAte \u00E0 retirer un de mes v\u00EAtements chaque fois que vous me donnerez 100$...";
_root.dial4 = "Voulez-vous tenter votre chance?";
}
Frame 6
if (_root.musique == 1) {
_root.musicoff._visible = false;
} else if (_root.musique == 0) {
_root.musicoff._visible = true;
}
_root.code1 = 0;
_root.code2 = 0;
_root.code3 = 0;
_root.code4 = 0;
_root.code5 = 0;
stop();
_root.strip = 0;
_root.level = 1;
_root.coup = 0;
_root.phase = 6;
_root.choixpossible = 0;
_root.cadran1 = 1;
_root.cadran2 = 1;
_root.cadran3 = 1;
_root.mouvement = 0;
_root.lightgain._visible = false;
_root.msg1._visible = false;
_root.msg2._visible = false;
_root.caisse.visible = true;
if (_root.dollars < 100) {
_root.boutonrouge._visible = false;
} else {
_root.boutonrouge._visible = true;
}
_root.dollars = 50;
_root.p = 0;
_root.u = 0;
_root.oldi = 1;
_root.oldj = 6;
_root.oldk = 5;
_root.gift = 0;
Instance of Symbol 72 MovieClip in Frame 6
onClipEvent (load) {
_root.i = _root.oldi;
_root.j = _root.oldj;
_root.k = _root.oldk;
}
onClipEvent (enterFrame) {
if (_root.e < _root.t1) {
_root.e = _root.e + 1;
}
if ((_root.e < _root.t1) and (_root.cadran1 == 1)) {
_root.i = _root.i + 1;
}
if (_root.f < _root.t2) {
_root.f = _root.f + 1;
}
if ((_root.f < _root.t2) and (_root.cadran2 == 1)) {
_root.j = _root.j + 1;
}
if (_root.g < _root.t3) {
_root.g = _root.g + 1;
}
if ((_root.g < _root.t3) and (_root.cadran3 == 1)) {
_root.k = _root.k + 1;
}
if (_root.i == 7) {
_root.i = 1;
}
if (_root.j == 7) {
_root.j = 1;
}
if (_root.k == 7) {
_root.k = 1;
}
}
onClipEvent (enterFrame) {
if (_root.i == 1) {
_root.f11._visible = true;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 2) {
_root.f11._visible = false;
_root.f12._visible = true;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 3) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = true;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 4) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = true;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 5) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = true;
_root.f16._visible = false;
} else if (_root.i == 6) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = true;
}
if (_root.j == 1) {
_root.f21._visible = true;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 2) {
_root.f21._visible = false;
_root.f22._visible = true;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 3) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = true;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 4) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = true;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 5) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = true;
_root.f26._visible = false;
} else if (_root.j == 6) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = true;
}
if (_root.k == 1) {
_root.f31._visible = true;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 2) {
_root.f31._visible = false;
_root.f32._visible = true;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 3) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = true;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 4) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = true;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 5) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = true;
_root.f36._visible = false;
} else if (_root.k == 6) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.phase == 0) {
_root.choixpossible = 0;
_root.cadran1 = 1;
_root.cadran2 = 1;
_root.cadran3 = 1;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
}
if ((((_root.e < _root.t1) and (_root.f < _root.t2)) and (_root.g < _root.t3)) and (_root.phase == 0)) {
_root.phase = 1;
}
if (_root.phase == 1) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
}
if ((((_root.e == _root.t1) and (_root.f == _root.t2)) and (_root.g == _root.t3)) and (_root.phase == 1)) {
_root.phase = 2;
}
if (_root.phase == 2) {
_root.choixpossible = 1;
if (_root.cadran1 == 1) {
_root.n1._visible = false;
_root.v1._visible = true;
_root.r1._visible = false;
} else if (_root.cadran1 == 0) {
_root.n1._visible = false;
_root.v1._visible = false;
_root.r1._visible = true;
}
if (_root.cadran2 == 1) {
_root.n2._visible = false;
_root.v2._visible = true;
_root.r2._visible = false;
} else if (_root.cadran2 == 0) {
_root.n2._visible = false;
_root.v2._visible = false;
_root.r2._visible = true;
}
if (_root.cadran3 == 1) {
_root.n3._visible = false;
_root.v3._visible = true;
_root.r3._visible = false;
} else if (_root.cadran3 == 0) {
_root.n3._visible = false;
_root.v3._visible = false;
_root.r3._visible = true;
}
}
if ((((_root.e < _root.t1) and (_root.f < _root.t2)) and (_root.g < _root.t3)) and (_root.phase == 2)) {
_root.phase = 3;
}
if (_root.phase == 3) {
_root.choixpossible = 0;
if (_root.cadran1 == 1) {
_root.n1._visible = false;
_root.v1._visible = true;
_root.r1._visible = false;
} else if (_root.cadran1 == 0) {
_root.n1._visible = false;
_root.v1._visible = false;
_root.r1._visible = true;
}
if (_root.cadran2 == 1) {
_root.n2._visible = false;
_root.v2._visible = true;
_root.r2._visible = false;
} else if (_root.cadran2 == 0) {
_root.n2._visible = false;
_root.v2._visible = false;
_root.r2._visible = true;
}
if (_root.cadran3 == 1) {
_root.n3._visible = false;
_root.v3._visible = true;
_root.r3._visible = false;
} else if (_root.cadran3 == 0) {
_root.n3._visible = false;
_root.v3._visible = false;
_root.r3._visible = true;
}
}
if ((((_root.e == _root.t1) and (_root.f == _root.t2)) and (_root.g == _root.t3)) and (_root.phase == 3)) {
_root.phase = 4;
}
if (_root.phase == 4) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
}
}
onClipEvent (enterFrame) {
if (((_root.i == 4) and (_root.j == 4)) and (_root.k == 4)) {
_root.gain = 1;
} else if (((_root.i == 2) and (_root.j == 2)) and (_root.k == 2)) {
_root.gain = 2;
} else if (((_root.i == 3) and (_root.j == 3)) and (_root.k == 3)) {
_root.gain = 3;
} else if ((_root.i == 6) and (_root.j == 6)) {
_root.gain = 4;
} else if ((_root.i == 6) and (_root.k == 6)) {
_root.gain = 4;
} else if ((_root.j == 6) and (_root.k == 6)) {
_root.gain = 4;
} else if ((_root.i == 5) and (_root.j == 5)) {
_root.gain = 5;
} else if ((_root.i == 5) and (_root.k == 5)) {
_root.gain = 5;
} else if ((_root.j == 5) and (_root.k == 5)) {
_root.gain = 5;
} else if ((_root.i == 1) and (_root.j == 1)) {
_root.gain = 6;
} else if ((_root.i == 1) and (_root.k == 1)) {
_root.gain = 6;
} else if ((_root.j == 1) and (_root.k == 1)) {
_root.gain = 6;
} else {
_root.gain = 0;
}
}
onClipEvent (enterFrame) {
if ((_root.phase == 2) and (_root.gain > 0)) {
_root.phase = 5;
}
if (_root.phase == 4) {
_root.phase = 5;
}
if ((_root.phase == 5) and (_root.gain == 1)) {
_root.dollars = _root.dollars + 100;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 2)) {
_root.dollars = _root.dollars + 60;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 3)) {
_root.dollars = _root.dollars + 40;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 4)) {
_root.dollars = _root.dollars + 15;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 5)) {
_root.dollars = _root.dollars + 10;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 6)) {
_root.dollars = _root.dollars + 5;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 0)) {
_root.dollars = _root.dollars + 0;
_root.lightgain._visible = false;
_root.phase = 6;
}
if (_root.phase == 6) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
_root.pay._visible = true;
}
if (_root.phase == 7) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
_root.pay._visible = true;
_root.oldi = i;
_root.oldj = j;
_root.oldk = k;
}
if (_root.phase == 8) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
_root.pay._visible = false;
_root.oldi = i;
_root.oldj = j;
_root.oldk = k;
}
_root.money = _root.dollars;
if (_root.money < 100) {
_root.boutonrouge._visible = false;
} else {
_root.boutonrouge._visible = true;
}
_root.test = _root.phase;
}
Instance of Symbol 119 MovieClip "boutonrouge" in Frame 6
onClipEvent (load) {
if (_root.langue == 0) {
_root.textebouton = "BUY";
} else if (_root.langue == 1) {
_root.textebouton = "Acheter";
}
}
Instance of Symbol 121 MovieClip in Frame 6
onClipEvent (load) {
son1 = new Sound();
son1.attachSound("coin");
son2 = new Sound();
son2.attachSound("tourne");
son3 = new Sound();
son3.attachSound("stop");
son4 = new Sound();
son4.attachSound("gagne");
son5 = new Sound();
son5.attachSound("bloque");
_root.sonpossible = 0;
}
onClipEvent (enterFrame) {
if ((_root.phase == 0) and (_root.sonpossible == 0)) {
son2.stop("tourne");
son3.stop("stop");
son4.stop("gagne");
son5.stop("bloque");
son1.start("coin");
_root.sonpossible = 1;
}
if ((_root.phase == 1) and (_root.sonpossible == 1)) {
son1.stop("coin");
son3.stop("stop");
son4.stop("gagne");
son5.stop("bloque");
son2.start("tourne");
_root.sonpossible = 2;
}
if ((_root.phase == 2) and (_root.sonpossible == 2)) {
son1.stop("coin");
son2.stop("tourne");
son4.stop("gagne");
son5.stop("bloque");
son3.start("stop");
_root.sonpossible = 3;
}
if ((_root.phase == 3) and (_root.sonpossible == 3)) {
son1.stop("coin");
son3.stop("stop");
son4.stop("gagne");
son5.stop("bloque");
son2.start("tourne");
_root.sonpossible = 2;
}
if ((_root.phase == 6) and (_root.sonpossible == 2)) {
son1.stop("coin");
son2.stop("tourne");
son4.stop("gagne");
son5.stop("bloque");
son3.start("stop");
_root.sonpossible = 4;
}
if (((_root.phase == 6) and (_root.sonpossible == 4)) and (_root.gain > 0)) {
son1.stop("coin");
son2.stop("tourne");
son3.stop("stop");
son5.stop("bloque");
son4.start("gagne");
_root.sonpossible = 0;
}
if (((_root.phase == 6) and (_root.sonpossible == 4)) and (_root.gain == 0)) {
_root.sonpossible = 0;
}
if (_root.soncadran == 1) {
son1.stop("coin");
son2.stop("tourne");
son3.stop("stop");
son4.stop("gagne");
son5.start("bloque");
_root.soncadran = 0;
}
}
Instance of Symbol 122 MovieClip "commandaide" in Frame 6
onClipEvent (keyDown) {
touche = Key.getAscii();
if ((_root.code1 == 0) and (touche == 109)) {
_root.code1 = touche;
} else if (((_root.code1 == 109) and (_root.code2 == 0)) and (touche == 111)) {
_root.code2 = touche;
} else if ((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 0)) and (touche == 110)) {
_root.code3 = touche;
} else if (((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 110)) and (_root.code4 == 0)) and (touche == 101)) {
_root.code4 = touche;
} else if ((((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 110)) and (_root.code4 == 101)) and (_root.code5 == 0)) and (touche == 121)) {
_root.code5 = touche;
} else if ((_root.code1 == 0) and (touche == 109)) {
_root.code1 = touche;
} else if (((_root.code1 == 109) and (_root.code2 == 0)) and (touche == 111)) {
_root.code2 = touche;
} else if ((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 0)) and (touche == 114)) {
_root.code3 = touche;
} else if (((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 114)) and (_root.code4 == 0)) and (touche == 101)) {
_root.code4 = touche;
} else {
_root.code1 = 0;
_root.code2 = 0;
_root.code3 = 0;
_root.code4 = 0;
_root.code5 = 0;
}
}
onClipEvent (enterFrame) {
if ((((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 110)) and (_root.code4 == 101)) and (_root.code5 == 121)) and (_root.gift == 0)) {
_root.dollars = _root.dollars + 100;
_root.gift = 1;
_root.code1 = 0;
_root.code2 = 0;
_root.code3 = 0;
_root.code4 = 0;
_root.code5 = 0;
}
if (((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 114)) and (_root.code4 == 101)) and (_root.gift == 1)) {
_root.dollars = _root.dollars + 100;
_root.code1 = 0;
_root.code2 = 0;
_root.code3 = 0;
_root.code4 = 0;
_root.code5 = 0;
}
}
Frame 7
prevFrame();
Frame 8
_root.phase = 8;
_root.strip = 1;
_root.caisse._visible = false;
_root.pay._visible = false;
_root.lightgain._visible = false;
Frame 160
stop();
gotoAndPlay (161);
Frame 161
if (_root.musique == 1) {
_root.musicoff._visible = false;
} else if (_root.musique == 0) {
_root.musicoff._visible = true;
}
_root.code1 = 0;
_root.code2 = 0;
_root.code3 = 0;
_root.code4 = 0;
_root.code5 = 0;
stop();
_root.strip = 0;
_root.level = 2;
_root.coup = 0;
_root.phase = 6;
_root.choixpossible = 0;
_root.cadran1 = 1;
_root.cadran2 = 1;
_root.cadran3 = 1;
_root.mouvement = 0;
_root.lightgain._visible = false;
_root.msg1._visible = false;
_root.msg2._visible = false;
_root.caisse.visible = true;
if (_root.dollars < 100) {
_root.boutonrouge._visible = false;
} else {
_root.boutonrouge._visible = true;
}
_root.oldi = _root.i;
_root.oldj = _root.j;
_root.oldk = _root.k;
if (_root.i == 1) {
_root.f11._visible = true;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 2) {
_root.f11._visible = false;
_root.f12._visible = true;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 3) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = true;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 4) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = true;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 5) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = true;
_root.f16._visible = false;
} else if (_root.i == 6) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = true;
}
if (_root.j == 1) {
_root.f21._visible = true;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 2) {
_root.f21._visible = false;
_root.f22._visible = true;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 3) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = true;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 4) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = true;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 5) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = true;
_root.f26._visible = false;
} else if (_root.j == 6) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = true;
}
if (_root.k == 1) {
_root.f31._visible = true;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 2) {
_root.f31._visible = false;
_root.f32._visible = true;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 3) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = true;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 4) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = true;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 5) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = true;
_root.f36._visible = false;
} else if (_root.k == 6) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = true;
}
Instance of Symbol 72 MovieClip in Frame 161
onClipEvent (load) {
_root.i = _root.oldi;
_root.j = _root.oldj;
_root.k = _root.oldk;
}
onClipEvent (enterFrame) {
if (_root.e < _root.t1) {
_root.e = _root.e + 1;
}
if ((_root.e < _root.t1) and (_root.cadran1 == 1)) {
_root.i = _root.i + 1;
}
if (_root.f < _root.t2) {
_root.f = _root.f + 1;
}
if ((_root.f < _root.t2) and (_root.cadran2 == 1)) {
_root.j = _root.j + 1;
}
if (_root.g < _root.t3) {
_root.g = _root.g + 1;
}
if ((_root.g < _root.t3) and (_root.cadran3 == 1)) {
_root.k = _root.k + 1;
}
if (_root.i == 7) {
_root.i = 1;
}
if (_root.j == 7) {
_root.j = 1;
}
if (_root.k == 7) {
_root.k = 1;
}
}
onClipEvent (enterFrame) {
if (_root.i == 1) {
_root.f11._visible = true;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 2) {
_root.f11._visible = false;
_root.f12._visible = true;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 3) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = true;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 4) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = true;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 5) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = true;
_root.f16._visible = false;
} else if (_root.i == 6) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = true;
}
if (_root.j == 1) {
_root.f21._visible = true;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 2) {
_root.f21._visible = false;
_root.f22._visible = true;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 3) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = true;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 4) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = true;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 5) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = true;
_root.f26._visible = false;
} else if (_root.j == 6) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = true;
}
if (_root.k == 1) {
_root.f31._visible = true;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 2) {
_root.f31._visible = false;
_root.f32._visible = true;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 3) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = true;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 4) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = true;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 5) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = true;
_root.f36._visible = false;
} else if (_root.k == 6) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.phase == 0) {
_root.choixpossible = 0;
_root.cadran1 = 1;
_root.cadran2 = 1;
_root.cadran3 = 1;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
}
if ((((_root.e < _root.t1) and (_root.f < _root.t2)) and (_root.g < _root.t3)) and (_root.phase == 0)) {
_root.phase = 1;
}
if (_root.phase == 1) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
}
if ((((_root.e == _root.t1) and (_root.f == _root.t2)) and (_root.g == _root.t3)) and (_root.phase == 1)) {
_root.phase = 2;
}
if (_root.phase == 2) {
_root.choixpossible = 1;
if (_root.cadran1 == 1) {
_root.n1._visible = false;
_root.v1._visible = true;
_root.r1._visible = false;
} else if (_root.cadran1 == 0) {
_root.n1._visible = false;
_root.v1._visible = false;
_root.r1._visible = true;
}
if (_root.cadran2 == 1) {
_root.n2._visible = false;
_root.v2._visible = true;
_root.r2._visible = false;
} else if (_root.cadran2 == 0) {
_root.n2._visible = false;
_root.v2._visible = false;
_root.r2._visible = true;
}
if (_root.cadran3 == 1) {
_root.n3._visible = false;
_root.v3._visible = true;
_root.r3._visible = false;
} else if (_root.cadran3 == 0) {
_root.n3._visible = false;
_root.v3._visible = false;
_root.r3._visible = true;
}
}
if ((((_root.e < _root.t1) and (_root.f < _root.t2)) and (_root.g < _root.t3)) and (_root.phase == 2)) {
_root.phase = 3;
}
if (_root.phase == 3) {
_root.choixpossible = 0;
if (_root.cadran1 == 1) {
_root.n1._visible = false;
_root.v1._visible = true;
_root.r1._visible = false;
} else if (_root.cadran1 == 0) {
_root.n1._visible = false;
_root.v1._visible = false;
_root.r1._visible = true;
}
if (_root.cadran2 == 1) {
_root.n2._visible = false;
_root.v2._visible = true;
_root.r2._visible = false;
} else if (_root.cadran2 == 0) {
_root.n2._visible = false;
_root.v2._visible = false;
_root.r2._visible = true;
}
if (_root.cadran3 == 1) {
_root.n3._visible = false;
_root.v3._visible = true;
_root.r3._visible = false;
} else if (_root.cadran3 == 0) {
_root.n3._visible = false;
_root.v3._visible = false;
_root.r3._visible = true;
}
}
if ((((_root.e == _root.t1) and (_root.f == _root.t2)) and (_root.g == _root.t3)) and (_root.phase == 3)) {
_root.phase = 4;
}
if (_root.phase == 4) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
}
}
onClipEvent (enterFrame) {
if (((_root.i == 4) and (_root.j == 4)) and (_root.k == 4)) {
_root.gain = 1;
} else if (((_root.i == 2) and (_root.j == 2)) and (_root.k == 2)) {
_root.gain = 2;
} else if (((_root.i == 3) and (_root.j == 3)) and (_root.k == 3)) {
_root.gain = 3;
} else if ((_root.i == 6) and (_root.j == 6)) {
_root.gain = 4;
} else if ((_root.i == 6) and (_root.k == 6)) {
_root.gain = 4;
} else if ((_root.j == 6) and (_root.k == 6)) {
_root.gain = 4;
} else if ((_root.i == 5) and (_root.j == 5)) {
_root.gain = 5;
} else if ((_root.i == 5) and (_root.k == 5)) {
_root.gain = 5;
} else if ((_root.j == 5) and (_root.k == 5)) {
_root.gain = 5;
} else if ((_root.i == 1) and (_root.j == 1)) {
_root.gain = 6;
} else if ((_root.i == 1) and (_root.k == 1)) {
_root.gain = 6;
} else if ((_root.j == 1) and (_root.k == 1)) {
_root.gain = 6;
} else {
_root.gain = 0;
}
}
onClipEvent (enterFrame) {
if ((_root.phase == 2) and (_root.gain > 0)) {
_root.phase = 5;
}
if (_root.phase == 4) {
_root.phase = 5;
}
if ((_root.phase == 5) and (_root.gain == 1)) {
_root.dollars = _root.dollars + 100;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 2)) {
_root.dollars = _root.dollars + 60;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 3)) {
_root.dollars = _root.dollars + 40;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 4)) {
_root.dollars = _root.dollars + 15;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 5)) {
_root.dollars = _root.dollars + 10;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 6)) {
_root.dollars = _root.dollars + 5;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 0)) {
_root.dollars = _root.dollars + 0;
_root.lightgain._visible = false;
_root.phase = 6;
}
if (_root.phase == 6) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
_root.pay._visible = true;
}
if (_root.phase == 7) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
_root.pay._visible = true;
_root.oldi = i;
_root.oldj = j;
_root.oldk = k;
}
if (_root.phase == 8) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
_root.pay._visible = false;
_root.oldi = i;
_root.oldj = j;
_root.oldk = k;
}
_root.money = _root.dollars;
if (_root.money < 100) {
_root.boutonrouge._visible = false;
} else {
_root.boutonrouge._visible = true;
}
_root.test = _root.phase;
}
Instance of Symbol 119 MovieClip "boutonrouge" in Frame 161
onClipEvent (load) {
if (_root.langue == 0) {
_root.textebouton = "BUY";
} else if (_root.langue == 1) {
_root.textebouton = "Acheter";
}
}
Instance of Symbol 121 MovieClip in Frame 161
onClipEvent (load) {
son1 = new Sound();
son1.attachSound("coin");
son2 = new Sound();
son2.attachSound("tourne");
son3 = new Sound();
son3.attachSound("stop");
son4 = new Sound();
son4.attachSound("gagne");
son5 = new Sound();
son5.attachSound("bloque");
_root.sonpossible = 0;
}
onClipEvent (enterFrame) {
if ((_root.phase == 0) and (_root.sonpossible == 0)) {
son2.stop("tourne");
son3.stop("stop");
son4.stop("gagne");
son5.stop("bloque");
son1.start("coin");
_root.sonpossible = 1;
}
if ((_root.phase == 1) and (_root.sonpossible == 1)) {
son1.stop("coin");
son3.stop("stop");
son4.stop("gagne");
son5.stop("bloque");
son2.start("tourne");
_root.sonpossible = 2;
}
if ((_root.phase == 2) and (_root.sonpossible == 2)) {
son1.stop("coin");
son2.stop("tourne");
son4.stop("gagne");
son5.stop("bloque");
son3.start("stop");
_root.sonpossible = 3;
}
if ((_root.phase == 3) and (_root.sonpossible == 3)) {
son1.stop("coin");
son3.stop("stop");
son4.stop("gagne");
son5.stop("bloque");
son2.start("tourne");
_root.sonpossible = 2;
}
if ((_root.phase == 6) and (_root.sonpossible == 2)) {
son1.stop("coin");
son2.stop("tourne");
son4.stop("gagne");
son5.stop("bloque");
son3.start("stop");
_root.sonpossible = 4;
}
if (((_root.phase == 6) and (_root.sonpossible == 4)) and (_root.gain > 0)) {
son1.stop("coin");
son2.stop("tourne");
son3.stop("stop");
son5.stop("bloque");
son4.start("gagne");
_root.sonpossible = 0;
}
if (((_root.phase == 6) and (_root.sonpossible == 4)) and (_root.gain == 0)) {
_root.sonpossible = 0;
}
if (_root.soncadran == 1) {
son1.stop("coin");
son2.stop("tourne");
son3.stop("stop");
son4.stop("gagne");
son5.start("bloque");
_root.soncadran = 0;
}
}
Instance of Symbol 122 MovieClip "commandaide" in Frame 161
onClipEvent (keyDown) {
touche = Key.getAscii();
if ((_root.code1 == 0) and (touche == 109)) {
_root.code1 = touche;
} else if (((_root.code1 == 109) and (_root.code2 == 0)) and (touche == 111)) {
_root.code2 = touche;
} else if ((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 0)) and (touche == 110)) {
_root.code3 = touche;
} else if (((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 110)) and (_root.code4 == 0)) and (touche == 101)) {
_root.code4 = touche;
} else if ((((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 110)) and (_root.code4 == 101)) and (_root.code5 == 0)) and (touche == 121)) {
_root.code5 = touche;
} else if ((_root.code1 == 0) and (touche == 109)) {
_root.code1 = touche;
} else if (((_root.code1 == 109) and (_root.code2 == 0)) and (touche == 111)) {
_root.code2 = touche;
} else if ((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 0)) and (touche == 114)) {
_root.code3 = touche;
} else if (((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 114)) and (_root.code4 == 0)) and (touche == 101)) {
_root.code4 = touche;
} else {
_root.code1 = 0;
_root.code2 = 0;
_root.code3 = 0;
_root.code4 = 0;
_root.code5 = 0;
}
}
onClipEvent (enterFrame) {
if ((((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 110)) and (_root.code4 == 101)) and (_root.code5 == 121)) and (_root.gift == 0)) {
_root.dollars = _root.dollars + 100;
_root.gift = 1;
_root.code1 = 0;
_root.code2 = 0;
_root.code3 = 0;
_root.code4 = 0;
_root.code5 = 0;
}
if (((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 114)) and (_root.code4 == 101)) and (_root.gift == 1)) {
_root.dollars = _root.dollars + 100;
_root.code1 = 0;
_root.code2 = 0;
_root.code3 = 0;
_root.code4 = 0;
_root.code5 = 0;
}
}
Frame 162
prevFrame();
Frame 163
_root.phase = 8;
_root.strip = 1;
_root.caisse._visible = false;
_root.pay._visible = false;
_root.lightgain._visible = false;
Frame 494
stop();
gotoAndPlay (495);
Frame 495
if (_root.musique == 1) {
_root.musicoff._visible = false;
} else if (_root.musique == 0) {
_root.musicoff._visible = true;
}
_root.code1 = 0;
_root.code2 = 0;
_root.code3 = 0;
_root.code4 = 0;
_root.code5 = 0;
stop();
_root.strip = 0;
_root.level = 3;
_root.coup = 0;
_root.phase = 6;
_root.choixpossible = 0;
_root.cadran1 = 1;
_root.cadran2 = 1;
_root.cadran3 = 1;
_root.mouvement = 0;
_root.lightgain._visible = false;
_root.msg1._visible = false;
_root.msg2._visible = false;
_root.caisse.visible = true;
if (_root.dollars < 100) {
_root.boutonrouge._visible = false;
} else {
_root.boutonrouge._visible = true;
}
_root.oldi = _root.i;
_root.oldj = _root.j;
_root.oldk = _root.k;
if (_root.i == 1) {
_root.f11._visible = true;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 2) {
_root.f11._visible = false;
_root.f12._visible = true;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 3) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = true;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 4) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = true;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 5) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = true;
_root.f16._visible = false;
} else if (_root.i == 6) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = true;
}
if (_root.j == 1) {
_root.f21._visible = true;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 2) {
_root.f21._visible = false;
_root.f22._visible = true;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 3) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = true;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 4) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = true;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 5) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = true;
_root.f26._visible = false;
} else if (_root.j == 6) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = true;
}
if (_root.k == 1) {
_root.f31._visible = true;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 2) {
_root.f31._visible = false;
_root.f32._visible = true;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 3) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = true;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 4) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = true;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 5) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = true;
_root.f36._visible = false;
} else if (_root.k == 6) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = true;
}
Instance of Symbol 72 MovieClip in Frame 495
onClipEvent (load) {
_root.i = _root.oldi;
_root.j = _root.oldj;
_root.k = _root.oldk;
}
onClipEvent (enterFrame) {
if (_root.e < _root.t1) {
_root.e = _root.e + 1;
}
if ((_root.e < _root.t1) and (_root.cadran1 == 1)) {
_root.i = _root.i + 1;
}
if (_root.f < _root.t2) {
_root.f = _root.f + 1;
}
if ((_root.f < _root.t2) and (_root.cadran2 == 1)) {
_root.j = _root.j + 1;
}
if (_root.g < _root.t3) {
_root.g = _root.g + 1;
}
if ((_root.g < _root.t3) and (_root.cadran3 == 1)) {
_root.k = _root.k + 1;
}
if (_root.i == 7) {
_root.i = 1;
}
if (_root.j == 7) {
_root.j = 1;
}
if (_root.k == 7) {
_root.k = 1;
}
}
onClipEvent (enterFrame) {
if (_root.i == 1) {
_root.f11._visible = true;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 2) {
_root.f11._visible = false;
_root.f12._visible = true;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 3) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = true;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 4) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = true;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 5) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = true;
_root.f16._visible = false;
} else if (_root.i == 6) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = true;
}
if (_root.j == 1) {
_root.f21._visible = true;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 2) {
_root.f21._visible = false;
_root.f22._visible = true;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 3) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = true;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 4) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = true;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 5) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = true;
_root.f26._visible = false;
} else if (_root.j == 6) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = true;
}
if (_root.k == 1) {
_root.f31._visible = true;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 2) {
_root.f31._visible = false;
_root.f32._visible = true;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 3) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = true;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 4) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = true;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 5) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = true;
_root.f36._visible = false;
} else if (_root.k == 6) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.phase == 0) {
_root.choixpossible = 0;
_root.cadran1 = 1;
_root.cadran2 = 1;
_root.cadran3 = 1;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
}
if ((((_root.e < _root.t1) and (_root.f < _root.t2)) and (_root.g < _root.t3)) and (_root.phase == 0)) {
_root.phase = 1;
}
if (_root.phase == 1) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
}
if ((((_root.e == _root.t1) and (_root.f == _root.t2)) and (_root.g == _root.t3)) and (_root.phase == 1)) {
_root.phase = 2;
}
if (_root.phase == 2) {
_root.choixpossible = 1;
if (_root.cadran1 == 1) {
_root.n1._visible = false;
_root.v1._visible = true;
_root.r1._visible = false;
} else if (_root.cadran1 == 0) {
_root.n1._visible = false;
_root.v1._visible = false;
_root.r1._visible = true;
}
if (_root.cadran2 == 1) {
_root.n2._visible = false;
_root.v2._visible = true;
_root.r2._visible = false;
} else if (_root.cadran2 == 0) {
_root.n2._visible = false;
_root.v2._visible = false;
_root.r2._visible = true;
}
if (_root.cadran3 == 1) {
_root.n3._visible = false;
_root.v3._visible = true;
_root.r3._visible = false;
} else if (_root.cadran3 == 0) {
_root.n3._visible = false;
_root.v3._visible = false;
_root.r3._visible = true;
}
}
if ((((_root.e < _root.t1) and (_root.f < _root.t2)) and (_root.g < _root.t3)) and (_root.phase == 2)) {
_root.phase = 3;
}
if (_root.phase == 3) {
_root.choixpossible = 0;
if (_root.cadran1 == 1) {
_root.n1._visible = false;
_root.v1._visible = true;
_root.r1._visible = false;
} else if (_root.cadran1 == 0) {
_root.n1._visible = false;
_root.v1._visible = false;
_root.r1._visible = true;
}
if (_root.cadran2 == 1) {
_root.n2._visible = false;
_root.v2._visible = true;
_root.r2._visible = false;
} else if (_root.cadran2 == 0) {
_root.n2._visible = false;
_root.v2._visible = false;
_root.r2._visible = true;
}
if (_root.cadran3 == 1) {
_root.n3._visible = false;
_root.v3._visible = true;
_root.r3._visible = false;
} else if (_root.cadran3 == 0) {
_root.n3._visible = false;
_root.v3._visible = false;
_root.r3._visible = true;
}
}
if ((((_root.e == _root.t1) and (_root.f == _root.t2)) and (_root.g == _root.t3)) and (_root.phase == 3)) {
_root.phase = 4;
}
if (_root.phase == 4) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
}
}
onClipEvent (enterFrame) {
if (((_root.i == 4) and (_root.j == 4)) and (_root.k == 4)) {
_root.gain = 1;
} else if (((_root.i == 2) and (_root.j == 2)) and (_root.k == 2)) {
_root.gain = 2;
} else if (((_root.i == 3) and (_root.j == 3)) and (_root.k == 3)) {
_root.gain = 3;
} else if ((_root.i == 6) and (_root.j == 6)) {
_root.gain = 4;
} else if ((_root.i == 6) and (_root.k == 6)) {
_root.gain = 4;
} else if ((_root.j == 6) and (_root.k == 6)) {
_root.gain = 4;
} else if ((_root.i == 5) and (_root.j == 5)) {
_root.gain = 5;
} else if ((_root.i == 5) and (_root.k == 5)) {
_root.gain = 5;
} else if ((_root.j == 5) and (_root.k == 5)) {
_root.gain = 5;
} else if ((_root.i == 1) and (_root.j == 1)) {
_root.gain = 6;
} else if ((_root.i == 1) and (_root.k == 1)) {
_root.gain = 6;
} else if ((_root.j == 1) and (_root.k == 1)) {
_root.gain = 6;
} else {
_root.gain = 0;
}
}
onClipEvent (enterFrame) {
if ((_root.phase == 2) and (_root.gain > 0)) {
_root.phase = 5;
}
if (_root.phase == 4) {
_root.phase = 5;
}
if ((_root.phase == 5) and (_root.gain == 1)) {
_root.dollars = _root.dollars + 100;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 2)) {
_root.dollars = _root.dollars + 60;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 3)) {
_root.dollars = _root.dollars + 40;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 4)) {
_root.dollars = _root.dollars + 15;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 5)) {
_root.dollars = _root.dollars + 10;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 6)) {
_root.dollars = _root.dollars + 5;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 0)) {
_root.dollars = _root.dollars + 0;
_root.lightgain._visible = false;
_root.phase = 6;
}
if (_root.phase == 6) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
_root.pay._visible = true;
}
if (_root.phase == 7) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
_root.pay._visible = true;
_root.oldi = i;
_root.oldj = j;
_root.oldk = k;
}
if (_root.phase == 8) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
_root.pay._visible = false;
_root.oldi = i;
_root.oldj = j;
_root.oldk = k;
}
_root.money = _root.dollars;
if (_root.money < 100) {
_root.boutonrouge._visible = false;
} else {
_root.boutonrouge._visible = true;
}
_root.test = _root.phase;
}
Instance of Symbol 119 MovieClip "boutonrouge" in Frame 495
onClipEvent (load) {
if (_root.langue == 0) {
_root.textebouton = "BUY";
} else if (_root.langue == 1) {
_root.textebouton = "Acheter";
}
}
Instance of Symbol 121 MovieClip in Frame 495
onClipEvent (load) {
son1 = new Sound();
son1.attachSound("coin");
son2 = new Sound();
son2.attachSound("tourne");
son3 = new Sound();
son3.attachSound("stop");
son4 = new Sound();
son4.attachSound("gagne");
son5 = new Sound();
son5.attachSound("bloque");
_root.sonpossible = 0;
}
onClipEvent (enterFrame) {
if ((_root.phase == 0) and (_root.sonpossible == 0)) {
son2.stop("tourne");
son3.stop("stop");
son4.stop("gagne");
son5.stop("bloque");
son1.start("coin");
_root.sonpossible = 1;
}
if ((_root.phase == 1) and (_root.sonpossible == 1)) {
son1.stop("coin");
son3.stop("stop");
son4.stop("gagne");
son5.stop("bloque");
son2.start("tourne");
_root.sonpossible = 2;
}
if ((_root.phase == 2) and (_root.sonpossible == 2)) {
son1.stop("coin");
son2.stop("tourne");
son4.stop("gagne");
son5.stop("bloque");
son3.start("stop");
_root.sonpossible = 3;
}
if ((_root.phase == 3) and (_root.sonpossible == 3)) {
son1.stop("coin");
son3.stop("stop");
son4.stop("gagne");
son5.stop("bloque");
son2.start("tourne");
_root.sonpossible = 2;
}
if ((_root.phase == 6) and (_root.sonpossible == 2)) {
son1.stop("coin");
son2.stop("tourne");
son4.stop("gagne");
son5.stop("bloque");
son3.start("stop");
_root.sonpossible = 4;
}
if (((_root.phase == 6) and (_root.sonpossible == 4)) and (_root.gain > 0)) {
son1.stop("coin");
son2.stop("tourne");
son3.stop("stop");
son5.stop("bloque");
son4.start("gagne");
_root.sonpossible = 0;
}
if (((_root.phase == 6) and (_root.sonpossible == 4)) and (_root.gain == 0)) {
_root.sonpossible = 0;
}
if (_root.soncadran == 1) {
son1.stop("coin");
son2.stop("tourne");
son3.stop("stop");
son4.stop("gagne");
son5.start("bloque");
_root.soncadran = 0;
}
}
Instance of Symbol 122 MovieClip "commandaide" in Frame 495
onClipEvent (keyDown) {
touche = Key.getAscii();
if ((_root.code1 == 0) and (touche == 109)) {
_root.code1 = touche;
} else if (((_root.code1 == 109) and (_root.code2 == 0)) and (touche == 111)) {
_root.code2 = touche;
} else if ((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 0)) and (touche == 110)) {
_root.code3 = touche;
} else if (((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 110)) and (_root.code4 == 0)) and (touche == 101)) {
_root.code4 = touche;
} else if ((((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 110)) and (_root.code4 == 101)) and (_root.code5 == 0)) and (touche == 121)) {
_root.code5 = touche;
} else if ((_root.code1 == 0) and (touche == 109)) {
_root.code1 = touche;
} else if (((_root.code1 == 109) and (_root.code2 == 0)) and (touche == 111)) {
_root.code2 = touche;
} else if ((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 0)) and (touche == 114)) {
_root.code3 = touche;
} else if (((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 114)) and (_root.code4 == 0)) and (touche == 101)) {
_root.code4 = touche;
} else {
_root.code1 = 0;
_root.code2 = 0;
_root.code3 = 0;
_root.code4 = 0;
_root.code5 = 0;
}
}
onClipEvent (enterFrame) {
if ((((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 110)) and (_root.code4 == 101)) and (_root.code5 == 121)) and (_root.gift == 0)) {
_root.dollars = _root.dollars + 100;
_root.gift = 1;
_root.code1 = 0;
_root.code2 = 0;
_root.code3 = 0;
_root.code4 = 0;
_root.code5 = 0;
}
if (((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 114)) and (_root.code4 == 101)) and (_root.gift == 1)) {
_root.dollars = _root.dollars + 100;
_root.code1 = 0;
_root.code2 = 0;
_root.code3 = 0;
_root.code4 = 0;
_root.code5 = 0;
}
}
Frame 496
prevFrame();
Frame 497
_root.phase = 8;
_root.strip = 1;
_root.caisse._visible = false;
_root.pay._visible = false;
_root.lightgain._visible = false;
Frame 727
stop();
gotoAndPlay (728);
Frame 728
if (_root.musique == 1) {
_root.musicoff._visible = false;
} else if (_root.musique == 0) {
_root.musicoff._visible = true;
}
_root.code1 = 0;
_root.code2 = 0;
_root.code3 = 0;
_root.code4 = 0;
_root.code5 = 0;
stop();
_root.strip = 0;
_root.level = 4;
_root.coup = 0;
_root.phase = 6;
_root.choixpossible = 0;
_root.cadran1 = 1;
_root.cadran2 = 1;
_root.cadran3 = 1;
_root.mouvement = 0;
_root.lightgain._visible = false;
_root.msg1._visible = false;
_root.msg2._visible = false;
_root.caisse.visible = true;
if (_root.dollars < 100) {
_root.boutonrouge._visible = false;
} else {
_root.boutonrouge._visible = true;
}
_root.oldi = _root.i;
_root.oldj = _root.j;
_root.oldk = _root.k;
if (_root.i == 1) {
_root.f11._visible = true;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 2) {
_root.f11._visible = false;
_root.f12._visible = true;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 3) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = true;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 4) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = true;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 5) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = true;
_root.f16._visible = false;
} else if (_root.i == 6) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = true;
}
if (_root.j == 1) {
_root.f21._visible = true;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 2) {
_root.f21._visible = false;
_root.f22._visible = true;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 3) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = true;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 4) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = true;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 5) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = true;
_root.f26._visible = false;
} else if (_root.j == 6) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = true;
}
if (_root.k == 1) {
_root.f31._visible = true;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 2) {
_root.f31._visible = false;
_root.f32._visible = true;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 3) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = true;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 4) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = true;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 5) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = true;
_root.f36._visible = false;
} else if (_root.k == 6) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = true;
}
Instance of Symbol 72 MovieClip in Frame 728
onClipEvent (load) {
_root.i = _root.oldi;
_root.j = _root.oldj;
_root.k = _root.oldk;
}
onClipEvent (enterFrame) {
if (_root.e < _root.t1) {
_root.e = _root.e + 1;
}
if ((_root.e < _root.t1) and (_root.cadran1 == 1)) {
_root.i = _root.i + 1;
}
if (_root.f < _root.t2) {
_root.f = _root.f + 1;
}
if ((_root.f < _root.t2) and (_root.cadran2 == 1)) {
_root.j = _root.j + 1;
}
if (_root.g < _root.t3) {
_root.g = _root.g + 1;
}
if ((_root.g < _root.t3) and (_root.cadran3 == 1)) {
_root.k = _root.k + 1;
}
if (_root.i == 7) {
_root.i = 1;
}
if (_root.j == 7) {
_root.j = 1;
}
if (_root.k == 7) {
_root.k = 1;
}
}
onClipEvent (enterFrame) {
if (_root.i == 1) {
_root.f11._visible = true;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 2) {
_root.f11._visible = false;
_root.f12._visible = true;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 3) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = true;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 4) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = true;
_root.f15._visible = false;
_root.f16._visible = false;
} else if (_root.i == 5) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = true;
_root.f16._visible = false;
} else if (_root.i == 6) {
_root.f11._visible = false;
_root.f12._visible = false;
_root.f13._visible = false;
_root.f14._visible = false;
_root.f15._visible = false;
_root.f16._visible = true;
}
if (_root.j == 1) {
_root.f21._visible = true;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 2) {
_root.f21._visible = false;
_root.f22._visible = true;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 3) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = true;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 4) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = true;
_root.f25._visible = false;
_root.f26._visible = false;
} else if (_root.j == 5) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = true;
_root.f26._visible = false;
} else if (_root.j == 6) {
_root.f21._visible = false;
_root.f22._visible = false;
_root.f23._visible = false;
_root.f24._visible = false;
_root.f25._visible = false;
_root.f26._visible = true;
}
if (_root.k == 1) {
_root.f31._visible = true;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 2) {
_root.f31._visible = false;
_root.f32._visible = true;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 3) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = true;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 4) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = true;
_root.f35._visible = false;
_root.f36._visible = false;
} else if (_root.k == 5) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = true;
_root.f36._visible = false;
} else if (_root.k == 6) {
_root.f31._visible = false;
_root.f32._visible = false;
_root.f33._visible = false;
_root.f34._visible = false;
_root.f35._visible = false;
_root.f36._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.phase == 0) {
_root.choixpossible = 0;
_root.cadran1 = 1;
_root.cadran2 = 1;
_root.cadran3 = 1;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
}
if ((((_root.e < _root.t1) and (_root.f < _root.t2)) and (_root.g < _root.t3)) and (_root.phase == 0)) {
_root.phase = 1;
}
if (_root.phase == 1) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
}
if ((((_root.e == _root.t1) and (_root.f == _root.t2)) and (_root.g == _root.t3)) and (_root.phase == 1)) {
_root.phase = 2;
}
if (_root.phase == 2) {
_root.choixpossible = 1;
if (_root.cadran1 == 1) {
_root.n1._visible = false;
_root.v1._visible = true;
_root.r1._visible = false;
} else if (_root.cadran1 == 0) {
_root.n1._visible = false;
_root.v1._visible = false;
_root.r1._visible = true;
}
if (_root.cadran2 == 1) {
_root.n2._visible = false;
_root.v2._visible = true;
_root.r2._visible = false;
} else if (_root.cadran2 == 0) {
_root.n2._visible = false;
_root.v2._visible = false;
_root.r2._visible = true;
}
if (_root.cadran3 == 1) {
_root.n3._visible = false;
_root.v3._visible = true;
_root.r3._visible = false;
} else if (_root.cadran3 == 0) {
_root.n3._visible = false;
_root.v3._visible = false;
_root.r3._visible = true;
}
}
if ((((_root.e < _root.t1) and (_root.f < _root.t2)) and (_root.g < _root.t3)) and (_root.phase == 2)) {
_root.phase = 3;
}
if (_root.phase == 3) {
_root.choixpossible = 0;
if (_root.cadran1 == 1) {
_root.n1._visible = false;
_root.v1._visible = true;
_root.r1._visible = false;
} else if (_root.cadran1 == 0) {
_root.n1._visible = false;
_root.v1._visible = false;
_root.r1._visible = true;
}
if (_root.cadran2 == 1) {
_root.n2._visible = false;
_root.v2._visible = true;
_root.r2._visible = false;
} else if (_root.cadran2 == 0) {
_root.n2._visible = false;
_root.v2._visible = false;
_root.r2._visible = true;
}
if (_root.cadran3 == 1) {
_root.n3._visible = false;
_root.v3._visible = true;
_root.r3._visible = false;
} else if (_root.cadran3 == 0) {
_root.n3._visible = false;
_root.v3._visible = false;
_root.r3._visible = true;
}
}
if ((((_root.e == _root.t1) and (_root.f == _root.t2)) and (_root.g == _root.t3)) and (_root.phase == 3)) {
_root.phase = 4;
}
if (_root.phase == 4) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
}
}
onClipEvent (enterFrame) {
if (((_root.i == 4) and (_root.j == 4)) and (_root.k == 4)) {
_root.gain = 1;
} else if (((_root.i == 2) and (_root.j == 2)) and (_root.k == 2)) {
_root.gain = 2;
} else if (((_root.i == 3) and (_root.j == 3)) and (_root.k == 3)) {
_root.gain = 3;
} else if ((_root.i == 6) and (_root.j == 6)) {
_root.gain = 4;
} else if ((_root.i == 6) and (_root.k == 6)) {
_root.gain = 4;
} else if ((_root.j == 6) and (_root.k == 6)) {
_root.gain = 4;
} else if ((_root.i == 5) and (_root.j == 5)) {
_root.gain = 5;
} else if ((_root.i == 5) and (_root.k == 5)) {
_root.gain = 5;
} else if ((_root.j == 5) and (_root.k == 5)) {
_root.gain = 5;
} else if ((_root.i == 1) and (_root.j == 1)) {
_root.gain = 6;
} else if ((_root.i == 1) and (_root.k == 1)) {
_root.gain = 6;
} else if ((_root.j == 1) and (_root.k == 1)) {
_root.gain = 6;
} else {
_root.gain = 0;
}
}
onClipEvent (enterFrame) {
if ((_root.phase == 2) and (_root.gain > 0)) {
_root.phase = 5;
}
if (_root.phase == 4) {
_root.phase = 5;
}
if ((_root.phase == 5) and (_root.gain == 1)) {
_root.dollars = _root.dollars + 100;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 2)) {
_root.dollars = _root.dollars + 60;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 3)) {
_root.dollars = _root.dollars + 40;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 4)) {
_root.dollars = _root.dollars + 15;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 5)) {
_root.dollars = _root.dollars + 10;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 6)) {
_root.dollars = _root.dollars + 5;
_root.lightgain._visible = true;
_root.phase = 6;
} else if ((_root.phase == 5) and (_root.gain == 0)) {
_root.dollars = _root.dollars + 0;
_root.lightgain._visible = false;
_root.phase = 6;
}
if (_root.phase == 6) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
_root.pay._visible = true;
}
if (_root.phase == 7) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
_root.pay._visible = true;
_root.oldi = i;
_root.oldj = j;
_root.oldk = k;
}
if (_root.phase == 8) {
_root.choixpossible = 0;
_root.n1._visible = true;
_root.v1._visible = false;
_root.r1._visible = false;
_root.n2._visible = true;
_root.v2._visible = false;
_root.r2._visible = false;
_root.n3._visible = true;
_root.v3._visible = false;
_root.r3._visible = false;
_root.pay._visible = false;
_root.oldi = i;
_root.oldj = j;
_root.oldk = k;
}
_root.money = _root.dollars;
if (_root.money < 100) {
_root.boutonrouge._visible = false;
} else {
_root.boutonrouge._visible = true;
}
_root.test = _root.phase;
}
Instance of Symbol 119 MovieClip "boutonrouge" in Frame 728
onClipEvent (load) {
if (_root.langue == 0) {
_root.textebouton = "BUY";
} else if (_root.langue == 1) {
_root.textebouton = "Acheter";
}
}
Instance of Symbol 121 MovieClip in Frame 728
onClipEvent (load) {
son1 = new Sound();
son1.attachSound("coin");
son2 = new Sound();
son2.attachSound("tourne");
son3 = new Sound();
son3.attachSound("stop");
son4 = new Sound();
son4.attachSound("gagne");
son5 = new Sound();
son5.attachSound("bloque");
_root.sonpossible = 0;
}
onClipEvent (enterFrame) {
if ((_root.phase == 0) and (_root.sonpossible == 0)) {
son2.stop("tourne");
son3.stop("stop");
son4.stop("gagne");
son5.stop("bloque");
son1.start("coin");
_root.sonpossible = 1;
}
if ((_root.phase == 1) and (_root.sonpossible == 1)) {
son1.stop("coin");
son3.stop("stop");
son4.stop("gagne");
son5.stop("bloque");
son2.start("tourne");
_root.sonpossible = 2;
}
if ((_root.phase == 2) and (_root.sonpossible == 2)) {
son1.stop("coin");
son2.stop("tourne");
son4.stop("gagne");
son5.stop("bloque");
son3.start("stop");
_root.sonpossible = 3;
}
if ((_root.phase == 3) and (_root.sonpossible == 3)) {
son1.stop("coin");
son3.stop("stop");
son4.stop("gagne");
son5.stop("bloque");
son2.start("tourne");
_root.sonpossible = 2;
}
if ((_root.phase == 6) and (_root.sonpossible == 2)) {
son1.stop("coin");
son2.stop("tourne");
son4.stop("gagne");
son5.stop("bloque");
son3.start("stop");
_root.sonpossible = 4;
}
if (((_root.phase == 6) and (_root.sonpossible == 4)) and (_root.gain > 0)) {
son1.stop("coin");
son2.stop("tourne");
son3.stop("stop");
son5.stop("bloque");
son4.start("gagne");
_root.sonpossible = 0;
}
if (((_root.phase == 6) and (_root.sonpossible == 4)) and (_root.gain == 0)) {
_root.sonpossible = 0;
}
if (_root.soncadran == 1) {
son1.stop("coin");
son2.stop("tourne");
son3.stop("stop");
son4.stop("gagne");
son5.start("bloque");
_root.soncadran = 0;
}
}
Instance of Symbol 122 MovieClip "commandaide" in Frame 728
onClipEvent (keyDown) {
touche = Key.getAscii();
if ((_root.code1 == 0) and (touche == 109)) {
_root.code1 = touche;
} else if (((_root.code1 == 109) and (_root.code2 == 0)) and (touche == 111)) {
_root.code2 = touche;
} else if ((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 0)) and (touche == 110)) {
_root.code3 = touche;
} else if (((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 110)) and (_root.code4 == 0)) and (touche == 101)) {
_root.code4 = touche;
} else if ((((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 110)) and (_root.code4 == 101)) and (_root.code5 == 0)) and (touche == 121)) {
_root.code5 = touche;
} else if ((_root.code1 == 0) and (touche == 109)) {
_root.code1 = touche;
} else if (((_root.code1 == 109) and (_root.code2 == 0)) and (touche == 111)) {
_root.code2 = touche;
} else if ((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 0)) and (touche == 114)) {
_root.code3 = touche;
} else if (((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 114)) and (_root.code4 == 0)) and (touche == 101)) {
_root.code4 = touche;
} else {
_root.code1 = 0;
_root.code2 = 0;
_root.code3 = 0;
_root.code4 = 0;
_root.code5 = 0;
}
}
onClipEvent (enterFrame) {
if ((((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 110)) and (_root.code4 == 101)) and (_root.code5 == 121)) and (_root.gift == 0)) {
_root.dollars = _root.dollars + 100;
_root.gift = 1;
_root.code1 = 0;
_root.code2 = 0;
_root.code3 = 0;
_root.code4 = 0;
_root.code5 = 0;
}
if (((((_root.code1 == 109) and (_root.code2 == 111)) and (_root.code3 == 114)) and (_root.code4 == 101)) and (_root.gift == 1)) {
_root.dollars = _root.dollars + 100;
_root.code1 = 0;
_root.code2 = 0;
_root.code3 = 0;
_root.code4 = 0;
_root.code5 = 0;
}
}
Frame 729
prevFrame();
Frame 730
_root.phase = 8;
_root.strip = 1;
_root.caisse._visible = false;
_root.pay._visible = false;
_root.lightgain._visible = false;
Frame 1119
stop();
_root.level = 5;
gotoAndPlay (1120);
Frame 1120
stop();
if ((_root.langue == 0) and (_root.level < 5)) {
_root.dial1 = "Hey, you have no more money, we stop to play...";
} else if ((_root.langue == 1) and (_root.level < 5)) {
_root.dial1 = "He, vous n\u2019avez plus d\u2019argent pour continuer \u00E0 jouer?";
} else if ((_root.langue == 0) and (_root.level > 4)) {
_root.dial1 = "Congratulations, you have been very lucky, this evening...";
} else if ((_root.langue == 1) and (_root.level > 4)) {
_root.dial1 = "F\u00E9licitation, vous avez eu beaucoup de chance ce soir...";
}
if ((_root.langue == 0) and (_root.level < 5)) {
_root.dial2 = "Maybe you will be lucky the next time...";
} else if ((_root.langue == 1) and (_root.level < 5)) {
_root.dial2 = "Peut-\u00EAtre aurez vous plus de chance la prochaine fois...";
} else if ((_root.langue == 0) and (_root.level > 4)) {
_root.dial2 = "\u2026 I hope that we will soon play a new game...";
} else if ((_root.langue == 1) and (_root.level > 4)) {
_root.dial2 = "J\u2019esp\u00E8re que nous ferons bient\u00F4t une nouvelle partie...";
}
if (_root.level < 5) {
_root.dressed._visible = true;
_root.naked._visible = false;
} else if (_root.level > 4) {
_root.dressed._visible = false;
_root.naked._visible = true;
}
Symbol 13 MovieClip Frame 1
_root.bytes_totales = _level0.getBytesTotal();
_root["bytes_charg\u00E9es"] = _level0.getBytesLoaded();
_root.bytes_rapport = Math.round((_root["bytes_charg\u00E9es"] / _root.bytes_totales) * 100);
_root.bytes_chargement_affichage = Math.round(_root.bytes_rapport);
if (_root.bytes_rapport == 100) {
_root.play();
stop();
}
tellTarget (_root.barre_chargement_bytes) {
gotoAndPlay(_root.bytes_rapport);
};
Symbol 16 MovieClip Frame 1
stop();
Symbol 16 MovieClip Frame 101
stop();
Symbol 20 Button
on (release) {
getURL ("http://www.uplay-istrip.com/", "_blank");
}
Symbol 25 Button
on (press) {
gotoAndPlay (4);
}
Symbol 30 Button
on (press, release) {
gotoAndStop (2);
}
Symbol 33 Button
on (press, release) {
gotoAndStop (3);
}
Symbol 47 Button
on (press) {
play();
}
Symbol 49 Button
on (release) {
getURL ("http://www.sharks-lagoon.fr/", "_blank");
}
Symbol 50 Button
on (press) {
gotoAndPlay (6);
}
Symbol 64 MovieClip Frame 139
stop();
_root.choixvid = random(2);
if (_root.choixvid == 0) {
gotoAndPlay (140);
} else if (_root.choixvid == 1) {
gotoAndPlay (269);
}
Symbol 64 MovieClip Frame 268
stop();
_root.choixvid = random(2);
if (_root.choixvid == 0) {
gotoAndPlay (1);
} else if (_root.choixvid == 1) {
gotoAndPlay (269);
}
Symbol 64 MovieClip Frame 410
stop();
_root.choixvid = random(2);
if (_root.choixvid == 0) {
gotoAndPlay (1);
} else if (_root.choixvid == 1) {
gotoAndPlay (140);
}
Symbol 77 Button
on (press) {
if ((_root.phase == 0) or (_root.phase == 2)) {
_root.e = 0;
_root.f = 0;
_root.g = 0;
_root.t1 = 10000;
_root.t2 = 10000;
_root.t3 = 10000;
}
}
on (release) {
_root.t1 = 12;
_root.t2 = 14;
_root.t3 = 16;
if ((_root.phase == 1) or (_root.phase == 3)) {
_root.e = 0;
_root.f = 0;
_root.g = 0;
_root.a = random(10);
_root.b = random(9);
_root.c = random(8);
_root.t1 = _root.a + 12;
_root.t2 = _root.b + 14;
_root.t3 = _root.c + 16;
}
}
Symbol 79 Button
on (release) {
if (_root.dollars < 1) {
gotoAndPlay (1120);
}
if ((_root.phase == 6) and (_root.dollars > 0)) {
_root.t1 = 0;
_root.t2 = 0;
_root.t3 = 0;
_root.phase = 0;
_root.dollars = _root.dollars - 1;
}
if (_root.phase == 8) {
_root.dollars = _root.dollars - 1;
}
_root.lightgain._visible = false;
_root.pay._visible = false;
}
Symbol 103 Button
on (press) {
if ((_root.choixpossible == 1) and (_root.cadran3 == 0)) {
_root.cadran3 = 1;
_root.soncadran = 1;
} else if ((_root.choixpossible == 1) and (_root.cadran3 == 1)) {
_root.cadran3 = 0;
_root.soncadran = 1;
}
}
Symbol 116 Button
on (press) {
if ((_root.choixpossible == 1) and (_root.cadran1 == 0)) {
_root.cadran1 = 1;
_root.soncadran = 1;
} else if ((_root.choixpossible == 1) and (_root.cadran1 == 1)) {
_root.cadran1 = 0;
_root.soncadran = 1;
}
}
Symbol 117 Button
on (press) {
if ((_root.choixpossible == 1) and (_root.cadran2 == 0)) {
_root.cadran2 = 1;
_root.soncadran = 1;
} else if ((_root.choixpossible == 1) and (_root.cadran2 == 1)) {
_root.cadran2 = 0;
_root.soncadran = 1;
}
}
Symbol 118 Button
on (press) {
if ((_root.dollars < 100) and (_root.langue == 0)) {
_root.msg1._visible = true;
_root.msg2._visible = false;
} else if ((_root.dollars < 100) and (_root.langue == 1)) {
_root.msg1._visible = false;
_root.msg2._visible = true;
} else if ((_root.dollars > 99) and (_root.strip == 0)) {
_root.dollars = _root.dollars - 100;
_root.msg1._visible = false;
_root.msg2._visible = false;
gotoAndPlay (8);
}
}
on (release) {
_root.msg1._visible = false;
_root.msg2._visible = false;
}
Symbol 124 Button
on (press) {
if (_root.musique == 1) {
_root.musique = 0;
_root.musicoff._visible = true;
stopAllSounds();
} else if (_root.musique == 0) {
_root.musique = 1;
_root.musicoff._visible = false;
_root.music.start(0, 10000000);
}
}
Symbol 131 MovieClip Frame 105
stop();
_root.choixvid = random(2);
if (_root.choixvid == 0) {
gotoAndPlay (106);
} else if (_root.choixvid == 1) {
gotoAndPlay (230);
}
Symbol 131 MovieClip Frame 229
stop();
_root.choixvid = random(2);
if (_root.choixvid == 0) {
gotoAndPlay (1);
} else if (_root.choixvid == 1) {
gotoAndPlay (230);
}
Symbol 131 MovieClip Frame 337
stop();
_root.choixvid = random(2);
if (_root.choixvid == 0) {
gotoAndPlay (1);
} else if (_root.choixvid == 1) {
gotoAndPlay (106);
}
Symbol 135 Button
on (press) {
if ((_root.dollars < 100) and (_root.langue == 0)) {
_root.msg1._visible = true;
_root.msg2._visible = false;
} else if ((_root.dollars < 100) and (_root.langue == 1)) {
_root.msg1._visible = false;
_root.msg2._visible = true;
} else if ((_root.dollars > 99) and (_root.strip == 0)) {
_root.dollars = _root.dollars - 100;
_root.msg1._visible = false;
_root.msg2._visible = false;
gotoAndPlay (163);
}
}
on (release) {
_root.msg1._visible = false;
_root.msg2._visible = false;
}
Symbol 141 MovieClip Frame 99
stop();
_root.choixvid = random(2);
if (_root.choixvid == 0) {
gotoAndPlay (100);
} else if (_root.choixvid == 1) {
gotoAndPlay (193);
}
Symbol 141 MovieClip Frame 192
stop();
_root.choixvid = random(2);
if (_root.choixvid == 0) {
gotoAndPlay (1);
} else if (_root.choixvid == 1) {
gotoAndPlay (193);
}
Symbol 141 MovieClip Frame 314
stop();
_root.choixvid = random(2);
if (_root.choixvid == 0) {
gotoAndPlay (1);
} else if (_root.choixvid == 1) {
gotoAndPlay (100);
}
Symbol 145 Button
on (press) {
if ((_root.dollars < 100) and (_root.langue == 0)) {
_root.msg1._visible = true;
_root.msg2._visible = false;
} else if ((_root.dollars < 100) and (_root.langue == 1)) {
_root.msg1._visible = false;
_root.msg2._visible = true;
} else if ((_root.dollars > 99) and (_root.strip == 0)) {
_root.dollars = _root.dollars - 100;
_root.msg1._visible = false;
_root.msg2._visible = false;
gotoAndPlay (497);
}
}
on (release) {
_root.msg1._visible = false;
_root.msg2._visible = false;
}
Symbol 151 MovieClip Frame 91
stop();
_root.choixvid = random(2);
if (_root.choixvid == 0) {
gotoAndPlay (92);
} else if (_root.choixvid == 1) {
gotoAndPlay (185);
}
Symbol 151 MovieClip Frame 184
stop();
_root.choixvid = random(2);
if (_root.choixvid == 0) {
gotoAndPlay (1);
} else if (_root.choixvid == 1) {
gotoAndPlay (185);
}
Symbol 151 MovieClip Frame 304
stop();
_root.choixvid = random(2);
if (_root.choixvid == 0) {
gotoAndPlay (1);
} else if (_root.choixvid == 1) {
gotoAndPlay (92);
}
Symbol 155 Button
on (press) {
if ((_root.dollars < 100) and (_root.langue == 0)) {
_root.msg1._visible = true;
_root.msg2._visible = false;
} else if ((_root.dollars < 100) and (_root.langue == 1)) {
_root.msg1._visible = false;
_root.msg2._visible = true;
} else if ((_root.dollars > 99) and (_root.strip == 0)) {
_root.dollars = _root.dollars - 100;
_root.msg1._visible = false;
_root.msg2._visible = false;
gotoAndPlay (730);
}
}
on (release) {
_root.msg1._visible = false;
_root.msg2._visible = false;
}
Symbol 168 Button
on (release) {
gotoAndPlay (6);
}