home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 161 / MOBICLIC161.ISO / pc / DATA / VOT161 / VOT161_00 / mod.swf / scripts / frame_1 / DoAction.as
Text File  |  2014-01-15  |  2KB  |  78 lines

  1. function StopAll()
  2. {
  3.    _o_.StopAll();
  4. }
  5. function ModulePause()
  6. {
  7.    trace("ModulePause : " + ModulePause);
  8. }
  9. function ModuleResume()
  10. {
  11. }
  12. function Init()
  13. {
  14.    _global.xGetConfig();
  15.    InitMC({mc:_root.BT_RETOUR});
  16.    _root.BT_RETOUR.OnPress = function()
  17.    {
  18.       _global.ChangeModule({codeRub:"MBB",numMod:0});
  19.    };
  20.    _root.BT_RETOUR.swapDepths(17589);
  21.    _root.InitOk();
  22. }
  23. function InitNextZone()
  24. {
  25.    _root.stopBruitage({nomSon:"B_CRAIE"});
  26.    _root.stopBruitage({nomSon:"B_EPONGE"});
  27.    _root.stopBruitage({nomSon:"B_AIMANT"});
  28.    _root.stopBruitage({nomSon:"B_METRE"});
  29.    _root.stopBruitage({nomSon:"B_POP"});
  30.    _root.stopBruitage({nomSon:"B_RADIO"});
  31.    _root.stopBruitage({nomSon:"B_RADIO_01"});
  32.    ZONE_EN_COURS++;
  33.    _root.afficherMascottes([{nom:"BUG_ANE",action:"E2"},{nom:"SPAM_NEUTRE",action:"E2"},{nom:"WIKI_NEUTRE",action:"E2"}]);
  34.    var _loc4_ = _root["ZONE_" + gimme2digits(ZONE_EN_COURS)];
  35.    trace("zone : " + _loc4_);
  36.    _loc4_.No = ZONE_EN_COURS;
  37.    if(ZONE_EN_COURS == 10)
  38.    {
  39.       InitMC({mc:_loc4_,son:BRUITS_ZONES[ZONE_EN_COURS]});
  40.       _loc4_.OnPress = function()
  41.       {
  42.          _root.stopBruitage({nomSon:BRUITS_ZONES[this.No]});
  43.          this.enabled = false;
  44.          _root.gotoAndStop(gimme2digits(this.No) + "_00");
  45.       };
  46.    }
  47.    else
  48.    {
  49.       _loc4_.CiblesDrag = [_root.TABLEAU];
  50.       InitMC({mc:_loc4_,fonction:"dragdrop",son:BRUITS_ZONES[ZONE_EN_COURS]});
  51.       _loc4_.ApresDrag = function()
  52.       {
  53.          if(this.CiblesTouchees[0] == _root.TABLEAU)
  54.          {
  55.             this.enabled = false;
  56.             this._visible = false;
  57.             _root.gotoAndStop(gimme2digits(this.No) + "_00");
  58.          }
  59.          else
  60.          {
  61.             this.ComeBack();
  62.             gereCursor("fleche");
  63.          }
  64.       };
  65.    }
  66.    var _loc3_ = ZONE_EN_COURS;
  67.    while(_loc3_ <= 10)
  68.    {
  69.       _root["ZONE_" + gimme2digits(_loc3_)]._visible = true;
  70.       _loc3_ = _loc3_ + 1;
  71.    }
  72. }
  73. var mod = this;
  74. _root.StopAll = StopAll;
  75. var ZONE_EN_COURS = 0;
  76. var BRUITS_ZONES = [undefined,undefined,"B_CARTE","B_DESSIN","B_METRE","B_CRAIE","B_DESSIN","B_QUESTION","B_CAHIER","B_LIVRE","B_RADIO"];
  77. _root.InitNextZone = InitNextZone;
  78.