home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 160 / MOBICLIC160.ISO / pc / DATA / TST160 / TST160_00 / TST160_00.swf / scripts / frame_30 / DoAction.as
Encoding:
Text File  |  2013-12-16  |  22.8 KB  |  723 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.                var _loc0_ = null;
  394.                if((_loc0_ = gSexe) !== "F")
  395.                {
  396.                   if(soundObjects[gCommentName + "R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum) - 1]] !== undefined)
  397.                   {
  398.                      var _loc4_ = "R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum) - 1];
  399.                   }
  400.                }
  401.                else if(soundObjects[gCommentName + "R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum) - 1] + "Z"] !== undefined)
  402.                {
  403.                   _loc4_ = "R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum) - 1] + "Z";
  404.                }
  405.                else if(soundObjects[gCommentName + "R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum) - 1]] !== undefined)
  406.                {
  407.                   _loc4_ = "R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum) - 1];
  408.                }
  409.                joueSon({nomSon:_loc4_,zapBlock:"NOZAP_NOBLOCK",actionFin:"RIEN"});
  410.             }
  411.             else
  412.             {
  413.                joueBruitage({nomSon:"B_R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum) - 1]});
  414.             }
  415.       }
  416.    }
  417. },myClip2.onDragOut = _loc0_ = function()
  418. {
  419.    if(this.pDone == 0)
  420.    {
  421.       gereCursor(1);
  422.       this.mcBouton.gotoAndPlay("E1");
  423.       stopBruitage({nomSon:"B_" + this.pNum});
  424.       switch(gType)
  425.       {
  426.          case "SWF":
  427.          case "JPG":
  428.             if(this.pSon !== undefined)
  429.             {
  430.                stopComment();
  431.             }
  432.             if(this.pBruit !== undefined)
  433.             {
  434.                stopBruitage({nomSon:this.pBruit});
  435.             }
  436.             this.mcImage.gotoAndStop("E1");
  437.             removeMovieClip(ANIM["swfHolder_" + this.pCode]);
  438.             ANIM.swfHolder._alpha = 100;
  439.             break;
  440.          case "MP3":
  441.             this.mcSon.gotoAndPlay("E1");
  442.             if(this.pSon !== undefined)
  443.             {
  444.                stopComment();
  445.             }
  446.             else
  447.             {
  448.                stopBruitage({nomSon:"B_R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum) - 1]});
  449.             }
  450.       }
  451.    }
  452. },myClip2.onRollOut = _loc0_,myClip2.onPress = function()
  453. {
  454.    if(this.pDone == 0)
  455.    {
  456.       joueBruitage({nomSon:"B_VALID"});
  457.       gereCursor(1);
  458.       this.mcBouton.gotoAndPlay("E3");
  459.       stopBruitage({nomSon:"B_" + this.pNum});
  460.       this.pDone = 1;
  461.       switch(gType)
  462.       {
  463.          case "SWF":
  464.          case "JPG":
  465.             if(this.pSon !== undefined)
  466.             {
  467.                stopComment();
  468.             }
  469.             if(this.pBruit !== undefined)
  470.             {
  471.                stopBruitage({nomSon:this.pBruit});
  472.             }
  473.             break;
  474.          case "MP3":
  475.             this.mcSon.gotoAndPlay("E1");
  476.             if(this.pSon !== undefined)
  477.             {
  478.                stopComment();
  479.             }
  480.             else
  481.             {
  482.                stopBruitage({nomSon:"B_R" + gimme2digits(gNoQuestion) + gListeReponse[Number(this.pNum) - 1]});
  483.             }
  484.       }
  485.       if(gListeReponseTest[gNoQuestion - 1] !== "O")
  486.       {
  487.          var _loc3_ = getPos(gListeReponseOrdre[gNoQuestion - 1],gListeReponseTest[gNoQuestion - 1]) + 1;
  488.          var _loc2_ = this._parent["_R0" + _loc3_];
  489.          _loc2_.pDone = 0;
  490.          _loc2_.mcBouton.gotoAndStop("E1");
  491.          switch(gType)
  492.          {
  493.             case "SWF":
  494.             case "JPG":
  495.                _loc2_.mcImage.gotoAndStop("E1");
  496.                removeMovieClip(ANIM["swfHolder_" + gListeReponseTest[gNoQuestion - 1]]);
  497.                break;
  498.             case "MP3":
  499.                this._parent["PICTO_SON_0" + _loc3_].gotoAndStop("E1");
  500.          }
  501.       }
  502.       doneReponse(this.pCode);
  503.    }
  504. },i++)
  505. {
  506.    var myClip = this["R" + gimme2digits(i + 1)];
  507.    var myClip2 = this["_R" + gimme2digits(i + 1)];
  508.    var myClip3 = this["R" + gimme2digits(i + 1) + "_"];
  509.    myClip2.pNum = gimme2digits(i + 1);
  510.    myClip2.mcBouton = myClip;
  511.    myClip._visible = true;
  512.    myClip2._visible = true;
  513.    myClip3._visible = true;
  514.    myClip.gotoAndPlay("E1");
  515.    myClip2.pCode = gListeReponse[i];
  516.    myClip2.pDone = 0;
  517.    myClip2.pSon = undefined;
  518.    myClip2.pBruit = undefined;
  519.    trace(gType);
  520.    switch(gType)
  521.    {
  522.       case "LM":
  523.          if((_loc0_ = gSexe) !== "F")
  524.          {
  525.             gereTextes.afficheLM({codeLM:"LM_R" + gimme2digits(gNoQuestion) + gListeReponse[i],numR:gimme2digits(i + 1)});
  526.             var pClip = this["LM_R" + gimme2digits(gNoQuestion) + gListeReponse[i]];
  527.          }
  528.          else if(gereTextes.getTextById(XmlLM,"LM_R" + gimme2digits(gNoQuestion) + gListeReponse[i] + "Z") !== undefined)
  529.          {
  530.             gereTextes.afficheLM({codeLM:"LM_R" + gimme2digits(gNoQuestion) + gListeReponse[i] + "Z",numR:gimme2digits(i + 1)});
  531.             var pClip = this["LM_R" + gimme2digits(gNoQuestion) + gListeReponse[i] + "Z"];
  532.          }
  533.          else
  534.          {
  535.             gereTextes.afficheLM({codeLM:"LM_R" + gimme2digits(gNoQuestion) + gListeReponse[i],numR:gimme2digits(i + 1)});
  536.             var pClip = this["LM_R" + gimme2digits(gNoQuestion) + gListeReponse[i]];
  537.          }
  538.          var lH = 28;
  539.          if(pClip.LM.texte._height > lH)
  540.          {
  541.             pClip._y -= 13 * (pClip.LM.texte._height / lH - 1);
  542.          }
  543.          break;
  544.       case "SWF":
  545.          switch(gSexe)
  546.          {
  547.             case "F":
  548.                if(swfStocker["A_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i] + "Z"] !== undefined)
  549.                {
  550.                   var myID = "A_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i] + "Z";
  551.                }
  552.                else
  553.                {
  554.                   var myID = "A_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i];
  555.                }
  556.                break;
  557.             case "G":
  558.                var myID = "A_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i];
  559.          }
  560.          afficheImage_R(i,myID);
  561.          break;
  562.       case "JPG":
  563.          switch(gSexe)
  564.          {
  565.             case "F":
  566.                if(photoStocker["I_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i] + "Z"] !== undefined)
  567.                {
  568.                   var myID = "I_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i] + "Z";
  569.                }
  570.                else
  571.                {
  572.                   var myID = "I_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i];
  573.                }
  574.                break;
  575.             case "G":
  576.                var myID = "I_" + gModuleName + "_R" + gimme2digits(gNoQuestion) + gListeReponse[i];
  577.          }
  578.          afficheImage_R(i,myID);
  579.          break;
  580.       case "MP3":
  581.          myClip2.mcSon = this["PICTO_SON_0" + (i + 1)];
  582.          myClip2.mcSon.gotoAndPlay("E1");
  583.          var lSon = soundObjects[gCommentName + "R" + gimme2digits(gNoQuestion) + lList[i]];
  584.          var lBruitage = soundObjects[gBruitageName + "B_R" + gimme2digits(gNoQuestion) + lList[i]];
  585.          if(lSon !== undefined)
  586.          {
  587.             myClip2.pSon = 1;
  588.          }
  589.    }
  590.    if(gListeReponseTest[gNoQuestion - 1] != myClip2.pCode)
  591.    {
  592.       continue;
  593.    }
  594.    myClip.gotoAndPlay("E3");
  595.    myClip2.pDone = 1;
  596.    switch(gType)
  597.    {
  598.       case "SWF":
  599.       case "JPG":
  600.          myClip2.mcImage.gotoAndStop("E2");
  601.          var swfHolderNom_1 = ANIM.createEmptyMovieClip("swfHolder_" + myClip2.pCode,ANIM.getNextHighestDepth());
  602.          this.mclR_Q2 = new MovieClipLoader();
  603.          this.mclR_Q2.loadClip(_global.gModulePath + moduleInfo.getResourceById(myClip2.mcImage.ACCUEIL.id).firstChild.attributes.src,swfHolderNom_1);
  604.          this.mclR_Q2.onLoadInit = function(theClip)
  605.          {
  606.             ANIM.swfHolder._alpha = 0;
  607.             trace("finitooooooooooooooooooooooooooooooooooooooooooo " + theClip);
  608.          };
  609.          this.mclR_Q2.onLoadInit = function(theClip)
  610.          {
  611.             cadreWidth = MASQUE._width;
  612.             cadreHeight = MASQUE._height;
  613.             adapteImage(theClip);
  614.          };
  615.          break;
  616.    }
  617. }
  618. var lSon = soundObjects[gCommentName + "Q" + gimme2digits(gNoQuestion)];
  619. if(lSon !== undefined)
  620. {
  621.    gBlockST = 1;
  622.    if((_loc0_ = gSexe) !== "F")
  623.    {
  624.       joueSon({nomSon:"Q" + gimme2digits(gNoQuestion),actionFin:"RIEN"});
  625.    }
  626.    else if(soundObjects[gCommentName + "Q" + gimme2digits(gNoQuestion) + "Z"] !== undefined)
  627.    {
  628.       joueSon({nomSon:"Q" + gimme2digits(gNoQuestion) + "Z",actionFin:"RIEN"});
  629.    }
  630.    else
  631.    {
  632.       joueSon({nomSon:"Q" + gimme2digits(gNoQuestion),actionFin:"RIEN"});
  633.    }
  634. }
  635. if((_loc0_ = gSexe) !== "F")
  636. {
  637.    if(swfStocker["A_" + gModuleName + "_Q" + gimme2digits(gNoQuestion)] == undefined)
  638.    {
  639.       if(photoStocker["I_" + gModuleName + "_Q" + gimme2digits(gNoQuestion)] == undefined)
  640.       {
  641.          var myID = "A_" + gModuleName + "_Q00";
  642.       }
  643.       else
  644.       {
  645.          var myID = "I_" + gModuleName + "_Q" + gimme2digits(gNoQuestion);
  646.       }
  647.    }
  648.    else
  649.    {
  650.       var myID = "A_" + gModuleName + "_Q" + gimme2digits(gNoQuestion);
  651.    }
  652. }
  653. else if(swfStocker["A_" + gModuleName + "_Q" + gimme2digits(gNoQuestion) + "Z"] == undefined)
  654. {
  655.    if(swfStocker["A_" + gModuleName + "_Q" + gimme2digits(gNoQuestion)] == undefined)
  656.    {
  657.       if(photoStocker["I_" + gModuleName + "_Q" + gimme2digits(gNoQuestion) + "Z"] == undefined)
  658.       {
  659.          if(photoStocker["I_" + gModuleName + "_Q" + gimme2digits(gNoQuestion)] == undefined)
  660.          {
  661.             if(swfStocker["A_" + gModuleName + "_Q00Z"] == undefined)
  662.             {
  663.                var myID = "A_" + gModuleName + "_Q00";
  664.             }
  665.             else
  666.             {
  667.                var myID = "A_" + gModuleName + "_Q00Z";
  668.             }
  669.          }
  670.          else
  671.          {
  672.             var myID = "I_" + gModuleName + "_Q" + gimme2digits(gNoQuestion);
  673.          }
  674.       }
  675.       else
  676.       {
  677.          var myID = "I_" + gModuleName + "_Q" + gimme2digits(gNoQuestion) + "Z";
  678.       }
  679.    }
  680.    else
  681.    {
  682.       var myID = "A_" + gModuleName + "_Q" + gimme2digits(gNoQuestion);
  683.    }
  684. }
  685. else
  686. {
  687.    var myID = "A_" + gModuleName + "_Q" + gimme2digits(gNoQuestion) + "Z";
  688. }
  689. var lID = ANIM.swfHolder.ID;
  690. trace("lID = ┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º┬º! " + lID);
  691. if(lID !== myID.split("_")[3] && lID !== undefined)
  692. {
  693.    removeMovieClip(ANIM.swfHolder);
  694. }
  695. trace("lID = myID.split()[3] " + lID + " _" + myID.split("_")[3]);
  696. if(lID !== myID.split("_")[3])
  697. {
  698.    var photoholderNom = ANIM.createEmptyMovieClip("swfHolder",chercheDepthPlus(ANIM,0));
  699.    this.mclQ = new MovieClipLoader();
  700.    this.mclQ.loadClip(_global.gModulePath + moduleInfo.getResourceById(myID).firstChild.attributes.src,photoholderNom);
  701.    this.mclQ.onLoadInit = function(myClip)
  702.    {
  703.       myClip.ID = myID.split("_")[3];
  704.       cadreWidth = MASQUE._width;
  705.       cadreHeight = MASQUE._height;
  706.       adapteImage(myClip);
  707.    };
  708. }
  709. var lBruitage = soundObjects[gBruitageName + "B_Q" + gimme2digits(gNoQuestion)];
  710. if(lBruitage !== undefined)
  711. {
  712.    PICTO_SON_Q.gotoAndPlay("E1");
  713.    PICTO_SON_Q.onRollOver = function()
  714.    {
  715.       joueBruitage({nomSon:"B_Q" + gimme2digits(gNoQuestion)});
  716.    };
  717.    PICTO_SON_Q.onRollOut = function()
  718.    {
  719.       stopBruitage({nomSon:"B_Q" + gimme2digits(gNoQuestion)});
  720.    };
  721. }
  722. stop();
  723.