home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / attention_hog.swf / scripts / DefineSprite_184_hud_mc / frame_1 / DoAction.as
Encoding:
Text File  |  2008-09-22  |  638 b   |  27 lines

  1. sound_mc.onRelease = function()
  2. {
  3.    if(com.leadpipe.attentionhog.Game.instance.isSoundOn)
  4.    {
  5.       this.gotoAndStop("off");
  6.       com.leadpipe.attentionhog.Game.instance.soundOn(false);
  7.    }
  8.    else
  9.    {
  10.       this.gotoAndStop("on");
  11.       com.leadpipe.attentionhog.Game.instance.soundOn(true);
  12.    }
  13. };
  14. music_mc.onRelease = function()
  15. {
  16.    if(com.leadpipe.attentionhog.Game.instance.isMusicOn)
  17.    {
  18.       this.gotoAndStop("off");
  19.       com.leadpipe.attentionhog.Game.instance.musicOn(false);
  20.    }
  21.    else
  22.    {
  23.       this.gotoAndStop("on");
  24.       com.leadpipe.attentionhog.Game.instance.musicOn(true);
  25.    }
  26. };
  27.