home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 164 / MOBICLIC164.ISO / pc / DATA / TST164 / TST164_00 / TST164_00.swf / scripts / frame_30 / DoAction.as
Text File  |  2014-05-13  |  23KB  |  722 lines

  1. function adapteImage(myC, pFin)
  2. {
  3.    cadreWidth += 2;
  4.    cadreHeight += 2;
  5.    if(pFin == undefined)
  6.    {
  7.       general_width = 280;
  8.       general_height = 280;
  9.       pCentW = cadreWidth * 100 / general_width;
  10.       pCentH = cadreHeight * 100 / general_height;
  11.       if(myC.zone !== undefined)
  12.       {
  13.          var _loc5_ = myC.zone;
  14.       }
  15.       else
  16.       {
  17.          _loc5_ = myC;
  18.       }
  19.       if(_loc5_._width > _loc5_._height)
  20.       {
  21.          var _loc2_ = cadreWidth * 100 / _loc5_._width;
  22.          if(_loc5_._height * _loc2_ / 100 > cadreHeight)
  23.          {
  24.             _loc2_ = cadreHeight * 100 / _loc5_._height;
  25.          }
  26.       }
  27.       else
  28.       {
  29.          _loc2_ = cadreHeight * 100 / _loc5_._height;
  30.          if(_loc5_._width * _loc2_ / 100 > cadreWidth)
  31.          {
  32.             _loc2_ = cadreWidth * 100 / _loc5_._width;
  33.          }
  34.       }
  35.       pCentW = _loc2_;
  36.       pCentH = _loc2_;
  37.    }
  38.    else
  39.    {
  40.       general_width = 151;
  41.       general_height = 282;
  42.       pCentW = cadreWidth * 100 / general_width;
  43.       pCentH = cadreHeight * 100 / general_height;
  44.       _loc5_ = myC;
  45.    }
  46.    myC._width = myC._width * pCentW / 100;
  47.    myC._height = myC._height * pCentH / 100;
  48.    var _loc4_ = (cadreWidth - myC._width) / 2;
  49.    myC._x = 0;
  50.    var _loc3_ = (cadreHeight - myC._height) / 2;
  51.    myC._y = 0;
  52.    myC._visible = true;
  53. }
  54. function afficheImage_R(lNum, lCode)
  55. {
  56.    this["CLIP_PHOTO_0" + (lNum + 1)].gotoAndPlay("E1");
  57.    this["CLIP_PHOTO_0" + (lNum + 1)]._alpha = 0;
  58.    var _loc10_ = this["CLIP_PHOTO_0" + (lNum + 1)].ACCUEIL;
  59.    this["_R0" + (lNum + 1)].mcImage = this["CLIP_PHOTO_0" + (lNum + 1)];
  60.    _loc10_.id = lCode;
  61.    if(lCode.substr(0,1) == "I")
  62.    {
  63.       var _loc7_ = this.photoStocker[lCode];
  64.    }
  65.    else
  66.    {
  67.       _loc7_ = undefined;
  68.    }
  69.    var _loc6_ = _loc10_.createEmptyMovieClip("swfHolder_" + lNum,chercheDepthPlus(_loc10_,0));
  70.    if(_loc7_ == undefined)
  71.    {
  72.       this["mclR" + lNum] = new MovieClipLoader();
  73.       this["mclR" + lNum].loadClip(_global.gModulePath + moduleInfo.getResourceById(lCode).firstChild.attributes.src,_loc6_);
  74.       this["mclR" + lNum].onLoadInit = function(myClip)
  75.       {
  76.          cadreWidth = 50;
  77.          cadreHeight = 50;
  78.          adapteImage(myClip);
  79.          myClip._parent._parent._alpha = 100;
  80.       };
  81.    }
  82.    else
  83.    {
  84.       var _loc11_ = new flash.display.BitmapData(_loc7_._width,_loc7_._height,true,0);
  85.       _loc11_.draw(_loc7_);
  86.       _loc6_.attachBitmap(_loc11_,_loc6_.getNextHighestDepth(),"auto",true);
  87.       cadreWidth = 50;
  88.       cadreHeight = 50;
  89.       adapteImage(_loc6_);
  90.       _loc6_._parent._parent._alpha = 100;
  91.    }
  92.    if(lCode.substr(lCode.length - 1,lCode.length - 1) == "Z")
  93.    {
  94.       var _loc3_ = lCode.substr(lCode.length - 2,1);
  95.    }
  96.    else
  97.    {
  98.       _loc3_ = lCode.substr(lCode.length - 1,1);
  99.    }
  100.    var _loc8_ = undefined;
  101.    var _loc9_ = undefined;
  102.    var _loc0_ = null;
  103.    if((_loc0_ = gSexe) !== "F")
  104.    {
  105.       if(soundObjects[gCommentName + "I_R" + gimme2digits(gNoQuestion) + _loc3_] !== undefined)
  106.       {
  107.          _loc8_ = "I_R" + gimme2digits(gNoQuestion) + _loc3_;
  108.       }
  109.       if(soundObjects[gBruitageName + "B_I_R" + gimme2digits(gNoQuestion) + _loc3_] !== undefined)
  110.       {
  111.          _loc9_ = "B_I_R" + gimme2digits(gNoQuestion) + _loc3_;
  112.       }
  113.    }
  114.    else
  115.    {
  116.       if(soundObjects[gCommentName + "I_R" + gimme2digits(gNoQuestion) + _loc3_ + "Z"] !== undefined)
  117.       {
  118.          _loc8_ = "I_R" + gimme2digits(gNoQuestion) + _loc3_ + "Z";
  119.       }
  120.       else if(soundObjects[gCommentName + "I_R" + gimme2digits(gNoQuestion) + _loc3_] !== undefined)
  121.       {
  122.          _loc8_ = "I_R" + gimme2digits(gNoQuestion) + _loc3_;
  123.       }
  124.       if(soundObjects[gBruitageName + "B_I_R" + gimme2digits(gNoQuestion) + _loc3_ + "Z"] !== undefined)
  125.       {
  126.          _loc9_ = "B_I_R" + gimme2digits(gNoQuestion) + _loc3_ + "Z";
  127.       }
  128.       else if(soundObjects[gBruitageName + "B_I_R" + gimme2digits(gNoQuestion) + _loc3_] !== undefined)
  129.       {
  130.          _loc9_ = "B_I_R" + gimme2digits(gNoQuestion) + _loc3_;
  131.       }
  132.    }
  133.    this["_R0" + (lNum + 1)].pSon = _loc8_;
  134.    this["_R0" + (lNum + 1)].pBruit = _loc9_;
  135. }
  136. trace("FOND1 = " + FOND1);
  137. trace("FOND2 = " + FOND2);
  138. i = 1;
  139. while(i < 6)
  140. {
  141.    this["texte_LMR" + i]._visible = 0;
  142.    i++;
  143. }
  144. testeMusic();
  145. gOk = 1;
  146. texte_NoQuestion.text = gNoQuestion;
  147. texte_NbQuestions.text = gNbQuestionsTotal;
  148. if(gNoQuestion == 1)
  149. {
  150.    BT_RETOUR.gotoAndPlay("E0");
  151.    desactiveClip(BT_RETOUR);
  152. }
  153. else
  154. {
  155.    BT_RETOUR.gotoAndPlay("E1");
  156.    onMcOver({mc:BT_RETOUR});
  157.    BT_RETOUR.onPress = function()
  158.    {
  159.       onMcOut(this);
  160.       ANIM.swfHolder._alpha = 100;
  161.       removeMovieClip(ANIM["swfHolder_" + gListeReponseTest[gNoQuestion - 1]]);
  162.       gNoQuestion -= 1;
  163.       gereTextes.videLM(gClipGen);
  164.       gotoAndStop("relance");
  165.       play();
  166.    };
  167. }
  168. if(gListeReponseTest[gNoQuestion - 1] == "O")
  169. {
  170.    if(gNoQuestion == gNbQuestionsTotal)
  171.    {
  172.       BT_SUITE.gotoAndPlay("E5");
  173.    }
  174.    else
  175.    {
  176.       BT_SUITE.gotoAndPlay("E0");
  177.    }
  178.    desactiveClip(BT_SUITE);
  179. }
  180. else if(gNoQuestion == gNbQuestionsTotal)
  181. {
  182.    activeBT_OK();
  183. }
  184. else
  185. {
  186.    activeBT_SUITE();
  187. }
  188. if(gTopDepart == true)
  189. {
  190.    gTopDepart = undefined;
  191.    trace("__________________________ gPCent = " + gPCent);
  192.    var myCoord = moduleInfo.returnNodeByPath("Module.Config.CoordBT_REFAIRE").firstChild.nodeValue;
  193.    this.attachMovie("BT_REFAIRE","BT_REFAIRE",1550,{_x:Number(myCoord.split(",")[0]),_y:Number(myCoord.split(",")[1])});
  194.    onMcOver({mc:BT_REFAIRE,codeIB:"IB95"});
  195.    BT_REFAIRE.onPress = function()
  196.    {
  197.       onMcOut(this);
  198.       gBlockMusic = undefined;
  199.       stopComment();
  200.       gereTextes.videLM(gClipGen);
  201.       gotoAndStop("ATTENTE_INTRO");
  202.       play();
  203.       removeMovieClip(this);
  204.    };
  205. }
  206. XmlLM = this.moduleInfo.returnNodeByPath("Module." + gLangue + ".LegendesMedias");
  207. XmlIB = this.moduleInfo.returnNodeByPath("Module." + gLangue + ".InfoBulles");
  208. var _loc0_ = null;
  209. if((_loc0_ = gSexe) !== "F")
  210. {
  211.    gereTextes.afficheLM({codeLM:"LM_Q" + gimme2digits(gNoQuestion)});
  212. }
  213. else if(gereTextes.getTextById(XmlLM,"LM_Q" + gimme2digits(gNoQuestion) + "Z") !== undefined)
  214. {
  215.    gereTextes.afficheLM({codeLM:"LM_Q" + gimme2digits(gNoQuestion) + "Z"});
  216. }
  217. else
  218. {
  219.    gereTextes.afficheLM({codeLM:"LM_Q" + gimme2digits(gNoQuestion)});
  220. }
  221. gListeReponse = [];
  222. lList = ["A","B","C","D","E"];
  223. i = 4;
  224. while(i >= 0)
  225. {
  226.    var myClip = this["R" + gimme2digits(i + 1)];
  227.    var myClip2 = this["_R" + gimme2digits(i + 1)];
  228.    var myClip3 = this["R" + gimme2digits(i + 1) + "_"];
  229.    delete myClip2.onRollOver;
  230.    delete myClip2.onRollOut;
  231.    delete myClip2.onDragOut;
  232.    delete myClip2.onPress;
  233.    myClip._visible = false;
  234.    myClip2._visible = false;
  235.    myClip3._visible = false;
  236.    if(gereTextes.getTextById(XmlLM,"LM_R" + gimme2digits(gNoQuestion) + lList[i]) == undefined)
  237.    {
  238.       lList.splice(i,1);
  239.       this["texte_LMR" + gimme2digits(i + 1)]._visible = false;
  240.    }
  241.    i--;
  242. }
  243. if(gListeReponseOrdre[gNoQuestion - 1] == undefined)
  244. {
  245.    gListeReponse = randomiseList(lList);
  246.    if(gListeReponse.length !== 0)
  247.    {
  248.       gListeReponseOrdre.push(gListeReponse);
  249.    }
  250. }
  251. else if(lList.length !== 0)
  252. {
  253.    gListeReponse = gListeReponseOrdre[gNoQuestion - 1];
  254. }
  255. if(gListeReponse.length == 0)
  256. {
  257.    var lList = ["A","B","C","D","E"];
  258.    i = 4;
  259.    while(i >= 0)
  260.    {
  261.       if(swfStocker["A_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + lList[i]] == undefined)
  262.       {
  263.          lList.splice(i,1);
  264.       }
  265.       i--;
  266.    }
  267.    gType = "SWF";
  268.    if(gListeReponseOrdre[gNoQuestion - 1] == undefined)
  269.    {
  270.       gListeReponse = randomiseList(lList);
  271.       if(gListeReponse.length !== 0)
  272.       {
  273.          gListeReponseOrdre.push(gListeReponse);
  274.       }
  275.    }
  276.    else if(lList.length !== 0)
  277.    {
  278.       gListeReponse = gListeReponseOrdre[gNoQuestion - 1];
  279.    }
  280.    if(gListeReponse.length == 0)
  281.    {
  282.       var lList = ["A","B","C","D","E"];
  283.       i = 4;
  284.       while(i >= 0)
  285.       {
  286.          trace(gCommentName + "R" + gimme2digits(gNoQuestion) + lList[i]);
  287.          var lSon = soundObjects[gCommentName + "R" + gimme2digits(gNoQuestion) + lList[i]];
  288.          var lBruitage = soundObjects[gBruitageName + "B_R" + gimme2digits(gNoQuestion) + lList[i]];
  289.          if(lSon == undefined && lBruitage == undefined)
  290.          {
  291.             lList.splice(i,1);
  292.          }
  293.          i--;
  294.       }
  295.       if(gListeReponseOrdre[gNoQuestion - 1] == undefined)
  296.       {
  297.          gListeReponse = randomiseList(lList);
  298.          if(gListeReponse.length !== 0)
  299.          {
  300.             gListeReponseOrdre.push(gListeReponse);
  301.          }
  302.       }
  303.       else if(lList.length !== 0)
  304.       {
  305.          gListeReponse = gListeReponseOrdre[gNoQuestion - 1];
  306.       }
  307.       trace("gListeReponse = " + gListeReponse);
  308.       gType = "MP3";
  309.       if(gListeReponse.length == 0)
  310.       {
  311.          var lList = ["A","B","C","D","E"];
  312.          i = 4;
  313.          while(i >= 0)
  314.          {
  315.             if(photoStocker["I_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + lList[i]] == undefined)
  316.             {
  317.                lList.splice(i,1);
  318.             }
  319.             i--;
  320.          }
  321.          if(gListeReponseOrdre[gNoQuestion - 1] == undefined)
  322.          {
  323.             gListeReponse = randomiseList(lList);
  324.             if(gListeReponse.length !== 0)
  325.             {
  326.                gListeReponseOrdre.push(gListeReponse);
  327.             }
  328.          }
  329.          else if(lList.length !== 0)
  330.          {
  331.             gListeReponse = gListeReponseOrdre[gNoQuestion - 1];
  332.          }
  333.          gType = "JPG";
  334.       }
  335.    }
  336. }
  337. else
  338. {
  339.    gType = "LM";
  340. }
  341. gNbReponses = gListeReponse.length;
  342. trace(gType);
  343. gResultat = undefined;
  344. i = 0;
  345. for(; i < gListeReponse.length; myClip2.onRollOver = function()
  346. {
  347.    if(this.pDone == 0)
  348.    {
  349.       gereCursor(2);
  350.       this.mcBouton.gotoAndPlay("E2");
  351.       joueBruitage({nomSon:"B_" + this.pNum});
  352.       trace(this.pCode);
  353.       switch(gType)
  354.       {
  355.          case "SWF":
  356.          case "JPG":
  357.             if(this.pSon !== undefined)
  358.             {
  359.                joueSon({nomSon:this.pSon,zapBlock:"NOZAP_NOBLOCK",actionFin:"RIEN"});
  360.             }
  361.             if(this.pBruit !== undefined)
  362.             {
  363.                var _loc3_ = findID(this.pBruit);
  364.                if(_loc3_ !== 1)
  365.                {
  366.                   joueBruitage({nomSon:this.pBruit});
  367.                }
  368.                else
  369.                {
  370.                   joueBruitage({nomSon:this.pBruit,loopSon:2000});
  371.                }
  372.             }
  373.             this.mcImage.gotoAndStop("E2");
  374.             var _loc5_ = ANIM.createEmptyMovieClip("swfHolder_" + this.pCode,ANIM.getNextHighestDepth());
  375.             this.mclR_Q = new MovieClipLoader();
  376.             this.mclR_Q.loadClip(_global.gModulePath + moduleInfo.getResourceById(this.mcImage.ACCUEIL.id).firstChild.attributes.src,_loc5_);
  377.             this.mclR_Q.onLoadInit = function(theClip)
  378.             {
  379.                cadreWidth = MASQUE._width;
  380.                cadreHeight = MASQUE._height;
  381.                adapteImage(theClip);
  382.                ANIM.swfHolder._alpha = 0;
  383.             };
  384.             break;
  385.          case "MP3":
  386.             this.mcSon.gotoAndPlay("E2");
  387.             trace("this.pSon = " + this.pSon);
  388.             trace("this.pNum = " + this.pNum);
  389.             trace("gListeReponse[Number(this.pNum)-1] = " + gListeReponse[Number(this.pNum) - 1]);
  390.             trace("gListeReponse[Number(this.pNum)] = " + gListeReponse[Number(this.pNum)]);
  391.             if(this.pSon !== undefined)
  392.             {
  393.                if((_loc0_ = gSexe) !== "F")
  394.                {
  395.                   if(soundObjects[gCommentName + "R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum) - 1]] !== undefined)
  396.                   {
  397.                      var _loc4_ = "R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum) - 1];
  398.                   }
  399.                }
  400.                else if(soundObjects[gCommentName + "R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum) - 1] + "Z"] !== undefined)
  401.                {
  402.                   _loc4_ = "R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum) - 1] + "Z";
  403.                }
  404.                else if(soundObjects[gCommentName + "R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum) - 1]] !== undefined)
  405.                {
  406.                   _loc4_ = "R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum) - 1];
  407.                }
  408.                joueSon({nomSon:_loc4_,zapBlock:"NOZAP_NOBLOCK",actionFin:"RIEN"});
  409.             }
  410.             else
  411.             {
  412.                joueBruitage({nomSon:"B_R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum) - 1]});
  413.             }
  414.       }
  415.    }
  416. },myClip2.onDragOut = _loc0_ = function()
  417. {
  418.    if(this.pDone == 0)
  419.    {
  420.       gereCursor(1);
  421.       this.mcBouton.gotoAndPlay("E1");
  422.       stopBruitage({nomSon:"B_" + this.pNum});
  423.       switch(gType)
  424.       {
  425.          case "SWF":
  426.          case "JPG":
  427.             if(this.pSon !== undefined)
  428.             {
  429.                stopComment();
  430.             }
  431.             if(this.pBruit !== undefined)
  432.             {
  433.                stopBruitage({nomSon:this.pBruit});
  434.             }
  435.             this.mcImage.gotoAndStop("E1");
  436.             removeMovieClip(ANIM["swfHolder_" + this.pCode]);
  437.             ANIM.swfHolder._alpha = 100;
  438.             break;
  439.          case "MP3":
  440.             this.mcSon.gotoAndPlay("E1");
  441.             if(this.pSon !== undefined)
  442.             {
  443.                stopComment();
  444.             }
  445.             else
  446.             {
  447.                stopBruitage({nomSon:"B_R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum) - 1]});
  448.             }
  449.       }
  450.    }
  451. },myClip2.onRollOut = _loc0_,myClip2.onPress = function()
  452. {
  453.    if(this.pDone == 0)
  454.    {
  455.       joueBruitage({nomSon:"B_VALID"});
  456.       gereCursor(1);
  457.       this.mcBouton.gotoAndPlay("E3");
  458.       stopBruitage({nomSon:"B_" + this.pNum});
  459.       this.pDone = 1;
  460.       switch(gType)
  461.       {
  462.          case "SWF":
  463.          case "JPG":
  464.             if(this.pSon !== undefined)
  465.             {
  466.                stopComment();
  467.             }
  468.             if(this.pBruit !== undefined)
  469.             {
  470.                stopBruitage({nomSon:this.pBruit});
  471.             }
  472.             break;
  473.          case "MP3":
  474.             this.mcSon.gotoAndPlay("E1");
  475.             if(this.pSon !== undefined)
  476.             {
  477.                stopComment();
  478.             }
  479.             else
  480.             {
  481.                stopBruitage({nomSon:"B_R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum) - 1]});
  482.             }
  483.       }
  484.       if(gListeReponseTest[gNoQuestion - 1] !== "O")
  485.       {
  486.          var _loc3_ = getPos(gListeReponseOrdre[gNoQuestion - 1],gListeReponseTest[gNoQuestion - 1]) + 1;
  487.          var _loc2_ = this._parent["_R0" + _loc3_];
  488.          _loc2_.pDone = 0;
  489.          _loc2_.mcBouton.gotoAndStop("E1");
  490.          switch(gType)
  491.          {
  492.             case "SWF":
  493.             case "JPG":
  494.                _loc2_.mcImage.gotoAndStop("E1");
  495.                removeMovieClip(ANIM["swfHolder_" + gListeReponseTest[gNoQuestion - 1]]);
  496.                break;
  497.             case "MP3":
  498.                this._parent["PICTO_SON_0" + _loc3_].gotoAndStop("E1");
  499.          }
  500.       }
  501.       doneReponse(this.pCode);
  502.    }
  503. },i++)
  504. {
  505.    var myClip = this["R" + gimme2digits(i + 1)];
  506.    var myClip2 = this["_R" + gimme2digits(i + 1)];
  507.    var myClip3 = this["R" + gimme2digits(i + 1) + "_"];
  508.    myClip2.pNum = gimme2digits(i + 1);
  509.    myClip2.mcBouton = myClip;
  510.    myClip._visible = true;
  511.    myClip2._visible = true;
  512.    myClip3._visible = true;
  513.    myClip.gotoAndPlay("E1");
  514.    myClip2.pCode = gListeReponse[i];
  515.    myClip2.pDone = 0;
  516.    myClip2.pSon = undefined;
  517.    myClip2.pBruit = undefined;
  518.    trace(gType);
  519.    switch(gType)
  520.    {
  521.       case "LM":
  522.          if((_loc0_ = gSexe) !== "F")
  523.          {
  524.             gereTextes.afficheLM({codeLM:"LM_R" + gimme2digits(gNoQuestion) + gListeReponse[i],numR:gimme2digits(i + 1)});
  525.             var pClip = this["LM_R" + gimme2digits(gNoQuestion) + gListeReponse[i]];
  526.          }
  527.          else if(gereTextes.getTextById(XmlLM,"LM_R" + gimme2digits(gNoQuestion) + gListeReponse[i] + "Z") !== undefined)
  528.          {
  529.             gereTextes.afficheLM({codeLM:"LM_R" + gimme2digits(gNoQuestion) + gListeReponse[i] + "Z",numR:gimme2digits(i + 1)});
  530.             var pClip = this["LM_R" + gimme2digits(gNoQuestion) + gListeReponse[i] + "Z"];
  531.          }
  532.          else
  533.          {
  534.             gereTextes.afficheLM({codeLM:"LM_R" + gimme2digits(gNoQuestion) + gListeReponse[i],numR:gimme2digits(i + 1)});
  535.             var pClip = this["LM_R" + gimme2digits(gNoQuestion) + gListeReponse[i]];
  536.          }
  537.          var lH = 28;
  538.          if(pClip.LM.texte._height > lH)
  539.          {
  540.             pClip._y -= 13 * (pClip.LM.texte._height / lH - 1);
  541.          }
  542.          break;
  543.       case "SWF":
  544.          switch(gSexe)
  545.          {
  546.             case "F":
  547.                if(swfStocker["A_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i] + "Z"] !== undefined)
  548.                {
  549.                   var myID = "A_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i] + "Z";
  550.                }
  551.                else
  552.                {
  553.                   var myID = "A_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i];
  554.                }
  555.                break;
  556.             case "G":
  557.                var myID = "A_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i];
  558.          }
  559.          afficheImage_R(i,myID);
  560.          break;
  561.       case "JPG":
  562.          switch(gSexe)
  563.          {
  564.             case "F":
  565.                if(photoStocker["I_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i] + "Z"] !== undefined)
  566.                {
  567.                   var myID = "I_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i] + "Z";
  568.                }
  569.                else
  570.                {
  571.                   var myID = "I_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i];
  572.                }
  573.                break;
  574.             case "G":
  575.                var myID = "I_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i];
  576.          }
  577.          afficheImage_R(i,myID);
  578.          break;
  579.       case "MP3":
  580.          myClip2.mcSon = this["PICTO_SON_0" + (i + 1)];
  581.          myClip2.mcSon.gotoAndPlay("E1");
  582.          var lSon = soundObjects[gCommentName + "R" + gimme2digits(gNoQuestion) + lList[i]];
  583.          var lBruitage = soundObjects[gBruitageName + "B_R" + gimme2digits(gNoQuestion) + lList[i]];
  584.          if(lSon !== undefined)
  585.          {
  586.             myClip2.pSon = 1;
  587.          }
  588.    }
  589.    if(gListeReponseTest[gNoQuestion - 1] != myClip2.pCode)
  590.    {
  591.       continue;
  592.    }
  593.    myClip.gotoAndPlay("E3");
  594.    myClip2.pDone = 1;
  595.    switch(gType)
  596.    {
  597.       case "SWF":
  598.       case "JPG":
  599.          myClip2.mcImage.gotoAndStop("E2");
  600.          var swfHolderNom_1 = ANIM.createEmptyMovieClip("swfHolder_" + myClip2.pCode,ANIM.getNextHighestDepth());
  601.          this.mclR_Q2 = new MovieClipLoader();
  602.          this.mclR_Q2.loadClip(_global.gModulePath + moduleInfo.getResourceById(myClip2.mcImage.ACCUEIL.id).firstChild.attributes.src,swfHolderNom_1);
  603.          this.mclR_Q2.onLoadInit = function(theClip)
  604.          {
  605.             ANIM.swfHolder._alpha = 0;
  606.             trace("finitooooooooooooooooooooooooooooooooooooooooooo " + theClip);
  607.          };
  608.          this.mclR_Q2.onLoadInit = function(theClip)
  609.          {
  610.             cadreWidth = MASQUE._width;
  611.             cadreHeight = MASQUE._height;
  612.             adapteImage(theClip);
  613.          };
  614.          break;
  615.    }
  616. }
  617. var lSon = soundObjects[gCommentName + "Q" + gimme2digits(gNoQuestion)];
  618. if(lSon !== undefined)
  619. {
  620.    gBlockST = 1;
  621.    if((_loc0_ = gSexe) !== "F")
  622.    {
  623.       joueSon({nomSon:"Q" + gimme2digits(gNoQuestion),actionFin:"RIEN"});
  624.    }
  625.    else if(soundObjects[gCommentName + "Q" + gimme2digits(gNoQuestion) + "Z"] !== undefined)
  626.    {
  627.       joueSon({nomSon:"Q" + gimme2digits(gNoQuestion) + "Z",actionFin:"RIEN"});
  628.    }
  629.    else
  630.    {
  631.       joueSon({nomSon:"Q" + gimme2digits(gNoQuestion),actionFin:"RIEN"});
  632.    }
  633. }
  634. if((_loc0_ = gSexe) !== "F")
  635. {
  636.    if(swfStocker["A_" + gModuleName + "_Q" + gimme2digits(gNoQuestion)] == undefined)
  637.    {
  638.       if(photoStocker["I_" + gModuleName + "_Q" + gimme2digits(gNoQuestion)] == undefined)
  639.       {
  640.          var myID = "A_" + gModuleName + "_Q00";
  641.       }
  642.       else
  643.       {
  644.          var myID = "I_" + gModuleName + "_Q" + gimme2digits(gNoQuestion);
  645.       }
  646.    }
  647.    else
  648.    {
  649.       var myID = "A_" + gModuleName + "_Q" + gimme2digits(gNoQuestion);
  650.    }
  651. }
  652. else if(swfStocker["A_" + gModuleName + "_Q" + gimme2digits(gNoQuestion) + "Z"] == undefined)
  653. {
  654.    if(swfStocker["A_" + gModuleName + "_Q" + gimme2digits(gNoQuestion)] == undefined)
  655.    {
  656.       if(photoStocker["I_" + gModuleName + "_Q" + gimme2digits(gNoQuestion) + "Z"] == undefined)
  657.       {
  658.          if(photoStocker["I_" + gModuleName + "_Q" + gimme2digits(gNoQuestion)] == undefined)
  659.          {
  660.             if(swfStocker["A_" + gModuleName + "_Q00Z"] == undefined)
  661.             {
  662.                var myID = "A_" + gModuleName + "_Q00";
  663.             }
  664.             else
  665.             {
  666.                var myID = "A_" + gModuleName + "_Q00Z";
  667.             }
  668.          }
  669.          else
  670.          {
  671.             var myID = "I_" + gModuleName + "_Q" + gimme2digits(gNoQuestion);
  672.          }
  673.       }
  674.       else
  675.       {
  676.          var myID = "I_" + gModuleName + "_Q" + gimme2digits(gNoQuestion) + "Z";
  677.       }
  678.    }
  679.    else
  680.    {
  681.       var myID = "A_" + gModuleName + "_Q" + gimme2digits(gNoQuestion);
  682.    }
  683. }
  684. else
  685. {
  686.    var myID = "A_" + gModuleName + "_Q" + gimme2digits(gNoQuestion) + "Z";
  687. }
  688. var lID = ANIM.swfHolder.ID;
  689. trace("lID = ┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º! " + lID);
  690. if(lID !== myID.split("_")[3] && lID !== undefined)
  691. {
  692.    removeMovieClip(ANIM.swfHolder);
  693. }
  694. trace("lID = myID.split()[3] " + lID + " _" + myID.split("_")[3]);
  695. if(lID !== myID.split("_")[3])
  696. {
  697.    var photoholderNom = ANIM.createEmptyMovieClip("swfHolder",chercheDepthPlus(ANIM,0));
  698.    this.mclQ = new MovieClipLoader();
  699.    this.mclQ.loadClip(_global.gModulePath + moduleInfo.getResourceById(myID).firstChild.attributes.src,photoholderNom);
  700.    this.mclQ.onLoadInit = function(myClip)
  701.    {
  702.       myClip.ID = myID.split("_")[3];
  703.       cadreWidth = MASQUE._width;
  704.       cadreHeight = MASQUE._height;
  705.       adapteImage(myClip);
  706.    };
  707. }
  708. var lBruitage = soundObjects[gBruitageName + "B_Q" + gimme2digits(gNoQuestion)];
  709. if(lBruitage !== undefined)
  710. {
  711.    PICTO_SON_Q.gotoAndPlay("E1");
  712.    PICTO_SON_Q.onRollOver = function()
  713.    {
  714.       joueBruitage({nomSon:"B_Q" + gimme2digits(gNoQuestion)});
  715.    };
  716.    PICTO_SON_Q.onRollOut = function()
  717.    {
  718.       stopBruitage({nomSon:"B_Q" + gimme2digits(gNoQuestion)});
  719.    };
  720. }
  721. stop();
  722.