home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 164 / MOBICLIC164.ISO / pc / DATA / TST164 / TST164_00 / TST164_00.swf / scripts / frame_11 / DoAction.as
Text File  |  2014-05-13  |  735b  |  37 lines

  1. function testeMusic()
  2. {
  3.    if(getPos(gListeQsansMusic,gNoQuestion) !== -1)
  4.    {
  5.       if(gMusicOn == 1)
  6.       {
  7.          soundObjects[gMusic].setVolume(0);
  8.          gBlockMusic = 1;
  9.       }
  10.    }
  11.    else if(gMusicOn == 1)
  12.    {
  13.       if(soundObjects[gMusic].getVolume() == 0)
  14.       {
  15.          soundObjects[gMusic].setVolume(gVolume);
  16.          gBlockMusic = undefined;
  17.       }
  18.    }
  19. }
  20. if(HOTE == undefined)
  21. {
  22.    changeMusicOn(1);
  23.    gST = 1;
  24. }
  25. var myRecup = this.moduleInfo.returnNodeByPath("Module.Config.QsansMusic").firstChild.nodeValue;
  26. if(myRecup == undefined || myRecup == "")
  27. {
  28.    gListeQsansMusic = [];
  29. }
  30. else
  31. {
  32.    gListeQsansMusic = myRecup.split(",");
  33. }
  34. InitOk();
  35. initVariables_TST();
  36. stop();
  37.