home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 144 / MOBICLIC144.ISO / mac / DATA / BLA144 / BLA144_00 / BLA144_00.swf / scripts / frame_10 / DoAction_2.as next >
Text File  |  2012-04-23  |  1KB  |  57 lines

  1. function initToto(lBlague)
  2. {
  3.    gBlague = lBlague;
  4.    gereTextes.afficheLM({mc:LM_XX,codeLM:"LM_" + gimme2digits(gListeOrdreBLA[gBlague - 1]),texte_LM:"texte_LM_XX"});
  5.    var _loc2_ = TOTO.TOTO_BLA;
  6.    _loc2_.gotoAndPlay("E" + gListeOrdreTOTO[gBlague - 1]);
  7.    _loc2_.onRollOver = function()
  8.    {
  9.       gereCursor(2);
  10.       stopAllBruitages();
  11.       joueBruitage({nomSon:"B_MOI"});
  12.       this.gotoAndPlay("E5");
  13.       clearInterval(IntervalTOTO);
  14.    };
  15.    _loc2_.onRollOut = function()
  16.    {
  17.       gereCursor(1);
  18.       desinitToto();
  19.    };
  20.    _loc2_.onPress = function()
  21.    {
  22.       gereCursor(1);
  23.       ChangeModule({codeRub:gRubriqueName,numMod:gListeOrdreBLA[gBlague - 1]});
  24.    };
  25.    IntervalTOTO = setInterval(this,"desinitToto",3000);
  26. }
  27. function desinitToto()
  28. {
  29.    gereCursor(1);
  30.    gereTextes.masqueLM({mc:LM_XX,codeLM:"LM_" + gimme2digits(gListeOrdreBLA[gBlague - 1])});
  31.    stopAllBruitages();
  32.    clearInterval(IntervalTOTO);
  33.    var _loc1_ = TOTO.TOTO_BLA;
  34.    desactiveClip(_loc1_);
  35.    TOTO.play();
  36. }
  37. function initTriche()
  38. {
  39.    var _loc2_ = 1;
  40.    while(_loc2_ <= 3)
  41.    {
  42.       var _loc3_ = this["triche_" + _loc2_];
  43.       _loc3_.useHandCursor = false;
  44.       _loc3_.pNum = _loc2_;
  45.       _loc3_.onPress = function()
  46.       {
  47.          if(Key.isDown(32) == true)
  48.          {
  49.             ChangeModule({codeRub:gRubriqueName,numMod:this.pNum});
  50.          }
  51.       };
  52.       _loc2_ = _loc2_ + 1;
  53.    }
  54. }
  55. initTriche();
  56. stop();
  57.