home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 174 / MOBICLIC174.ISO / mac / DATA / DSS174 / DSS174_08 / DSS174_08.swf / scripts / frame_1 / DoAction.as
Text File  |  2015-04-27  |  52KB  |  2,003 lines

  1. function initKeyPause()
  2. {
  3.    gPauseOn = 0;
  4.    gPauseSpaceOn = 0;
  5.    gPauseSpaceEnCours = 0;
  6. }
  7. function initGen()
  8. {
  9.    this._lockroot = true;
  10.    gClipGen = this;
  11.    Stage.showMenu = false;
  12.    gLangue = "FR";
  13.    gMusicOn = 1;
  14.    gSousTitre = 0;
  15.    gST = 0;
  16.    gVolume = 100;
  17.    gWidth = moduleInfo.returnNodeByPath("BackOffice").firstChild.attributes.width;
  18.    gHeight = moduleInfo.returnNodeByPath("BackOffice").firstChild.attributes.height;
  19.    if(gWidth == undefined)
  20.    {
  21.       gWidth = 800;
  22.    }
  23.    else
  24.    {
  25.       gWidth = Number(gWidth);
  26.    }
  27.    if(gHeight == undefined)
  28.    {
  29.       gHeight = 600;
  30.    }
  31.    else
  32.    {
  33.       gHeight = Number(gHeight);
  34.    }
  35.    initKeyPause();
  36. }
  37. function testeDebutCommentSpecial()
  38. {
  39.    switch(gCommentOn.id.split("_")[gCommentOn.id.split("_").length - 1])
  40.    {
  41.       case "bz":
  42.       case "BZ":
  43.          trace("-------  BZ on-----------");
  44.          DesactiveOEIL();
  45.          if(BT_OEIL.gEtat !== 3)
  46.          {
  47.             trace("E3");
  48.             BT_OEIL.gotoAndPlay("E3");
  49.          }
  50.          else
  51.          {
  52.             trace("PARLE");
  53.             BT_OEIL.OEIL_P.gotoAndPlay("parle");
  54.          }
  55.          break;
  56.       case "ze":
  57.       case "ZE":
  58.          trace("-------  ZE on-----------");
  59.          DesactiveOEIL();
  60.          if(BT_OEIL.gEtat !== 3)
  61.          {
  62.             BT_OEIL.gotoAndPlay("E3");
  63.          }
  64.          else
  65.          {
  66.             BT_OEIL.OEIL_P.gotoAndPlay("parle");
  67.          }
  68.          afficherRolls();
  69.    }
  70. }
  71. function testeFinCommentSpecial()
  72. {
  73.    switch(gCommentOn.id.split("_")[gCommentOn.id.split("_").length - 1])
  74.    {
  75.       case "bz":
  76.       case "BZ":
  77.          trace("-------  BZ off-----------");
  78.          ActiveOEIL();
  79.          BT_OEIL.OEIL_P.gotoAndPlay("rentre");
  80.          BT_OEIL.gClicOn = undefined;
  81.          break;
  82.       case "ze":
  83.       case "ZE":
  84.          trace("-------  ZE off-----------");
  85.          ActiveOEIL();
  86.          BT_OEIL.OEIL_P.gotoAndPlay("rentre");
  87.          BT_OEIL.gClicOn = undefined;
  88.          masquerRolls();
  89.    }
  90. }
  91. function stopComment()
  92. {
  93.    if(gCommentOn !== undefined)
  94.    {
  95.       testeFinCommentSpecial();
  96.       delete gCommentOn.onSoundComplete;
  97.       gCommentOn.stop();
  98.       gCommentOn = undefined;
  99.       if(gPauseOn == undefined || gPauseOn == 0)
  100.       {
  101.          removeMovieClip("mcClicZap");
  102.       }
  103.       gBlockST = undefined;
  104.       gereTextes.masqueST();
  105.       if(gClipTarget !== undefined)
  106.       {
  107.          gClipTarget.gotoAndStop(gClipTargetLabel);
  108.          gClipTarget = undefined;
  109.          gClipTargetLabel = undefined;
  110.       }
  111.    }
  112. }
  113. function pauseComment()
  114. {
  115.    trace("pauseComment " + gCommentOn);
  116.    if(gCommentOn !== undefined)
  117.    {
  118.       gCommentOn.stop();
  119.       mcClicZap._visible = false;
  120.    }
  121. }
  122. function continueComment()
  123. {
  124.    trace("continueComment " + gCommentOn);
  125.    if(gCommentOn !== undefined)
  126.    {
  127.       gCommentOn.start(gCommentOn.position / 1000);
  128.       mcClicZap._visible = true;
  129.    }
  130. }
  131. function joueSon(p)
  132. {
  133.    var _loc4_ = p.nomSon;
  134.    gSoundString = _loc4_;
  135.    if(p.mc !== undefined)
  136.    {
  137.       gClipRef = p.mc;
  138.    }
  139.    else
  140.    {
  141.       gClipRef = _root;
  142.    }
  143.    if(p.zapBlock !== undefined)
  144.    {
  145.       gClicZap = p.zapBlock;
  146.    }
  147.    else
  148.    {
  149.       gClicZap = "ZAP_BLOCK";
  150.    }
  151.    if(p.actionFin !== undefined)
  152.    {
  153.       gActionFinSon = p.actionFin;
  154.    }
  155.    else
  156.    {
  157.       gActionFinSon = "PLAY";
  158.    }
  159.    stopComment();
  160.    if(p.mcCible !== undefined)
  161.    {
  162.       if(typeof p.mcCible == "movieclip")
  163.       {
  164.          gClipTarget = p.mcCible;
  165.       }
  166.       else
  167.       {
  168.          gClipTarget = gClipRef[p.mcCible];
  169.       }
  170.       if(p.mcLabelOut !== undefined)
  171.       {
  172.          gClipTargetLabel = p.mcLabelOut;
  173.       }
  174.       else
  175.       {
  176.          gClipTargetLabel = gClipTarget._currentframe;
  177.       }
  178.       if(p.mcLabelIn !== undefined)
  179.       {
  180.          gClipTarget.gotoAndPlay(p.mcLabelIn);
  181.       }
  182.       else
  183.       {
  184.          gClipTarget.gotoAndPlay("parle");
  185.       }
  186.    }
  187.    gCommentName = "S_" + gLangue + "_" + gModuleName + "_";
  188.    trace("joueSon " + gCommentName + _loc4_);
  189.    mySound = soundObjects[gCommentName + _loc4_];
  190.    if(mySound !== undefined)
  191.    {
  192.       gCommentOn = mySound;
  193.       gCommentOn.p = p;
  194.       gCommentOn.id = gCommentName + _loc4_;
  195.       testeDebutCommentSpecial();
  196.       if(gMusicOn == 1 && gMusic !== undefined && gBlockMusic == undefined)
  197.       {
  198.          soundObjects[gMusic].setVolume(gVolume * 40 / 100);
  199.       }
  200.       mySound.setVolume(gVolume);
  201.       if(gCommentOnPausePos !== undefined)
  202.       {
  203.          mySound.start(gCommentOnPausePos / 1000);
  204.          gCommentOnPause = undefined;
  205.          gCommentOnPausePos = undefined;
  206.       }
  207.       else
  208.       {
  209.          mySound.start();
  210.       }
  211.    }
  212.    else
  213.    {
  214.       trace("______" + getSoundByID(gCommentName + _loc4_) + gCommentName);
  215.       var _loc5_ = getSoundByID(gCommentName + _loc4_);
  216.       if(_loc5_ !== undefined)
  217.       {
  218.          mySound = new Sound();
  219.          mySound.onLoad = function(success)
  220.          {
  221.             if(success)
  222.             {
  223.                if(gCommentOnPausePos !== undefined)
  224.                {
  225.                   mySound.start(gCommentOnPausePos / 1000);
  226.                   gCommentOnPause = undefined;
  227.                   gCommentOnPausePos = undefined;
  228.                }
  229.                else
  230.                {
  231.                   mySound.start();
  232.                }
  233.             }
  234.          };
  235.          mySound.loadSound(this.gModulePath + _loc5_.attributes.src,true);
  236.          gCommentOn = mySound;
  237.          gCommentOn.p = p;
  238.          gCommentOn.id = gCommentName + _loc4_;
  239.          testeDebutCommentSpecial();
  240.          if(gMusicOn == 1 && gMusic !== undefined && gBlockMusic == undefined)
  241.          {
  242.             soundObjects[gMusic].setVolume(gVolume * 40 / 100);
  243.          }
  244.       }
  245.    }
  246.    if(mySound == undefined)
  247.    {
  248.       return undefined;
  249.    }
  250.    mySound.onSoundComplete = commentFini;
  251.    if(gClicZap !== "NOZAP_NOBLOCK")
  252.    {
  253.       trace("creerRectangle " + creerRectangle + " " + gHeight + " " + gWidth);
  254.       mcClicZap = creerRectangle({nom:"mcClicZap",pere:_root,level:15000,width:gWidth,height:gHeight,x:0,y:0,alpha:0});
  255.       switch(gClicZap.split("_")[0])
  256.       {
  257.          case "ZAP":
  258.             mcClicZap.useHandCursor = false;
  259.             mcClicZap.onPress = function()
  260.             {
  261.                trace("clic zap son");
  262.                stopSon();
  263.             };
  264.             break;
  265.          case "NOZAP":
  266.             mcClicZap.useHandCursor = false;
  267.             mcClicZap.onPress = function()
  268.             {
  269.                trace("no clic allowed");
  270.             };
  271.       }
  272.       mcClicZap._visible = true;
  273.    }
  274.    if(gST == 1 && gBlockST == undefined)
  275.    {
  276.       gereTextes.afficheST(gCommentName + _loc4_);
  277.    }
  278. }
  279. function creerClicZap(p)
  280. {
  281.    if(_global.mcClicZap2 != undefined)
  282.    {
  283.       removeMovieClip(_root.mcClicZap2);
  284.    }
  285.    var _loc0_ = null;
  286.    var _loc4_ = _global.mcClicZap2 = creerRectangle({nom:"mcClicZap2",pere:_root,level:15001,width:gWidth,height:gHeight,x:0,y:0,alpha:0});
  287.    _loc4_.p = p;
  288.    _loc4_.useHandCursor = false;
  289.    _loc4_.onPress = function()
  290.    {
  291.       trace("clic zap " + this.p);
  292.       this.p.retour.call(this.p.ecouteur);
  293.       removeMovieClip(this);
  294.       _global.mcClicZap2 = undefined;
  295.    };
  296.    _loc4_._visible = true;
  297. }
  298. function creerRectangle(p)
  299. {
  300.    var _loc15_ = p.x != undefined ? p.x : 0;
  301.    var _loc13_ = p.y != undefined ? p.y : 0;
  302.    if(p.w != undefined)
  303.    {
  304.       var _loc16_ = p.w;
  305.    }
  306.    else if(p.width != undefined)
  307.    {
  308.       _loc16_ = p.width;
  309.    }
  310.    if(p.h != undefined)
  311.    {
  312.       var _loc14_ = p.h;
  313.    }
  314.    else if(p.height != undefined)
  315.    {
  316.       _loc14_ = p.height;
  317.    }
  318.    var _loc11_ = p.pere != undefined ? p.pere : _root;
  319.    var _loc9_ = p.level != undefined ? p.level : 10;
  320.    var _loc12_ = p.couleur != undefined ? p.couleur : 0;
  321.    var _loc10_ = p.nom != undefined ? p.nom : "ClipSansNom";
  322.    var _loc4_ = p.courbure != undefined ? p.courbure : 0;
  323.    var _loc17_ = p.alpha != undefined ? p.alpha : 100;
  324.    var _loc7_ = 0;
  325.    var _loc8_ = 0;
  326.    var _loc6_ = _loc16_;
  327.    var _loc5_ = _loc14_;
  328.    trace(_loc6_ + " " + _loc5_);
  329.    var _loc3_ = _loc11_.createEmptyMovieClip(_loc10_,_loc9_);
  330.    _loc3_.beginFill(_loc12_,_loc17_);
  331.    _loc3_.moveTo(_loc7_,_loc5_ - _loc4_);
  332.    _loc3_.lineTo(_loc7_,_loc8_ + _loc4_);
  333.    _loc3_.curveTo(_loc7_,_loc8_,_loc7_ + _loc4_,_loc8_);
  334.    _loc3_.lineTo(_loc6_ - _loc4_,_loc8_);
  335.    _loc3_.curveTo(_loc6_,_loc8_,_loc6_,_loc8_ + _loc4_);
  336.    _loc3_.lineTo(_loc6_,_loc5_ - _loc4_);
  337.    _loc3_.curveTo(_loc6_,_loc5_,_loc6_ - _loc4_,_loc5_);
  338.    _loc3_.lineTo(_loc7_ + _loc4_,_loc5_);
  339.    _loc3_.curveTo(_loc7_,_loc5_,_loc7_,_loc5_ - _loc4_);
  340.    _loc3_.endFill();
  341.    _loc3_._x = _loc15_;
  342.    _loc3_._y = _loc13_;
  343.    return _loc3_;
  344. }
  345. function stopSon()
  346. {
  347.    gCommentOn.stop();
  348.    commentFini();
  349. }
  350. function commentFini()
  351. {
  352.    testeFinCommentSpecial();
  353.    if(gClicZap !== "NOZAP_NOBLOCK")
  354.    {
  355.       removeMovieClip("mcClicZap");
  356.    }
  357.    gCommentOn = undefined;
  358.    gBlockST = undefined;
  359.    gereTextes.masqueST();
  360.    if(gMusicOn == 1 && gMusic !== undefined && gBlockMusic == undefined)
  361.    {
  362.       soundObjects[gMusic].setVolume(gVolume);
  363.    }
  364.    if(gClipTarget !== undefined)
  365.    {
  366.       gClipTarget.gotoAndStop(gClipTargetLabel);
  367.       gClipTarget = undefined;
  368.       gClipTargetLabel = undefined;
  369.    }
  370.    switch(gActionFinSon)
  371.    {
  372.       case "RIEN":
  373.          break;
  374.       case "PLAY":
  375.          if(_root.gNextLabel == undefined)
  376.          {
  377.             if(gLineaireOn != undefined)
  378.             {
  379.                if((_loc0_ = gLineaireOn) !== "_")
  380.                {
  381.                   lSonSuivant = gLineaireOn + gimme2digits(Number(gSoundString.split("_")[gSoundString.split("_").length - 1]) + 1);
  382.                   lLabel = lSonSuivant;
  383.                }
  384.                else
  385.                {
  386.                   lSonSuivant = gimme2digits(Number(gSoundString.split("_")[gSoundString.split("_").length - 1]) + 1);
  387.                   lLabel = gLineaireOn + lSonSuivant;
  388.                }
  389.                joueSon({mc:gClipRef,nomSon:lSonSuivant,zapBlock:gClicZap,actionFin:gActionFinSon});
  390.                gClipRef.gotoAndStop(lLabel);
  391.             }
  392.             else
  393.             {
  394.                gClipRef.play();
  395.             }
  396.          }
  397.          else
  398.          {
  399.             gClipRef.gotoAndPlay(_root.gNextLabel);
  400.             _root.gNextLabel = undefined;
  401.             gLineaireOn = undefined;
  402.          }
  403.          break;
  404.       default:
  405.          _root[gActionFinSon]();
  406.    }
  407. }
  408. function joueBruitage(p)
  409. {
  410.    var _loc2_ = soundObjects[gBruitageName + p.nomSon];
  411.    if(gListeBruitage == undefined)
  412.    {
  413.       gListeBruitage = [];
  414.       gListeA_fin_Bruitage = [];
  415.       gListeLoop_Bruitage = [];
  416.    }
  417.    _loc2_.setVolume(gVolume);
  418.    _loc2_.id = p.nomSon;
  419.    gListeBruitage.push(_loc2_.id);
  420.    if(p.actionFin !== undefined)
  421.    {
  422.       gActionFinBruitage = p.actionFin;
  423.       gListeA_fin_Bruitage.push(gActionFinBruitage);
  424.    }
  425.    else
  426.    {
  427.       gActionFinBruitage = undefined;
  428.       gListeA_fin_Bruitage.push("");
  429.    }
  430.    _loc2_.p = p;
  431.    _loc2_.onSoundComplete = mx.utils.Delegate.create(_loc2_,finBruitage);
  432.    if(p.loopSon == undefined)
  433.    {
  434.       _loc2_.start(p.offset);
  435.       gListeLoop_Bruitage.push("");
  436.    }
  437.    else
  438.    {
  439.       _loc2_.start(p.offset,p.loopSon);
  440.       gListeLoop_Bruitage.push(p.loopSon);
  441.    }
  442. }
  443. function stopBruitage(p)
  444. {
  445.    var _loc1_ = soundObjects[gBruitageName + p.nomSon];
  446.    finBruitage(p.nomSon);
  447.    _loc1_.stop();
  448. }
  449. function finBruitage(lSon)
  450. {
  451.    if(lSon == undefined)
  452.    {
  453.       lSon = this.id;
  454.    }
  455.    if(gListeBruitage !== undefined)
  456.    {
  457.       if(getPos(gListeBruitage,lSon) !== -1)
  458.       {
  459.          if(gListeA_fin_Bruitage[getPos(gListeBruitage,lSon)] !== "")
  460.          {
  461.             if(typeof gListeA_fin_Bruitage[getPos(gListeBruitage,lSon)] == "string")
  462.             {
  463.                gClipGen[gListeA_fin_Bruitage[getPos(gListeBruitage,lSon)]]();
  464.             }
  465.             else
  466.             {
  467.                gListeA_fin_Bruitage[getPos(gListeBruitage,lSon)].call(this.p.MC);
  468.             }
  469.          }
  470.          gListeA_fin_Bruitage.splice(getPos(gListeBruitage,lSon),1);
  471.          gListeLoop_Bruitage.splice(getPos(gListeBruitage,lSon),1);
  472.          gListeBruitage.splice(getPos(gListeBruitage,lSon),1);
  473.          if(gListeBruitage.length == 0)
  474.          {
  475.             gListeBruitage = undefined;
  476.             gListeA_fin_Bruitage = undefined;
  477.             gListeLoop_Bruitage = undefined;
  478.          }
  479.       }
  480.    }
  481. }
  482. function getPos(myList, myValue)
  483. {
  484.    lPresent = -1;
  485.    maPosition = 0;
  486.    while(maPosition <= myList.length)
  487.    {
  488.       if(myList[maPosition] == myValue)
  489.       {
  490.          lPresent = maPosition;
  491.          break;
  492.       }
  493.       maPosition++;
  494.    }
  495.    return lPresent;
  496. }
  497. function trouvePosMax(myList)
  498. {
  499.    lMax = myList[0];
  500.    lPosMax = 0;
  501.    i = 1;
  502.    while(i <= myList.length)
  503.    {
  504.       if(myList[i] > lMax)
  505.       {
  506.          lMax = myList[i];
  507.          lPosMax = i;
  508.       }
  509.       i++;
  510.    }
  511.    return lPosMax;
  512. }
  513. function duplicate(myList)
  514. {
  515.    newList = [];
  516.    i = 0;
  517.    while(i <= myList.length - 1)
  518.    {
  519.       newList.push(myList[i]);
  520.       i++;
  521.    }
  522.    return newList;
  523. }
  524. function randomiseList(myList)
  525. {
  526.    var _loc3_ = duplicate(myList);
  527.    var _loc4_ = [];
  528.    var _loc5_ = _loc3_.length;
  529.    var _loc2_ = 0;
  530.    while(_loc2_ < _loc5_)
  531.    {
  532.       var _loc1_ = randomValue(0,_loc3_.length - 1);
  533.       _loc4_.push(_loc3_[_loc1_]);
  534.       _loc3_.splice(_loc1_,1);
  535.       _loc2_ = _loc2_ + 1;
  536.    }
  537.    return _loc4_;
  538. }
  539. function returnNodeByPathRandomise(nodeSent)
  540. {
  541.    var _loc4_ = new XML();
  542.    var _loc5_ = nodeSent.childNodes.length;
  543.    var _loc1_ = 0;
  544.    while(_loc1_ < _loc5_)
  545.    {
  546.       var _loc2_ = randomValue(0,nodeSent.childNodes.length - 1);
  547.       _loc4_.appendChild(nodeSent.childNodes[_loc2_]);
  548.       _loc1_ = _loc1_ + 1;
  549.    }
  550.    return _loc4_;
  551. }
  552. function zapIntro(myLabel)
  553. {
  554.    mcClicZapIntro = this.createEmptyMovieClip("mcClicZapIntro",16031);
  555.    mcClicZapIntro.attachMovie("ClipInvisible","ClipInvisible",2);
  556.    mcClicZapIntro._width = gClipGen._width;
  557.    mcClicZapIntro._height = gClipGen._height;
  558.    mcClicZapIntro._x = 0;
  559.    mcClicZapIntro._y = 0;
  560.    mcClicZapIntro.useHandCursor = false;
  561.    mcClicZapIntro.onPress = function()
  562.    {
  563.       trace("clic zappIntro " + this);
  564.       stopComment();
  565.       gotoAndPlay(myLabel);
  566.       removeZapIntro();
  567.    };
  568. }
  569. function removeZapIntro()
  570. {
  571.    trace("mcClicZapIntrO " + mcClicZapIntro._name + " " + this);
  572.    if(mcClicZapIntro._x != undefined)
  573.    {
  574.       trace("suppression");
  575.       removeMovieClip(mcClicZapIntro);
  576.    }
  577. }
  578. function onMcOut(myMc)
  579. {
  580.    gereCursor(1);
  581.    if(myMc.pLabelOut == undefined)
  582.    {
  583.       myMc.gotoAndPlay("E1");
  584.    }
  585.    else
  586.    {
  587.       myMc.gotoAndPlay(myMc.pLabelOut);
  588.    }
  589.    if(myMc.pSon.split("")[0] == "B")
  590.    {
  591.       stopBruitage({nomSon:myMc.pSon});
  592.    }
  593.    else
  594.    {
  595.       stopComment();
  596.    }
  597.    if(myMc.pIB !== undefined)
  598.    {
  599.       gereTextes.masqueIB();
  600.    }
  601. }
  602. function onMcOver(p)
  603. {
  604.    var myMc = p.mc;
  605.    myMc.pIB = p.codeIB;
  606.    if(p.nomSon == undefined)
  607.    {
  608.       if(p.nomSonC == undefined)
  609.       {
  610.          myMc.pSon = "B_" + myMc._name.split("_")[1];
  611.       }
  612.       else
  613.       {
  614.          myMc.pSon = p.nomSonC;
  615.       }
  616.    }
  617.    else
  618.    {
  619.       myMc.pSon = p.nomSon;
  620.    }
  621.    if(p.actionFin == undefined)
  622.    {
  623.       myMc.actionFin = "RIEN";
  624.    }
  625.    else
  626.    {
  627.       myMc.actionFin = p.actionFin;
  628.    }
  629.    myMc.pLabelOut = p.mcLabelOut;
  630.    myMc.onRollOver = function()
  631.    {
  632.       gereCursor(2);
  633.       if(p.mcLabelIn == undefined)
  634.       {
  635.          this.gotoAndPlay("E2");
  636.       }
  637.       else
  638.       {
  639.          this.gotoAndPlay(p.mcLabelIn);
  640.       }
  641.       if(this.pSon.split("")[0] == "B")
  642.       {
  643.          joueBruitage({nomSon:this.pSon});
  644.       }
  645.       else
  646.       {
  647.          joueSon({nomSon:this.pSon,zapBlock:"NOZAP_NOBLOCK",actionFin:this.actionFin});
  648.       }
  649.       if(this.pIB !== undefined)
  650.       {
  651.          gereTextes.afficheIB({mc:this,codeIB:this.pIB});
  652.       }
  653.    };
  654.    myMc.onRollOut = myMc.onDragOut = function()
  655.    {
  656.       onMcOut(myMc);
  657.    };
  658. }
  659. function desactiveClip(pClip)
  660. {
  661.    trace(pClip);
  662.    delete pClip.onRollOver;
  663.    delete pClip.onRollOut;
  664.    delete pClip.onDragOut;
  665.    delete pClip.onPress;
  666.    delete pClip.onRelease;
  667.    delete pClip.onReleaseOutside;
  668. }
  669. function afficheClipPos(myMc, myX, myY)
  670. {
  671.    myMc._x = myX;
  672.    myMc._y = myY;
  673.    myMc._visible = true;
  674. }
  675. function gimme2digits(X)
  676. {
  677.    if(Number(X) < 10)
  678.    {
  679.       lX = "0" + Number(X);
  680.    }
  681.    else
  682.    {
  683.       lX = String(X);
  684.    }
  685.    return lX;
  686. }
  687. function randomValue(min, max)
  688. {
  689.    var _loc1_ = Math.floor(Math.random() * (max - min + 1)) + min;
  690.    return _loc1_;
  691. }
  692. function chercheDepthPlus(myMc, myDepth)
  693. {
  694.    var _loc1_ = myDepth;
  695.    while(_loc1_ < 17000)
  696.    {
  697.       if(myMc.getInstanceAtDepth(_loc1_) == undefined)
  698.       {
  699.          break;
  700.       }
  701.       _loc1_ = _loc1_ + 1;
  702.    }
  703.    return _loc1_;
  704. }
  705. function chercheDepthMoins(myMc, myDepth)
  706. {
  707.    var _loc1_ = myDepth;
  708.    while(_loc1_ > -16383)
  709.    {
  710.       if(myMc.getInstanceAtDepth(_loc1_) == undefined)
  711.       {
  712.          break;
  713.       }
  714.       _loc1_ = _loc1_ - 1;
  715.    }
  716.    return _loc1_;
  717. }
  718. function changeST(myST)
  719. {
  720.    trace("changeST   : " + myST);
  721.    if(myST == "1")
  722.    {
  723.       gST = 1;
  724.       if(gCommentOn !== undefined)
  725.       {
  726.          gereTextes.afficheST(gCommentOn.id);
  727.       }
  728.    }
  729.    else
  730.    {
  731.       sousTitre = 0;
  732.       gST = 0;
  733.       gereTextes.masqueST(this);
  734.    }
  735. }
  736. function changeMusicOn(myChangeMusicOn)
  737. {
  738.    trace("changeMusicOn   : " + myChangeMusicOn);
  739.    switch(String(myChangeMusicOn))
  740.    {
  741.       case "1":
  742.          gMusicOn = 1;
  743.          if(gMusic == undefined)
  744.          {
  745.             gMusic = gBruitageName + "MU";
  746.          }
  747.          trace("changeMusicOn2   : " + gMusic + " - " + gVolume);
  748.          if(gBlockMusic == undefined)
  749.          {
  750.             if(gCommentOn !== undefined)
  751.             {
  752.                soundObjects[gMusic].setVolume(gVolume * 0.4);
  753.             }
  754.             else
  755.             {
  756.                soundObjects[gMusic].setVolume(gVolume);
  757.             }
  758.          }
  759.          else
  760.          {
  761.             soundObjects[gMusic].setVolume(0);
  762.          }
  763.          soundObjects[gMusic].start(0,1000);
  764.          break;
  765.       case "0":
  766.          soundObjects[gMusic].stop();
  767.          gMusicOn = 0;
  768.          break;
  769.       default:
  770.          if(gMusic !== undefined)
  771.          {
  772.             soundObjects[gMusic].stop();
  773.          }
  774.          gMusic = gBruitageName + myChangeMusicOn;
  775.          if(gMusicOn == 1)
  776.          {
  777.             if(gBlockMusic == undefined)
  778.             {
  779.                if(gCommentOn !== undefined)
  780.                {
  781.                   soundObjects[gMusic].setVolume(gVolume * 0.4);
  782.                }
  783.                else
  784.                {
  785.                   soundObjects[gMusic].setVolume(gVolume);
  786.                }
  787.             }
  788.             else
  789.             {
  790.                soundObjects[gMusic].setVolume(0);
  791.             }
  792.             soundObjects[gMusic].start(0,1000);
  793.          }
  794.    }
  795. }
  796. function changeVolume(myChangeVolume)
  797. {
  798.    trace("changeVolume   : " + myChangeVolume);
  799.    gVolume = Number(myChangeVolume);
  800.    if(gCommentOn !== undefined)
  801.    {
  802.       gCommentOn.setVolume(gVolume);
  803.       if(gMusicOn == 1)
  804.       {
  805.          soundObjects[gMusic].setVolume(gVolume * 0.4);
  806.       }
  807.    }
  808.    else if(gMusicOn == 1)
  809.    {
  810.       soundObjects[gMusic].setVolume(gVolume);
  811.    }
  812. }
  813. function DesactiveBZ()
  814. {
  815.    BT_BZ.useHandCursor = false;
  816.    BT_BZ.gBZactif = 0;
  817. }
  818. function ActiveBZ()
  819. {
  820.    BT_BZ.useHandCursor = true;
  821.    BT_BZ.gBZactif = 1;
  822. }
  823. function getRessourceByID(attributeValue, typeRessource)
  824. {
  825.    var _loc2_ = this.moduleInfo.filterNode(this.moduleInfo.returnNodeByPath("Resources.ResourcesZip"),"type",typeRessource);
  826.    mySound = undefined;
  827.    mySound = this.recusiveGetSoundByAttribute(_loc2_,"id",attributeValue);
  828.    if(mySound == undefined)
  829.    {
  830.       trace(attributeValue + " n\'existe pas dans XML");
  831.    }
  832.    return mySound;
  833. }
  834. function getSoundByID(attributeValue)
  835. {
  836.    var _loc2_ = this.moduleInfo.filterNode(this.moduleInfo.returnNodeByPath("Resources.ResourcesZip"),"type","mp3");
  837.    mySound = undefined;
  838.    mySound = this.recusiveGetSoundByAttribute(_loc2_,"id",attributeValue);
  839.    if(mySound == undefined)
  840.    {
  841.       trace(attributeValue + " n\'existe pas dans XML");
  842.    }
  843.    return mySound;
  844. }
  845. function recusiveGetSoundByAttribute(node, attribute, attributeValue)
  846. {
  847.    var _loc2_ = 0;
  848.    while(_loc2_ < node.childNodes.length)
  849.    {
  850.       if(node.childNodes[_loc2_].attributes[attribute] == attributeValue)
  851.       {
  852.          mySound = node.childNodes[_loc2_];
  853.          break;
  854.       }
  855.       if(node.childNodes[_loc2_].hasChildNodes())
  856.       {
  857.          this.recusiveGetSoundByAttribute(node.childNodes[_loc2_],attribute,attributeValue);
  858.       }
  859.       _loc2_ = _loc2_ + 1;
  860.    }
  861.    return mySound;
  862. }
  863. function gereCursor(myCursor)
  864. {
  865.    switch(myCursor)
  866.    {
  867.       case 1:
  868.       case "fleche":
  869.          myCursor = "fleche";
  870.          break;
  871.       case 2:
  872.       case "doigt":
  873.          myCursor = "doigt";
  874.          break;
  875.       case 3:
  876.       case "mainO":
  877.          myCursor = "mainO";
  878.          break;
  879.       case 4:
  880.       case "mainF":
  881.          myCursor = "mainF";
  882.          break;
  883.       case 0:
  884.       case "O":
  885.          myCursor = "O";
  886.    }
  887.    trace("cursor " + myCursor);
  888.    _global.CURSEUR.Action(myCursor);
  889. }
  890. function ConvertCoord(mc_src, mc_dest)
  891. {
  892.    var _loc1_ = {x:0,y:0};
  893.    mc_src.localToGlobal(_loc1_);
  894.    mc_dest.globalToLocal(_loc1_);
  895.    return _loc1_;
  896. }
  897. function xtrace(p)
  898. {
  899.    var _loc3_ = typeof p != "string" ? "" + p.mess : "" + p;
  900.    var _loc5_ = p.group != undefined ? p.group : "tous";
  901.    if(xtraceGroups[_loc5_] == 1)
  902.    {
  903.       trace(_loc3_);
  904.       if(_global.xtrace_mode != "on")
  905.       {
  906.          return undefined;
  907.       }
  908.       var _loc4_ = new LocalConnection();
  909.       _loc4_.allowDomain = function(sendingDomain)
  910.       {
  911.          return true;
  912.       };
  913.       _loc4_.send("lc_name","AfficherTexte",_loc3_);
  914.    }
  915. }
  916. function xtrace_raz()
  917. {
  918.    if(_global.xtrace_mode != "on")
  919.    {
  920.       return undefined;
  921.    }
  922.    var _loc2_ = new LocalConnection();
  923.    _loc2_.send("lc_name","RazTexte",mess);
  924. }
  925. function xlisteObj(p)
  926. {
  927.    if(xlisteObj_mode != "on")
  928.    {
  929.       return undefined;
  930.    }
  931.    var _loc1_ = p.obj != undefined ? p.obj : p;
  932.    p.mess = p.mess != undefined ? p.mess : "";
  933.    xtrace({mess:"\r____________________" + p.mess + " " + _loc1_._name + "______________________",group:p.group});
  934.    for(props in _loc1_)
  935.    {
  936.       xtrace({mess:props + " = " + _loc1_[props],group:p.group});
  937.    }
  938.    xtrace({mess:"_________________________________________________\r",group:p.group});
  939. }
  940. function IncString(str, seuil)
  941. {
  942.    var _loc2_ = str.split("_");
  943.    var _loc1_ = _loc2_.length - 1;
  944.    var _loc3_ = Number(_loc2_[_loc1_]) + 1;
  945.    while(_loc3_ > seuil)
  946.    {
  947.       _loc2_[_loc1_] = gimme2digits(0);
  948.       _loc1_ = _loc1_ - 1;
  949.       _loc3_ = Number(_loc2_[_loc1_]) + 1;
  950.    }
  951.    _loc2_[_loc1_] = gimme2digits(_loc3_);
  952.    return _loc2_.join("_");
  953. }
  954. function DecString(str)
  955. {
  956.    var _loc1_ = str.split("_");
  957.    trace(_loc1_);
  958.    var _loc2_ = _loc1_.length - 1;
  959.    trace(Number(_loc1_[_loc2_]));
  960.    _loc1_[_loc2_] = gimme2digits(Number(_loc1_[_loc2_]) - 1);
  961.    return _loc1_.join("_");
  962. }
  963. function xGetConfig()
  964. {
  965.    _root.xConfig = new Object();
  966.    _root.xConfig.Set = function(p)
  967.    {
  968.       if(_root.xConfig[p.nom] == undefined)
  969.       {
  970.          if(p.defaut != "OBLIGATOIRE")
  971.          {
  972.             _root.xConfig[p.nom] = p.defaut;
  973.             if(p.type == "number")
  974.             {
  975.                _root.xConfig[p.nom] = Number(_root.xConfig[p.nom]);
  976.             }
  977.          }
  978.       }
  979.    };
  980.    _root.xConfig._name = "xConfig";
  981.    var _loc2_ = _root.moduleInfo.returnNodeByPath("Module.Config.Params").childNodes;
  982.    for(props in _loc2_)
  983.    {
  984.       _root.xConfig[_loc2_[props].attributes.nom] = _loc2_[props].attributes.valeur;
  985.    }
  986. }
  987. function GetFilePath(fichier)
  988. {
  989.    var _loc2_ = AntiSlashToSlash(fichier);
  990.    var _loc1_ = _loc2_.split("/");
  991.    _loc1_.pop();
  992.    return _loc1_.join("/");
  993. }
  994. function AntiSlashToSlash(chaine)
  995. {
  996.    return str_replace(chaine,"\\","/");
  997. }
  998. function str_replace(str, search, replace)
  999. {
  1000.    return str.split(search).join(replace);
  1001. }
  1002. function JoindreObjets(objects)
  1003. {
  1004.    var _loc2_ = new Object();
  1005.    var _loc1_ = 0;
  1006.    while(_loc1_ < objects.length)
  1007.    {
  1008.       p1 = objects[_loc1_];
  1009.       for(props in p1)
  1010.       {
  1011.          _loc2_[props] = p1[props];
  1012.       }
  1013.       _loc1_ = _loc1_ + 1;
  1014.    }
  1015.    return _loc2_;
  1016. }
  1017. function GetOriginalSize(mc)
  1018. {
  1019.    var _loc2_ = mc._rotation;
  1020.    mc._rotation = 0;
  1021.    var _loc3_ = {w:mc._width * mc._xscale / 100,h:mc._height * mc._yscale / 100};
  1022.    mc._rotation = _loc2_;
  1023.    return _loc3_;
  1024. }
  1025. function GetOriginalWidth(mc)
  1026. {
  1027.    var _loc2_ = mc._rotation;
  1028.    mc._rotation = 0;
  1029.    var _loc3_ = mc._width * mc._xscale / 100;
  1030.    var _loc4_ = mc._height * mc._yscale / 100;
  1031.    mc._rotation = _loc2_;
  1032.    return _loc3_;
  1033. }
  1034. function GetOriginalHeight(mc)
  1035. {
  1036.    var _loc2_ = mc._rotation;
  1037.    mc._rotation = 0;
  1038.    var _loc4_ = mc._width * mc._xscale / 100;
  1039.    var _loc3_ = mc._height * mc._yscale / 100;
  1040.    mc._rotation = _loc2_;
  1041.    return _loc3_;
  1042. }
  1043. function CreerCache(p)
  1044. {
  1045.    var _loc4_ = p.level != undefined ? p.level : _global.Levels.cache;
  1046.    var _loc2_ = p.mc.createEmptyMovieClip("CACHE",_loc4_);
  1047.    _loc2_.beginFill(65280,50);
  1048.    _loc2_.moveTo(0,0);
  1049.    _loc2_.lineTo(p.width,0);
  1050.    _loc2_.lineTo(p.width,p.height);
  1051.    _loc2_.lineTo(0,p.height);
  1052.    _loc2_.lineTo(0,0);
  1053.    _loc2_.endFill();
  1054.    p.mc.setMask(_loc2_);
  1055. }
  1056. function ConvertCoord(mc_src, mc_dest)
  1057. {
  1058.    var _loc1_ = {x:0,y:0};
  1059.    mc_src.localToGlobal(_loc1_);
  1060.    mc_dest.globalToLocal(_loc1_);
  1061.    return _loc1_;
  1062. }
  1063. function getGlobalCoord(xc, yc, mc)
  1064. {
  1065.    var _loc1_ = {x:xc * 100 / mc._xscale,y:yc * 100 / mc._yscale};
  1066.    mc.localToGlobal(_loc1_);
  1067.    return _loc1_;
  1068. }
  1069. function getLocalCoord(xc, yc, mc)
  1070. {
  1071.    var _loc1_ = new Object({x:xc,y:yc});
  1072.    mc.globalToLocal(_loc1_);
  1073.    _loc1_.x = _loc1_.x / 100 * mc._xscale;
  1074.    _loc1_.y = _loc1_.y / 100 * mc._yscale;
  1075.    return _loc1_;
  1076. }
  1077. function length_ass(arr)
  1078. {
  1079.    var _loc1_ = 0;
  1080.    for(prop in arr)
  1081.    {
  1082.       _loc1_ = _loc1_ + 1;
  1083.    }
  1084.    return _loc1_;
  1085. }
  1086. function ExplodeString(chaine)
  1087. {
  1088.    var _loc3_ = new Array();
  1089.    var _loc1_ = 0;
  1090.    while(_loc1_ < chaine.length)
  1091.    {
  1092.       _loc3_.push(chaine.charAt(_loc1_));
  1093.       _loc1_ = _loc1_ + 1;
  1094.    }
  1095.    return _loc3_;
  1096. }
  1097. function BloquerActives()
  1098. {
  1099.    if(_global.ClipBloquant == undefined)
  1100.    {
  1101.       var _loc0_ = null;
  1102.       var _loc2_ = _global.ClipBloquant = _MOD_.createEmptyMovieClip("ClipBloquant",10123);
  1103.       _loc2_.attachMovie("ClipInvisible","ClipInvisible",2);
  1104.       _loc2_._width = Stage.width;
  1105.       _loc2_._height = Stage.height;
  1106.       _loc2_._x = 0;
  1107.       _loc2_._y = 0;
  1108.       _loc2_.useHandCursor = false;
  1109.       _loc2_.onPress = function()
  1110.       {
  1111.       };
  1112.    }
  1113. }
  1114. function DebloquerActives()
  1115. {
  1116.    if(_global.ClipBloquant != undefined)
  1117.    {
  1118.       removeMovieClip(_global.ClipBloquant);
  1119.       _global.ClipBloquant = undefined;
  1120.    }
  1121. }
  1122. function afficheLM_x2(p)
  1123. {
  1124.    viderLM_x2();
  1125.    _root.gereTextes.afficheLM({codeLM:p.codeLM,X:p.LMrep._x,Y:p.LMrep._y,width:p.LMrep._width,height:p.LMrep._height});
  1126.    LMaVider2.push(p);
  1127. }
  1128. function viderLM_x2()
  1129. {
  1130.    var _loc3_ = 0;
  1131.    while(_loc3_ < _global.LMaVider2.length)
  1132.    {
  1133.       _root.gereTextes.masqueLM(_global.LMaVider2[_loc3_]);
  1134.       _loc3_ = _loc3_ + 1;
  1135.    }
  1136. }
  1137. function afficheLM_x(p)
  1138. {
  1139.    _root.gereTextes.afficheLM({codeLM:p.codeLM,X:p.LMrep._x - p.width / 2,Y:p.LMrep._y - p.height / 2,width:p.width,height:p.height});
  1140.    _global.LMaVider.push(p);
  1141. }
  1142. function viderLM_x()
  1143. {
  1144.    var _loc3_ = 0;
  1145.    while(_loc3_ < _global.LMaVider.length)
  1146.    {
  1147.       _root.gereTextes.masqueLM(_global.LMaVider[_loc3_]);
  1148.       _loc3_ = _loc3_ + 1;
  1149.    }
  1150. }
  1151. function InitMC(p)
  1152. {
  1153.    trace("initMC " + p.mc);
  1154.    var mc = typeof p != "movieclip" ? p.mc : p;
  1155.    if(p.level != undefined)
  1156.    {
  1157.       var ceMC_name_old = mc._name + "_old";
  1158.       var ceMC_name = mc._name;
  1159.       mc._name = ceMC_name_old;
  1160.       mc.duplicateMovieClip(ceMC_name,p.level);
  1161.       mc._visible = false;
  1162.       mc = this[ceMC_name];
  1163.    }
  1164.    var fonction = p.fonction != undefined ? eval("InitMC_" + p.fonction) : InitMC_standart;
  1165.    mc.InitMC = fonction;
  1166.    mc.InitMC(p);
  1167. }
  1168. function InitMC_standart(p)
  1169. {
  1170.    if(p.IB != undefined)
  1171.    {
  1172.       if(typeof p.IBrep == "movieclip")
  1173.       {
  1174.          var IBrepere = p.IBrep;
  1175.       }
  1176.       else if(p.IBrep == true)
  1177.       {
  1178.          var IBrepere = _MOD_["IBrep_" + p.IB];
  1179.       }
  1180.       else
  1181.       {
  1182.          var IBrepere = p.mc;
  1183.       }
  1184.       this.afficheIB = function()
  1185.       {
  1186.          _MOD_.gereTextes.afficheIB({codeIB:p.IB,mc:IBrepere});
  1187.       };
  1188.       this.masqueIB = function()
  1189.       {
  1190.          _MOD_.gereTextes.masqueIB();
  1191.       };
  1192.    }
  1193.    this.reposFrame = p.reposFrame != undefined ? p.reposFrame : "E1";
  1194.    this.pressFrame = p.pressFrame != undefined ? p.pressFrame : "E2";
  1195.    this.overFrame = p.overFrame != undefined ? p.overFrame : "E2";
  1196.    this.outFrame = p.outFrame != undefined ? p.outFrame : "E1";
  1197.    this.releaseFrame = p.releaseFrame != undefined ? p.releaseFrame : "E1";
  1198.    this.releaseOutFrame = p.releaseOutFrame != undefined ? p.releaseOutFrame : "E1";
  1199.    this.activeFrame = p.activeFrame != undefined ? p.activeFrame : undefined;
  1200.    this.desactiveFrame = p.desactiveFrame != undefined ? p.desactiveFrame : undefined;
  1201.    if(p.reposFrame != undefined)
  1202.    {
  1203.       this.gotoAndStop(p.reposFrame);
  1204.    }
  1205.    this.p = p;
  1206.    ┬º┬ºpush(this);
  1207.    ┬º┬ºpush("joueson");
  1208.    if(p.son == undefined)
  1209.    {
  1210.       ┬º┬ºpush(undefined);
  1211.    }
  1212.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1213.    ┬º┬ºpush(this);
  1214.    ┬º┬ºpush("stopson");
  1215.    if(p.nostop != undefined)
  1216.    {
  1217.       ┬º┬ºpush(undefined);
  1218.    }
  1219.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1220.    if(p.sonOnPress != undefined)
  1221.    {
  1222.       this.sonOnPress = p.sonOnPress;
  1223.       this.sonOnPress_offset = p.sonOnPress_offset != undefined ? Number(p.sonOnPress_offset) : 0;
  1224.       this.sonOnPress_loopSon = p.sonOnPress_loopSon != undefined ? Number(p.sonOnPress_loopSon) : 0;
  1225.       this.jouesonOnPress = function()
  1226.       {
  1227.          joueBruitage({nomSon:this.sonOnPress,offset:this.sonOnPress_offset,loopSon:this.sonOnPress_loopSon});
  1228.       };
  1229.       this.stopsonOnPress = function()
  1230.       {
  1231.          stopBruitage({nomSon:this.sonOnPress});
  1232.       };
  1233.    }
  1234.    else
  1235.    {
  1236.       this.jouesonOnMove = undefined;
  1237.       this.stopsonOnMove = undefined;
  1238.    }
  1239.    this.curseur_after_press = p.goto != undefined ? "fleche" : "doigt";
  1240.    this.curseur_after_press = p.curseurAfterPress != undefined ? p.curseurAfterPress : "doigt";
  1241.    this.goto = p.goto;
  1242.    this.Activer = function()
  1243.    {
  1244.       if(this.Actif == true)
  1245.       {
  1246.          return undefined;
  1247.       }
  1248.       this.enabled = true;
  1249.       this.BTN.enabled = true;
  1250.       this.Actif = true;
  1251.       this.gotoAndStop(this.activeFrame);
  1252.    };
  1253.    this.Desactiver = function()
  1254.    {
  1255.       if(this.Actif == false)
  1256.       {
  1257.          return undefined;
  1258.       }
  1259.       this.enabled = false;
  1260.       this.BTN.enabled = false;
  1261.       this.Actif = false;
  1262.       this.stopsonOnPress();
  1263.       this.masqueIB();
  1264.       this.gotoAndStop(this.desactiveFrame);
  1265.    };
  1266.    this.Activer();
  1267.    this.GS = this.gotoAndStop;
  1268.    this.MConPress = function()
  1269.    {
  1270.       if(this.p.blockOnPress == true)
  1271.       {
  1272.          this.enabled = false;
  1273.       }
  1274.       this.stopson();
  1275.       this.jouesonOnPress();
  1276.       this.masqueIB();
  1277.       this.gotoAndStop(this.pressFrame);
  1278.       gereCursor(this.curseur_after_press);
  1279.       _root.gotoAndStop(this.goto);
  1280.       var p = this.OnPress();
  1281.    };
  1282.    this.MConRollOver = function()
  1283.    {
  1284.       this.joueson();
  1285.       this.afficheIB();
  1286.       this.gotoAndStop(this.overFrame);
  1287.       gereCursor("doigt");
  1288.       var _loc2_ = this.OnRollOver();
  1289.    };
  1290.    this.MConRollOut = function()
  1291.    {
  1292.       this.stopson();
  1293.       this.masqueIB();
  1294.       this.gotoAndStop(this.outFrame);
  1295.       gereCursor("fleche");
  1296.       var _loc2_ = this.OnRollOut();
  1297.    };
  1298.    this.MConRelease = function()
  1299.    {
  1300.       this.gotoAndStop(this.releaseFrame);
  1301.       gereCursor("doigt");
  1302.       var _loc2_ = this.OnRelease();
  1303.    };
  1304.    this.MConReleaseOutside = function()
  1305.    {
  1306.       this.gotoAndStop(this.releaseOutFrame);
  1307.       gereCursor("fleche");
  1308.       var _loc2_ = this.OnReleaseOutside();
  1309.    };
  1310.    if(p.BTN != true)
  1311.    {
  1312.       this.onPress = this.MConPress;
  1313.       this.onRollOver = this.MConRollOver;
  1314.       this.onRollOut = this.MConRollOut;
  1315.       this.onRelease = this.MConRelease;
  1316.       this.onReleaseOutside = this.MConReleaseOutside;
  1317.    }
  1318.    else
  1319.    {
  1320.       this.BTN.onPress = function()
  1321.       {
  1322.          this._parent.MConPress();
  1323.       };
  1324.       this.BTN.onRollOver = function()
  1325.       {
  1326.          this._parent.MConRollOver();
  1327.       };
  1328.       this.BTN.onRollOut = function()
  1329.       {
  1330.          this._parent.MConRollOut();
  1331.       };
  1332.       this.BTN.onRelease = function()
  1333.       {
  1334.          this._parent.MConRelease();
  1335.       };
  1336.       this.BTN.onReleaseOutside = function()
  1337.       {
  1338.          this._parent.MConReleaseOutside();
  1339.       };
  1340.    }
  1341. }
  1342. function InitMC_BTN(p)
  1343. {
  1344.    if(p.IB != undefined)
  1345.    {
  1346.       if(p.IBrep == true)
  1347.       {
  1348.          var IBrepere = _MOD_["IBrep_" + p.IB];
  1349.       }
  1350.       else
  1351.       {
  1352.          var IBrepere = p.mc;
  1353.       }
  1354.       this.afficheIB = function()
  1355.       {
  1356.          gereTextes.afficheIB({codeIB:p.IB,mc:IBrepere});
  1357.       };
  1358.       this.masqueIB = function()
  1359.       {
  1360.          gereTextes.masqueIB();
  1361.       };
  1362.    }
  1363.    this.enabled = true;
  1364.    ┬º┬ºpush(this);
  1365.    ┬º┬ºpush("joueson");
  1366.    if(p.son == undefined)
  1367.    {
  1368.       ┬º┬ºpush(undefined);
  1369.    }
  1370.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1371.    ┬º┬ºpush(this);
  1372.    ┬º┬ºpush("stopson");
  1373.    if(p.nostop != undefined)
  1374.    {
  1375.       ┬º┬ºpush(undefined);
  1376.    }
  1377.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1378.    var curseur_after_press = p.goto != undefined ? "fleche" : "doigt";
  1379.    this.goto = p.goto;
  1380.    this.BTN.onPress = function()
  1381.    {
  1382.       this._parent.stopson();
  1383.       this._parent.masqueIB();
  1384.       this._parent.gotoAndStop("E3");
  1385.       gereCursor(curseur_after_press);
  1386.       _root.gotoAndStop(this.goto);
  1387.       var _loc3_ = this._parent.OnPress();
  1388.    };
  1389.    this.BTN.onRollOver = function()
  1390.    {
  1391.       this._parent.joueson();
  1392.       this._parent.afficheIB();
  1393.       this._parent.gotoAndStop("E2");
  1394.       gereCursor("doigt");
  1395.       var _loc2_ = this._parent.OnRollOver();
  1396.    };
  1397.    this.BTN.onRollOut = function()
  1398.    {
  1399.       this._parent.stopson();
  1400.       this._parent.masqueIB();
  1401.       this._parent.gotoAndStop("E1");
  1402.       gereCursor("fleche");
  1403.       var _loc2_ = this._parent.OnRollOut();
  1404.    };
  1405.    this.BTN.onRelease = function()
  1406.    {
  1407.       this._parent.gotoAndStop("E2");
  1408.       gereCursor("doigt");
  1409.       var _loc2_ = this._parent.OnRelease();
  1410.    };
  1411.    this.BTN.onReleaseOutside = function()
  1412.    {
  1413.       this._parent.gotoAndStop("E1");
  1414.       gereCursor("fleche");
  1415.       var _loc2_ = this._parent.OnReleaseOutside();
  1416.    };
  1417. }
  1418. function InitMC_dragdrop(p)
  1419. {
  1420.    xtrace("InitMC");
  1421.    if(p.IB != undefined)
  1422.    {
  1423.       if(p.IBrep == true)
  1424.       {
  1425.          var IBrepere = _MOD_["IBrep_" + p.IB];
  1426.       }
  1427.       else
  1428.       {
  1429.          var IBrepere = p.mc;
  1430.       }
  1431.       this.afficheIB = function()
  1432.       {
  1433.          gereTextes.afficheIB({codeIB:p.IB,mc:IBrepere});
  1434.       };
  1435.       this.masqueIB = function()
  1436.       {
  1437.          gereTextes.masqueIB();
  1438.       };
  1439.    }
  1440.    this.pDepth = this.getDepth();
  1441.    this.pressFrame = p.pressFrame != undefined ? p.pressFrame : "E3";
  1442.    ┬º┬ºpush(this);
  1443.    ┬º┬ºpush("joueson");
  1444.    if(p.son == undefined)
  1445.    {
  1446.       ┬º┬ºpush(undefined);
  1447.    }
  1448.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1449.    ┬º┬ºpush(this);
  1450.    ┬º┬ºpush("stopson");
  1451.    if(p.son == undefined)
  1452.    {
  1453.       ┬º┬ºpush(undefined);
  1454.    }
  1455.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1456.    ┬º┬ºpush(this);
  1457.    ┬º┬ºpush("jouesonOnPress");
  1458.    if(p.son == undefined)
  1459.    {
  1460.       ┬º┬ºpush(undefined);
  1461.    }
  1462.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1463.    ┬º┬ºpush(this);
  1464.    ┬º┬ºpush("stopsonOnPress");
  1465.    if(p.son == undefined)
  1466.    {
  1467.       ┬º┬ºpush(undefined);
  1468.    }
  1469.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1470.    ┬º┬ºpush(this);
  1471.    ┬º┬ºpush("jouesonOnOverCible");
  1472.    if(p.son == undefined)
  1473.    {
  1474.       ┬º┬ºpush(undefined);
  1475.    }
  1476.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1477.    ┬º┬ºpush(this);
  1478.    ┬º┬ºpush("stopsonOnOverCible");
  1479.    if(p.son == undefined)
  1480.    {
  1481.       ┬º┬ºpush(undefined);
  1482.    }
  1483.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1484.    var _loc5_ = p.goto != undefined ? "fleche" : "doigt";
  1485.    this.goto = p.goto;
  1486.    this.DetectDrag = function()
  1487.    {
  1488.       this._x = _xmouse - this.ecart_mousex;
  1489.       this._y = _ymouse - this.ecart_mousey;
  1490.       this.CiblesTouchees = [];
  1491.       var _loc2_ = 0;
  1492.       while(_loc2_ < this.CiblesDrag.length)
  1493.       {
  1494.          if(this.hitTest(this.CiblesDrag[_loc2_]))
  1495.          {
  1496.             this.CiblesDrag[_loc2_].gotoAndStop("E3");
  1497.             this.CiblesTouchees.push(this.CiblesDrag[_loc2_]);
  1498.             this.touche = this.touche + 1;
  1499.          }
  1500.          else
  1501.          {
  1502.             this.CiblesDrag[_loc2_].gotoAndStop("E1");
  1503.          }
  1504.          _loc2_ = _loc2_ + 1;
  1505.       }
  1506.       if(this.touche == 1)
  1507.       {
  1508.          this.jouesonOnOverCible();
  1509.       }
  1510.       if(this.CiblesTouchees.length <= 0)
  1511.       {
  1512.          this.touche = 0;
  1513.          this.stopsonOnOverCible();
  1514.       }
  1515.       this.PendantDrag();
  1516.    };
  1517.    this.StartDrag = function()
  1518.    {
  1519.       this.ecart_mousex = _xmouse - this._x;
  1520.       this.ecart_mousey = _ymouse - this._y;
  1521.       this.IntervalId = setInterval(mx.utils.Delegate.create(this,this.DetectDrag),10);
  1522.       this.swapDepths(15800);
  1523.    };
  1524.    this.ComeBack = function()
  1525.    {
  1526.       this._x = this.xOri;
  1527.       this._y = this.yOri;
  1528.       this.gotoAndStop("E1");
  1529.    };
  1530.    this.onPress = function()
  1531.    {
  1532.       this.jouesonOnPress();
  1533.       this.xOri = this._x;
  1534.       this.yOri = this._y;
  1535.       this.masqueIB();
  1536.       this.gotoAndStop(this.pressFrame);
  1537.       gereCursor("mainF");
  1538.       this.StartDrag();
  1539.       var _loc2_ = this.OnPress();
  1540.    };
  1541.    this.onRollOver = function()
  1542.    {
  1543.       this.joueson();
  1544.       this.afficheIB();
  1545.       this.gotoAndStop("E2");
  1546.       gereCursor("mainO");
  1547.       var _loc2_ = this.OnRollOver();
  1548.    };
  1549.    this.onRollOut = function()
  1550.    {
  1551.       this.stopson();
  1552.       this.gotoAndStop("E1");
  1553.       this.masqueIB();
  1554.       gereCursor("fleche");
  1555.       var _loc2_ = this.OnRollOut();
  1556.    };
  1557.    this.onRelease = function()
  1558.    {
  1559.       gereCursor("mainO");
  1560.       this.stopsonOnPress();
  1561.       this.gotoAndStop("E2");
  1562.       clearInterval(this.IntervalId);
  1563.       this.CiblesTouchees = [];
  1564.       var _loc2_ = 0;
  1565.       while(_loc2_ < this.CiblesDrag.length)
  1566.       {
  1567.          if(this.hitTest(this.CiblesDrag[_loc2_]))
  1568.          {
  1569.             _;
  1570.             this.CiblesTouchees.push(this.CiblesDrag[_loc2_]);
  1571.          }
  1572.          _loc2_ = _loc2_ + 1;
  1573.       }
  1574.       this.swapDepths(this.pDepth);
  1575.       this.ApresDrag();
  1576.       var _loc3_ = this.OnRelease();
  1577.    };
  1578.    this.onReleaseOutside = this.onRelease;
  1579. }
  1580. function InitMC_slider(p)
  1581. {
  1582.    if(p.IB != undefined)
  1583.    {
  1584.       if(p.IBrep == true)
  1585.       {
  1586.          var IBrepere = _MOD_["IBrep_" + p.IB];
  1587.       }
  1588.       else
  1589.       {
  1590.          var IBrepere = p.mc;
  1591.       }
  1592.       this.afficheIB = function()
  1593.       {
  1594.          gereTextes.afficheIB({codeIB:p.IB,mc:IBrepere});
  1595.       };
  1596.       this.masqueIB = function()
  1597.       {
  1598.          gereTextes.masqueIB();
  1599.       };
  1600.    }
  1601.    ┬º┬ºpush(this);
  1602.    ┬º┬ºpush("joueson");
  1603.    if(p.son == undefined)
  1604.    {
  1605.       ┬º┬ºpush(undefined);
  1606.    }
  1607.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1608.    ┬º┬ºpush(this);
  1609.    ┬º┬ºpush("stopson");
  1610.    if(p.son == undefined)
  1611.    {
  1612.       ┬º┬ºpush(undefined);
  1613.    }
  1614.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1615.    var _loc6_ = p.goto != undefined ? "fleche" : "doigt";
  1616.    this.goto = p.goto;
  1617.    this.EnMouvement = false;
  1618.    if(p.sonOnMove != undefined)
  1619.    {
  1620.       this.sonOnMove = p.sonOnMove;
  1621.       this.sonOnMove_offset = p.sonOnMove_offset != undefined ? Number(p.sonOnMove_offset) : 0;
  1622.       this.sonOnMove_loopSon = p.sonOnMove_loopSon != undefined ? Number(p.sonOnMove_loopSon) : 0;
  1623.       this.jouesonOnMove = function()
  1624.       {
  1625.          joueBruitage({nomSon:this.sonOnMove,offset:this.sonOnMove_offset,loopSon:this.sonOnMove_loopSon});
  1626.       };
  1627.       this.stopsonOnMove = function()
  1628.       {
  1629.          stopBruitage({nomSon:this.sonOnMove});
  1630.       };
  1631.    }
  1632.    else
  1633.    {
  1634.       this.jouesonOnMove = undefined;
  1635.       this.stopsonOnMove = undefined;
  1636.    }
  1637.    if(p.sonOnPress != undefined)
  1638.    {
  1639.       this.sonOnPress = p.sonOnPress;
  1640.       this.sonOnPress_offset = p.sonOnPress_offset != undefined ? Number(p.sonOnPress_offset) : 0;
  1641.       this.sonOnPress_loopSon = p.sonOnPress_loopSon != undefined ? Number(p.sonOnPress_loopSon) : 0;
  1642.       this.jouesonOnPress = function()
  1643.       {
  1644.          joueBruitage({nomSon:this.sonOnPress,offset:this.sonOnPress_offset,loopSon:this.sonOnPress_loopSon});
  1645.       };
  1646.       this.stopsonOnPress = function()
  1647.       {
  1648.          stopBruitage({nomSon:this.sonOnPress});
  1649.       };
  1650.    }
  1651.    else
  1652.    {
  1653.       this.jouesonOnMove = undefined;
  1654.       this.stopsonOnMove = undefined;
  1655.    }
  1656.    this.DragZone = {left:this._x,right:this._x + p.DragZoneLargeur,top:this._y,bottom:this._y};
  1657.    this.DragZoneLargeur = p.DragZoneLargeur;
  1658.    this.DragZoneLargeur_pourcent = p.DragZoneLargeur / 100;
  1659.    this.SetPosition = function(pourcent)
  1660.    {
  1661.       this._x = this.DragZone.left + this.DragZoneLargeur_pourcent * pourcent;
  1662.    };
  1663.    this.GetPosition = function()
  1664.    {
  1665.       return (this._x - this.DragZone.left) / this.DragZoneLargeur_pourcent;
  1666.    };
  1667.    this.DetectDrag = function()
  1668.    {
  1669.       this._x = _root._xmouse - this.ecart_mousex;
  1670.       this._y = _root._ymouse - this.ecart_mousey;
  1671.       if(this._x <= this.DragZone.left)
  1672.       {
  1673.          this._x = this.DragZone.left;
  1674.       }
  1675.       if(this._y < this.DragZone.top)
  1676.       {
  1677.          this._y = this.DragZone.top;
  1678.       }
  1679.       if(this._x >= this.DragZone.right)
  1680.       {
  1681.          this._x = this.DragZone.right;
  1682.       }
  1683.       if(this._y > this.DragZone.bottom)
  1684.       {
  1685.          this._y = this.DragZone.bottom;
  1686.       }
  1687.       updateAfterEvent();
  1688.       if(this._x == this.lastx && this._y == this.lasty)
  1689.       {
  1690.          if(this.EnMouvement == true)
  1691.          {
  1692.             this.EnMouvement = false;
  1693.             this.stopsonOnMove();
  1694.          }
  1695.       }
  1696.       else if(this.EnMouvement == false)
  1697.       {
  1698.          this.EnMouvement = true;
  1699.          this.jouesonOnMove();
  1700.       }
  1701.       this.lastx = this._x;
  1702.       this.lasty = this._y;
  1703.       this.PendantSlide();
  1704.    };
  1705.    this.StartDrag = function()
  1706.    {
  1707.       this.ecart_mousex = _root._xmouse - this._x;
  1708.       this.ecart_mousey = _root._ymouse - this._y;
  1709.       this.lastx = this._x;
  1710.       this.lasty = this._y;
  1711.       this.IntervalId = setInterval(mx.utils.Delegate.create(this,this.DetectDrag),1);
  1712.    };
  1713.    this.onPress = function()
  1714.    {
  1715.       this.jouesonOnPress();
  1716.       this.masqueIB();
  1717.       this.gotoAndStop("E3");
  1718.       gereCursor("mainF");
  1719.       this.StartDrag();
  1720.       var _loc2_ = this.OnPress();
  1721.    };
  1722.    this.onRollOver = function()
  1723.    {
  1724.       this.joueson();
  1725.       this.afficheIB();
  1726.       this.gotoAndStop("E2");
  1727.       gereCursor("mainO");
  1728.       var _loc2_ = this.OnRollOver();
  1729.    };
  1730.    this.onRollOut = function()
  1731.    {
  1732.       this.stopson();
  1733.       this.stopsonOnPress();
  1734.       this.stopsonOnMove();
  1735.       this.gotoAndStop("E1");
  1736.       this.masqueIB();
  1737.       gereCursor("fleche");
  1738.       var _loc2_ = this.OnRollOut();
  1739.    };
  1740.    this.onRelease = function()
  1741.    {
  1742.       this.gotoAndStop("E2");
  1743.       clearInterval(this.IntervalId);
  1744.       this.stopson();
  1745.       this.stopsonOnPress();
  1746.       this.stopsonOnMove();
  1747.       gereCursor("mainO");
  1748.       var _loc2_ = this.OnRelease();
  1749.    };
  1750.    this.onReleaseOutside = function()
  1751.    {
  1752.       this.onRelease();
  1753.       gereCursor("fleche");
  1754.       var _loc2_ = this.OnReleaseOutside();
  1755.    };
  1756. }
  1757. function InitMC_titre(p)
  1758. {
  1759.    this.LMaVider = [];
  1760.    this.offsetx = p.offsetx != undefined ? Number(p.offsetx) : 0;
  1761.    this.offsety = p.offsety != undefined ? Number(p.offsety) : 0;
  1762.    this.ChangeTexte = function(p)
  1763.    {
  1764.       this.viderLM();
  1765.       _root.gereTextes.afficheLM({codeLM:p.codeLM,X:this._x + this.offsetx,Y:this._y + this.offsety,width:this._width,height:this._height});
  1766.       this.LMaVider.push(p);
  1767.    };
  1768.    this.viderLM = function()
  1769.    {
  1770.       var _loc3_ = 0;
  1771.       while(_loc3_ < this.LMaVider.length)
  1772.       {
  1773.          _root.gereTextes.masqueLM(this.LMaVider[_loc3_]);
  1774.          _loc3_ = _loc3_ + 1;
  1775.       }
  1776.    };
  1777. }
  1778. function INIT_INTERFACE(intLabel)
  1779. {
  1780.    Interface = Interface["A_" + gModuleName + "_INTERFACE_DDB"];
  1781.    Interface.gotoAndPlay(intLabel);
  1782.    Interface._visible = 1;
  1783.    _global.BT_OEIL = Interface.BT_OEIL;
  1784.    _global.BT_SOM = Interface.BT_SOM;
  1785.    _global.ActiveOEIL = ActiveOEIL;
  1786.    _root.ActiveOEIL = ActiveOEIL;
  1787.    _global.DesactiveOEIL = DesactiveOEIL;
  1788.    _root.DesactiveOEIL = DesactiveOEIL;
  1789.    _root.OEILCLIC = 0;
  1790. }
  1791. function DesactiveOEIL()
  1792. {
  1793.    trace("DesactiveOEIL");
  1794.    BT_OEIL.useHandCursor = false;
  1795.    BT_OEIL.gOEILactif = 0;
  1796. }
  1797. function ActiveOEIL()
  1798. {
  1799.    trace("ActiveOEIL");
  1800.    BT_OEIL.useHandCursor = true;
  1801.    BT_OEIL.gOEILactif = 1;
  1802. }
  1803. function MASCOTTE_SORT(p)
  1804. {
  1805.    trace(_root.swfStocker["A_" + gModuleName + "_" + p.mascotte]);
  1806.    _root.swfStocker["A_" + gModuleName + "_" + p.mascotte].gotoAndPlay("E1");
  1807.    _root.swfStocker["A_" + gModuleName + "_" + p.mascotte]._visible = true;
  1808.    _root.cMascotte = p.cMascotte;
  1809.    _root.bMascotte = p.bMascotte;
  1810.    _root.mNextLabel = p.nextLabel;
  1811. }
  1812. function initRelance(p)
  1813. {
  1814.    intervalRel = setInterval(this,"oeilRelance",p.tempsRel * 1000,p.sonRel);
  1815. }
  1816. function oeilRelance(sonRel)
  1817. {
  1818.    joueSon({nomSon:sonRel});
  1819.    _root.gotoAndStop(_root._currentframe - 1);
  1820. }
  1821. function clearRelance()
  1822. {
  1823.    clearInterval(intervalRel);
  1824. }
  1825. function playConsignes()
  1826. {
  1827.    trace("playConsigne");
  1828.    DesactiveOEIL();
  1829.    if(_root.OEILCLIC == 0)
  1830.    {
  1831.       _root.OEILCLIC = 1;
  1832.       joueSon({nomSon:"00_ZE",actionFin:"ActiveOEIL"});
  1833.    }
  1834.    else
  1835.    {
  1836.       joueSon({nomSon:"01_ZE",actionFin:"ActiveOEIL"});
  1837.    }
  1838. }
  1839. function afficherRolls()
  1840. {
  1841.    if(nbZones !== undefined)
  1842.    {
  1843.       var _loc3_ = 1;
  1844.       while(_loc3_ <= _root.nbZones)
  1845.       {
  1846.          this["ROLL_" + gimme2digits(_loc3_)]._visible = 1;
  1847.          _loc3_ = _loc3_ + 1;
  1848.       }
  1849.    }
  1850. }
  1851. function masquerRolls()
  1852. {
  1853.    if(nbZones !== undefined)
  1854.    {
  1855.       var _loc3_ = 1;
  1856.       while(_loc3_ <= _root.nbZones)
  1857.       {
  1858.          this["ROLL_" + gimme2digits(_loc3_)]._visible = 0;
  1859.          _loc3_ = _loc3_ + 1;
  1860.       }
  1861.    }
  1862. }
  1863. function animChangeEtat(etat)
  1864. {
  1865.    trace("animChangeEtat : " + activeZone + " - " + etat);
  1866.    this["ANIM_" + activeZone].gotoAndStop(etat);
  1867. }
  1868. function initMoteur()
  1869. {
  1870.    trace(" ____ __ 111111__ _ __ _");
  1871.    var _loc5_ = this;
  1872.    var _loc6_ = _loc5_.createEmptyMovieClip("_moteur_",12354);
  1873.    this.mclR = new MovieClipLoader();
  1874.    if(_global.HOTE != undefined)
  1875.    {
  1876.       var _loc4_ = _global.gPARAMS.HOTE_DIR + "/DATA/HOTE/prod_gen_ED/moteur.swf";
  1877.    }
  1878.    else
  1879.    {
  1880.       _loc4_ = "../../HOTE/prod_gen_ED/moteur.swf";
  1881.    }
  1882.    this.mclR.loadClip(_loc4_,_loc6_);
  1883.    this.mclR.onLoadInit = function(myClip)
  1884.    {
  1885.       trace("_________ allooo ");
  1886.       _root.ChargeMoteur();
  1887.    };
  1888. }
  1889. stop();
  1890. this._lockroot = true;
  1891. _global._MOD_ = this;
  1892. this.CIBLE = this;
  1893. _global.stopComment = stopComment;
  1894. _global.joueSon = joueSon;
  1895. _root.creerClicZap = creerClicZap;
  1896. _global.joueBruitage = joueBruitage;
  1897. _global.stopBruitage = stopBruitage;
  1898. _global.gimme2digits = gimme2digits;
  1899. this.randRange = randomValue;
  1900. _global.chercheDepthPlus = chercheDepthPlus;
  1901. _global.chercheDepthMoins = chercheDepthMoins;
  1902. _global.DesactiveBZ = DesactiveBZ;
  1903. _root.DesactiveBZ = DesactiveBZ;
  1904. _global.ActiveBZ = ActiveBZ;
  1905. _root.ActiveBZ = ActiveBZ;
  1906. _global.xtraceGroups = [];
  1907. xtraceGroups.tous = 1;
  1908. xtraceGroups.doc = 1;
  1909. xtraceGroups.debug = 0;
  1910. xtraceGroups.route = 0;
  1911. xtraceGroups.error = 0;
  1912. _global.xtrace = xtrace;
  1913. _global.xtrace_raz = xtrace_raz;
  1914. _global.xlisteObj = xlisteObj;
  1915. _global.xtrace_mode = _global.xtrace_mode != undefined ? _global.xtrace_mode : "off";
  1916. _global.xlisteObj_mode = _global.xlisteObj_mode != undefined ? _global.xlisteObj_mode : "off";
  1917. this.ChargeMoteur = function(p)
  1918. {
  1919.    this.initVariables();
  1920. };
  1921. trace("XLIBBB");
  1922. this.ChargeMoteur = function(p)
  1923. {
  1924.    trace("Charge Moteur xlib");
  1925.    this.initVariables();
  1926. };
  1927. _global.LMaVider = new Array();
  1928. _global.LMaVider2 = new Array();
  1929. _global.InitMC = InitMC;
  1930. _global.InitMC_standart = InitMC_standart;
  1931. _global.InitMC_BTN = InitMC_BTN;
  1932. _global.InitMC_dragdrop = InitMC_dragdrop;
  1933. _global.InitMC_slider = InitMC_slider;
  1934. _global.InitMC_titre = InitMC_titre;
  1935. _global.IncString = IncString;
  1936. _global.DecString = DecString;
  1937. _global.GetFilePath = GetFilePath;
  1938. _global.AntiSlashToSlash = AntiSlashToSlash;
  1939. _global.str_replace = str_replace;
  1940. _global.JoindreObjets = JoindreObjets;
  1941. _global.xGetConfig = xGetConfig;
  1942. _global.GetOriginalSize = GetOriginalSize;
  1943. _global.GetOriginalHeight = GetOriginalHeight;
  1944. _global.CreerCache = CreerCache;
  1945. _global.ConvertCoord = ConvertCoord;
  1946. _global.getGlobalCoord = getGlobalCoord;
  1947. _global.getLocalCoord = getLocalCoord;
  1948. _global.length_ass = length_ass;
  1949. _global.ExplodeString = ExplodeString;
  1950. _global.BloquerActives = BloquerActives;
  1951. _global.DebloquerActives = DebloquerActives;
  1952. _global.afficheLM_x = afficheLM_x;
  1953. _global.viderLM_x = viderLM_x;
  1954. _global.afficheLM_x2 = afficheLM_x2;
  1955. _global.viderLM_x2 = viderLM_x2;
  1956. trace("FUNCTIONS : COMMUN_DEC");
  1957. _global.xtrace_mode = "on";
  1958. _global.xlisteObj_mode = "on";
  1959. this.initVariables = function()
  1960. {
  1961.    trace("coucou");
  1962.    this.gotoAndStop("INIT");
  1963.    trace({mess:"- execution du code de prod/module/init.as",group:"doc"});
  1964.    trace("init.as");
  1965. };
  1966. this.Init = function()
  1967. {
  1968.    trace(" ____ __ __ _ __ _");
  1969.    this.initMoteur();
  1970. };
  1971. this.InitOk = function()
  1972. {
  1973.    trace("InitOk");
  1974.    if(HOTE == undefined)
  1975.    {
  1976.       this.Start();
  1977.    }
  1978.    else
  1979.    {
  1980.       HOTE.InitFin(this);
  1981.    }
  1982. };
  1983. this.Start = function()
  1984. {
  1985.    gereCursor("fleche");
  1986.    this.gotoAndStop("START");
  1987.    trace("start.as");
  1988. };
  1989. if(HOTE == undefined)
  1990. {
  1991.    this.onEnterFrame = function()
  1992.    {
  1993.       var _loc2_ = this.getBytesLoaded();
  1994.       var _loc3_ = this.getBytesTotal();
  1995.       if(_loc2_ >= _loc3_)
  1996.       {
  1997.          this.Init();
  1998.          delete this.onEnterFrame;
  1999.       }
  2000.    };
  2001. }
  2002. stop();
  2003.