home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 145 / MOBICLIC145.ISO / pc / DATA / DSS145 / DSS145_00 / DSS145_00.swf / scripts / dss145_00 / CapsuleAlgo.as
Text File  |  2012-07-18  |  22KB  |  646 lines

  1. package dss145_00
  2. {
  3.    import com.milanpresse.engine.Engine;
  4.    import com.milanpresse.engine.initmovieclip.InteractiveMovie;
  5.    import com.milanpresse.engine.managers.PauseManager;
  6.    import com.milanpresse.engine.managers.TimelineManager;
  7.    import com.milanpresse.engine.medias.MediaImage;
  8.    import com.milanpresse.engine.medias.MediaSwf;
  9.    import com.milanpresse.engine.timelines.Timeline;
  10.    import com.milanpresse.engine.timelines.TimelineLinear;
  11.    import com.milanpresse.engine.typeargument.CommentObject;
  12.    import com.milanpresse.engine.typeargument.NoiseObject;
  13.    import com.milanpresse.tools.GlobalesFunctions;
  14.    import flash.display.MovieClip;
  15.    import flash.net.SharedObject;
  16.    
  17.    public class CapsuleAlgo
  18.    {
  19.        
  20.       
  21.       private var menu:MediaSwf;
  22.       
  23.       private var menuTimeline:MovieClip;
  24.       
  25.       private var menuTL:Timeline;
  26.       
  27.       private var mainClip:MediaSwf;
  28.       
  29.       private var mainTimeline:MovieClip;
  30.       
  31.       private var _engine:Engine;
  32.       
  33.       private var labelList:Array;
  34.       
  35.       private var _timeline_:TimelineLinear;
  36.       
  37.       private var _timelineManager:TimelineManager;
  38.       
  39.       private var _pauseManager:PauseManager;
  40.       
  41.       private var labelsCallback:Object;
  42.       
  43.       private var firstLabel:String;
  44.       
  45.       private var so:SharedObject;
  46.       
  47.       private var goLabelATTENTE:String;
  48.       
  49.       private var BT_ZAP_INTRO:InteractiveMovie;
  50.       
  51.       private var zapIntroDone:Boolean = false;
  52.       
  53.       private var gClic:int;
  54.       
  55.       private var gRoll:MovieClip;
  56.       
  57.       private var gListDone:Array;
  58.       
  59.       private var gDoneMythe:Boolean = false;
  60.       
  61.       private var gFromNumMod:int;
  62.       
  63.       private var TRANSITION:InteractiveMovie;
  64.       
  65.       private var gImageNum:int;
  66.       
  67.       private var playedDER_EPR:Boolean = false;
  68.       
  69.       public function CapsuleAlgo(engine:Engine)
  70.       {
  71.          var fromSommaire:Boolean = false;
  72.          this.labelsCallback = {
  73.             "MEMORISATION":this.initMEMO,
  74.             "_01_OK":this.label_OK,
  75.             "_01_NO":this.label_NO,
  76.             "DER_EPR":this.label_DER_EPR,
  77.             "_NO":this.label_NO,
  78.             "_02_OK":this.label_OK,
  79.             "_03_OK":this.label_OK,
  80.             "_04_OK":this.label_OK,
  81.             "_05_OK":this.label_OK,
  82.             "_06_OK":this.label_OK,
  83.             "_07_OK":this.label_OK,
  84.             "_08_OK":this.label_OK,
  85.             "_09_OK":this.label_OK,
  86.             "_10_OK":this.label_OK,
  87.             "_11_OK":this.label_OK
  88.          };
  89.          super();
  90.          this._engine = engine;
  91.          this._engine.playMusic({"code":"MU"});
  92.          this._engine.setSubtitles(this._engine.host.subtitlesOn);
  93.          this._engine.setFrameRate(12);
  94.          this.mainClip = this._engine.showSwf({
  95.             "code":"A_" + this._engine.config.moduleName,
  96.             "parent":this._engine.config.layers["content"]
  97.          });
  98.          this.mainTimeline = this.mainClip.swfContent;
  99.          this._timelineManager = new TimelineManager();
  100.          this._timeline_ = new TimelineLinear(this.mainTimeline,this._engine,this,this._timelineManager,this.labelsCallback);
  101.          this._engine.levelCZ = this._engine.config.layers["content"];
  102.          this.so = SharedObject.getLocal(this._engine.config.rubriqueName,"/");
  103.          trace("_engine.config.callerParameters",this._engine.config.callerParameters.fromCodeRub);
  104.          if(this._engine.config.callerParameters.fromCodeRub == null)
  105.          {
  106.             this.gListDone = [1,1,1,1,1,1,1,1,1,1,1,1];
  107.             this.so.data.listDone = this.gListDone;
  108.             this.so.data.doneMythe = this.gDoneMythe;
  109.             this.so.flush();
  110.          }
  111.          if(this.so.size == 0)
  112.          {
  113.             trace("premiere fois, pas d\'enregistrement");
  114.             this.gListDone = [0,0,0,0,0,0,0,0,0,0,0,0];
  115.             this.so.data.listDone = this.gListDone;
  116.             this.so.data.doneMythe = this.gDoneMythe;
  117.             this.so.flush();
  118.             this.initINTRO();
  119.          }
  120.          else
  121.          {
  122.             this.gListDone = this.so.data.listDone;
  123.             this.gDoneMythe = this.so.data.doneMythe;
  124.             trace("gListDone",this.gListDone);
  125.             trace("config.callerParameters",this._engine.config.callerParameters.fromCodeRub);
  126.             trace("_engine.config.callerParameters.fromId",this._engine.config.callerParameters.fromId);
  127.             fromSommaire = this._engine.config.callerParameters.fromCodeRub == "MOB";
  128.             if(fromSommaire == true)
  129.             {
  130.                this.firstLabel = "MEMORISATION";
  131.             }
  132.             else
  133.             {
  134.                this.gFromNumMod = this._engine.config.callerParameters.fromNumMod;
  135.                trace("so.data.lastDone",this.so.data.lastDone);
  136.                switch(this.so.data.lastDone)
  137.                {
  138.                   case 0:
  139.                      trace("n\'a pas fini le jeu ou le recit");
  140.                      if(this.gFromNumMod == 1)
  141.                      {
  142.                         this.firstLabel = "_01_NO";
  143.                      }
  144.                      else
  145.                      {
  146.                         this.firstLabel = "_NO";
  147.                      }
  148.                      break;
  149.                   case 1:
  150.                      trace("a fini le jeu ou le recit");
  151.                      this.firstLabel = "_" + this.G2D(this.gFromNumMod) + "_OK";
  152.                      break;
  153.                   case 2:
  154.                      trace("avait deja fini le jeu ou le recit");
  155.                      this.firstLabel = this.findLabelATTENTE();
  156.                }
  157.             }
  158.          }
  159.          this._timeline_.GotoAndPlayUntil({"labelStop":this.firstLabel});
  160.       }
  161.       
  162.       public function findLabelATTENTE() : String
  163.       {
  164.          var myLabel:String = null;
  165.          switch(this.gListDone.indexOf(0))
  166.          {
  167.             case -1:
  168.                myLabel = "ATTENTE_CLIC_12";
  169.                break;
  170.             case 0:
  171.                myLabel = "ATTENTE_CLIC_01";
  172.                break;
  173.             case 11:
  174.                if(this.playedDER_EPR == false)
  175.                {
  176.                   myLabel = "DER_EPR";
  177.                }
  178.                else
  179.                {
  180.                   myLabel = "ATTENTE_CLIC_12";
  181.                }
  182.                break;
  183.             default:
  184.                myLabel = "ATTENTE_CLIC";
  185.          }
  186.          return myLabel;
  187.       }
  188.       
  189.       public function initINTRO() : void
  190.       {
  191.          this.goLabelATTENTE = "ATTENTE_CLIC_01";
  192.          this.firstLabel = "I_01";
  193.          var BT_ZAP_INTROswf:MediaSwf = this._engine.showSwf({
  194.             "code":"BT_ZAP_INTRO",
  195.             "parent":this._engine.config.layers["menu"]
  196.          });
  197.          this.BT_ZAP_INTRO = new InteractiveMovie(BT_ZAP_INTROswf.swfContent,this._timelineManager);
  198.          this.BT_ZAP_INTRO.gotoAndStop(1);
  199.          this.BT_ZAP_INTRO.mc.onRollOver = function(p:Object):void
  200.          {
  201.             this.gotoAndStop(2);
  202.             _engine.playNoise(new NoiseObject({"code":"B_BT_ZAP"}));
  203.          };
  204.          this.BT_ZAP_INTRO.mc.onRollOut = function(p:Object):void
  205.          {
  206.             this.gotoAndStop(1);
  207.             _engine.stopNoise(new NoiseObject({"code":"B_BT_ZAP"}));
  208.          };
  209.          this.BT_ZAP_INTRO.mc.onPress = function(p:Object):void
  210.          {
  211.             _engine.stopNoise(new NoiseObject({"code":"B_BT_ZAP"}));
  212.             this.kill();
  213.             _engine.hideSwf({"code":"BT_ZAP_INTRO"});
  214.             _timeline_.GotoAndStop(goLabelATTENTE);
  215.             zapIntroDone = true;
  216.             labelATTENTE_CLIC_01();
  217.          };
  218.          this.BT_ZAP_INTRO.activeMC();
  219.       }
  220.       
  221.       public function initMEMO() : void
  222.       {
  223.          var myMc:InteractiveMovie = new InteractiveMovie(this.mainTimeline["BT_REPRISE"],this._timelineManager);
  224.          myMc.gotoAndStop("E1");
  225.          myMc.mc.pNoiseRoll = "B_REPRISE_ROLL";
  226.          myMc.mc.pNoiseClic = "B_REPRISE_CLIC";
  227.          myMc.mc.onRollOver = function(p:Object):void
  228.          {
  229.             this.gotoAndStop("E2");
  230.             _engine.playNoise(new NoiseObject({"code":this.pNoiseRoll}));
  231.          };
  232.          myMc.mc.onRollOut = function(p:Object):void
  233.          {
  234.             this.gotoAndStop("E1");
  235.             _engine.stopNoise(new NoiseObject({"code":this.pNoiseRoll}));
  236.          };
  237.          myMc.mc.onPress = function(p:Object):void
  238.          {
  239.             this.gotoAndStop("E3");
  240.             _engine.stopNoise(new NoiseObject({"code":this.pNoiseRoll}));
  241.             _engine.playNoise(new NoiseObject({"code":this.pNoiseClic}));
  242.             this.kill();
  243.             zapIntroDone = true;
  244.             _timeline_.GotoAndPlayUntil({"labelStop":findLabelATTENTE()});
  245.          };
  246.          myMc.activeMC();
  247.          myMc = new InteractiveMovie(this.mainTimeline["BT_NOUVELLE"],this._timelineManager);
  248.          myMc.gotoAndStop("E1");
  249.          myMc.mc.pNoiseRoll = "B_NOUVELLE_ROLL";
  250.          myMc.mc.pNoiseClic = "B_NOUVELLE_CLIC";
  251.          myMc.mc.onRollOver = function(p:Object):void
  252.          {
  253.             this.gotoAndStop("E2");
  254.             _engine.playNoise(new NoiseObject({"code":this.pNoiseRoll}));
  255.          };
  256.          myMc.mc.onRollOut = function(p:Object):void
  257.          {
  258.             this.gotoAndStop("E1");
  259.             _engine.stopNoise(new NoiseObject({"code":this.pNoiseRoll}));
  260.          };
  261.          myMc.mc.onPress = function(p:Object):void
  262.          {
  263.             this.gotoAndStop("E3");
  264.             _engine.stopNoise(new NoiseObject({"code":this.pNoiseRoll}));
  265.             _engine.playNoise(new NoiseObject({"code":this.pNoiseClic}));
  266.             this.kill();
  267.             gDoneMythe = false;
  268.             gListDone = [0,0,0,0,0,0,0,0,0,0,0,0];
  269.             so.data.listDone = gListDone;
  270.             so.data.doneMythe = gDoneMythe;
  271.             so.flush();
  272.             initINTRO();
  273.             firstLabel = "I_01";
  274.             _timeline_.GotoAndPlayUntil({"labelStop":firstLabel});
  275.          };
  276.          myMc.activeMC();
  277.       }
  278.       
  279.       public function label_DER_EPR() : void
  280.       {
  281.          trace("label_DER_EPR");
  282.          this.playedDER_EPR = true;
  283.          this._engine.playComment(new CommentObject({
  284.             "code":"DER_EPR",
  285.             "callback":this.finReturnSon
  286.          }));
  287.       }
  288.       
  289.       public function label_OK() : void
  290.       {
  291.          trace("label_OK");
  292.          this._engine.playComment(new CommentObject({
  293.             "code":this.G2D(this.gFromNumMod) + "_OK",
  294.             "callback":this.finReturnSon
  295.          }));
  296.       }
  297.       
  298.       public function label_NO() : void
  299.       {
  300.          trace("label_NO");
  301.          this._engine.playComment(new CommentObject({
  302.             "code":this.G2D(this.gFromNumMod) + "_NO",
  303.             "callback":this.finReturnSon
  304.          }));
  305.       }
  306.       
  307.       public function finReturnSon() : void
  308.       {
  309.          this.zapIntroDone = true;
  310.          this._timeline_.GotoAndPlayUntil({"labelStop":this.findLabelATTENTE()});
  311.       }
  312.       
  313.       public function labelATTENTE_CLIC_01() : void
  314.       {
  315.          var myMc:InteractiveMovie = null;
  316.          if(this.zapIntroDone == false)
  317.          {
  318.             this._engine.hideSwf({"code":"BT_ZAP_INTRO"});
  319.          }
  320.          this._engine.playComment(new CommentObject({"code":"ATTENTE_CLIC_01"}));
  321.          trace("labelATTENTE_CLIC_01");
  322.          for(var i:int = 1; i < 13; i++)
  323.          {
  324.             myMc = new InteractiveMovie(this.mainTimeline["ZONE_" + this.G2D(i)],this._timelineManager);
  325.             myMc.engine = this._engine;
  326.             myMc.mc.pNum = i;
  327.             myMc.mc.pCommentRoll = "ZONE_" + this.G2D(i);
  328.             myMc.mc.pNoiseRoll = "B_ZONE_ROLL_" + this.G2D(i);
  329.             myMc.mc.pNoiseClic = "B_ZONE_CLIC";
  330.             myMc.mc.pCommentClic = "ROI_" + this.G2D(i);
  331.             if(i == 1)
  332.             {
  333.                this.initMc(myMc);
  334.             }
  335.             else
  336.             {
  337.                myMc.gotoAndStop("E0");
  338.             }
  339.          }
  340.          this.initBT_MYTHE();
  341.       }
  342.       
  343.       public function labelATTENTE_CLIC() : void
  344.       {
  345.          var myMc:InteractiveMovie = null;
  346.          this._engine.playComment(new CommentObject({"code":"ATTENTE_CLIC"}));
  347.          trace("labelATTENTE_CLIC");
  348.          for(var i:int = 1; i < 13; i++)
  349.          {
  350.             myMc = new InteractiveMovie(this.mainTimeline["ZONE_" + this.G2D(i)],this._timelineManager);
  351.             myMc.engine = this._engine;
  352.             myMc.mc.pNum = i;
  353.             myMc.mc.pCommentRoll = "ZONE_" + this.G2D(i);
  354.             myMc.mc.pNoiseRoll = "B_ZONE_ROLL_" + this.G2D(i);
  355.             myMc.mc.pNoiseClic = "B_ZONE_CLIC";
  356.             myMc.mc.pCommentClic = "ROI_" + this.G2D(i);
  357.             if(i < 12)
  358.             {
  359.                if(this.gListDone[i - 1] == 1)
  360.                {
  361.                   myMc.mc.rollOutFrame = "E4";
  362.                }
  363.                this.initMc(myMc);
  364.             }
  365.             else
  366.             {
  367.                myMc.gotoAndStop("E0");
  368.             }
  369.          }
  370.          this.initBT_MYTHE();
  371.       }
  372.       
  373.       public function labelATTENTE_CLIC_12() : void
  374.       {
  375.          var myMc:InteractiveMovie = null;
  376.          if(this.gListDone.indexOf(0) !== -1)
  377.          {
  378.             this._engine.playComment(new CommentObject({"code":"ATTENTE_CLIC_12"}));
  379.          }
  380.          trace("labelATTENTE_CLIC_12");
  381.          for(var i:int = 1; i < 13; i++)
  382.          {
  383.             myMc = new InteractiveMovie(this.mainTimeline["ZONE_" + this.G2D(i)],this._timelineManager);
  384.             myMc.engine = this._engine;
  385.             myMc.mc.pNum = i;
  386.             myMc.mc.pCommentRoll = "ZONE_" + this.G2D(i);
  387.             myMc.mc.pNoiseRoll = "B_ZONE_ROLL_" + this.G2D(i);
  388.             myMc.mc.pNoiseClic = "B_ZONE_CLIC";
  389.             myMc.mc.pCommentClic = "ROI_" + this.G2D(i);
  390.             if(this.gListDone[i - 1] == 1)
  391.             {
  392.                myMc.mc.rollOutFrame = "E4";
  393.             }
  394.             this.initMc(myMc);
  395.          }
  396.          this.initBT_MYTHE();
  397.       }
  398.       
  399.       public function initBT_MYTHE() : void
  400.       {
  401.          var myMc:MovieClip = new InteractiveMovie(this.mainTimeline["BT_MYTHE"],this._timelineManager);
  402.          if(this.gDoneMythe)
  403.          {
  404.             myMc.gotoAndStop("E4");
  405.             myMc.mc.rollOutFrame = "E4";
  406.          }
  407.          else
  408.          {
  409.             myMc.gotoAndStop("E1");
  410.             myMc.mc.rollOutFrame = "E1";
  411.          }
  412.          myMc.mc.pNoiseRoll = "B_BT_MYTHE_ROLL";
  413.          myMc.mc.pNoiseClic = "B_BT_MYTHE_ROLL";
  414.          myMc.mc.pIB = "IB_00_MYTHE";
  415.          myMc.mc.onRollOver = function(p:Object):void
  416.          {
  417.             trace("OVER");
  418.             trace("this",this);
  419.             this.gotoAndStop("E2");
  420.             _engine.playNoise(new NoiseObject({"code":this.pNoiseRoll}));
  421.             _engine.showIB({
  422.                "id":this.pIB,
  423.                "reference":this
  424.             });
  425.          };
  426.          myMc.mc.onRollOut = function(p:Object):void
  427.          {
  428.             trace("OUT");
  429.             _engine.stopNoise(new NoiseObject({"code":this.pNoiseRoll}));
  430.             _engine.hideIB();
  431.          };
  432.          myMc.mc.onPress = function(p:Object):void
  433.          {
  434.             trace("CLIC");
  435.             this.timeline.GotoAndPlayUntil({
  436.                "labelPlay":"E3",
  437.                "beforeLabelStop":"E4",
  438.                "callback":goMYTH
  439.             });
  440.             _engine.stopNoise(new NoiseObject({"code":this.pNoiseRoll}));
  441.             _engine.playNoise(new NoiseObject({"code":this.pNoiseClic}));
  442.             this.kill();
  443.             _engine.hideIB();
  444.             if(gDoneMythe == false)
  445.             {
  446.                gDoneMythe = true;
  447.                so.data.doneMythe = gDoneMythe;
  448.                so.flush();
  449.             }
  450.          };
  451.          myMc.activeMC();
  452.       }
  453.       
  454.       public function goMYTH() : void
  455.       {
  456.          var myMc:InteractiveMovie = null;
  457.          this._timeline_.GotoAndStop("MYTHE_01");
  458.          for(var i:int = 1; i <= 3; i++)
  459.          {
  460.             myMc = new InteractiveMovie(this.mainTimeline["BT_MYTHE_" + this.G2D(i)],this._timelineManager);
  461.             if(i == 1)
  462.             {
  463.                myMc.gotoAndStop("E2");
  464.             }
  465.             else
  466.             {
  467.                myMc.gotoAndStop("E1");
  468.             }
  469.          }
  470.          this.TRANSITION = new InteractiveMovie(this.mainTimeline["TRANSITION"],this._timelineManager);
  471.          this.TRANSITION.mc.alpha = 0;
  472.          this.TRANSITION.gotoAndStop(1);
  473.          this.gImageNum = 1;
  474.          this.afficheImage();
  475.          this._engine.playComment(new CommentObject({
  476.             "code":"MYTHE_0" + this.gImageNum,
  477.             "callback":this.enchaineImage
  478.          }));
  479.       }
  480.       
  481.       public function afficheImage() : void
  482.       {
  483.          var ACCUEILmc:MovieClip = this.mainTimeline.MYTHE_XX.PHOTO;
  484.          var ANIM:MediaImage = this._engine.showImage({
  485.             "code":"PH_0" + this.gImageNum,
  486.             "parent":ACCUEILmc
  487.          });
  488.       }
  489.       
  490.       public function enchaineImage() : void
  491.       {
  492.          trace("enchaineImage");
  493.          this.TRANSITION.mc.alpha = 1;
  494.          this.TRANSITION.gotoAndPlayUntil({
  495.             "labelPlay":1,
  496.             "labelStop":"E1",
  497.             "callback":this.swapImage
  498.          });
  499.          var ACCUEILmc:MovieClip = this.mainTimeline.MYTHE_XX.PHOTO;
  500.          var ANIM:MediaImage = this._engine.showImage({
  501.             "code":"PH_0" + this.gImageNum,
  502.             "parent":ACCUEILmc
  503.          });
  504.       }
  505.       
  506.       public function swapImage() : void
  507.       {
  508.          var myMc:InteractiveMovie = null;
  509.          var i:int = 0;
  510.          trace("swapImage");
  511.          this._engine.hideImage({"code":"PH_0" + this.gImageNum});
  512.          if(this.gImageNum < 3)
  513.          {
  514.             this.gImageNum += 1;
  515.             for(i = 1; i <= 3; i++)
  516.             {
  517.                myMc = new InteractiveMovie(this.mainTimeline["BT_MYTHE_" + this.G2D(i)],this._timelineManager);
  518.                if(i <= this.gImageNum)
  519.                {
  520.                   myMc.gotoAndStop("E2");
  521.                }
  522.                else
  523.                {
  524.                   myMc.gotoAndStop("E1");
  525.                }
  526.             }
  527.             this.afficheImage();
  528.             this.TRANSITION.gotoAndPlayUntilTheEnd("E1",this.finTransition);
  529.          }
  530.          else
  531.          {
  532.             this.finReturnSon();
  533.          }
  534.       }
  535.       
  536.       public function finTransition() : void
  537.       {
  538.          this.TRANSITION.mc.alpha = 0;
  539.          this.TRANSITION.gotoAndStop(1);
  540.          this._engine.playComment(new CommentObject({
  541.             "code":"MYTHE_0" + this.gImageNum,
  542.             "callback":this.enchaineImage
  543.          }));
  544.       }
  545.       
  546.       public function initMc(myMc:MovieClip) : void
  547.       {
  548.          myMc.gotoAndStop("E1");
  549.          trace("myMc.mc",myMc.mc);
  550.          myMc.mc.onRollOver = function(p:Object):void
  551.          {
  552.             trace("OVER");
  553.             this.gotoAndStop("E2");
  554.             gRoll = this;
  555.             _engine.playNoise(new NoiseObject({"code":this.pNoiseRoll}));
  556.             _engine.playComment(new CommentObject({
  557.                "code":this.pCommentRoll,
  558.                "zapBlock":"NOZAP_NOBLOCK",
  559.                "callback":finTHEAson
  560.             }));
  561.          };
  562.          myMc.mc.onRollOut = function(p:Object):void
  563.          {
  564.             trace("OUT");
  565.             this.gotoAndStop(this.rollOutFrame);
  566.             _engine.stopNoise(new NoiseObject({"code":this.pNoiseRoll}));
  567.             _engine.stopComment();
  568.             gRoll = undefined;
  569.          };
  570.          myMc.mc.onPress = function(p:Object):void
  571.          {
  572.             _engine.stopNoise(new NoiseObject({"code":this.pNoiseRoll}));
  573.             _engine.playNoise(new NoiseObject({"code":this.pNoiseClic}));
  574.             if(p.mc.pNum == 1)
  575.             {
  576.                _timeline_.GotoAndStop("ROI_PARLE_01");
  577.             }
  578.             else
  579.             {
  580.                _timeline_.GotoAndStop("ROI_PARLE");
  581.             }
  582.             gClic = this.pNum;
  583.             _engine.playComment(new CommentObject({
  584.                "code":this.pCommentClic,
  585.                "callback":finCommentRoi
  586.             }));
  587.             trace("CLIC");
  588.             killAllMc();
  589.          };
  590.          myMc.activeMC();
  591.       }
  592.       
  593.       public function finTHEAson() : void
  594.       {
  595.          var myMc:InteractiveMovie = new InteractiveMovie(this.gRoll.ZONE_E2.VIGNETTE_01.THEA.BOUCHE,this._timelineManager);
  596.          myMc.gotoAndStop(myMc.mc.totalFrames);
  597.       }
  598.       
  599.       public function finCommentRoi() : void
  600.       {
  601.          trace("finCommentRoi");
  602.          this._engine.host.changeModule({"numMod":this.gClic});
  603.       }
  604.       
  605.       public function killAllMc() : void
  606.       {
  607.          var myMc:MovieClip = null;
  608.          for(var i:int = 1; i < 13; i++)
  609.          {
  610.             myMc = new InteractiveMovie(this.mainTimeline["ZONE_" + this.G2D(i)],this._timelineManager);
  611.             myMc.kill();
  612.          }
  613.       }
  614.       
  615.       public function G2D(value:int) : String
  616.       {
  617.          return GlobalesFunctions.gimme2digits(value);
  618.       }
  619.       
  620.       public function endMODULE() : void
  621.       {
  622.          trace("fin du module");
  623.       }
  624.       
  625.       public function sleep() : void
  626.       {
  627.          this._pauseManager = new PauseManager(this._engine,this._timelineManager);
  628.          this._pauseManager.sleepMovie(this.mainTimeline);
  629.       }
  630.       
  631.       public function wake() : void
  632.       {
  633.          if(this._pauseManager != null)
  634.          {
  635.             this._pauseManager.wakeMovie(this.mainTimeline);
  636.          }
  637.       }
  638.       
  639.       public function destroy() : void
  640.       {
  641.          this._engine.stopAllSounds();
  642.          this._timeline_.kilListeners();
  643.       }
  644.    }
  645. }
  646.