home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 161 / MOBICLIC161.ISO / pc / DATA / MBB161 / MBB161_00 / MBB161_00.swf / scripts / frame_1 / DoAction.as
Text File  |  2014-01-15  |  50KB  |  1,768 lines

  1. function StopAll()
  2. {
  3.    _root.Tween1.stop();
  4.    _root.Tween2.stop();
  5.    _root.Tween3.stop();
  6.    _root.Tween4.stop();
  7.    _root.Tween5.stop();
  8.    _root.Tween6.stop();
  9.    _root.Tween7.stop();
  10.    clearInterval(_root.ZONE_SLIDE.SlideIntId);
  11. }
  12. function BT_FAB_Init(btn)
  13. {
  14.    trace("BT_FAB_Init : " + btn);
  15.    InitMC({mc:btn});
  16.    btn.OnPress = function()
  17.    {
  18.       trace("OnPress : " + OnPress);
  19.       getURL(_root.xConfig.BT_FAB_Lien,"_blank");
  20.    };
  21.    btn.OnRollOver = function()
  22.    {
  23.       trace("OnRollOver : " + btn.couleurRollF);
  24.       btn.LM.texte.textColor = btn.couleurRollF;
  25.    };
  26.    btn.OnRollOut = function()
  27.    {
  28.       trace("OnRollOut : " + btn.couleurRollT);
  29.       btn.LM.texte.textColor = btn.couleurRollT;
  30.    };
  31.    btn.LM.texte.textColor = btn.couleurRollT;
  32. }
  33. function StartFrame()
  34. {
  35.    MascottesInit();
  36.    MEDIAS = [];
  37.    MEDIAS.Nombre = 0;
  38.    MEDIAS.ParNo = [];
  39.    for(var _loc10_ in MediasGroupe.Medias)
  40.    {
  41.       var _loc19_ = MediasGroupe.Medias[_loc10_].mc._name;
  42.       var _loc5_ = _loc19_.split("_");
  43.       var _loc4_ = String(_loc5_[3]);
  44.       MediasGroupe.Medias[_loc10_].mc._name = _loc4_;
  45.       MediasGroupe.Medias[_loc10_].mc = MediasGroupe[_loc4_];
  46.       MEDIAS[MediasGroupe.Medias[_loc10_].mc._name] = {};
  47.       MEDIAS[MediasGroupe.Medias[_loc10_].mc._name].image = MediasGroupe.Medias[_loc10_];
  48.       MEDIAS.Nombre = MEDIAS.Nombre + 1;
  49.       MEDIAS[MediasGroupe.Medias[_loc10_].mc._name].Nom = _loc4_;
  50.       MEDIAS[MediasGroupe.Medias[_loc10_].mc._name].No = Number(str_replace(_loc4_,"MEDIA",""));
  51.       MEDIAS.ParNo[MEDIAS[MediasGroupe.Medias[_loc10_].mc._name].No] = MEDIAS[MediasGroupe.Medias[_loc10_].mc._name];
  52.    }
  53.    for(_loc10_ in VignettesGroupe.Medias)
  54.    {
  55.       _loc19_ = VignettesGroupe.Medias[_loc10_].mc._name;
  56.       trace("vign " + _loc19_);
  57.       _loc5_ = _loc19_.split("_");
  58.       _loc4_ = String(_loc5_[3]);
  59.       VignettesGroupe.Medias[_loc10_].mc._name = _loc4_;
  60.       VignettesGroupe.Medias[_loc10_].mc = VignettesGroupe[_loc4_];
  61.       MEDIAS[VignettesGroupe.Medias[_loc10_].mc._name].vignette = VignettesGroupe.Medias[_loc10_];
  62.    }
  63.    incx = 0;
  64.    var _loc3_ = 65;
  65.    _loc3_ = MEDIAS[_loc10_].vignette.mc._height;
  66.    for(_loc10_ in MEDIAS)
  67.    {
  68.       if(MEDIAS[_loc10_].vignette.mc != undefined)
  69.       {
  70.          MEDIAS[_loc10_].vignette.Bitmap = _root.CloneMcToBitmap({mc:MEDIAS[_loc10_].vignette.mc,pere:VignettesGroupe,level:chercheDepthPlus(VignettesGroupe,1000),nom:MEDIAS[_loc10_].vignette.mc._name + "_bitmap"});
  71.          _loc3_ = 65 / MEDIAS[_loc10_].vignette.Bitmap._height * 100;
  72.          MEDIAS[_loc10_].vignette.Bitmap._visible = true;
  73.          MEDIAS[_loc10_].vignette.Bitmap._xscale = _loc3_;
  74.          MEDIAS[_loc10_].vignette.Bitmap._yscale = _loc3_;
  75.          MEDIAS[_loc10_].vignette.Bitmap._x = 0;
  76.          MEDIAS[_loc10_].vignette.Bitmap._y = 540 - MEDIAS[_loc10_].vignette.Bitmap._height;
  77.          MEDIAS[_loc10_].vignette.X = MEDIAS[_loc10_].vignette.Bitmap._x;
  78.          MEDIAS[_loc10_].vignette.Y = MEDIAS[_loc10_].vignette.Bitmap._y;
  79.          MEDIAS[_loc10_].vignette.Width = MEDIAS[_loc10_].vignette.Bitmap._width;
  80.          MEDIAS[_loc10_].vignette.Height = MEDIAS[_loc10_].vignette.Bitmap._height;
  81.          MEDIAS[_loc10_].vignette.RollWidth = MEDIAS[_loc10_].vignette.Width * 1.2;
  82.          MEDIAS[_loc10_].vignette.RollHeight = MEDIAS[_loc10_].vignette.Height * 1.2;
  83.          MEDIAS[_loc10_].vignette.Bitmap.MEDIA = MEDIAS[_loc10_];
  84.          MEDIAS[_loc10_].vignette.MEDIA = MEDIAS[_loc10_];
  85.          MEDIAS[_loc10_].vignette.Bitmap.onRollOver = function()
  86.          {
  87.             if(this.MEDIA !== _root.VIEWER._LastMedia)
  88.             {
  89.                if(_root.TWEEN1FINI != 41)
  90.                {
  91.                   _root.VIGNETTE_ON_ROLL = this;
  92.                   _root.VIGNETTE_ROLL._width = this._width + 7;
  93.                   _root.VIGNETTE_ROLL._height = this._height + 7;
  94.                   _root.VIGNETTE_ROLL._x = this._x + this._width / 2;
  95.                   _root.VIGNETTE_ROLL._y = this._y + this._height / 2;
  96.                   _root.VIGNETTE_ROLL._visible = true;
  97.                }
  98.             }
  99.          };
  100.          MEDIAS[_loc10_].vignette.Bitmap.onRollOut = function()
  101.          {
  102.             if(this.MEDIA !== _root.VIEWER._LastMedia)
  103.             {
  104.                _root.VIGNETTE_ROLL._visible = false;
  105.             }
  106.          };
  107.          MEDIAS[_loc10_].vignette.Bitmap.onRelease = function()
  108.          {
  109.             _root.VIGNETTE_ROLL._visible = false;
  110.             _root.VIEWER.MediaAfficher(this.MEDIA.No);
  111.             _root.VignetteCentrer(this.MEDIA.No);
  112.          };
  113.          MEDIAS[_loc10_].vignette.Reflet._visible = false;
  114.          MEDIAS[_loc10_].vignette.Reflet._xscale = _loc3_;
  115.          MEDIAS[_loc10_].vignette.Reflet._yscale = _loc3_;
  116.          MEDIAS[_loc10_].vignette.Reflet._x = 0;
  117.          MEDIAS[_loc10_].vignette.Reflet._yscale *= -1;
  118.          MEDIAS[_loc10_].vignette.Reflet.MEDIA = MEDIAS[_loc10_];
  119.          MEDIAS[_loc10_].vignette.Reflet._y = MEDIAS[_loc10_].vignette.Bitmap._y + MEDIAS[_loc10_].vignette.Bitmap._height * 2 + 2;
  120.          MEDIAS[_loc10_].vignette.mc._visible = false;
  121.          MEDIAS[_loc10_].vignette.Width = MEDIAS[_loc10_].vignette.Bitmap._width;
  122.          MEDIAS[_loc10_].vignette.Height = MEDIAS[_loc10_].vignette.Bitmap._height;
  123.          incx += MEDIAS[_loc10_].vignette.Bitmap._width + 30;
  124.       }
  125.    }
  126.    VIGNETTES_CACHE.swapDepths(600);
  127.    VIGNETTES_CACHE._x = 0;
  128.    VIGNETTES_CACHE._y = 438.8;
  129.    VIGNETTES_BLOCK.swapDepths(601);
  130.    VIGNETTES_BLOCK._x = 0;
  131.    VIGNETTES_BLOCK._y = 438.8;
  132.    VIGNETTES_BLOCK._alpha = 0;
  133.    VIGNETTES_BLOCK.useHandCursor = false;
  134.    VIGNETTES_BLOCK.onPress = function()
  135.    {
  136.    };
  137.    VIGNETTE_ROLL.swapDepths(586);
  138.    VIGNETTE_ROLL._visible = false;
  139.    FLG.swapDepths(700);
  140.    FLD.swapDepths(701);
  141.    CURSEUR.swapDepths(750);
  142.    BARRE.swapDepths(720);
  143.    this.PhotoDepart = MEDIAS.MEDIA01;
  144.    this.PhotoDepart.vignette.Bitmap._x = 400 - this.PhotoDepart.vignette.Bitmap._width / 2;
  145.    VignetteCentrer(this.PhotoDepart.No);
  146.    this.VIEWER = new prod.module.Viewer_v002({medias:MEDIAS,params:_root.xConfig,groupe_mc:MediasGroupe});
  147.    this.VIEWER.swapDepths(25114);
  148.    trace("LEVELS " + MediasGroupe.getDepth());
  149.    var _loc7_ = _root.attachMovie("PAD_PHOTO","PAD_PHOTO_FS",35210,{_x:_root.xConfig.PadX,_y:_root.xConfig.PadY,_xscale:_root.xConfig.PadScale,_yscale:Math.abs(_root.xConfig.PadScale)});
  150.    InitMC({mc:_loc7_,son:"B_FULLSCREEN_ROLL",sonOnPress:"B_FULLSCREEN_CLIC"});
  151.    _loc7_.OnPress = function()
  152.    {
  153.       trace("PAD_PHOTO PRESS");
  154.       _root.VIEWER.ModePleinEcranSwap();
  155.    };
  156.    _loc7_.SetStatus = function(etat)
  157.    {
  158.       this.Status = etat;
  159.       if(this.Status == 1)
  160.       {
  161.          this.gotoAndStop("E3");
  162.       }
  163.       else
  164.       {
  165.          this.gotoAndStop("E1");
  166.       }
  167.    };
  168.    _loc7_.OnRollOver = function()
  169.    {
  170.       if(this.Status == 1)
  171.       {
  172.          this.gotoAndStop("E4");
  173.       }
  174.       else
  175.       {
  176.          this.gotoAndStop("E2");
  177.       }
  178.    };
  179.    _loc7_.OnRollOut = function()
  180.    {
  181.       if(this.Status == 1)
  182.       {
  183.          this.gotoAndStop("E3");
  184.       }
  185.       else
  186.       {
  187.          this.gotoAndStop("E1");
  188.       }
  189.    };
  190.    _loc7_.OnRelease = function()
  191.    {
  192.       if(this.Status == 1)
  193.       {
  194.          this.gotoAndStop("E4");
  195.       }
  196.       else
  197.       {
  198.          this.gotoAndStop("E2");
  199.       }
  200.    };
  201.    _loc7_.OnReleaseOutside = function()
  202.    {
  203.       if(this.Status == 1)
  204.       {
  205.          this.gotoAndStop("E3");
  206.       }
  207.       else
  208.       {
  209.          this.gotoAndStop("E1");
  210.       }
  211.    };
  212.    _loc7_._visible = true;
  213.    InitMC({mc:FLG,son:"B_FLECHE_ROLL",sonOnPress:"B_FLECHE_CLIC"});
  214.    FLG.OnPress = function()
  215.    {
  216.       _root.ROLL_ACTIF._visible = false;
  217.       var _loc2_ = -10000;
  218.       var _loc3_ = undefined;
  219.       for(var _loc4_ in _root.MEDIAS)
  220.       {
  221.          if(_root.MEDIAS[_loc4_].vignette != undefined)
  222.          {
  223.             if(_root.MEDIAS[_loc4_].vignette.Bitmap._x > _loc2_ && _root.MEDIAS[_loc4_].vignette.Bitmap._x + _root.MEDIAS[_loc4_].vignette.Bitmap._width < 140)
  224.             {
  225.                _loc2_ = _root.MEDIAS[_loc4_].vignette.Bitmap._x;
  226.                _loc3_ = _root.MEDIAS[_loc4_];
  227.             }
  228.          }
  229.       }
  230.       _root.PhotoDepart = _loc3_;
  231.       var _loc5_ = 660 - _root.PhotoDepart.vignette.Bitmap._width;
  232.       _root.Tween1 = new mx.transitions.Tween(_root.PhotoDepart.vignette.Bitmap,"_x",mx.transitions.easing.Strong.easeOut,_root.PhotoDepart.vignette.Bitmap._x,_loc5_,2,true);
  233.       _root.Tween1.onMotionChanged = function()
  234.       {
  235.          _root.PhotosDistribue();
  236.       };
  237.    };
  238.    FLG.OnRelease = function()
  239.    {
  240.       this.gotoAndStop("E2");
  241.    };
  242.    InitMC({mc:FLD,son:"B_FLECHE_ROLL",sonOnPress:"B_FLECHE_CLIC"});
  243.    FLD.OnPress = function()
  244.    {
  245.       _root.ROLL_ACTIF._visible = false;
  246.       var _loc2_ = 10000;
  247.       var _loc3_ = undefined;
  248.       for(var _loc4_ in _root.MEDIAS)
  249.       {
  250.          if(_root.MEDIAS[_loc4_].vignette != undefined)
  251.          {
  252.             if(_root.MEDIAS[_loc4_].vignette.Bitmap._x < _loc2_ && _root.MEDIAS[_loc4_].vignette.Bitmap._x > 670)
  253.             {
  254.                _loc2_ = _root.MEDIAS[_loc4_].vignette.Bitmap._x;
  255.                _loc3_ = _root.MEDIAS[_loc4_];
  256.             }
  257.          }
  258.       }
  259.       _root.PhotoDepart = _loc3_;
  260.       var _loc5_ = 200;
  261.       _root.Tween2 = new mx.transitions.Tween(_root.PhotoDepart.vignette.Bitmap,"_x",mx.transitions.easing.Strong.easeOut,_root.PhotoDepart.vignette.Bitmap._x,_loc5_,2,true);
  262.       _root.Tween2.onMotionChanged = function()
  263.       {
  264.          _root.PhotosDistribue();
  265.       };
  266.    };
  267.    FLD.OnRelease = function()
  268.    {
  269.       this.gotoAndStop("E2");
  270.    };
  271.    _root.ZONE_SLIDE = new prod.module.ZoneDetectEvent_v001({pere:_root,x:0,y:0,w:800,h:463,level:2300});
  272.    _root.ZONE_SLIDE.onDbClic = function()
  273.    {
  274.       _root.VIEWER.ModePleinEcranSwap();
  275.       gereCursor("mainO");
  276.    };
  277.    _root.ZONE_SLIDE.onDown = function()
  278.    {
  279.    };
  280.    _root.ZONE_SLIDE.onRollOver = function()
  281.    {
  282.       trace("MediaOnRollOver");
  283.       gereCursor("mainO");
  284.    };
  285.    _root.ZONE_SLIDE.onRollOut = function()
  286.    {
  287.       trace("MediaOnRollOut");
  288.       gereCursor("fleche");
  289.    };
  290.    _root.ZONE_SLIDE.onRelease = function(ecart)
  291.    {
  292.       trace("MediaOnRelease");
  293.       gereCursor("mainO");
  294.       _root.VIEWER._SensSlide = - ecart;
  295.       _root.VIEWER.MediaFinSlide();
  296.    };
  297.    _root.ZONE_SLIDE.onPichenette = function(ecart)
  298.    {
  299.       trace("onPichenette");
  300.       gereCursor("mainO");
  301.       _root.VIEWER._SensSlide = - ecart;
  302.       _root.VIEWER.MediaFinSlide();
  303.    };
  304.    _root.ZONE_SLIDE.onReleaseOutside = function()
  305.    {
  306.       trace("MediaOnRollOut");
  307.       gereCursor("fleche");
  308.       this.onRelease();
  309.    };
  310.    _root.ZONE_SLIDE.onClic = function()
  311.    {
  312.       trace("onClic " + this);
  313.       gereCursor("mainF");
  314.       _root.VIEWER.startDrag();
  315.    };
  316.    _root.ZONE_SLIDE.onPress = function()
  317.    {
  318.       trace("MediaOnPress " + this);
  319.       _root.Tween3.stop();
  320.       _root.Tween4.stop();
  321.       _root.Tween5.stop();
  322.       _root.Tween6.stop();
  323.       _root.Tween7.stop();
  324.    };
  325.    var _loc11_ = _root.creerRectangle({pere:_root,level:2105,nom:"FOND_PLEIN_ECRAN",alpha:100,x:0,y:0,width:800,height:600});
  326.    _loc11_._visible = false;
  327.    _loc11_.useHandCursor = false;
  328.    _loc11_.onPress = function()
  329.    {
  330.    };
  331.    _root.ModePleinEcran = false;
  332.    _root.VIEWER.MediaAfficher(1);
  333. }
  334. function CreerBitmapSiNecessaire(media)
  335. {
  336.    var _loc2_ = media.image;
  337.    trace("*------*-+* " + media + " " + _loc2_);
  338.    _loc2_.Bitmap = _root.CloneMcToBitmap({mc:_loc2_.mc,pere:MediasGroupe,level:chercheDepthPlus(MediasGroupe,1000),nom:_loc2_.mc._name + "_bitmap"});
  339.    _loc2_.Bitmap._visible = false;
  340.    _loc2_.mc._visible = false;
  341.    _loc2_.Bitmap._x = _loc2_.X;
  342.    _loc2_.Bitmap._y = _loc2_.Y;
  343.    _loc2_.Bitmap.MEDIA = media;
  344.    _loc2_.Bitmap._visible = false;
  345.    trace("*-+-*-+* " + _loc2_.Bitmap);
  346.    return _loc2_.Bitmap;
  347. }
  348. function VignetteCentrer(no_vignette)
  349. {
  350.    _root.TWEEN1FINI = false;
  351.    _root.ROLL_ACTIF._visible = false;
  352.    VignettesFxClear();
  353.    var media = MEDIAS.ParNo[no_vignette];
  354.    _root.PhotoDepart = media;
  355.    _root.Tween1.stop();
  356.    var _loc2_ = 400 - _root.PhotoDepart.vignette.Bitmap._width / 2;
  357.    _root.Tween1 = new mx.transitions.Tween(_root.PhotoDepart.vignette.Bitmap,"_x",mx.transitions.easing.Regular.easeOut,_root.PhotoDepart.vignette.Bitmap._x,_loc2_,1,true);
  358.    _root.Tween1.onMotionChanged = function()
  359.    {
  360.       _root.PhotosDistribue();
  361.    };
  362.    _root.Tween1.onMotionFinished = function()
  363.    {
  364.       _root.TWEEN1FINI = true;
  365.       _root.ROLL_ACTIF._visible = true;
  366.       _root.ROLL_ACTIF._width = media.vignette.Bitmap._width + 20;
  367.       _root.ROLL_ACTIF._height = media.vignette.Bitmap._height + 20;
  368.       _root.ROLL_ACTIF._x = media.vignette.Bitmap._x + media.vignette.Bitmap._width / 2;
  369.       _root.ROLL_ACTIF._y = media.vignette.Bitmap._y + media.vignette.Bitmap._height / 2;
  370.    };
  371. }
  372. function VignettesFxClear()
  373. {
  374.    for(var _loc1_ in MEDIAS)
  375.    {
  376.       if(MEDIAS[_loc1_].vignette != undefined)
  377.       {
  378.          xFx.annuleFiltres(MEDIAS[_loc1_].vignette.Bitmap);
  379.       }
  380.    }
  381. }
  382. function VignettesCacher()
  383. {
  384.    for(var _loc1_ in MEDIAS)
  385.    {
  386.       if(MEDIAS[_loc1_].vignette != undefined)
  387.       {
  388.          MEDIAS[_loc1_].vignette.Bitmap._visible = false;
  389.          MEDIAS[_loc1_].vignette.Reflet._visible = false;
  390.       }
  391.    }
  392. }
  393. function PhotosDistribue()
  394. {
  395.    var _loc3_ = undefined;
  396.    this.xDepart = this.PhotoDepart.vignette.Bitmap._x;
  397.    var _loc6_ = this.xDepart;
  398.    var _loc4_ = this.PhotoDepart.No;
  399.    var _loc5_ = MEDIAS.Nombre;
  400.    VignettesCacher();
  401.    while(_loc5_ > 0)
  402.    {
  403.       if(_loc4_ > MEDIAS.Nombre)
  404.       {
  405.          _loc4_ = 1;
  406.       }
  407.       _loc3_ = MEDIAS.ParNo[_loc4_].vignette;
  408.       _loc3_.x1 = _loc6_;
  409.       _loc6_ = _loc3_.x1 + _loc3_.Width + 30;
  410.       if(!(_loc3_.x1 < 810 && _loc3_.x1 + _loc3_.Width > -10))
  411.       {
  412.          break;
  413.       }
  414.       _loc3_.Bitmap._x = _loc3_.x1;
  415.       _loc3_.Reflet._x = _loc3_.x1;
  416.       _loc3_.Bitmap._visible = true;
  417.       _loc3_.Reflet._visible = true;
  418.       _loc5_ = _loc5_ - 1;
  419.       _loc4_ = _loc4_ + 1;
  420.    }
  421.    _loc6_ = this.xDepart - 30;
  422.    _loc4_ = this.PhotoDepart.No - 1;
  423.    while(_loc5_ > 0)
  424.    {
  425.       if(_loc4_ < 1)
  426.       {
  427.          _loc4_ = MEDIAS.Nombre;
  428.       }
  429.       _loc3_ = MEDIAS.ParNo[_loc4_].vignette;
  430.       _loc3_.x1 = _loc6_;
  431.       _loc3_.x1 = _loc6_ - _loc3_.Width;
  432.       _loc6_ = _loc3_.x1 - 30;
  433.       if(!(_loc3_.x1 < 810 && _loc3_.x1 + _loc3_.Width > -10))
  434.       {
  435.          break;
  436.       }
  437.       _loc3_.Bitmap._x = _loc3_.x1;
  438.       _loc3_.Reflet._x = _loc3_.x1;
  439.       _loc3_.Bitmap._visible = true;
  440.       _loc3_.Reflet._visible = true;
  441.       _loc5_ = _loc5_ - 1;
  442.       _loc4_ = _loc4_ - 1;
  443.    }
  444.    _root.VIGNETTE_ROLL._width = _root.VIGNETTE_ON_ROLL._width + 7;
  445.    _root.VIGNETTE_ROLL._height = _root.VIGNETTE_ON_ROLL._height + 7;
  446.    _root.VIGNETTE_ROLL._x = _root.VIGNETTE_ON_ROLL._x + _root.VIGNETTE_ON_ROLL._width / 2;
  447.    _root.VIGNETTE_ROLL._y = _root.VIGNETTE_ON_ROLL._y + _root.VIGNETTE_ON_ROLL._height / 2;
  448.    updateAfterEvent();
  449. }
  450. function MascottesInit()
  451. {
  452.    trace("MascottesInit" + _root.MediasExternes + " " + _root.MediasExternes.WIKI.ParamsXml);
  453.    MASCOTTES.swapDepths(25859);
  454.    var _loc3_ = 0;
  455.    for(var _loc4_ in MASCOTTES)
  456.    {
  457.       var _loc2_ = _root.MediasExternes[_loc4_].ParamsXml;
  458.       MASCOTTES[_loc4_]._x = _loc2_.x != undefined ? _loc2_.x : 0;
  459.       MASCOTTES[_loc4_]._y = _loc2_.y != undefined ? _loc2_.y : 0;
  460.       MASCOTTES[_loc4_]._xscale = _loc2_.scale != undefined ? Number(_loc2_.scale) : 100;
  461.       MASCOTTES[_loc4_]._yscale = _loc2_.scale != undefined ? Math.abs(Number(_loc2_.scale)) : 100;
  462.       MASCOTTES[_loc4_].swapDepths(25860 + _loc3_);
  463.       _loc3_ = _loc3_ + 1;
  464.       MASCOTTES[_loc4_]._visible = false;
  465.    }
  466.    MASCOTTES.WIKI._visible = true;
  467.    MASCOTTES.SPAM._visible = true;
  468.    MASCOTTES.BUG._visible = true;
  469. }
  470. function MascottesCacher()
  471. {
  472.    for(var _loc2_ in MASCOTTES)
  473.    {
  474.       MASCOTTES[_loc2_].gotoAndStop("E2");
  475.    }
  476.    if(_root.xConfig.MascottesLaisserAffiche != true)
  477.    {
  478.       for(_loc2_ in MASCOTTES)
  479.       {
  480.          MASCOTTES[_loc2_]._visible = false;
  481.       }
  482.    }
  483. }
  484. function SpamComment()
  485. {
  486.    var _loc2_ = _root.getSoundByID(_root.gCommentName + _root.gimme2digits(_root.VIEWER._LastMedia.No) + "_SP").attributes.mascotte;
  487.    MASCOTTES.SPAM._visible = false;
  488.    MASCOTTES.SPAM.gotoAndStop("E2");
  489.    _root.LAST_SPAM._visible = false;
  490.    _root.LAST_SPAM.gotoAndStop("E2");
  491.    if(_loc2_ == undefined)
  492.    {
  493.       _loc2_ = "SPAM";
  494.    }
  495.    _root.LAST_SPAM = MASCOTTES[_loc2_];
  496.    MASCOTTES[_loc2_].gotoAndStop("E1");
  497.    MASCOTTES[_loc2_]._visible = true;
  498.    _root.joueSon({nomSon:_root.gimme2digits(_root.VIEWER._LastMedia.No) + "_SP",zapBlock:"NOZAP_NOBLOCK",actionFin:"MascottesCacher"});
  499. }
  500. function BugComment()
  501. {
  502.    trace("BugComment : " + BugComment);
  503.    var _loc2_ = _root.getSoundByID(_root.gCommentName + _root.gimme2digits(_root.VIEWER._LastMedia.No) + "_BG").attributes.mascotte;
  504.    MASCOTTES.BUG._visible = false;
  505.    MASCOTTES.BUG.gotoAndStop("E2");
  506.    if(_loc2_ == undefined)
  507.    {
  508.       _loc2_ = "BUG";
  509.    }
  510.    MASCOTTES[_loc2_].gotoAndStop("E1");
  511.    MASCOTTES[_loc2_]._visible = true;
  512.    _root.joueSon({nomSon:_root.gimme2digits(_root.VIEWER._LastMedia.No) + "_BG",zapBlock:"NOZAP_NOBLOCK",actionFin:"MascottesCacher"});
  513. }
  514. function WikiComment(mascotte)
  515. {
  516.    trace("WikiComment : " + WikiComment);
  517.    mascotte = _root.getSoundByID(_root.gCommentName + _root.gimme2digits(_root.VIEWER._LastMedia.No) + "_WK").attributes.mascotte;
  518.    MASCOTTES.WIKI._visible = false;
  519.    MASCOTTES.WIKI.gotoAndStop("E2");
  520.    if(mascotte == undefined)
  521.    {
  522.       mascotte = "WIKI";
  523.    }
  524.    MASCOTTES[mascotte].gotoAndStop("E1");
  525.    MASCOTTES[mascotte]._visible = true;
  526.    _root.joueSon({nomSon:_root.gimme2digits(_root.VIEWER._LastMedia.No) + "_WK",zapBlock:"NOZAP_NOBLOCK",actionFin:"MascottesCacher"});
  527. }
  528. function ConvertMcToBitmap(p)
  529. {
  530.    var _loc1_ = p.mc;
  531.    var _loc2_ = new flash.display.BitmapData(_loc1_._width,_loc1_._height,true,16777215);
  532.    _loc2_.draw(_loc1_,_loc1_.transform.matrix);
  533.    _loc1_._parent.createEmptyMovieClip(_loc1_._name,_loc1_.getDepth());
  534.    _loc1_.attachBitmap(_loc2_,2,"always",true);
  535. }
  536. function CloneMcToBitmap(p)
  537. {
  538.    var _loc1_ = p.mc;
  539.    var _loc7_ = p.pere;
  540.    var _loc6_ = p.nom;
  541.    var _loc5_ = p.level;
  542.    var _loc4_ = new flash.display.BitmapData(_loc1_._width,_loc1_._height,true,16777215);
  543.    _loc4_.draw(_loc1_,_loc1_.transform.matrix);
  544.    var _loc2_ = _loc7_.createEmptyMovieClip(_loc6_,_loc5_);
  545.    _loc2_._visible = false;
  546.    _loc2_.attachBitmap(_loc4_,2,"always",true);
  547.    return _loc2_;
  548. }
  549. function MiroirMC(p)
  550. {
  551.    CloneMcToBitmap({mc:p.mc,pere:this,level:103,nom:"c3"});
  552. }
  553. function GetStyleLM(idLM)
  554. {
  555.    var _loc2_ = undefined;
  556.    var _loc6_ = _root.moduleInfo.getNodeByAttribute(_root.moduleInfo.returnNodeByPath("Module." + _root.gLangue + ".LegendesMedias"),"id",idLM);
  557.    var _loc5_ = _loc6_.childNodes[0].attributes.style;
  558.    var _loc4_ = _root.moduleInfo.getNodeByAttribute(_root.moduleInfo.returnNodeByPath("Module.StylesTextes.StylesLM"),"id","LM");
  559.    var _loc3_ = _root.moduleInfo.getNodeByAttribute(_root.moduleInfo.returnNodeByPath("Module.StylesTextes.StylesLM"),"id",idLM);
  560.    if(_loc5_ != undefined)
  561.    {
  562.       _loc2_ = _loc5_;
  563.    }
  564.    else if(_loc4_ != undefined)
  565.    {
  566.       _loc2_ = _loc4_;
  567.    }
  568.    else if(_loc3_ != undefined)
  569.    {
  570.       _loc2_ = _loc3_;
  571.    }
  572.    return _loc2_;
  573. }
  574. function initKeyPause()
  575. {
  576.    gPauseOn = 0;
  577.    gPauseSpaceOn = 0;
  578.    gPauseSpaceEnCours = 0;
  579. }
  580. function initGen()
  581. {
  582.    this._lockroot = true;
  583.    gClipGen = this;
  584.    Stage.showMenu = false;
  585.    gLangue = "FR";
  586.    gMusicOn = 1;
  587.    gSousTitre = 0;
  588.    gST = 0;
  589.    gVolume = 100;
  590.    gWidth = moduleInfo.returnNodeByPath("BackOffice").firstChild.attributes.width;
  591.    gHeight = moduleInfo.returnNodeByPath("BackOffice").firstChild.attributes.height;
  592.    if(gWidth == undefined)
  593.    {
  594.       gWidth = 800;
  595.    }
  596.    else
  597.    {
  598.       gWidth = Number(gWidth);
  599.    }
  600.    if(gHeight == undefined)
  601.    {
  602.       gHeight = 600;
  603.    }
  604.    else
  605.    {
  606.       gHeight = Number(gHeight);
  607.    }
  608.    initKeyPause();
  609. }
  610. function testeDebutCommentSpecial()
  611. {
  612.    switch(gCommentOn.id.split("_")[gCommentOn.id.split("_").length - 1])
  613.    {
  614.       case "bz":
  615.       case "BZ":
  616.          trace("-------  BZ on-----------");
  617.          startMascotte();
  618.          break;
  619.       case "ze":
  620.       case "ZE":
  621.          trace("-------  ZE on-----------");
  622.          DesactiveOEIL();
  623.          if(BT_OEIL.gEtat !== 3)
  624.          {
  625.             BT_OEIL.gotoAndPlay("E3");
  626.          }
  627.          else
  628.          {
  629.             BT_OEIL.OEIL_P.gotoAndPlay("parle");
  630.          }
  631.          afficherRolls();
  632.          break;
  633.       case "bi":
  634.       case "BI":
  635.          trace("-------  BI on-----------");
  636.          BT_AIDE.BT_AIDE.gotoAndPlay("E2");
  637.    }
  638. }
  639. function testeFinCommentSpecial()
  640. {
  641.    switch(gCommentOn.id.split("_")[gCommentOn.id.split("_").length - 1])
  642.    {
  643.       case "bz":
  644.       case "BZ":
  645.          trace("-------  BZ off-----------");
  646.          stopMascotte();
  647.          break;
  648.       case "ze":
  649.       case "ZE":
  650.          trace("-------  ZE off-----------");
  651.          ActiveOEIL();
  652.          BT_OEIL.OEIL_P.gotoAndPlay("rentre");
  653.          BT_OEIL.gClicOn = undefined;
  654.          masquerRolls();
  655.          break;
  656.       case "bi":
  657.       case "BI":
  658.          trace("-------  BI off-----------");
  659.          BT_AIDE.BT_AIDE.gotoAndPlay("E1");
  660.    }
  661. }
  662. function stopComment()
  663. {
  664.    if(gCommentOn !== undefined)
  665.    {
  666.       testeFinCommentSpecial();
  667.       delete gCommentOn.onSoundComplete;
  668.       gCommentOn.stop();
  669.       gCommentOn = undefined;
  670.       if(gMusicOn == 1 && gMusic !== undefined && gBlockMusic == undefined)
  671.       {
  672.          soundObjects[gMusic].setVolume(gVolume);
  673.       }
  674.       if(gPauseOn == undefined || gPauseOn == 0)
  675.       {
  676.          removeMovieClip("mcClicZap");
  677.       }
  678.       gBlockST = undefined;
  679.       gereTextes.masqueST();
  680.       if(gClipTarget !== undefined)
  681.       {
  682.          gClipTarget.gotoAndStop(gClipTargetLabel);
  683.          gClipTarget = undefined;
  684.          gClipTargetLabel = undefined;
  685.       }
  686.    }
  687. }
  688. function pauseComment()
  689. {
  690.    trace("pauseComment " + gCommentOn);
  691.    if(gCommentOn !== undefined)
  692.    {
  693.       gCommentOn.stop();
  694.       mcClicZap._visible = false;
  695.    }
  696. }
  697. function continueComment()
  698. {
  699.    trace("continueComment " + gCommentOn);
  700.    if(gCommentOn !== undefined)
  701.    {
  702.       gCommentOn.start(gCommentOn.position / 1000);
  703.       mcClicZap._visible = true;
  704.    }
  705. }
  706. function joueSon(p)
  707. {
  708.    var _loc4_ = p.nomSon;
  709.    gSoundString = _loc4_;
  710.    if(p.mc !== undefined)
  711.    {
  712.       gClipRef = p.mc;
  713.    }
  714.    else
  715.    {
  716.       gClipRef = _root;
  717.    }
  718.    if(p.zapBlock !== undefined)
  719.    {
  720.       gClicZap = p.zapBlock;
  721.    }
  722.    else
  723.    {
  724.       gClicZap = "ZAP_BLOCK";
  725.    }
  726.    if(p.actionFin !== undefined)
  727.    {
  728.       gActionFinSon = p.actionFin;
  729.    }
  730.    else
  731.    {
  732.       gActionFinSon = "PLAY";
  733.    }
  734.    stopComment();
  735.    if(p.mcCible !== undefined)
  736.    {
  737.       if(typeof p.mcCible == "movieclip")
  738.       {
  739.          gClipTarget = p.mcCible;
  740.       }
  741.       else
  742.       {
  743.          gClipTarget = gClipRef[p.mcCible];
  744.       }
  745.       if(p.mcLabelOut !== undefined)
  746.       {
  747.          gClipTargetLabel = p.mcLabelOut;
  748.       }
  749.       else
  750.       {
  751.          gClipTargetLabel = gClipTarget._currentframe;
  752.       }
  753.       if(p.mcLabelIn !== undefined)
  754.       {
  755.          gClipTarget.gotoAndPlay(p.mcLabelIn);
  756.       }
  757.       else
  758.       {
  759.          gClipTarget.gotoAndPlay("parle");
  760.       }
  761.    }
  762.    gCommentName = "S_" + gLangue + "_" + gModuleName + "_";
  763.    trace("joueSon " + gCommentName + _loc4_);
  764.    mySound = soundObjects[gCommentName + _loc4_];
  765.    if(mySound !== undefined)
  766.    {
  767.       gCommentOn = mySound;
  768.       gCommentOn.p = p;
  769.       gCommentOn.id = gCommentName + _loc4_;
  770.       testeDebutCommentSpecial();
  771.       if(gMusicOn == 1 && gMusic !== undefined && gBlockMusic == undefined)
  772.       {
  773.          soundObjects[gMusic].setVolume(gVolume * 40 / 100);
  774.       }
  775.       mySound.setVolume(gVolume);
  776.       if(gCommentOnPausePos !== undefined)
  777.       {
  778.          mySound.start(gCommentOnPausePos / 1000);
  779.          gCommentOnPause = undefined;
  780.          gCommentOnPausePos = undefined;
  781.       }
  782.       else
  783.       {
  784.          mySound.start();
  785.       }
  786.    }
  787.    else
  788.    {
  789.       trace("______" + getSoundByID(gCommentName + _loc4_) + gCommentName);
  790.       var _loc5_ = getSoundByID(gCommentName + _loc4_);
  791.       if(_loc5_ !== undefined)
  792.       {
  793.          mySound = new Sound();
  794.          mySound.onLoad = function(success)
  795.          {
  796.             if(success)
  797.             {
  798.                if(gCommentOnPausePos !== undefined)
  799.                {
  800.                   mySound.start(gCommentOnPausePos / 1000);
  801.                   gCommentOnPause = undefined;
  802.                   gCommentOnPausePos = undefined;
  803.                }
  804.                else
  805.                {
  806.                   mySound.start();
  807.                }
  808.             }
  809.          };
  810.          mySound.loadSound(this.gModulePath + _loc5_.attributes.src,true);
  811.          gCommentOn = mySound;
  812.          gCommentOn.p = p;
  813.          gCommentOn.id = gCommentName + _loc4_;
  814.          testeDebutCommentSpecial();
  815.          if(gMusicOn == 1 && gMusic !== undefined && gBlockMusic == undefined)
  816.          {
  817.             soundObjects[gMusic].setVolume(gVolume * 40 / 100);
  818.          }
  819.       }
  820.    }
  821.    if(mySound == undefined)
  822.    {
  823.       return undefined;
  824.    }
  825.    mySound.onSoundComplete = commentFini;
  826.    if(gClicZap !== "NOZAP_NOBLOCK")
  827.    {
  828.       mcClicZap = creerRectangle({nom:"mcClicZap",pere:_root,level:15000,width:gWidth,height:gHeight,x:0,y:0,alpha:0});
  829.       switch(gClicZap.split("_")[0])
  830.       {
  831.          case "ZAP":
  832.             mcClicZap.useHandCursor = false;
  833.             mcClicZap.onPress = function()
  834.             {
  835.                if(gCommentOn.position !== gCommentOn.duration)
  836.                {
  837.                   trace("clic zap son");
  838.                   stopSon();
  839.                }
  840.             };
  841.             break;
  842.          case "NOZAP":
  843.             mcClicZap.useHandCursor = false;
  844.             mcClicZap.onPress = function()
  845.             {
  846.                trace("no clic allowed");
  847.             };
  848.       }
  849.       mcClicZap._visible = true;
  850.    }
  851.    if(gST == 1 && gBlockST == undefined)
  852.    {
  853.       gereTextes.afficheST(gCommentName + _loc4_);
  854.    }
  855. }
  856. function creerClicZap(p)
  857. {
  858.    if(_global.mcClicZap2 != undefined)
  859.    {
  860.       removeMovieClip(_root.mcClicZap2);
  861.    }
  862.    var _loc0_ = null;
  863.    var _loc4_ = _global.mcClicZap2 = creerRectangle({nom:"mcClicZap2",pere:_root,level:15001,width:gWidth,height:gHeight,x:0,y:0,alpha:0});
  864.    _loc4_.p = p;
  865.    _loc4_.useHandCursor = false;
  866.    _loc4_.onPress = function()
  867.    {
  868.       trace("clic zap " + this.p);
  869.       this.p.retour.call(this.p.ecouteur);
  870.       removeMovieClip(this);
  871.       _global.mcClicZap2 = undefined;
  872.    };
  873.    _loc4_._visible = true;
  874. }
  875. function creerRectangle(p)
  876. {
  877.    var _loc15_ = p.x != undefined ? p.x : 0;
  878.    var _loc13_ = p.y != undefined ? p.y : 0;
  879.    if(p.w != undefined)
  880.    {
  881.       var _loc16_ = p.w;
  882.    }
  883.    else if(p.width != undefined)
  884.    {
  885.       _loc16_ = p.width;
  886.    }
  887.    if(p.h != undefined)
  888.    {
  889.       var _loc14_ = p.h;
  890.    }
  891.    else if(p.height != undefined)
  892.    {
  893.       _loc14_ = p.height;
  894.    }
  895.    var _loc11_ = p.pere != undefined ? p.pere : _root;
  896.    var _loc9_ = p.level != undefined ? p.level : 10;
  897.    var _loc12_ = p.couleur != undefined ? p.couleur : 0;
  898.    var _loc10_ = p.nom != undefined ? p.nom : "ClipSansNom";
  899.    var _loc4_ = p.courbure != undefined ? p.courbure : 0;
  900.    var _loc17_ = p.alpha != undefined ? p.alpha : 100;
  901.    var _loc6_ = 0;
  902.    var _loc7_ = 0;
  903.    var _loc8_ = _loc16_;
  904.    var _loc5_ = _loc14_;
  905.    var _loc3_ = _loc11_.createEmptyMovieClip(_loc10_,_loc9_);
  906.    _loc3_.beginFill(_loc12_,_loc17_);
  907.    _loc3_.moveTo(_loc6_,_loc5_ - _loc4_);
  908.    _loc3_.lineTo(_loc6_,_loc7_ + _loc4_);
  909.    _loc3_.curveTo(_loc6_,_loc7_,_loc6_ + _loc4_,_loc7_);
  910.    _loc3_.lineTo(_loc8_ - _loc4_,_loc7_);
  911.    _loc3_.curveTo(_loc8_,_loc7_,_loc8_,_loc7_ + _loc4_);
  912.    _loc3_.lineTo(_loc8_,_loc5_ - _loc4_);
  913.    _loc3_.curveTo(_loc8_,_loc5_,_loc8_ - _loc4_,_loc5_);
  914.    _loc3_.lineTo(_loc6_ + _loc4_,_loc5_);
  915.    _loc3_.curveTo(_loc6_,_loc5_,_loc6_,_loc5_ - _loc4_);
  916.    _loc3_.endFill();
  917.    _loc3_._x = _loc15_;
  918.    _loc3_._y = _loc13_;
  919.    return _loc3_;
  920. }
  921. function stopSon()
  922. {
  923.    gCommentOn.stop();
  924.    commentFini();
  925. }
  926. function commentFini()
  927. {
  928.    testeFinCommentSpecial();
  929.    gCommentOn = undefined;
  930.    if(gClicZap !== "NOZAP_NOBLOCK")
  931.    {
  932.       removeMovieClip("mcClicZap");
  933.    }
  934.    gBlockST = undefined;
  935.    gereTextes.masqueST();
  936.    if(gMusicOn == 1 && gMusic !== undefined && gBlockMusic == undefined)
  937.    {
  938.       soundObjects[gMusic].setVolume(gVolume);
  939.    }
  940.    if(gClipTarget !== undefined)
  941.    {
  942.       gClipTarget.gotoAndStop(gClipTargetLabel);
  943.       gClipTarget = undefined;
  944.       gClipTargetLabel = undefined;
  945.    }
  946.    switch(gActionFinSon)
  947.    {
  948.       case "RIEN":
  949.          break;
  950.       case "PLAY":
  951.          if(_root.gNextLabel == undefined)
  952.          {
  953.             if(gLineaireOn !== undefined)
  954.             {
  955.                if((_loc0_ = gLineaireOn) !== "_")
  956.                {
  957.                   lSonSuivant = gLineaireOn + gimme2digits(Number(gSoundString.split("_")[gSoundString.split("_").length - 1]) + 1);
  958.                   lLabel = lSonSuivant;
  959.                }
  960.                else
  961.                {
  962.                   lSonSuivant = gimme2digits(Number(gSoundString.split("_")[gSoundString.split("_").length - 1]) + 1);
  963.                   lLabel = gLineaireOn + lSonSuivant;
  964.                }
  965.                gClipRef.gotoAndStop(lLabel);
  966.                joueSon({mc:gClipRef,nomSon:lSonSuivant,zapBlock:gClicZap,actionFin:gActionFinSon});
  967.             }
  968.             else
  969.             {
  970.                gClipRef.play();
  971.             }
  972.          }
  973.          else
  974.          {
  975.             gClipRef.gotoAndPlay(_root.gNextLabel);
  976.             _root.gNextLabel = undefined;
  977.             gLineaireOn = undefined;
  978.          }
  979.          break;
  980.       default:
  981.          gClipRef[gActionFinSon]();
  982.    }
  983. }
  984. function joueBruitage(p)
  985. {
  986.    var _loc2_ = soundObjects[gBruitageName + p.nomSon];
  987.    trace("joueBruitage : " + p.nomSon + " : " + _loc2_ + " A " + p.actionFin);
  988.    if(gListeBruitage == undefined)
  989.    {
  990.       gListeBruitage = [];
  991.       gListeA_fin_Bruitage = [];
  992.       gListeLoop_Bruitage = [];
  993.    }
  994.    _loc2_.setVolume(gVolume);
  995.    _loc2_.id = p.nomSon;
  996.    gListeBruitage.push(_loc2_.id);
  997.    if(p.actionFin !== undefined)
  998.    {
  999.       gActionFinBruitage = p.actionFin;
  1000.       gListeA_fin_Bruitage.push(gActionFinBruitage);
  1001.    }
  1002.    else
  1003.    {
  1004.       gActionFinBruitage = undefined;
  1005.       gListeA_fin_Bruitage.push("");
  1006.    }
  1007.    _loc2_.p = p;
  1008.    _loc2_.onSoundComplete = mx.utils.Delegate.create(_loc2_,finBruitage);
  1009.    if(p.loopSon == undefined)
  1010.    {
  1011.       _loc2_.start(p.offset);
  1012.       gListeLoop_Bruitage.push("");
  1013.    }
  1014.    else
  1015.    {
  1016.       _loc2_.start(p.offset,p.loopSon);
  1017.       gListeLoop_Bruitage.push(p.loopSon);
  1018.    }
  1019.    if(_loc2_ == undefined)
  1020.    {
  1021.       trace("joueBruitage : " + p.nomSon + " : " + _loc2_);
  1022.    }
  1023. }
  1024. function stopBruitage(p)
  1025. {
  1026.    var _loc1_ = soundObjects[gBruitageName + p.nomSon];
  1027.    finBruitage(p.nomSon);
  1028.    _loc1_.stop();
  1029. }
  1030. function finBruitage(lSon)
  1031. {
  1032.    if(lSon == undefined)
  1033.    {
  1034.       lSon = this.id;
  1035.    }
  1036.    if(gListeBruitage !== undefined)
  1037.    {
  1038.       var _loc2_ = getPos(gListeBruitage,lSon);
  1039.       if(_loc2_ !== -1)
  1040.       {
  1041.          if(gListeA_fin_Bruitage[_loc2_] !== "")
  1042.          {
  1043.             if(typeof gListeA_fin_Bruitage[_loc2_] == "string")
  1044.             {
  1045.                gClipGen[gListeA_fin_Bruitage[_loc2_]]();
  1046.             }
  1047.             else
  1048.             {
  1049.                gListeA_fin_Bruitage[_loc2_].call(this.p.MC);
  1050.             }
  1051.          }
  1052.          gListeA_fin_Bruitage.splice(_loc2_,1);
  1053.          gListeLoop_Bruitage.splice(_loc2_,1);
  1054.          gListeBruitage.splice(_loc2_,1);
  1055.          if(gListeBruitage.length == 0)
  1056.          {
  1057.             gListeBruitage = undefined;
  1058.             gListeA_fin_Bruitage = undefined;
  1059.             gListeLoop_Bruitage = undefined;
  1060.          }
  1061.       }
  1062.    }
  1063. }
  1064. function stopBruit(p)
  1065. {
  1066.    if(gListeBruitage !== undefined)
  1067.    {
  1068.       if(getPos(gListeBruitage,p.nomSon) !== -1)
  1069.       {
  1070.          var _loc1_ = soundObjects[gBruitageName + p.nomSon];
  1071.          delete _loc1_.onSoundComplete;
  1072.          lSon = p.nomSon;
  1073.          gListeA_fin_Bruitage.splice(getPos(gListeBruitage,lSon),1);
  1074.          gListeLoop_Bruitage.splice(getPos(gListeBruitage,lSon),1);
  1075.          gListeBruitage.splice(getPos(gListeBruitage,lSon),1);
  1076.          if(gListeBruitage.length == 0)
  1077.          {
  1078.             gListeBruitage = undefined;
  1079.             gListeA_fin_Bruitage = undefined;
  1080.             gListeLoop_Bruitage = undefined;
  1081.          }
  1082.          _loc1_.stop();
  1083.       }
  1084.    }
  1085. }
  1086. function stopAllBruitages(lFinBruitage)
  1087. {
  1088.    if(gListeBruitage !== undefined)
  1089.    {
  1090.       var _loc3_ = gListeBruitage.length;
  1091.       var _loc1_ = _loc3_ - 1;
  1092.       while(_loc1_ >= 0)
  1093.       {
  1094.          if(lFinBruitage == 1)
  1095.          {
  1096.             stopBruitage({nomSon:gListeBruitage[_loc1_]});
  1097.          }
  1098.          else
  1099.          {
  1100.             stopBruit({nomSon:gListeBruitage[_loc1_]});
  1101.          }
  1102.          _loc1_ = _loc1_ - 1;
  1103.       }
  1104.    }
  1105. }
  1106. function getPos(myList, myValue)
  1107. {
  1108.    lPresent = -1;
  1109.    maPosition = 0;
  1110.    while(maPosition < myList.length)
  1111.    {
  1112.       if(myList[maPosition] == myValue)
  1113.       {
  1114.          lPresent = maPosition;
  1115.          break;
  1116.       }
  1117.       maPosition++;
  1118.    }
  1119.    return lPresent;
  1120. }
  1121. function trouvePosMax(myList)
  1122. {
  1123.    lMax = myList[0];
  1124.    lPosMax = 0;
  1125.    i = 1;
  1126.    while(i < myList.length)
  1127.    {
  1128.       if(myList[i] > lMax)
  1129.       {
  1130.          lMax = myList[i];
  1131.          lPosMax = i;
  1132.       }
  1133.       i++;
  1134.    }
  1135.    return lPosMax;
  1136. }
  1137. function duplicate(myList)
  1138. {
  1139.    newList = [];
  1140.    i = 0;
  1141.    while(i <= myList.length - 1)
  1142.    {
  1143.       newList.push(myList[i]);
  1144.       i++;
  1145.    }
  1146.    return newList;
  1147. }
  1148. function randomiseList(myList)
  1149. {
  1150.    var _loc3_ = duplicate(myList);
  1151.    trace("lList = " + _loc3_);
  1152.    var _loc4_ = [];
  1153.    var _loc5_ = _loc3_.length;
  1154.    var _loc2_ = 0;
  1155.    while(_loc2_ < _loc5_)
  1156.    {
  1157.       var _loc1_ = randomValue(0,_loc3_.length - 1);
  1158.       _loc4_.push(_loc3_[_loc1_]);
  1159.       _loc3_.splice(_loc1_,1);
  1160.       _loc2_ = _loc2_ + 1;
  1161.    }
  1162.    return _loc4_;
  1163. }
  1164. function returnNodeByPathRandomise(nodeSent)
  1165. {
  1166.    var _loc4_ = new XML();
  1167.    var _loc5_ = nodeSent.childNodes.length;
  1168.    var _loc1_ = 0;
  1169.    while(_loc1_ < _loc5_)
  1170.    {
  1171.       var _loc2_ = randomValue(0,nodeSent.childNodes.length - 1);
  1172.       _loc4_.appendChild(nodeSent.childNodes[_loc2_]);
  1173.       _loc1_ = _loc1_ + 1;
  1174.    }
  1175.    return _loc4_;
  1176. }
  1177. function zapIntro(myLabel)
  1178. {
  1179.    mcClicZapIntro = this.createEmptyMovieClip("mcClicZapIntro",16031);
  1180.    mcClicZapIntro.attachMovie("ClipInvisible","ClipInvisible",2);
  1181.    mcClicZapIntro._width = gClipGen._width;
  1182.    mcClicZapIntro._height = gClipGen._height;
  1183.    mcClicZapIntro._x = 0;
  1184.    mcClicZapIntro._y = 0;
  1185.    mcClicZapIntro.useHandCursor = false;
  1186.    mcClicZapIntro.onPress = function()
  1187.    {
  1188.       trace("clic zappIntro " + this);
  1189.       stopComment();
  1190.       gotoAndPlay(myLabel);
  1191.       removeZapIntro();
  1192.    };
  1193. }
  1194. function removeZapIntro()
  1195. {
  1196.    trace("mcClicZapIntrO " + mcClicZapIntro._name + " " + this);
  1197.    if(mcClicZapIntro._x != undefined)
  1198.    {
  1199.       trace("suppression");
  1200.       removeMovieClip(mcClicZapIntro);
  1201.    }
  1202. }
  1203. function onMcOut(myMc)
  1204. {
  1205.    gereCursor(1);
  1206.    if(myMc.pLabelOut == undefined)
  1207.    {
  1208.       myMc.gotoAndPlay("E1");
  1209.    }
  1210.    else
  1211.    {
  1212.       myMc.gotoAndPlay(myMc.pLabelOut);
  1213.    }
  1214.    if(myMc.pSon.split("")[0] == "B")
  1215.    {
  1216.       stopBruitage({nomSon:myMc.pSon});
  1217.    }
  1218.    else
  1219.    {
  1220.       stopComment();
  1221.    }
  1222.    if(myMc.pIB !== undefined)
  1223.    {
  1224.       gereTextes.masqueIB();
  1225.    }
  1226. }
  1227. function onMcOver(p)
  1228. {
  1229.    var myMc = p.mc;
  1230.    myMc.pIB = p.codeIB;
  1231.    if(p.nomSon == undefined)
  1232.    {
  1233.       if(p.nomSonC == undefined)
  1234.       {
  1235.          myMc.pSon = "B_" + myMc._name.split("_")[1];
  1236.       }
  1237.       else
  1238.       {
  1239.          myMc.pSon = p.nomSonC;
  1240.       }
  1241.    }
  1242.    else
  1243.    {
  1244.       myMc.pSon = p.nomSon;
  1245.    }
  1246.    if(p.actionFin == undefined)
  1247.    {
  1248.       myMc.actionFin = "RIEN";
  1249.    }
  1250.    else
  1251.    {
  1252.       myMc.actionFin = p.actionFin;
  1253.    }
  1254.    myMc.pLabelOut = p.mcLabelOut;
  1255.    myMc.onRollOver = function()
  1256.    {
  1257.       gereCursor(2);
  1258.       if(p.mcLabelIn == undefined)
  1259.       {
  1260.          this.gotoAndPlay("E2");
  1261.       }
  1262.       else
  1263.       {
  1264.          this.gotoAndPlay(p.mcLabelIn);
  1265.       }
  1266.       if(this.pSon.split("")[0] == "B")
  1267.       {
  1268.          joueBruitage({nomSon:this.pSon});
  1269.       }
  1270.       else
  1271.       {
  1272.          joueSon({nomSon:this.pSon,zapBlock:"NOZAP_NOBLOCK",actionFin:this.actionFin});
  1273.       }
  1274.       if(this.pIB !== undefined)
  1275.       {
  1276.          gereTextes.afficheIB({mc:this,codeIB:this.pIB});
  1277.       }
  1278.    };
  1279.    myMc.onRollOut = myMc.onDragOut = function()
  1280.    {
  1281.       onMcOut(myMc);
  1282.    };
  1283. }
  1284. function desactiveClip(pClip)
  1285. {
  1286.    delete pClip.onRollOver;
  1287.    delete pClip.onRollOut;
  1288.    delete pClip.onDragOut;
  1289.    delete pClip.onPress;
  1290.    delete pClip.onRelease;
  1291.    delete pClip.onReleaseOutside;
  1292. }
  1293. function afficheClipPos(myMc, myX, myY)
  1294. {
  1295.    myMc._x = myX;
  1296.    myMc._y = myY;
  1297.    myMc._visible = true;
  1298. }
  1299. function gimme2digits(X)
  1300. {
  1301.    if(Number(X) < 10)
  1302.    {
  1303.       lX = "0" + Number(X);
  1304.    }
  1305.    else
  1306.    {
  1307.       lX = String(X);
  1308.    }
  1309.    return lX;
  1310. }
  1311. function randomValue(min, max)
  1312. {
  1313.    var _loc1_ = Math.floor(Math.random() * (max - min + 1)) + min;
  1314.    return _loc1_;
  1315. }
  1316. function chercheDepthPlus(myMc, myDepth)
  1317. {
  1318.    var _loc1_ = myDepth;
  1319.    while(_loc1_ < 17000)
  1320.    {
  1321.       if(myMc.getInstanceAtDepth(_loc1_) == undefined)
  1322.       {
  1323.          break;
  1324.       }
  1325.       _loc1_ = _loc1_ + 1;
  1326.    }
  1327.    return _loc1_;
  1328. }
  1329. function chercheDepthMoins(myMc, myDepth)
  1330. {
  1331.    var _loc1_ = myDepth;
  1332.    while(_loc1_ > -16383)
  1333.    {
  1334.       if(myMc.getInstanceAtDepth(_loc1_) == undefined)
  1335.       {
  1336.          break;
  1337.       }
  1338.       _loc1_ = _loc1_ - 1;
  1339.    }
  1340.    return _loc1_;
  1341. }
  1342. function changeST(myST)
  1343. {
  1344.    trace("changeST   : " + myST);
  1345.    if(myST == "1")
  1346.    {
  1347.       gST = 1;
  1348.       if(gCommentOn !== undefined)
  1349.       {
  1350.          gereTextes.afficheST(gCommentOn.id);
  1351.       }
  1352.    }
  1353.    else
  1354.    {
  1355.       sousTitre = 0;
  1356.       gST = 0;
  1357.       gereTextes.masqueST(this);
  1358.    }
  1359. }
  1360. function changeMusicOn(myChangeMusicOn)
  1361. {
  1362.    trace("changeMusicOn   : " + myChangeMusicOn);
  1363.    switch(String(myChangeMusicOn))
  1364.    {
  1365.       case "1":
  1366.          gMusicOn = 1;
  1367.          if(gMusic == undefined)
  1368.          {
  1369.             gMusic = gBruitageName + "MU";
  1370.          }
  1371.          trace("changeMusicOn2   : " + gMusic + " - " + gVolume);
  1372.          if(gBlockMusic == undefined)
  1373.          {
  1374.             if(gCommentOn !== undefined)
  1375.             {
  1376.                soundObjects[gMusic].setVolume(gVolume * 0.4);
  1377.             }
  1378.             else
  1379.             {
  1380.                soundObjects[gMusic].setVolume(gVolume);
  1381.             }
  1382.          }
  1383.          else
  1384.          {
  1385.             soundObjects[gMusic].setVolume(0);
  1386.          }
  1387.          soundObjects[gMusic].start(0,1000);
  1388.          break;
  1389.       case "0":
  1390.          soundObjects[gMusic].stop();
  1391.          gMusicOn = 0;
  1392.          break;
  1393.       default:
  1394.          if(gMusic !== undefined)
  1395.          {
  1396.             soundObjects[gMusic].stop();
  1397.          }
  1398.          gMusic = gBruitageName + myChangeMusicOn;
  1399.          if(gMusicOn == 1)
  1400.          {
  1401.             if(gBlockMusic == undefined)
  1402.             {
  1403.                if(gCommentOn !== undefined)
  1404.                {
  1405.                   soundObjects[gMusic].setVolume(gVolume * 0.4);
  1406.                }
  1407.                else
  1408.                {
  1409.                   soundObjects[gMusic].setVolume(gVolume);
  1410.                }
  1411.             }
  1412.             else
  1413.             {
  1414.                soundObjects[gMusic].setVolume(0);
  1415.             }
  1416.             soundObjects[gMusic].start(0,1000);
  1417.          }
  1418.    }
  1419. }
  1420. function changeVolume(myChangeVolume)
  1421. {
  1422.    trace("changeVolume   : " + myChangeVolume);
  1423.    gVolume = Number(myChangeVolume);
  1424.    if(gCommentOn !== undefined)
  1425.    {
  1426.       gCommentOn.setVolume(gVolume);
  1427.       if(gMusicOn == 1)
  1428.       {
  1429.          soundObjects[gMusic].setVolume(gVolume * 0.4);
  1430.       }
  1431.    }
  1432.    else if(gMusicOn == 1)
  1433.    {
  1434.       soundObjects[gMusic].setVolume(gVolume);
  1435.    }
  1436. }
  1437. function DesactiveBZ()
  1438. {
  1439.    BT_BZ.useHandCursor = false;
  1440.    BT_BZ.gBZactif = 0;
  1441. }
  1442. function ActiveBZ()
  1443. {
  1444.    BT_BZ.useHandCursor = true;
  1445.    BT_BZ.gBZactif = 1;
  1446. }
  1447. function getRessourceByID(attributeValue, typeRessource)
  1448. {
  1449.    var _loc2_ = this.moduleInfo.filterNode(this.moduleInfo.returnNodeByPath("Resources.ResourcesZip"),"type",typeRessource);
  1450.    mySound = undefined;
  1451.    mySound = this.recusiveGetSoundByAttribute(_loc2_,"id",attributeValue);
  1452.    if(mySound == undefined)
  1453.    {
  1454.       trace(attributeValue + " n\'existe pas dans XML");
  1455.    }
  1456.    return mySound;
  1457. }
  1458. function getSoundByID(attributeValue)
  1459. {
  1460.    var _loc2_ = this.moduleInfo.filterNode(this.moduleInfo.returnNodeByPath("Resources.ResourcesZip"),"type","mp3");
  1461.    mySound = undefined;
  1462.    mySound = this.recusiveGetSoundByAttribute(_loc2_,"id",attributeValue);
  1463.    if(mySound == undefined)
  1464.    {
  1465.       trace(attributeValue + " n\'existe pas dans XML");
  1466.    }
  1467.    return mySound;
  1468. }
  1469. function recusiveGetSoundByAttribute(node, attribute, attributeValue)
  1470. {
  1471.    var _loc2_ = 0;
  1472.    while(_loc2_ < node.childNodes.length)
  1473.    {
  1474.       if(node.childNodes[_loc2_].attributes[attribute] == attributeValue)
  1475.       {
  1476.          mySound = node.childNodes[_loc2_];
  1477.          break;
  1478.       }
  1479.       if(node.childNodes[_loc2_].hasChildNodes())
  1480.       {
  1481.          this.recusiveGetSoundByAttribute(node.childNodes[_loc2_],attribute,attributeValue);
  1482.       }
  1483.       _loc2_ = _loc2_ + 1;
  1484.    }
  1485.    return mySound;
  1486. }
  1487. function gereCursor(myCursor)
  1488. {
  1489.    switch(myCursor)
  1490.    {
  1491.       case 1:
  1492.       case "fleche":
  1493.          myCursor = "fleche";
  1494.          break;
  1495.       case 2:
  1496.       case "doigt":
  1497.          myCursor = "doigt";
  1498.          break;
  1499.       case 3:
  1500.       case "mainO":
  1501.          myCursor = "mainO";
  1502.          break;
  1503.       case 4:
  1504.       case "mainF":
  1505.          myCursor = "mainF";
  1506.          break;
  1507.       case 0:
  1508.       case "O":
  1509.          myCursor = "O";
  1510.    }
  1511.    _global.CURSEUR.Action(myCursor);
  1512. }
  1513. function ConvertCoord(mc_src, mc_dest)
  1514. {
  1515.    var _loc1_ = {x:0,y:0};
  1516.    mc_src.localToGlobal(_loc1_);
  1517.    mc_dest.globalToLocal(_loc1_);
  1518.    return _loc1_;
  1519. }
  1520. function OnPadRollOver()
  1521. {
  1522.    if(gDrag !== undefined)
  1523.    {
  1524.    }
  1525. }
  1526. function OnPadRollOut()
  1527. {
  1528.    if(gDrag !== undefined)
  1529.    {
  1530.    }
  1531. }
  1532. function ModulePause()
  1533. {
  1534.    trace("pause ModulePause");
  1535.    if(gListeInterval !== undefined)
  1536.    {
  1537.       pauseIntervals();
  1538.    }
  1539.    _global.pauseOnMod = true;
  1540.    _moteur_.activePause(this);
  1541. }
  1542. function ModuleResume()
  1543. {
  1544.    trace("pause ModuleResume");
  1545.    if(gListeInterval !== undefined)
  1546.    {
  1547.       repriseIntervals();
  1548.    }
  1549.    _global.pauseOnMod = undefined;
  1550.    _moteur_.desactivePause(this);
  1551. }
  1552. function _setInterval(p)
  1553. {
  1554.    trace("cree  interval " + p.nomInterval);
  1555.    if(gListeInterval == undefined)
  1556.    {
  1557.       gListeInterval = [];
  1558.       gListeIntervalNom = [];
  1559.       gListeIntervalTime = [];
  1560.    }
  1561.    gListeInterval.push(p);
  1562.    gListeIntervalNom.push(p.nomInterval);
  1563.    gListeIntervalTime.push(getTimer());
  1564.    p.mc[p.nomInterval] = setInterval(p.mc,p.fonction,p.duree,p.reprise);
  1565.    trace("p.mc = " + p.mc);
  1566. }
  1567. function _clearInterval(lNom)
  1568. {
  1569.    trace("virer " + lNom + " dans gListeIntervalNom = " + gListeIntervalNom);
  1570.    var _loc1_ = getPos(gListeIntervalNom,lNom);
  1571.    if(_loc1_ !== -1)
  1572.    {
  1573.       trace("myPos = " + _loc1_);
  1574.       var _loc2_ = gListeInterval[_loc1_].mc;
  1575.       trace("il y est " + _loc2_);
  1576.       clearInterval(_loc2_[lNom]);
  1577.       gListeInterval.splice(_loc1_,1);
  1578.       gListeIntervalNom.splice(_loc1_,1);
  1579.       gListeIntervalTime.splice(_loc1_,1);
  1580.       if(gListeInterval.length == 0)
  1581.       {
  1582.          gListeInterval = undefined;
  1583.          gListeIntervalNom = undefined;
  1584.          gListeIntervalTime = undefined;
  1585.       }
  1586.    }
  1587. }
  1588. function pauseIntervals()
  1589. {
  1590.    trace("pauseIntervals");
  1591.    var _loc3_ = gListeInterval.length;
  1592.    if(_loc3_ > 0)
  1593.    {
  1594.       gListePauseInterval = [];
  1595.       var _loc1_ = 0;
  1596.       while(_loc1_ < _loc3_)
  1597.       {
  1598.          var _loc2_ = gListeInterval[_loc1_].mc;
  1599.          gListePauseInterval.push(getTimer() - gListeIntervalTime[_loc1_]);
  1600.          trace("IntervalNom = " + gListeIntervalNom[_loc1_]);
  1601.          clearInterval(_loc2_[gListeIntervalNom[_loc1_]]);
  1602.          _loc1_ = _loc1_ + 1;
  1603.       }
  1604.    }
  1605.    gDureePause = 0;
  1606.    gTopPause = getTimer();
  1607. }
  1608. function repriseIntervals()
  1609. {
  1610.    trace("repriseIntervals");
  1611.    gDureePause += getTimer() - gTopPause;
  1612.    trace("gDureePause = " + gDureePause);
  1613.    var _loc6_ = gListeInterval.length;
  1614.    if(_loc6_ > 0)
  1615.    {
  1616.       var _loc1_ = 0;
  1617.       while(_loc1_ < _loc6_)
  1618.       {
  1619.          var _loc4_ = gListeInterval[_loc1_];
  1620.          var _loc3_ = _loc4_.duree;
  1621.          var _loc2_ = _loc3_ - gListePauseInterval[_loc1_];
  1622.          trace("myDureeRestant = " + _loc2_);
  1623.          gListeInterval[_loc1_].duree = _loc2_;
  1624.          gListeIntervalTime[_loc1_] = getTimer();
  1625.          var _loc5_ = gListeInterval[_loc1_].mc;
  1626.          _loc5_[gListeIntervalNom[_loc1_]] = setInterval(gListeInterval[_loc1_].mc,gListeInterval[_loc1_].fonction,gListeInterval[_loc1_].duree,1);
  1627.          _loc1_ = _loc1_ + 1;
  1628.       }
  1629.    }
  1630. }
  1631. function initMoteur()
  1632. {
  1633.    trace(" ____ __ initMoteur _ __ _");
  1634.    var _loc4_ = this;
  1635.    var _loc5_ = _loc4_.createEmptyMovieClip("_moteur_",this.getNextHighestDepth());
  1636.    this.mclR = new MovieClipLoader();
  1637.    var _loc3_ = this.prodPath + "/moteur.swf";
  1638.    this.mclR.loadClip(_loc3_,_loc5_);
  1639.    this.mclR.onLoadInit = function(myClip)
  1640.    {
  1641.       trace("onLoadInit _moteur_" + _root);
  1642.       _root.ChargeMoteur();
  1643.    };
  1644. }
  1645. function initLib(nom_lib)
  1646. {
  1647.    trace(" ____ __ initLib _ __ _" + gHotePath);
  1648.    var _loc4_ = this;
  1649.    var _loc6_ = _loc4_.createEmptyMovieClip("_" + nom_lib + "_",this.getNextHighestDepth());
  1650.    var _loc3_ = gLibsPath + "/" + nom_lib + "/" + nom_lib + ".swf";
  1651.    this.mclR = new MovieClipLoader();
  1652.    this.mclR.loadClip(_loc3_,_loc6_);
  1653.    this.mclR.onLoadInit = function(myClip)
  1654.    {
  1655.       trace("onLoadInit " + myClip._name);
  1656.       myClip.ChargeMoteur();
  1657.       _root.Init();
  1658.    };
  1659. }
  1660. function initModuleMoteur(nom_lib)
  1661. {
  1662.    trace(" ____ __ initLib _ __ _" + gHotePath);
  1663.    var _loc4_ = this;
  1664.    var _loc5_ = _loc4_.createEmptyMovieClip("_" + nom_lib + "_",this.getNextHighestDepth());
  1665.    var _loc3_ = this.gModulePath + nom_lib + ".swf";
  1666.    this.mclR = new MovieClipLoader();
  1667.    this.mclR.loadClip(_loc3_,_loc5_);
  1668.    this.mclR.onLoadInit = function(myClip)
  1669.    {
  1670.       trace("onLoadInit " + myClip._name);
  1671.       myClip.ChargeMoteur();
  1672.       _root.Init();
  1673.    };
  1674. }
  1675. stop();
  1676. this._lockroot = true;
  1677. this.prodVersion = "prod_gen_XB";
  1678. if(_global.gModulePath == undefined)
  1679. {
  1680.    this.gModulePath = _global.gModulePath = "";
  1681. }
  1682. else
  1683. {
  1684.    this.gModulePath = _global.gModulePath;
  1685. }
  1686. _global._MOD_ = this;
  1687. this.CIBLE = this;
  1688. if(_global.HOTE != undefined)
  1689. {
  1690.    MovieClip.prototype.gHotePath = _global.gPARAMS.HOTE_DIR + "/DATA/HOTE";
  1691. }
  1692. else
  1693. {
  1694.    MovieClip.prototype.gHotePath = "../../HOTE";
  1695. }
  1696. this.prodPath = gHotePath + "/" + this.prodVersion;
  1697. MovieClip.prototype.gLibsPath = gHotePath + "/libs";
  1698. _global.stopComment = stopComment;
  1699. _global.joueSon = joueSon;
  1700. _root.creerClicZap = creerClicZap;
  1701. _global.joueBruitage = joueBruitage;
  1702. _global.stopBruitage = stopBruitage;
  1703. _global.stopBruit = stopBruit;
  1704. _global.gimme2digits = gimme2digits;
  1705. _global.randomValue = randomValue;
  1706. this.randRange = randomValue;
  1707. _global.chercheDepthPlus = chercheDepthPlus;
  1708. _global.chercheDepthMoins = chercheDepthMoins;
  1709. _global.DesactiveBZ = DesactiveBZ;
  1710. _root.DesactiveBZ = DesactiveBZ;
  1711. _global.ActiveBZ = ActiveBZ;
  1712. _root.ActiveBZ = ActiveBZ;
  1713. _global.gereCursor = gereCursor;
  1714. this.initVariables = function()
  1715. {
  1716.    trace("initVariables()");
  1717.    this.gotoAndStop("INIT");
  1718. };
  1719. MovieClip.prototype._xtrace_ = undefined;
  1720. MovieClip.prototype._xlib1_ = undefined;
  1721. this._mod_.removeMovieClip();
  1722. this.Init = function()
  1723. {
  1724.    trace(" ____ __ Init()__ _ __ _");
  1725.    if(_xtrace_ == undefined)
  1726.    {
  1727.       initLib("xtrace");
  1728.       return undefined;
  1729.    }
  1730.    if(_xlib1_ == undefined)
  1731.    {
  1732.       initLib("xlib1");
  1733.       return undefined;
  1734.    }
  1735.    this.initMoteur();
  1736. };
  1737. this.InitOk = function()
  1738. {
  1739.    trace("InitOk");
  1740.    if(HOTE == undefined)
  1741.    {
  1742.       this.Start();
  1743.    }
  1744.    else
  1745.    {
  1746.       HOTE.InitFin(this);
  1747.    }
  1748. };
  1749. this.Start = function()
  1750. {
  1751.    gereCursor("fleche");
  1752.    this.gotoAndStop("START");
  1753. };
  1754. if(HOTE == undefined)
  1755. {
  1756.    this.onEnterFrame = function()
  1757.    {
  1758.       var _loc2_ = this.getBytesLoaded();
  1759.       var _loc3_ = this.getBytesTotal();
  1760.       if(_loc2_ >= _loc3_)
  1761.       {
  1762.          this.Init();
  1763.          delete this.onEnterFrame;
  1764.       }
  1765.    };
  1766. }
  1767. stop();
  1768.