Frame 1
stop();
Instance of Symbol 133 MovieClip in Frame 1
onClipEvent (enterFrame) {
this._xscale = (_level0.getBytesLoaded() / _level0.getBytesTotal()) * 100;
this._x = 312.5 + (this._width / 2);
((this._xscale == 100) ? (_root.play()) : "");
}
Instance of Symbol 133 MovieClip "b" in Frame 2
/* no clip actions */
Instance of Symbol 133 MovieClip "b" in Frame 15
onClipEvent (enterFrame) {
this._xscale = (_level0.getBytesLoaded() / _level0.getBytesTotal()) * 100;
this._x = 312.5 + (this._width / 2);
((this._xscale == 100) ? (_root.play()) : "");
}
Frame 105
stop();
Instance of Symbol 261 MovieClip "menu" in Frame 105
onClipEvent (load) {
_root.difficulte = 2;
_root.nb_joueurs = 1;
_root.couleur1 = new Color(_root.menu.cmd_couleur1);
_root.transfo1 = new Object();
_root.couleur2 = new Color(_root.menu.cmd_couleur2);
_root.transfo2 = new Object();
}
onClipEvent (enterFrame) {
_root.transfo1 = {rb:_root.rouge1, gb:_root.vert1, bb:_root.bleu1, aa:"100"};
_root.couleur1.setTransform(_root.transfo1);
_root.transfo2 = {rb:_root.rouge2, gb:_root.vert2, bb:_root.bleu2, aa:"100"};
_root.couleur2.setTransform(_root.transfo2);
}
Frame 115
_root.gotoAndPlay(direction);
Frame 116
function creation(prem_ligne, prem_colonne) {
_root.premier_coup = false;
tablo = new Array();
l = 0;
while (l < nb_lignes) {
tablo[l] = [];
c = 0;
while (c < nb_lignes) {
tablo[l].push(0);
c++;
}
l++;
}
nbm = 0;
while (nbm < max_mines) {
l = Math.round((nb_lignes - 1) * Math.random());
c = Math.round((nb_lignes - 1) * Math.random());
if ((prem_ligne == l) && (prem_colonne == c)) {
nbm--;
} else {
((tablo[l][c] == 1) ? (nbm--) : ((tablo[l][c] = 1)));
}
nbm++;
}
}
function recup(colonne, ligne) {
switch (tablo[ligne][colonne]) {
case 0 :
nb = 0;
y = -1;
while (y <= 1) {
x = -1;
while (x <= 1) {
nb = nb + tablo[ligne + y][colonne + x];
x++;
}
y++;
}
((nb == 0) ? ((nb = " ")) : "");
return(nb);
case 1 :
return("perdu");
}
}
function bouton(lacase) {
if (lacase.clique == 2) {
drapo++;
} else {
devoile++;
}
lacase.clique = 1;
lacase.gotoAndPlay(4);
lacase.chiffre = recup(lacase.colonne, lacase.ligne);
switch (lacase.chiffre) {
case "perdu" :
lacase.gotoAndPlay(6);
perdu(lacase);
return;
case " " :
zero(lacase);
return;
default :
lacase.attachMovie("txt", "txt", 0);
lacase.txt.gotoAndPlay(lacase.chiffre);
}
}
function zero(orig) {
orig.yy = -1;
while (orig.yy <= 1) {
orig.xx = -1;
while (orig.xx <= 1) {
if ((!(orig.xx === 0)) || (!(orig.yy === 0))) {
orig.ly = orig.ligne + orig.yy;
orig.cx = orig.colonne + orig.xx;
orig.cible = eval ((("carre" + orig.ly) + "_") + orig.cx);
((orig.cible.clique == 0) ? (bouton(orig.cible)) : "");
}
orig.xx++;
}
orig.yy++;
}
}
function demin(ademiner) {
devoile++;
drapo--;
ademiner.gotoAndPlay(5);
ademiner.clique = 2;
}
function perdu() {
etat = "perdu";
l = 0;
while (l < nb_lignes) {
c = 0;
while (c < nb_lignes) {
clip = eval ((("carre" + l) + "_") + c);
if ((!(clip.clique === 2)) && (tablo[l][c] == 1)) {
clip.gotoAndPlay(6);
}
if ((clip.clique == 2) && (tablo[l][c] == 0)) {
clip.gotoAndPlay(7);
}
c++;
}
l++;
}
fini();
}
function fini() {
_root.attachMovie("clip_fin", "clip_fin", 2000);
clip_fin._x = 225;
clip_fin._y = 225;
clearInterval(I0);
delete _root.onEnterFrame;
Mouse.show();
_root.curseur.removeMovieClip();
if (etat != "perdu") {
(clip_fin.gotoAndPlay(1));// not popped
} else {
(clip_fin.gotoAndPlay(2));// not popped
}
}
Frame 117
mode = (clip_n = 0);
tour = 1;
sec = (minut = (heu = 0));
premier_coup = true;
dif = new Array(40, 25, 20, 16);
largeur_clip = dif[difficulte - 1];
nb_lignes = 400 / largeur_clip;
drapo = (max_mines = 10 * Math.pow(difficulte, 2));
devoile = 0;
etat = "gagne";
_root.attachMovie("curseur", "curseur", 3000);
curseur._xscale = (curseur._yscale = (largeur_clip * 100) / curseur._width);
_root.onEnterFrame = function () {
Mouse.hide();
switch (_root.au_dessus) {
case "" :
curseur._x = _root._xmouse;
curseur._y = _root._ymouse;
return;
default :
curseur._x = _root.au_dessus._x;
curseur._y = _root.au_dessus._y;
}
};
l = 0;
while (l < nb_lignes) {
c = 0;
while (c < nb_lignes) {
_root.attachMovie("carre", (("carre" + l) + "_") + c, clip_n);
clip = eval ((("carre" + l) + "_") + c);
clip._xscale = (clip._yscale = (largeur_clip * 100) / clip._width);
clip._x = (largeur_clip * (c + 0.5)) + 25;
clip._y = (largeur_clip * (l + 0.5)) + 25;
clip_n++;
clip.clique = 0;
clip.colonne = c;
clip.ligne = l;
clip.onRollOver = function () {
if ((etat == "gagne") && (this.clique == 0)) {
this.gotoAndPlay(2);
}
_root.au_dessus = this;
};
clip.onRollOut = function () {
if ((etat == "gagne") && (this.clique == 0)) {
this.gotoAndPlay(1);
}
_root.au_dessus = "";
};
clip.onPress = function () {
if ((etat == "gagne") && (this.clique == 0)) {
this.gotoAndPlay(3);
}
};
clip.onReleaseOutside = function () {
if ((etat == "gagne") && (this.clique == 0)) {
this.gotoAndPlay(1);
}
};
clip.onRelease = function () {
((premier_coup == true) ? (creation(this.ligne, this.colonne)) : "");
if (etat == "gagne") {
switch (mode) {
case 0 :
if (!(this.clique === 1)) {
this.gotoAndPlay(1);
bouton(this);
}
break;
case 1 :
(((this.clique == 0) && (drapo > 0)) ? (demin(this)) : "");
}
if (devoile == (nb_lignes * nb_lignes)) {
fini();
}
}
};
c++;
}
l++;
}
I0 = setInterval(function () {
sec++;
if (sec == 60) {
sec = 0;
minut++;
if (minut == 60) {
minut = 0;
heu++;
}
}
((sec < 10) ? ((sec_ = "0" + sec)) : ((sec_ = sec)));
((minut < 10) ? ((minut_ = "0" + minut)) : ((minut_ = minut)));
((heu < 10) ? ((heu_ = "0" + heu)) : ((heu_ = heu)));
tps = (((heu_ + ":") + minut_) + ":") + sec_;
}, 1000);
stop();
Frame 118
function recup(colonne, ligne) {
switch (tablo[ligne][colonne]) {
case 0 :
nb = 0;
y = -1;
while (y <= 1) {
x = -1;
while (x <= 1) {
nb = nb + tablo[ligne + y][colonne + x];
x++;
}
y++;
}
((nb == 0) ? ((nb = " ")) : "");
return(nb);
case 1 :
return("mine");
}
}
function bouton(lacase) {
lacase.clique = true;
lacase.gotoAndPlay(4);
lacase.chiffre = recup(lacase.colonne, lacase.ligne);
switch (lacase.chiffre) {
case "mine" :
mine(lacase);
return;
case " " :
zero(lacase);
return;
default :
lacase.attachMovie("txt", "txt", 0);
lacase.txt.gotoAndPlay(lacase.chiffre);
}
}
function zero(orig) {
orig.yy = -1;
while (orig.yy <= 1) {
orig.xx = -1;
while (orig.xx <= 1) {
if ((!(orig.xx === 0)) || (!(orig.yy === 0))) {
orig.ly = orig.ligne + orig.yy;
orig.cx = orig.colonne + orig.xx;
orig.cible = eval ((("carre" + orig.ly) + "_") + orig.cx);
((orig.cible.clique == false) ? (bouton(orig.cible)) : "");
}
orig.xx++;
}
orig.yy++;
}
}
function mine(labombe) {
labombe.gotoAndPlay(5);
nb_mines--;
switch (tour) {
case 1 :
menu_j1.score++;
return;
case 2 :
menu_j2.score++;
}
}
function findetour(lacase) {
if (tour == 1) {
if (menu_j1.score > (max_mines / 2)) {
fini(tour);
} else if (!(lacase.chiffre === "mine")) {
tour = 2;
menu_j1._alpha = 33;
menu_j2._alpha = 100;
}
} else if (menu_j2.score > (max_mines / 2)) {
fini(tour);
} else if (!(lacase.chiffre === "mine")) {
tour = 1;
menu_j1._alpha = 100;
menu_j2._alpha = 33;
}
}
function fini(gagnant) {
etat = "joueplus";
_root.attachMovie("clip_fin_2", "clip_fin_2", 2000);
clip_fin_2._x = 225;
clip_fin_2._y = 225;
clearInterval(I0);
delete _root.onEnterFrame;
Mouse.show();
_root.curseur.removeMovieClip();
clip_fin_2.gotoAndPlay(gagnant);
}
Frame 119
sec = (minut = (heu = (clip_n = 0)));
tour = 1;
dif = new Array(40, 25, 20, 16);
largeur_clip = dif[difficulte - 1];
nb_lignes = 400 / largeur_clip;
nb_mines = (max_mines = (10 * Math.pow(difficulte, 2)) + 1);
devoile = 0;
etat = "joue";
_root.attachMovie("curseur", "curseur", 3000);
curseur._xscale = (curseur._yscale = (largeur_clip * 100) / curseur._width);
_root.onEnterFrame = function () {
Mouse.hide();
switch (_root.au_dessus) {
case "" :
curseur._x = _root._xmouse;
curseur._y = _root._ymouse;
return;
default :
curseur._x = _root.au_dessus._x;
curseur._y = _root.au_dessus._y;
}
};
tablo = new Array();
l = 0;
while (l < nb_lignes) {
tablo[l] = [];
c = 0;
while (c < nb_lignes) {
tablo[l].push(0);
c++;
}
l++;
}
nbm = 0;
while (nbm < max_mines) {
l = Math.round((nb_lignes - 1) * Math.random());
c = Math.round((nb_lignes - 1) * Math.random());
((tablo[l][c] == 1) ? (nbm--) : ((tablo[l][c] = 1)));
nbm++;
}
l = 0;
while (l < nb_lignes) {
c = 0;
while (c < nb_lignes) {
_root.attachMovie("carre", (("carre" + l) + "_") + c, clip_n);
clip = eval ((("carre" + l) + "_") + c);
clip._xscale = (clip._yscale = (largeur_clip * 100) / clip._width);
clip._x = (largeur_clip * (c + 0.5)) + 25;
clip._y = (largeur_clip * (l + 0.5)) + 25;
clip_n++;
clip.deminer = false;
clip.clique = false;
clip.colonne = c;
clip.ligne = l;
clip.onRollOver = function () {
if ((etat == "joue") && (this.clique == false)) {
this.gotoAndPlay(2);
}
_root.au_dessus = this;
};
clip.onRollOut = function () {
if ((etat == "joue") && (this.clique == false)) {
this.gotoAndPlay(1);
}
_root.au_dessus = "";
};
clip.onPress = function () {
if ((etat == "joue") && (this.clique == false)) {
this.gotoAndPlay(3);
}
};
clip.onReleaseOutside = function () {
if ((etat == "joue") && (this.clique == false)) {
this.gotoAndPlay(1);
}
};
clip.onRelease = function () {
if ((etat == "joue") && (this.clique == false)) {
this.gotoAndPlay(1);
bouton(this);
findetour(this);
}
};
c++;
}
l++;
}
I0 = setInterval(function () {
sec++;
if (sec == 60) {
sec = 0;
minut++;
if (minut == 60) {
minut = 0;
heu++;
}
}
((sec < 10) ? ((sec_ = "0" + sec)) : ((sec_ = sec)));
((minut < 10) ? ((minut_ = "0" + minut)) : ((minut_ = minut)));
((heu < 10) ? ((heu_ = "0" + heu)) : ((heu_ = heu)));
tps = (((heu_ + ":") + minut_) + ":") + sec_;
}, 1000);
stop();
Frame 144
((etat == "perdu") ? ((txt_fin_gagnant = "Vous avez perdu...")) : ((txt_fin_gagnant = "Vous avez gagn\u00E9 !")));
stop();
Frame 159
_root.gotoAndPlay(direction);
Frame 184
stop();
Frame 199
_root.gotoAndPlay(direction);
Frame 224
stop();
Frame 239
_root.gotoAndPlay(direction);
Symbol 1 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 14 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 24 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 33 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 34 MovieClip [UpArrow] Frame 1
stop();
Symbol 34 MovieClip [UpArrow] Frame 2
stop();
Symbol 34 MovieClip [UpArrow] Frame 3
stop();
Symbol 41 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 48 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 53 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 54 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 62 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 70 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 78 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 79 MovieClip [DownArrow] Frame 1
stop();
Symbol 79 MovieClip [DownArrow] Frame 2
stop();
Symbol 79 MovieClip [DownArrow] Frame 3
stop();
Symbol 91 MovieClip [carre] Frame 1
stop();
Symbol 91 MovieClip [carre] Frame 2
stop();
Symbol 91 MovieClip [carre] Frame 3
stop();
Symbol 91 MovieClip [carre] Frame 4
stop();
Symbol 91 MovieClip [carre] Frame 5
this.couleurdudrapo = new Color(this.couleur_drapo);
switch (_root.tour) {
case 1 :
this.couleurdudrapo.setRGB(_root.couleur_j1);
break;
case 2 :
this.couleurdudrapo.setRGB(_root.couleur_j2);
}
stop();
Symbol 91 MovieClip [carre] Frame 6
stop();
Symbol 91 MovieClip [carre] Frame 7
stop();
Symbol 102 MovieClip [txt] Frame 1
stop();
Symbol 102 MovieClip [txt] Frame 2
stop();
Symbol 102 MovieClip [txt] Frame 3
stop();
Symbol 102 MovieClip [txt] Frame 4
stop();
Symbol 102 MovieClip [txt] Frame 5
stop();
Symbol 102 MovieClip [txt] Frame 6
stop();
Symbol 102 MovieClip [txt] Frame 7
stop();
Symbol 102 MovieClip [txt] Frame 8
stop();
Symbol 102 MovieClip [txt] Frame 9
stop();
Symbol 112 Button
on (release) {
l = 0;
while (l < _root.nb_lignes) {
c = 0;
while (c < _root.nb_lignes) {
clip = eval ((("_level0.carre" + l) + "_") + c);
clip.removeMovieClip();
c++;
}
l++;
}
_root.gotoAndPlay("resultat");
this.removeMovieClip();
}
Symbol 116 MovieClip [clip_fin_2] Frame 1
nom_gagnant = _root.nom1.toUpperCase();
stop();
Symbol 116 MovieClip [clip_fin_2] Frame 2
nom_gagnant = _root.nom2.toUpperCase();
stop();
Symbol 120 Button
on (release) {
l = 0;
while (l < _root.nb_lignes) {
c = 0;
while (c < _root.nb_lignes) {
clip = eval ((("_level0.carre" + l) + "_") + c);
clip.removeMovieClip();
c++;
}
l++;
}
_root.gotoAndPlay("resultat");
this.removeMovieClip();
}
Symbol 122 MovieClip [clip_fin] Frame 1
stop();
Symbol 122 MovieClip [clip_fin] Frame 2
stop();
Symbol 126 MovieClip [curseur] Frame 1
stop();
Symbol 126 MovieClip [curseur] Frame 2
this.couleurdudrapo = new Color(this.couleur_drapo);
this.couleurdudrapo.setRGB(_root.couleur_j1);
stop();
Symbol 129 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 130 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var tmp = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
tmp = Math.min(tmp, this.maxPos);
this.setScrollPosition(Math.max(tmp, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var wasEnabled = this.enable;
if (enabledFlag && (!wasEnabled)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (wasEnabled)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var delt = this.smallScroll;
if (inc != "one") {
delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var newPos = (this.getScrollPosition() + (mode * delt));
if (newPos > this.maxPos) {
newPos = this.maxPos;
} else if (newPos < this.minPos) {
newPos = this.minPos;
}
this.setScrollPosition(newPos);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var c = this.controller;
c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var pos = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxhscroll));
} else {
var pos = this.textField.scroll;
var pageSize = (this.textField.bottomScroll - this.textField.scroll);
this.setScrollProperties(pageSize, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 175 Button
on (release) {
gotoAndPlay (200);
}
Symbol 227 Button
on (release) {
_root.choix_couleur1.play();
}
Symbol 228 Button
on (release) {
_root.choix_couleur2.play();
}
Symbol 238 Button
on (release) {
dif1._alpha = 100;
dif2._alpha = 50;
dif3._alpha = 50;
dif4._alpha = 50;
_root.difficulte = 1;
}
Symbol 242 Button
on (release) {
dif1._alpha = 50;
dif2._alpha = 100;
dif3._alpha = 50;
dif4._alpha = 50;
_root.difficulte = 2;
}
Symbol 246 Button
on (release) {
dif1._alpha = 50;
dif2._alpha = 50;
dif3._alpha = 100;
dif4._alpha = 50;
_root.difficulte = 3;
}
Symbol 250 Button
on (release) {
dif1._alpha = 50;
dif2._alpha = 50;
dif3._alpha = 50;
dif4._alpha = 100;
_root.difficulte = 4;
}
Symbol 257 Button
on (release) {
cmd_1j._alpha = 100;
cmd_2j._alpha = 50;
_root.nb_joueurs = 1;
}
Symbol 260 Button
on (release) {
cmd_1j._alpha = 50;
cmd_2j._alpha = 100;
_root.nb_joueurs = 2;
}
Symbol 261 MovieClip Frame 1
stop();
Symbol 267 Button
on (release) {
play();
}
Instance of Symbol 274 MovieClip in Symbol 275 MovieClip Frame 1
onClipEvent (load) {
this._x = (_parent.val / 2.5) - 51;
}
on (press) {
this.onEnterFrame = function () {
if ((_parent._xmouse <= 51) && (_parent._xmouse >= -51)) {
this._x = Math.round(_parent._xmouse);
}
_parent.val = Math.round((this._x + 51) * 2.5);
};
}
on (release) {
delete this.onEnterFrame;
}
on (releaseOutside) {
delete this.onEnterFrame;
}
Symbol 276 MovieClip Frame 1
_root.menu.cmd_couleur1.enabled = true;
stop();
Instance of Symbol 275 MovieClip "j1_rouge" in Symbol 276 MovieClip Frame 1
onClipEvent (load) {
val = 255;
}
onClipEvent (enterFrame) {
_root.rouge1 = val;
}
Instance of Symbol 275 MovieClip "j1_vert" in Symbol 276 MovieClip Frame 1
onClipEvent (load) {
val = 0;
}
onClipEvent (enterFrame) {
_root.vert1 = val;
}
Instance of Symbol 275 MovieClip "j1_bleu" in Symbol 276 MovieClip Frame 1
onClipEvent (load) {
val = 0;
}
onClipEvent (enterFrame) {
_root.bleu1 = val;
}
Symbol 276 MovieClip Frame 15
_root.menu.cmd_couleur1.enabled = false;
stop();
Symbol 278 MovieClip Frame 1
_root.menu.cmd_couleur2.enabled = true;
stop();
Instance of Symbol 275 MovieClip "j2_rouge" in Symbol 278 MovieClip Frame 1
onClipEvent (load) {
val = 0;
}
onClipEvent (enterFrame) {
_root.rouge2 = val;
}
Instance of Symbol 275 MovieClip "j2_vert" in Symbol 278 MovieClip Frame 1
onClipEvent (load) {
val = 0;
}
onClipEvent (enterFrame) {
_root.vert2 = val;
}
Instance of Symbol 275 MovieClip "j2_bleu" in Symbol 278 MovieClip Frame 1
onClipEvent (load) {
val = 255;
}
onClipEvent (enterFrame) {
_root.bleu2 = val;
}
Symbol 278 MovieClip Frame 15
_root.menu.cmd_couleur2.enabled = false;
stop();
Symbol 279 Button
on (release) {
direction = "img_aide";
play();
}
Symbol 280 Button
on (release) {
direction = "img_credi";
play();
}
Symbol 281 Button
on (release) {
_root.nom1 = menu.nom1;
_root.nom2 = menu.nom2;
couleur_j1 = "0x" + couleur1.getRGB().toString(16);
couleur_j2 = "0x" + couleur2.getRGB().toString(16);
switch (_root.nb_joueurs) {
case 1 :
gotoAndPlay (116);
break;
case 2 :
gotoAndPlay (118);
}
}
Symbol 286 Button
on (release) {
_root.mode = 0;
cmd_recherche._alpha = 100;
cmd_demin._alpha = 50;
_root.curseur.gotoAndPlay(1);
}
on (keyPress "<Space>") {
if (_root.mode == 1) {
_root.mode = 0;
cmd_recherche._alpha = 100;
cmd_demin._alpha = 50;
_root.curseur.gotoAndPlay(1);
} else {
_root.mode = 1;
cmd_demin._alpha = 100;
cmd_recherche._alpha = 50;
_root.curseur.gotoAndPlay(2);
}
}
Symbol 290 Button
on (release) {
_root.mode = 1;
cmd_demin._alpha = 100;
cmd_recherche._alpha = 50;
_root.curseur.gotoAndPlay(2);
}
Symbol 296 MovieClip Frame 1
txt_nom1.textColor = _root.couleur_j1;
nom1 = _root.nom1;
score1 = 0;
stop();
Symbol 300 Button
on (release) {
_root.perdu();
}
Symbol 305 MovieClip Frame 1
txt_nom.textColor = (txt_score.textColor = _root.couleur_j1);
nom = _root.nom1;
score = 0;
stop();
Symbol 310 Button
on (release) {
((_root.tour == 1) ? (_root.fini(2)) : (_root.fini(1)));
}
Symbol 314 MovieClip Frame 1
txt_nom.textColor = (txt_score.textColor = _root.couleur_j2);
nom = _root.nom2;
score = 0;
stop();
Symbol 320 MovieClip Frame 1
fin_de_partie = ("FIN DE PARTIE - " + _root.nb_joueurs) + " JOUEUR";
switch (_root.nb_joueurs) {
case 1 :
titre_result = "R\u00E9sultat:";
break;
case 2 :
titre_result = "Gagnant:";
fin_de_partie = fin_de_partie + "S";
}
stop();
Symbol 323 Button
on (release) {
switch (_root.nb_joueurs) {
case 1 :
_root.direction = "img_jeu1";
break;
case 2 :
_root.direction = "img_jeu2";
}
_root.play();
}
Symbol 326 Button
on (release) {
_root.direction = "img_menu";
_root.play();
}
Symbol 329 Button
on (release) {
_root.fscommand("quit");
}
Symbol 332 MovieClip Frame 1
tps = _root.tps;
switch (_root.nb_joueurs) {
case 1 :
((_root.etat == "perdu") ? ((txt_fin_gagnant = "Vous avez perdu...")) : ((txt_fin_gagnant = "Vous avez gagn\u00E9 !")));
break;
case 2 :
nom_gagnant = eval ("_root.nom" + _root.tour);
txt_fin_gagnant = ((nom_gagnant + " (Joueur ") + _root.tour) + ")";
}
stop();
Symbol 336 Button
on (release) {
direction = "img_menu";
play();
}
Instance of Symbol 130 MovieClip [FScrollBarSymbol] in Symbol 340 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "txt_aide";
horizontal = false;
}