home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 160 / MOBICLIC160.ISO / pc / DATA / QZZ160 / QZZ160_00 / QZZ160_00.swf / scripts / frame_295 / DoAction.as < prev   
Encoding:
Text File  |  2013-12-16  |  34.3 KB  |  1,077 lines

  1. function clearAllInterval(lFrom)
  2. {
  3.    trace("clearAllInterval M3 from : " + lFrom);
  4.    _clearInterval("IntervalRemplisBarre");
  5.    _clearInterval("IntervalLanceBruitageChrono");
  6.    _clearInterval("IntervalVIRTUEL");
  7.    _clearInterval("IntervalIndice1");
  8.    _clearInterval("IntervalIndice2");
  9.    _clearInterval("IntervalIndice3");
  10. }
  11. function testeReponseM3(lClip)
  12. {
  13.    trace("testeReponseM3");
  14.    trace("lCLip = " + lCLip);
  15.    gJeuOn = false;
  16.    desactiveTOUT();
  17.    gRemplisBarreOK = undefined;
  18.    clearAllInterval("testeReponseM3");
  19.    trace("lClip.texte_REPONSE = " + lClip.texte_REPONSE);
  20.    gResult = lClip.texte_REPONSE.text.toLowerCase();
  21.    gResult = videEspaces(gResult);
  22.    trace("________REPONSE__________________ " + gResult);
  23.    gQuestionNum = gQuestionNumLM.split("_")[0];
  24.    var _loc6_ = [];
  25.    XmlLM = moduleInfo.returnNodeByPath("Module." + gLangue + ".LegendesMedias");
  26.    gReponseOK = gereTextes.getTextById(XmlLM,"LM_R" + gimme2digits(gQuestionNum) + "A");
  27.    _loc6_.push(videEspaces(gReponseOK.toLowerCase()));
  28.    var _loc8_ = gereTextes.getTextById(XmlLM,"LM_E" + gimme2digits(gQuestionNum));
  29.    _loc8_ = _loc8_.split(",");
  30.    var _loc3_ = 0;
  31.    while(_loc3_ < _loc8_.length)
  32.    {
  33.       var _loc7_ = videEspaces(_loc8_[_loc3_].toLowerCase());
  34.       _loc6_.push(_loc7_);
  35.       _loc3_ = _loc3_ + 1;
  36.    }
  37.    var _loc9_ = false;
  38.    _loc3_ = 0;
  39.    while(_loc3_ < _loc6_.length)
  40.    {
  41.       var _loc5_ = _loc6_[_loc3_].split("+");
  42.       var _loc2_ = _loc5_.length;
  43.       if(_loc2_ == 1)
  44.       {
  45.          if(gResult.indexOf(_loc6_[_loc3_]) !== -1)
  46.          {
  47.             _loc9_ = true;
  48.             break;
  49.          }
  50.       }
  51.       else
  52.       {
  53.          var _loc4_ = 0;
  54.          var _loc1_ = 0;
  55.          while(_loc1_ < _loc2_)
  56.          {
  57.             if(gResult.indexOf(_loc5_[_loc1_]) !== -1)
  58.             {
  59.                _loc4_ += 1;
  60.             }
  61.             _loc1_ = _loc1_ + 1;
  62.          }
  63.          if(_loc4_ == _loc2_)
  64.          {
  65.             _loc9_ = true;
  66.             break;
  67.          }
  68.       }
  69.       _loc3_ = _loc3_ + 1;
  70.    }
  71.    if(getPos(_loc6_,gResult) !== -1 || _loc9_ == true)
  72.    {
  73.       trace("bonne reponse");
  74.       gBonneRep = true;
  75.       gListeJoueurMixed[gJoueur - 1].gListeReponseManche.push("A");
  76.    }
  77.    else
  78.    {
  79.       trace("mauvaise reponse");
  80.       gBonneRep = false;
  81.       gListeJoueurMixed[gJoueur - 1].gListeReponseManche.push("B");
  82.    }
  83.    joueBruitage({nomSon:"B_LETTRE",actionFin:"testeReponseDone"});
  84. }
  85. function initManche()
  86. {
  87.    var _loc2_ = 0;
  88.    while(_loc2_ < gNbJoueurs_M[gManche - 1])
  89.    {
  90.       trace("initManche");
  91.       trace("i = " + _loc2_);
  92.       trace("gListeJoueurMixed[i].Avatar = " + gListeJoueurMixed[_loc2_].Avatar);
  93.       this["JOUEUR_" + (_loc2_ + 1)].gotoAndPlay("A" + gListeJoueurMixed[_loc2_].Avatar);
  94.       this["BORNE_" + (_loc2_ + 1)].texte_PSEUDO.text = gListeJoueurMixed[_loc2_].Pseudo;
  95.       this["BORNE_" + (_loc2_ + 1)].LETTRE.texte_LETTRE.text = "";
  96.       this["BORNE_" + (_loc2_ + 1)].SCORE.texte_SCORE.text = String(gListeJoueurMixed[_loc2_].Score);
  97.       if(gListeJoueurMixed[_loc2_].Type == "REEL")
  98.       {
  99.          this["BORNE_" + (_loc2_ + 1)].BARIL.PICTO_ORDI._visible = false;
  100.       }
  101.       _loc2_ = _loc2_ + 1;
  102.    }
  103.    gJoueur = 1;
  104.    gNoQuestion = 1;
  105. }
  106. function lanceQuestion()
  107. {
  108.    gClipReponse = undefined;
  109.    gValuePoint = 4;
  110.    if(gNoQuestion == 1 && gJoueur == 1)
  111.    {
  112.       gotoAndPlay("JEU_M" + gManche + "_C" + gTypePartie);
  113.    }
  114.    if(gNoQuestion == 1 && gListeJoueurMixed[gJoueur - 1].Type == "REEL")
  115.    {
  116.       gTimerJoueur = getTimer();
  117.    }
  118.    eteintJoueurs();
  119.    allumeJoueur();
  120.    var _loc11_ = this["BORNE_" + gJoueur].LETTRE;
  121.    _loc11_.gotoAndPlay("E1");
  122.    var _loc6_ = this["BORNE_" + gJoueur].LETTRE.texte_LETTRE;
  123.    _loc6_.text = "";
  124.    if(gListeJoueurMixed[gJoueur - 1].Type == "REEL")
  125.    {
  126.       coupeBruitPerso();
  127.    }
  128.    this["JOUEUR_" + gJoueur].AVATAR.gotoAndPlay("E2");
  129.    gereTextes.videLM();
  130.    var _loc5_ = this["TABLEAU_M" + gManche];
  131.    _loc5_._visible = true;
  132.    var _loc13_ = _loc5_.ZAP;
  133.    if(gListeJoueurMixed[gJoueur - 1].Type == "VIRTUEL")
  134.    {
  135.       gJeuOn = false;
  136.       _loc5_.texte_REPONSE.type = "dynamic";
  137.       _loc5_.texte_REPONSE.selectable = false;
  138.       _loc13_._visible = true;
  139.       _loc13_.pIB = "IB_ZAP";
  140.       _loc13_.onRollOver = function()
  141.       {
  142.          gereCursor(2);
  143.          this.gotoAndPlay("E2");
  144.          gereTextes.afficheIB({codeIB:this.pIB,X:740,Y:300});
  145.       };
  146.       _loc13_.onRollOut = function()
  147.       {
  148.          gereCursor(1);
  149.          this.gotoAndPlay("E1");
  150.          gereTextes.masqueIB();
  151.       };
  152.       _loc13_.onPress = function()
  153.       {
  154.          gRemplisBarreOK = undefined;
  155.          desactiveTOUT();
  156.          clearAllInterval("CLIC ZAP");
  157.          gereTextes.masqueIB();
  158.          gereCursor(1);
  159.          this.gotoAndPlay("E1");
  160.          var _loc9_ = gListeReponse.length;
  161.          var _loc6_ = gNoQuestion;
  162.          var _loc4_ = gNoQuestion;
  163.          while(_loc4_ <= gListeNbQ_M[gManche - 1])
  164.          {
  165.             if(randomValue(0,100) < 95)
  166.             {
  167.                if(randomValue(0,100) < 90)
  168.                {
  169.                   var _loc3_ = getPos(gListeReponse,"A");
  170.                }
  171.                else
  172.                {
  173.                   _loc3_ = getPos(gListeReponse,"B");
  174.                }
  175.             }
  176.             else
  177.             {
  178.                _loc3_ = undefined;
  179.             }
  180.             trace("gNoQuestion = " + gNoQuestion);
  181.             if(_loc3_ !== undefined)
  182.             {
  183.                trace("________REPONSE__________________ " + gListeReponse[_loc3_]);
  184.                trace("_________POS_________________ " + _loc3_);
  185.                gListeJoueurMixed[gJoueur - 1].gListeReponseManche.push(gListeReponse[_loc3_]);
  186.                gListeJoueurMixed[gJoueur - 1].gListePosReponseManche.push(_loc3_);
  187.             }
  188.             else
  189.             {
  190.                gListeJoueurMixed[gJoueur - 1].gListeReponseManche.push(0);
  191.                gListeJoueurMixed[gJoueur - 1].gListePosReponseManche.push(-1);
  192.             }
  193.             if(gListeReponse[_loc3_] == "A")
  194.             {
  195.                if(_loc4_ == _loc6_)
  196.                {
  197.                   gListeJoueurMixed[gJoueur - 1].Score += gValuePoint;
  198.                }
  199.                else
  200.                {
  201.                   gListeJoueurMixed[gJoueur - 1].Score += randomValue(1,4);
  202.                }
  203.                var _loc5_ = _root["BORNE_" + gJoueur].SCORE.texte_SCORE;
  204.                _loc5_.text = String(gListeJoueurMixed[gJoueur - 1].Score);
  205.             }
  206.             gNoQuestion += 1;
  207.             gListeReponse = randomiseList(gList_ABC);
  208.             gListeJoueurMixed[gJoueur - 1].gListeTirageReponseManche.push(gListeReponse);
  209.             trace("gListeReponse = " + gListeReponse);
  210.             _loc4_ = _loc4_ + 1;
  211.          }
  212.          joueBruitage({nomSon:"B_ZAP",actionFin:"suiteReponse"});
  213.       };
  214.    }
  215.    else
  216.    {
  217.       gJeuOn = true;
  218.       _loc5_.texte_REPONSE.type = "input";
  219.       _loc5_.texte_REPONSE.editable = true;
  220.       _loc5_.texte_REPONSE.selectable = true;
  221.       _loc13_._visible = false;
  222.    }
  223.    trace("gListePartieQ[gManche-1] = " + gListePartieQ[gManche - 1]);
  224.    trace("gListePartieQ[gManche-1][gJoueur-1] = " + gListePartieQ[gManche - 1][gJoueur - 1]);
  225.    trace("gNoQuestion = " + gNoQuestion);
  226.    gQuestionNum = gimme2digits(gListePartieQ[gManche - 1][gJoueur - 1][gNoQuestion - 1]);
  227.    gQuestionNumLM = gQuestionNum + "_3";
  228.    trace("gQuestionNumLM = " + gQuestionNumLM);
  229.    gereTextes.afficheLM({mc:_loc5_,codeLM:"LM_Q" + gQuestionNumLM});
  230.    var _loc10_ = _loc5_["LM_Q" + gQuestionNumLM];
  231.    var _loc12_ = 30;
  232.    if(_loc10_.LM.texte._height < _loc12_)
  233.    {
  234.       _loc10_._y += _loc10_.LM.texte._height / 2;
  235.    }
  236.    CAPITAINE.gotoAndPlay("E1");
  237.    _loc13_ = _loc5_.POINT.texte_POINT;
  238.    if(gManche < 3)
  239.    {
  240.       _loc13_.text = String(gManche);
  241.    }
  242.    else
  243.    {
  244.       _loc13_.text = String(gValuePoint);
  245.    }
  246.    _loc5_.texte_REPONSE.text = "";
  247.    _loc5_.texte_REPONSE.textColor = "0x000000";
  248.    if(gListeJoueurMixed[gJoueur - 1].Type == "REEL")
  249.    {
  250.       _loc5_.texte_REPONSE.onChanged = function()
  251.       {
  252.          joueBruitage({nomSon:"B_TAPE"});
  253.          if(this.text !== "")
  254.          {
  255.             if(gBT_OKactif == undefined)
  256.             {
  257.                initBT_OK();
  258.             }
  259.          }
  260.          else if(gBT_OKactif == true)
  261.          {
  262.             desinitBT_OK();
  263.          }
  264.       };
  265.    }
  266.    _loc13_ = _loc5_["ROND_" + (gNoQuestion - 1)];
  267.    _loc13_.gotoAndPlay("E3");
  268.    _loc13_ = _loc5_["ROND_" + gNoQuestion];
  269.    _loc13_.gotoAndPlay("E2");
  270.    gList_ABC = ["A","B","C"];
  271.    var _loc4_ = 1;
  272.    while(_loc4_ < 4)
  273.    {
  274.       var _loc8_ = _loc5_["INDICE_" + gimme2digits(_loc4_)];
  275.       _loc6_ = _loc5_["texte_LMI" + gimme2digits(_loc4_)];
  276.       _loc8_._visible = false;
  277.       _loc6_._visible = false;
  278.       _loc4_ = _loc4_ + 1;
  279.    }
  280.    gIndice = 0;
  281.    gDone = 0;
  282.    desinitBT_OK();
  283.    XmlLM = this.moduleInfo.returnNodeByPath("Module." + gLangue + ".LegendesMedias");
  284.    gReponseOK = gereTextes.getTextById(XmlLM,"LM_R" + gimme2digits(Number(gQuestionNumLM.split("_")[0])) + "A");
  285.    clearAllInterval("lanceQuestion");
  286.    if(gListeJoueurMixed[gJoueur - 1].Type == "VIRTUEL")
  287.    {
  288.       _setInterval({nomInterval:"IntervalVIRTUEL",mc:this,fonction:"reponseVirtuelle",duree:randomValue(50,gListeTimerM[gManche - 1] * 1000 - 100)});
  289.    }
  290.    gBT_OKactif = undefined;
  291.    _loc5_.COMPTEUR_T.masque._y = -132;
  292.    gTimer = getTimer();
  293.    gTimerPause = 0;
  294.    gRemplisBarreOK = true;
  295.    trace("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% M3 creation Intervals");
  296.    _setInterval({nomInterval:"IntervalIndice1",mc:this,fonction:"remplisIndice",duree:gListeTimerM[gManche - 1] * 1000 / 4});
  297.    _setInterval({nomInterval:"IntervalIndice2",mc:this,fonction:"remplisIndice",duree:gListeTimerM[gManche - 1] * 1000 / 2});
  298.    _setInterval({nomInterval:"IntervalIndice3",mc:this,fonction:"remplisIndice",duree:gListeTimerM[gManche - 1] * 1000 * 0.75});
  299.    _setInterval({nomInterval:"IntervalRemplisBarre",mc:this,fonction:"remplisBarre",duree:100});
  300.    _setInterval({nomInterval:"IntervalLanceBruitageChrono",mc:this,fonction:"lanceB_CHRONO",duree:gListeTimerM[gManche - 1] * 1000 - 2191});
  301. }
  302. function lanceB_CHRONO()
  303. {
  304.    if(gRemplisBarreOK == true)
  305.    {
  306.       trace("AV M3 IntervalLanceBruitageChrono = " + IntervalLanceBruitageChrono);
  307.       _clearInterval("IntervalLanceBruitageChrono");
  308.       trace("AP M3 IntervalLanceBruitageChrono = " + IntervalLanceBruitageChrono);
  309.       joueBruitage({nomSon:"B_CHRONO"});
  310.    }
  311. }
  312. function remplisBarre()
  313. {
  314.    if(gRemplisBarreOK == true)
  315.    {
  316.       gTemps = getTimer() - (gTimer + gTimerPause);
  317.       var _loc6_ = gTemps * 100 / (gListeTimerM[gManche - 1] * 1000);
  318.       var _loc4_ = this["TABLEAU_M" + gManche];
  319.       var _loc5_ = _loc4_.COMPTEUR_T.masque;
  320.       _loc5_._y = -132 + 69 * _loc6_ / 100;
  321.       if(_loc5_._y >= -63)
  322.       {
  323.          desactiveTOUT();
  324.          var _loc2_ = 0;
  325.          while(_loc2_ < gListeReponse.length)
  326.          {
  327.             var _loc3_ = _loc4_["REPONSE_" + gList_ABC[_loc2_]];
  328.             _loc3_.gotoAndPlay("E1");
  329.             _loc2_ = _loc2_ + 1;
  330.          }
  331.          trace("fin descente ");
  332.          trace("combien = " + (getTimer() - gTimer));
  333.          _loc5_._y = -63;
  334.          clearAllInterval("fin remplisBarre");
  335.          gListeJoueurMixed[gJoueur - 1].gListeReponseManche.push(0);
  336.          testeReponseDone();
  337.       }
  338.    }
  339.    else
  340.    {
  341.       trace("M3 BUG DEJOUE remplisBarre !!!!!!!!");
  342.       clearAllInterval("BUG DEJOUE remplisBarre");
  343.    }
  344. }
  345. function reponseVirtuelle()
  346. {
  347.    if(gRemplisBarreOK == true)
  348.    {
  349.       if(gListeJoueurMixed[gJoueur - 1].Type == "VIRTUEL")
  350.       {
  351.          var _loc3_ = this["TABLEAU_M" + gManche];
  352.          trace("reponseVirtuelle");
  353.          trace("myClip0 = " + _loc3_);
  354.          trace("AV M3 IntervalVIRTUEL = " + IntervalVIRTUEL);
  355.          _clearInterval("IntervalVIRTUEL");
  356.          trace("AP M3 IntervalVIRTUEL = " + IntervalVIRTUEL);
  357.          gBonneRep = false;
  358.          if(randomValue(0,100) < 95)
  359.          {
  360.             gRemplisBarreOK = undefined;
  361.             desactiveTOUT();
  362.             clearAllInterval("reponseVirtuelle");
  363.             if(randomValue(0,100) < 90)
  364.             {
  365.                var _loc4_ = gReponseOK.length;
  366.                gListeJoueurMixed[gJoueur - 1].gListeReponseManche.push("A");
  367.                gBonneRep = true;
  368.                trace("reponseVirtuelle : bonne r├⌐ponse");
  369.             }
  370.             else
  371.             {
  372.                _loc4_ = randomValue(4,8);
  373.                gListeJoueurMixed[gJoueur - 1].gListeReponseManche.push("B");
  374.                trace("reponseVirtuelle : mauvaise r├⌐ponse");
  375.             }
  376.             var _loc2_ = 1;
  377.             while(_loc2_ <= _loc4_)
  378.             {
  379.                _loc3_.texte_REPONSE.text += "*";
  380.                _loc2_ = _loc2_ + 1;
  381.             }
  382.             _clearInterval("IntervalApresReponseVirtuelle");
  383.             gClicVirtuelOK = true;
  384.             trace("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% M3 creation Interval clicOkVirtuel");
  385.             _setInterval({nomInterval:"IntervalApresReponseVirtuelle",mc:this,fonction:"clicOkVirtuel",duree:1000});
  386.          }
  387.          else
  388.          {
  389.             trace("reponseVirtuelle : ne repondra pas");
  390.          }
  391.       }
  392.       else
  393.       {
  394.          trace("M3 REPONSEVIRTUELLE DETECTEE ALORS QUE JOUEUR REEL !!!!!!!!");
  395.          trace("AV M3 IntervalVIRTUEL = " + IntervalVIRTUEL);
  396.          _clearInterval("IntervalVIRTUEL");
  397.          trace("AP M3 IntervalVIRTUEL = " + IntervalVIRTUEL);
  398.       }
  399.    }
  400.    else
  401.    {
  402.       trace("M3 BUG DEJOUE reponseVirtuelle !!!!!!!!");
  403.       clearAllInterval("reponseVirtuelle");
  404.    }
  405. }
  406. function clicOkVirtuel()
  407. {
  408.    if(gClicVirtuelOK == true)
  409.    {
  410.       gClicVirtuelOK = undefined;
  411.       trace("clicOkVirtuel M3");
  412.       trace("AV M3 IntervalApresReponseVirtuelle = " + IntervalApresReponseVirtuelle);
  413.       _clearInterval("IntervalApresReponseVirtuelle");
  414.       trace("AP M3 IntervalApresReponseVirtuelle = " + IntervalApresReponseVirtuelle);
  415.       var _loc2_ = this["TABLEAU_M" + gManche];
  416.       var _loc4_ = _loc2_.BT_OK;
  417.       _loc4_.gotoAndPlay("E2");
  418.       joueBruitage({nomSon:"B_ROLL_OK"});
  419.       var _loc3_ = _loc2_.ZAP;
  420.       _loc3_.gotoAndPlay("E1");
  421.       gereTextes.masqueIB();
  422.       joueBruitage({nomSon:"B_LETTRE",actionFin:"testeReponseDone"});
  423.    }
  424.    else
  425.    {
  426.       trace("M3 BUG DEJOUE clicOkVirtuel !!!!!!!!");
  427.       _clearInterval("IntervalApresReponseVirtuelle");
  428.    }
  429. }
  430. function initBT_OK()
  431. {
  432.    gKeyDown = undefined;
  433.    Key.addListener(KeyListener);
  434.    gBT_OKactif = true;
  435.    var myClip0 = this["TABLEAU_M" + gManche];
  436.    var _loc2_ = myClip0.BT_OK;
  437.    _loc2_._alpha = 100;
  438.    trace("myClip = " + _loc2_);
  439.    _loc2_.mc = myClip0;
  440.    _loc2_.onRollOver = function()
  441.    {
  442.       if(gDone == 0)
  443.       {
  444.          gereCursor(2);
  445.          this.gotoAndPlay("E2");
  446.          joueBruitage({nomSon:"B_ROLL_OK"});
  447.       }
  448.    };
  449.    _loc2_.onRollOut = function()
  450.    {
  451.       if(gDone == 0)
  452.       {
  453.          gereCursor(1);
  454.          this.gotoAndPlay("E1");
  455.          stopBruitage({nomSon:"B_ROLL_OK"});
  456.       }
  457.    };
  458.    _loc2_.onPress = function()
  459.    {
  460.       if(gDone == 0)
  461.       {
  462.          trace("REPONSE CLIC");
  463.          this.gotoAndPlay("E1");
  464.          trace("myClip0 = " + myClip0);
  465.          this.mc.texte_REPONSE.type = "dynamic";
  466.          this.mc.texte_REPONSE.editable = false;
  467.          gRemplisBarreOK = undefined;
  468.          clearAllInterval("CLIC BT_OK");
  469.          gereCursor(1);
  470.          stopBruitage({nomSon:"B_ROLL_OK"});
  471.          gDone = 1;
  472.          testeReponseM3(this.mc);
  473.       }
  474.    };
  475. }
  476. function testeReponseDone()
  477. {
  478.    var _loc2_ = this["TABLEAU_M" + gManche];
  479.    _loc2_.texte_REPONSE.text = gReponseOK;
  480.    if(gListeJoueurMixed[gJoueur - 1].Type == "REEL")
  481.    {
  482.       gListeJoueurMixed[gJoueur - 1].TempsReponse = getTimer() - gTimerJoueur;
  483.    }
  484.    var _loc4_ = this["JOUEUR_" + gJoueur].AVATAR;
  485.    var _loc3_ = this["BORNE_" + gJoueur].LETTRE;
  486.    var _loc6_ = this["BORNE_" + gJoueur].SCORE.texte_SCORE;
  487.    var _loc7_ = gListeJoueurMixed[gJoueur - 1].gListeReponseManche[gNoQuestion - 1];
  488.    trace("myClip0.texte_REPONSE.textColor = " + _loc2_.texte_REPONSE.textColor);
  489.    switch(_loc7_)
  490.    {
  491.       case 0:
  492.          _loc3_.gotoAndPlay("E2");
  493.          _loc4_.gotoAndPlay("E4");
  494.          joueBruitage({nomSon:"B_REPONSE_E",actionFin:"suiteReponse"});
  495.          break;
  496.       case "A":
  497.          _loc2_.texte_REPONSE.textColor = "0x0000FF";
  498.          gListeJoueurMixed[gJoueur - 1].Score += gValuePoint;
  499.          _loc6_.text = String(gListeJoueurMixed[gJoueur - 1].Score);
  500.          _loc3_.gotoAndPlay("E3");
  501.          var _loc5_ = this["BORNE_" + gJoueur].LETTRE.texte_LETTRE;
  502.          _loc5_.text = "";
  503.          _loc4_.gotoAndPlay("E3");
  504.          joueBruitage({nomSon:"B_REPONSE_S",actionFin:"suiteReponse"});
  505.          break;
  506.       default:
  507.          _loc2_.texte_REPONSE.textColor = "0xFF0000";
  508.          _loc3_.gotoAndPlay("E4");
  509.          _loc5_ = this["BORNE_" + gJoueur].LETTRE.texte_LETTRE;
  510.          _loc5_.text = "";
  511.          _loc4_.gotoAndPlay("E4");
  512.          joueBruitage({nomSon:"B_REPONSE_E",actionFin:"suiteReponse"});
  513.    }
  514. }
  515. function suiteReponse()
  516. {
  517.    var _loc4_ = this["TABLEAU_M" + gManche];
  518.    gRemplisBarreOK = undefined;
  519.    clearAllInterval("suiteReponse");
  520.    if(gNoQuestion < gListeNbQ_M[gManche - 1])
  521.    {
  522.       gNoQuestion += 1;
  523.       CAPITAINE.gotoAndPlay("E2");
  524.       joueSon({nomSon:"M" + gManche + "_Q" + gNoQuestion,actionFin:"lanceQuestion"});
  525.    }
  526.    else
  527.    {
  528.       trace("gJoueur = " + gJoueur);
  529.       trace("gListeJoueurMixed[gJoueur-1].gListeReponseManche = " + gListeJoueurMixed[gJoueur - 1].gListeReponseManche);
  530.       var _loc6_ = this["BORNE_" + gJoueur].BARIL;
  531.       _loc6_.gotoAndPlay("E1");
  532.       if(gListeJoueurMixed[gJoueur - 1].Type == "REEL")
  533.       {
  534.          this["BORNE_" + gJoueur].BARIL.PICTO_ORDI._visible = false;
  535.       }
  536.       _loc4_._visible = false;
  537.       var _loc3_ = this["BORNE_" + gJoueur].LETTRE;
  538.       _loc3_.gotoAndPlay("E1");
  539.       var _loc2_ = this["BORNE_" + gJoueur].LETTRE.texte_LETTRE;
  540.       trace("myClip2 = " + _loc2_);
  541.       _loc2_.text = "";
  542.       if(gJoueur < gNbJoueurs_M[gManche - 1])
  543.       {
  544.          gJoueur += 1;
  545.          eteintJoueurs();
  546.          allumeJoueur();
  547.          _loc6_ = this["BORNE_" + gJoueur].BARIL;
  548.          _loc6_.gotoAndPlay("E2");
  549.          if(gListeJoueurMixed[gJoueur - 1].Type == "REEL")
  550.          {
  551.             this["BORNE_" + gJoueur].BARIL.PICTO_ORDI._visible = false;
  552.          }
  553.          _loc3_ = this["BORNE_" + gJoueur].LETTRE;
  554.          _loc3_.gotoAndPlay("E1");
  555.          _loc2_ = this["BORNE_" + gJoueur].LETTRE.texte_LETTRE;
  556.          _loc2_.text = "";
  557.          gNoQuestion = 1;
  558.          CAPITAINE.gotoAndPlay("E2");
  559.          if(gListeJoueurMixed[gJoueur - 1].Type == "REEL")
  560.          {
  561.             var _loc5_ = "M" + gManche + "_01";
  562.          }
  563.          else
  564.          {
  565.             _loc5_ = "M" + gManche + "_01" + "_V";
  566.          }
  567.          joueSon({nomSon:_loc5_,actionFin:"initLanceManche"});
  568.       }
  569.       else
  570.       {
  571.          trace("fin manche");
  572.          _loc3_ = this["BORNE_" + gJoueur].LETTRE;
  573.          _loc3_.gotoAndPlay("E1");
  574.          _loc2_ = this["BORNE_" + gJoueur].LETTRE.texte_LETTRE;
  575.          _loc2_.text = "";
  576.          classeJoueurs();
  577.       }
  578.    }
  579. }
  580. function classeJoueurs()
  581. {
  582.    var _loc27_ = undefined;
  583.    var _loc7_ = [];
  584.    var _loc16_ = 50;
  585.    var _loc6_ = [];
  586.    var _loc2_ = [];
  587.    var _loc17_ = 0;
  588.    var _loc24_ = [];
  589.    var _loc23_ = [];
  590.    var _loc11_ = 0;
  591.    while(_loc11_ < gNbJoueurs_M[gManche - 1])
  592.    {
  593.       if(gListeJoueurMixed[_loc11_].Score < _loc16_)
  594.       {
  595.          _loc7_ = [];
  596.          _loc7_.push(_loc11_);
  597.          _loc16_ = gListeJoueurMixed[_loc11_].Score;
  598.       }
  599.       else if(gListeJoueurMixed[_loc11_].Score == _loc16_)
  600.       {
  601.          _loc7_.push(_loc11_);
  602.       }
  603.       if(gListeJoueurMixed[_loc11_].Score > _loc17_)
  604.       {
  605.          _loc6_ = [];
  606.          _loc6_.push(_loc11_);
  607.          _loc17_ = gListeJoueurMixed[_loc11_].Score;
  608.       }
  609.       else if(gListeJoueurMixed[_loc11_].Score == _loc17_)
  610.       {
  611.          _loc6_.push(_loc11_);
  612.       }
  613.       trace("gListeJoueurMixed Joueur " + _loc11_ + " Score = " + gListeJoueurMixed[_loc11_].Score);
  614.       if(gListeJoueurMixed[_loc11_].Type == "REEL")
  615.       {
  616.          _loc24_.push(_loc11_);
  617.       }
  618.       else
  619.       {
  620.          _loc23_.push(_loc11_);
  621.       }
  622.       trace("gListeJoueurMixed Joueur " + _loc11_ + " Type = " + gListeJoueurMixed[_loc11_].Type);
  623.       _loc11_ = _loc11_ + 1;
  624.    }
  625.    trace("pScoreMin = " + _loc16_);
  626.    trace("pListePosMin = " + _loc7_);
  627.    trace("pListePosMax = " + _loc6_);
  628.    trace("pListeREEL = " + _loc24_);
  629.    trace("pListeVIRTUEL = " + _loc23_);
  630.    var _loc4_ = [];
  631.    var _loc15_ = [];
  632.    if(_loc6_.length > 1)
  633.    {
  634.       _loc11_ = 0;
  635.       while(_loc11_ < _loc6_.length)
  636.       {
  637.          if(gListeJoueurMixed[_loc6_[_loc11_]].Type == "REEL")
  638.          {
  639.             _loc4_.push(_loc6_[_loc11_]);
  640.          }
  641.          else
  642.          {
  643.             _loc15_.push(_loc6_[_loc11_]);
  644.          }
  645.          trace("gListeJoueurMixed MAX joueur " + [_loc6_[_loc11_]] + " Type = " + gListeJoueurMixed[_loc6_[_loc11_]].Type);
  646.          _loc11_ = _loc11_ + 1;
  647.       }
  648.       trace("pListePosMax _______________________ ");
  649.       trace("pListeREEL_MAX = " + _loc4_);
  650.       trace("pListeVIRTUEL_MAX = " + _loc15_);
  651.       if(_loc4_.length == 1)
  652.       {
  653.          gFirst = _loc4_[0];
  654.          _loc2_.push(_loc4_[0]);
  655.          trace("--- pListeOrdre MAX 1 = " + _loc2_);
  656.          var _loc12_ = _loc15_.length;
  657.          if(_loc12_ > 0)
  658.          {
  659.             var _loc9_ = 0;
  660.             while(_loc9_ < _loc12_)
  661.             {
  662.                _loc2_.push(_loc15_[_loc9_]);
  663.                trace("--- pListeOrdre MAX AJOUT VIRTUEL(S) 1 = " + _loc2_);
  664.                _loc9_ = _loc9_ + 1;
  665.             }
  666.          }
  667.       }
  668.       else
  669.       {
  670.          trace("test chrono");
  671.          var _loc21_ = 0;
  672.          var _loc22_ = 0;
  673.          _loc11_ = 0;
  674.          while(_loc11_ < _loc4_.length)
  675.          {
  676.             trace("pListeREEL[i] = " + _loc4_[_loc11_]);
  677.             trace("gListeJoueurMixed[pListeREEL_MAX[i]].TempsReponse = " + gListeJoueurMixed[_loc4_[_loc11_]].TempsReponse);
  678.             if(_loc21_ == 0)
  679.             {
  680.                _loc22_ = gListeJoueurMixed[_loc4_[_loc11_]].TempsReponse;
  681.                gFirst = _loc4_[_loc11_];
  682.                _loc2_.push(_loc4_[_loc11_]);
  683.                trace("--- pListeOrdre MAX 2= " + _loc2_);
  684.                _loc21_ = 1;
  685.             }
  686.             else if(gListeJoueurMixed[_loc4_[_loc11_]].TempsReponse < _loc22_)
  687.             {
  688.                gFirst = _loc4_[_loc11_];
  689.                _loc2_.splice(0,0,_loc4_[_loc11_]);
  690.                trace("--- pListeOrdre MAX 3 = " + _loc2_);
  691.             }
  692.             else
  693.             {
  694.                trace("getPos(pListeOrdre,gFirst)+1 = " + (getPos(_loc2_,gFirst) + 1));
  695.                _loc2_.push(_loc4_[_loc11_]);
  696.                trace("___ pListeOrdre MAX 5 = " + _loc2_);
  697.             }
  698.             _loc11_ = _loc11_ + 1;
  699.          }
  700.          _loc12_ = _loc15_.length;
  701.          if(_loc12_ > 0)
  702.          {
  703.             _loc9_ = 0;
  704.             while(_loc9_ < _loc12_)
  705.             {
  706.                _loc2_.push(_loc15_[_loc9_]);
  707.                trace("--- pListeOrdre MAX AJOUT VIRTUEL(S) 2 = " + _loc2_);
  708.                _loc9_ = _loc9_ + 1;
  709.             }
  710.          }
  711.       }
  712.    }
  713.    else
  714.    {
  715.       gFirst = _loc6_[0];
  716.       _loc2_.push(_loc6_[0]);
  717.       trace("--- pListeOrdre MAX 4 = " + _loc2_);
  718.    }
  719.    if(_loc2_.length < gNbJoueurs_M[gManche - 1])
  720.    {
  721.       var _loc5_ = [];
  722.       var _loc8_ = [];
  723.       if(_loc7_.length > 1)
  724.       {
  725.          _loc11_ = 0;
  726.          while(_loc11_ < _loc7_.length)
  727.          {
  728.             if(gListeJoueurMixed[_loc7_[_loc11_]].Type == "REEL")
  729.             {
  730.                _loc5_.push(_loc7_[_loc11_]);
  731.             }
  732.             else
  733.             {
  734.                _loc8_.push(_loc7_[_loc11_]);
  735.             }
  736.             trace("gListeJoueurMixed MIN joueur " + [_loc7_[_loc11_]] + " Type = " + gListeJoueurMixed[_loc7_[_loc11_]].Type);
  737.             _loc11_ = _loc11_ + 1;
  738.          }
  739.          trace("pListeREEL_MIN = " + _loc5_);
  740.          trace("pListeVIRTUEL_MIN = " + _loc8_);
  741.          if(_loc5_.length > 0)
  742.          {
  743.             trace("test chrono");
  744.             _loc21_ = 0;
  745.             _loc22_ = 0;
  746.             _loc11_ = 0;
  747.             while(_loc11_ < _loc5_.length)
  748.             {
  749.                trace("pListeREEL_MIN[i] = " + _loc5_[_loc11_]);
  750.                trace("gListeJoueurMixed[pListeREEL_MIN[i]].TempsReponse = " + gListeJoueurMixed[_loc5_[_loc11_]].TempsReponse);
  751.                if(_loc21_ == 0)
  752.                {
  753.                   _loc22_ = gListeJoueurMixed[_loc5_[_loc11_]].TempsReponse;
  754.                   gDer = _loc5_[_loc11_];
  755.                   _loc2_.push(_loc5_[_loc11_]);
  756.                   trace("___ pListeOrdre MIN 2 = " + _loc2_);
  757.                   _loc21_ = 1;
  758.                }
  759.                else if(gListeJoueurMixed[_loc5_[_loc11_]].TempsReponse > _loc22_)
  760.                {
  761.                   _loc2_.push(_loc5_[_loc11_]);
  762.                   trace("___ pListeOrdre MIN 3 = " + _loc2_);
  763.                   gDer = _loc5_[_loc11_];
  764.                }
  765.                else
  766.                {
  767.                   _loc2_.splice(getPos(_loc2_,gDer),0,_loc5_[_loc11_]);
  768.                   trace("___ pListeOrdre MIN 5 = " + _loc2_);
  769.                }
  770.                _loc11_ = _loc11_ + 1;
  771.             }
  772.             _loc27_ = true;
  773.             _loc12_ = _loc8_.length;
  774.             if(_loc12_ > 0)
  775.             {
  776.                _loc9_ = 0;
  777.                while(_loc9_ < _loc12_)
  778.                {
  779.                   _loc2_.push(_loc8_[_loc9_]);
  780.                   gDer = _loc8_[_loc9_];
  781.                   trace("--- pListeOrdre MIN AJOUT VIRTUEL(S) 2 = " + _loc2_);
  782.                   _loc9_ = _loc9_ + 1;
  783.                }
  784.             }
  785.          }
  786.          else if(_loc8_.length > 0)
  787.          {
  788.             var _loc10_ = 0;
  789.             while(_loc10_ < _loc8_.length)
  790.             {
  791.                gDer = _loc8_[_loc10_];
  792.                _loc2_.push(_loc8_[_loc10_]);
  793.                trace("___ pListeOrdre MIN 1 = " + _loc2_);
  794.                _loc10_ = _loc10_ + 1;
  795.             }
  796.          }
  797.       }
  798.       else
  799.       {
  800.          gDer = _loc7_[0];
  801.          _loc2_.push(_loc7_[0]);
  802.          trace("___ pListeOrdre MIN 4 = " + _loc2_);
  803.       }
  804.    }
  805.    else
  806.    {
  807.       gDer = _loc2_[_loc2_.length - 1];
  808.       _loc27_ = true;
  809.    }
  810.    trace("gDer = " + gDer);
  811.    trace("gListeJoueurMixed[gDer].Score = " + gListeJoueurMixed[gDer].Score);
  812.    trace("AJOUT ");
  813.    _loc11_ = 0;
  814.    while(_loc11_ < gNbJoueurs_M[gManche - 1])
  815.    {
  816.       var _loc13_ = getPos(_loc2_,_loc11_);
  817.       trace("pListeOrdre = " + _loc2_);
  818.       trace("i = " + _loc11_);
  819.       trace("pPos = " + _loc13_);
  820.       if(_loc13_ == -1)
  821.       {
  822.          _loc12_ = _loc2_.length;
  823.          trace("pLength = " + _loc12_);
  824.          var _loc3_ = 0;
  825.          while(_loc3_ < _loc12_)
  826.          {
  827.             trace("gListeJoueurMixed[i].Score = " + gListeJoueurMixed[_loc11_].Score);
  828.             trace("j = " + _loc3_);
  829.             trace("pListeOrdre[j] = " + _loc2_[_loc3_]);
  830.             trace("gListeJoueurMixed[pListeOrdre[j]].Score = " + gListeJoueurMixed[_loc2_[_loc3_]].Score);
  831.             if(gListeJoueurMixed[_loc11_].Score >= gListeJoueurMixed[_loc2_[_loc3_]].Score)
  832.             {
  833.                _loc2_.splice(_loc3_,0,_loc11_);
  834.                trace("___ pListeOrdre AJOUT = " + _loc2_);
  835.                break;
  836.             }
  837.             _loc3_ = _loc3_ + 1;
  838.          }
  839.       }
  840.       _loc11_ = _loc11_ + 1;
  841.    }
  842.    trace("pListePosMin = " + _loc7_);
  843.    trace("pListePosMax = " + _loc6_);
  844.    trace("+++ pListeOrdre = " + _loc2_);
  845.    trace("gDer = " + gDer);
  846.    trace("gFirst = " + gFirst);
  847.    _loc11_ = 0;
  848.    while(_loc11_ < gNbJoueurs_M[gManche - 1])
  849.    {
  850.       var _loc14_ = this["JOUEUR_" + (_loc11_ + 1)].AVATAR;
  851.       var _loc19_ = this["BORNE_" + (_loc11_ + 1)].LETTRE;
  852.       _loc19_.gotoAndPlay("E1");
  853.       var _loc18_ = this["BORNE_" + (_loc11_ + 1)].LETTRE.texte_LETTRE;
  854.       var _loc20_ = this["BORNE_" + (_loc11_ + 1)].BARIL;
  855.       _loc18_.text = "";
  856.       if(_loc11_ !== gDer)
  857.       {
  858.          _loc14_.gotoAndPlay("E5");
  859.          _loc20_.gotoAndPlay("E3");
  860.       }
  861.       else
  862.       {
  863.          _loc14_.gotoAndPlay("E6");
  864.       }
  865.       if(gListeJoueurMixed[_loc11_].Type == "REEL")
  866.       {
  867.          this["BORNE_" + (_loc11_ + 1)].BARIL.PICTO_ORDI._visible = false;
  868.       }
  869.       _loc11_ = _loc11_ + 1;
  870.    }
  871.    eteintJoueurs();
  872.    var _loc26_ = 0;
  873.    var _loc25_ = 0;
  874.    _loc11_ = 0;
  875.    while(_loc11_ < gNbJoueurs_M[gManche - 1])
  876.    {
  877.       trace("gListeJoueurMixed[i].Type = " + gListeJoueurMixed[_loc11_].Type);
  878.       if(gListeJoueurMixed[_loc11_].Type == "VIRTUEL")
  879.       {
  880.          _loc26_ += 1;
  881.       }
  882.       else
  883.       {
  884.          _loc25_ += 1;
  885.       }
  886.       _loc11_ = _loc11_ + 1;
  887.    }
  888.    if(_loc25_ == 2)
  889.    {
  890.       if(_loc27_ == true)
  891.       {
  892.          var _loc28_ = "M" + gManche + "_C2_S3";
  893.       }
  894.       else
  895.       {
  896.          _loc28_ = "M" + gManche + "_C2_S2";
  897.       }
  898.       CAPITAINE.gotoAndPlay("E3");
  899.       joueSon({nomSon:_loc28_,actionFin:"finManche"});
  900.    }
  901.    else
  902.    {
  903.       if(gListeJoueurMixed[gFirst].Type == "VIRTUEL")
  904.       {
  905.          _loc28_ = "M" + gManche + "_C1_E";
  906.          CAPITAINE.gotoAndPlay("E4");
  907.       }
  908.       else
  909.       {
  910.          _loc28_ = "M" + gManche + "_C1_S1";
  911.          CAPITAINE.gotoAndPlay("E3");
  912.       }
  913.       joueSon({nomSon:_loc28_,actionFin:"finManche"});
  914.    }
  915. }
  916. function finManche()
  917. {
  918.    if(gTypePartie == 1)
  919.    {
  920.       var _loc2_ = 0;
  921.       while(_loc2_ < gNbJoueurs_M[gManche - 1])
  922.       {
  923.          if(gListeJoueurMixed[_loc2_].Type == "REEL")
  924.          {
  925.             coupeBruitPerso(_loc2_);
  926.          }
  927.          _loc2_ = _loc2_ + 1;
  928.       }
  929.    }
  930.    this["JOUEUR_" + gJoueur].AVATAR.gotoAndPlay("E1");
  931.    CAPITAINE.gotoAndPlay("E1");
  932.    gManche += 1;
  933.    gotoAndPlay("TRANSIT_0" + gManche);
  934.    var _loc6_ = MC_SUCCES;
  935.    var _loc3_ = gListeJoueurMixed[gFirst];
  936.    MC_SUCCES.AVATAR.gotoAndPlay("A" + _loc3_.Avatar);
  937.    gTypepartie = 1;
  938.    gFin = 1;
  939.    MC_SUCCES.pseudo.text = _loc3_.Pseudo;
  940.    joueBruitage({nomSon:"B_JINGLE_04",actionFin:"finPartie"});
  941. }
  942. function desinitBT_OK()
  943. {
  944.    Key.removeListener(KeyListener);
  945.    gBT_OKactif = undefined;
  946.    var _loc3_ = this["TABLEAU_M" + gManche];
  947.    var _loc2_ = _loc3_.BT_OK;
  948.    _loc2_.gotoAndPlay("E1");
  949.    _loc2_._alpha = 50;
  950.    desactiveClip(_loc2_);
  951. }
  952. function remplisIndice()
  953. {
  954.    if(gRemplisBarreOK == true)
  955.    {
  956.       var _loc2_ = this["TABLEAU_M" + gManche];
  957.       gIndice += 1;
  958.       gValuePoint = 4 - gIndice;
  959.       var _loc6_ = _loc2_["INDICE_" + gimme2digits(gIndice)];
  960.       var _loc7_ = _loc2_["texte_LMI" + gimme2digits(gIndice)];
  961.       _loc6_._visible = true;
  962.       gereTextes.afficheLM({mc:_loc2_,codeLM:"LM_I" + gimme2digits(gQuestionNum) + gList_ABC[gIndice - 1],numR:gimme2digits(gIndice)});
  963.       var _loc3_ = _loc2_["LM_I" + gimme2digits(gQuestionNum) + gList_ABC[gIndice - 1]];
  964.       var _loc5_ = 30;
  965.       if(_loc3_.LM.texte._height < _loc5_)
  966.       {
  967.          _loc3_._y += _loc3_.LM.texte._height / 2 - 5;
  968.       }
  969.       var _loc4_ = _loc2_.POINT.texte_POINT;
  970.       _loc4_.text = String(Number(_loc4_.text) - 1);
  971.       CAPITAINE.gotoAndPlay("E2");
  972.       joueSon({nomSon:"M3_INDICE_" + gimme2digits(gIndice),zapBlock:"NOZAP_NOBLOCK",actionFin:"finSonDEB"});
  973.       _clearInterval("IntervalIndice" + gIndice);
  974.    }
  975.    else
  976.    {
  977.       trace("M3 BUG DEJOUE remplisIndice !!!!!!!!");
  978.       clearAllInterval("remplisIndice");
  979.    }
  980. }
  981. function desactiveTOUT()
  982. {
  983.    desinitBT_OK();
  984.    Key.removeListener(KeyListener);
  985.    var _loc4_ = this["TABLEAU_M" + gManche];
  986.    _loc4_.texte_REPONSE.selectable = false;
  987.    _loc4_.texte_REPONSE.type = "dynamic";
  988.    _loc4_.texte_REPONSE.editable = false;
  989.    var _loc5_ = _loc4_.ZAP;
  990.    desactiveClip(_loc5_);
  991.    var _loc2_ = 0;
  992.    while(_loc2_ < gListeReponse.length)
  993.    {
  994.       var _loc3_ = _loc4_["REPONSE_" + gimme2digits(_loc2_ + 1)];
  995.       desactiveClip(_loc3_);
  996.       _loc2_ = _loc2_ + 1;
  997.    }
  998.    _loc5_ = _loc4_.ZAP;
  999.    desactiveClip(_loc3_);
  1000. }
  1001. function initAfficheManche()
  1002. {
  1003.    this["BORNE_" + gJoueur].BARIL.gotoAndPlay("E2");
  1004.    if(gListeJoueurMixed[gJoueur - 1].Type == "REEL")
  1005.    {
  1006.       this["BORNE_" + gJoueur].BARIL.PICTO_ORDI._visible = false;
  1007.    }
  1008.    lanceQuestion();
  1009. }
  1010. function initLanceManche()
  1011. {
  1012.    coupeBruitPerso();
  1013.    this["JOUEUR_" + gJoueur].AVATAR.gotoAndPlay("E2");
  1014.    if(gJoueur > 1)
  1015.    {
  1016.       if(gListeJoueurMixed[gJoueur - 2].Type == "REEL")
  1017.       {
  1018.          coupeBruitPerso(gJoueur - 2);
  1019.       }
  1020.       this["JOUEUR_" + (gJoueur - 1)].AVATAR.gotoAndPlay("E1");
  1021.    }
  1022.    CAPITAINE.gotoAndPlay("E1");
  1023.    var _loc4_ = this["TABLEAU_M" + gManche];
  1024.    gWidthTexteReponse = _loc4_.texte_REPONSE._width;
  1025.    trace("gWidthTexteReponse = " + gWidthTexteReponse);
  1026.    var _loc2_ = 1;
  1027.    while(_loc2_ <= 5)
  1028.    {
  1029.       var _loc3_ = _loc4_["ROND_" + _loc2_];
  1030.       if(_loc2_ <= gListeNbQ_M[gManche - 1])
  1031.       {
  1032.          _loc3_.gotoAndPlay("E1");
  1033.       }
  1034.       else
  1035.       {
  1036.          _loc3_._visible = false;
  1037.       }
  1038.       _loc2_ = _loc2_ + 1;
  1039.    }
  1040.    gListeJoueurMixed[gJoueur - 1].gListeReponseManche = [];
  1041.    gListeJoueurMixed[gJoueur - 1].gListePosReponseManche = [];
  1042.    gListeJoueurMixed[gJoueur - 1].gListeTirageReponseManche = [];
  1043.    initAfficheManche();
  1044. }
  1045. KeyListener = new Object();
  1046. KeyListener.onKeyDown = function()
  1047. {
  1048.    if(pauseOnMod == undefined)
  1049.    {
  1050.       if(gKeyDown == undefined)
  1051.       {
  1052.          var _loc0_ = null;
  1053.          if((_loc0_ = Key.getCode()) === 13)
  1054.          {
  1055.             if(gDone == 0)
  1056.             {
  1057.                gDone = 1;
  1058.                trace("REPONSE ENTER");
  1059.                gRemplisBarreOK = undefined;
  1060.                clearAllInterval("keyDown");
  1061.                gereCursor(1);
  1062.                var _loc2_ = _root["TABLEAU_M" + gManche];
  1063.                _loc2_.texte_REPONSE.selectable = false;
  1064.                _loc2_.texte_REPONSE.type = "dynamic";
  1065.                _loc2_.texte_REPONSE.editable = false;
  1066.                testeReponseM3(_loc2_);
  1067.             }
  1068.          }
  1069.       }
  1070.    }
  1071.    return undefined;
  1072. };
  1073. KeyListener.onKeyUp = function()
  1074. {
  1075.    gKeyDown = undefined;
  1076. };
  1077.