home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / blackknight.swf / scripts / DefineSprite_1221 / frame_132 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  1.0 KB  |  59 lines

  1. b1.onRelease = function()
  2. {
  3.    pointer._y = -124;
  4.    _root.setgamequality(1);
  5. };
  6. b2.onRelease = function()
  7. {
  8.    pointer._y = -65;
  9.    _root.setgamequality(2);
  10. };
  11. b3.onRelease = function()
  12. {
  13.    pointer._y = -10;
  14.    _root.setgamequality(3);
  15. };
  16. backb.onRelease = function()
  17. {
  18.    gotoAndStop("mainmenu");
  19. };
  20. sfxbut.onRelease = function()
  21. {
  22.    if(sfxcandle._currentframe == 1)
  23.    {
  24.       _root.sfxmute = 0;
  25.       _root.resetSounds();
  26.       sfxcandle.gotoAndStop(2);
  27.    }
  28.    else
  29.    {
  30.       _root.sfxmute = 1;
  31.       _root.resetSounds();
  32.       sfxcandle.gotoAndStop(1);
  33.    }
  34. };
  35. musicbut.onRelease = function()
  36. {
  37.    if(musiccandle._currentframe == 1)
  38.    {
  39.       _root.musicmute = 0;
  40.       musiccandle.gotoAndStop(2);
  41.       _root.resetSounds();
  42.    }
  43.    else
  44.    {
  45.       _root.musicmute = 1;
  46.       musiccandle.gotoAndStop(1);
  47.       _root.resetSounds();
  48.    }
  49. };
  50. if(_root.musicmute == 0)
  51. {
  52.    musiccandle.gotoAndStop(2);
  53. }
  54. if(_root.sfxmute == 0)
  55. {
  56.    sfxcandle.gotoAndStop(2);
  57. }
  58. this["b" + _root.gamequality].onRelease();
  59.