home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / FishyHop.swf / scripts / DefineSprite_213 / frame_1 / DoAction.as
Encoding:
Text File  |  2008-09-05  |  3.6 KB  |  152 lines

  1. function viewQ()
  2. {
  3.    switch(_root._quality)
  4.    {
  5.       case "LOW":
  6.          qView_mc.b1_mc._visible = true;
  7.          qView_mc.b2_mc._visible = false;
  8.          qView_mc.b3_mc._visible = false;
  9.          qView_mc.b4_mc._visible = false;
  10.          break;
  11.       case "MEDIUM":
  12.          qView_mc.b2_mc._visible = true;
  13.          qView_mc.b1_mc._visible = false;
  14.          qView_mc.b3_mc._visible = false;
  15.          qView_mc.b4_mc._visible = false;
  16.          break;
  17.       case "HIGH":
  18.          qView_mc.b3_mc._visible = true;
  19.          qView_mc.b2_mc._visible = false;
  20.          qView_mc.b1_mc._visible = false;
  21.          qView_mc.b4_mc._visible = false;
  22.          break;
  23.       case "BEST":
  24.          qView_mc.b4_mc._visible = true;
  25.          qView_mc.b2_mc._visible = false;
  26.          qView_mc.b3_mc._visible = false;
  27.          qView_mc.b1_mc._visible = false;
  28.    }
  29. }
  30. qView_mc._visible = false;
  31. if(_root.game.soundManage.isMusicPlay == true)
  32. {
  33.    notmusic_mc._visible = false;
  34. }
  35. if(_root.game.soundManage.isSoundPlay == true)
  36. {
  37.    notsound_mc._visible = false;
  38. }
  39. main_btn.onRelease = function()
  40. {
  41.    if(return_mc._currentframe == 1)
  42.    {
  43.       return_mc.gotoAndStop(2);
  44.       _root.game.isPause = true;
  45.    }
  46.    else if(return_mc._currentframe == 2)
  47.    {
  48.       return_mc.gotoAndStop(1);
  49.       _root.game.isPause = false;
  50.    }
  51. };
  52. p_btn.onRelease = function()
  53. {
  54.    if(return_mc._currentframe == 1)
  55.    {
  56.       return_mc.gotoAndStop(3);
  57.       _root.game.isPause = true;
  58.    }
  59.    else if(return_mc._currentframe == 3)
  60.    {
  61.       return_mc.gotoAndStop(1);
  62.       _root.game.isPause = false;
  63.    }
  64. };
  65. music_btn.onRelease = function()
  66. {
  67.    if(_root.game.soundManage.isMusicPlay == true)
  68.    {
  69.       _root.game.soundManage.stopMusic();
  70.       _root.game.soundManage.isMusicPlay = false;
  71.       notmusic_mc._visible = true;
  72.    }
  73.    else
  74.    {
  75.       _root.game.soundManage.returnMusic();
  76.       _root.game.soundManage.isMusicPlay = true;
  77.       notmusic_mc._visible = false;
  78.    }
  79. };
  80. sound_btn.onRelease = function()
  81. {
  82.    trace("Σ╜áτé╣σç╗Σ║åΘƒ│µòêµîëΘÆ«∩╝ü");
  83.    if(_root.game.soundManage.isSoundPlay == true)
  84.    {
  85.       _root.game.soundManage.soundManage.stopSound();
  86.       _root.game.soundManage.isSoundPlay = false;
  87.       notsound_mc._visible = true;
  88.    }
  89.    else
  90.    {
  91.       _root.game.soundManage.soundManage.returnSound();
  92.       _root.game.soundManage.isSoundPlay = true;
  93.       notsound_mc._visible = false;
  94.    }
  95. };
  96. sound_btn.onRelease = function()
  97. {
  98.    trace("Σ╜áτé╣σç╗Σ║åΘƒ│µòêµîëΘÆ«∩╝ü");
  99.    if(_root.game.soundManage.isSoundPlay == true)
  100.    {
  101.       _root.game.soundManage.soundManage.stopSound();
  102.       _root.game.soundManage.isSoundPlay = false;
  103.       notsound_mc._visible = true;
  104.    }
  105.    else
  106.    {
  107.       _root.game.soundManage.soundManage.returnSound();
  108.       _root.game.soundManage.isSoundPlay = true;
  109.       notsound_mc._visible = false;
  110.    }
  111. };
  112. q_btn.onRelease = function()
  113. {
  114.    if(qView_mc._visible == false)
  115.    {
  116.       qView_mc._visible = true;
  117.       qView_mc.onEnterFrame = function()
  118.       {
  119.          if(!this.hit_mc.hitTest(_root._xmouse,_root._ymouse,true))
  120.          {
  121.             this._visible = false;
  122.             this.onEnterFrame = null;
  123.          }
  124.       };
  125.       viewQ();
  126.    }
  127.    else
  128.    {
  129.       qView_mc._visible = false;
  130.    }
  131. };
  132. qView_mc.b1_btn.onRelease = function()
  133. {
  134.    _root._quality = "LOW";
  135.    viewQ();
  136. };
  137. qView_mc.b2_btn.onRelease = function()
  138. {
  139.    _root._quality = "MEDIUM";
  140.    viewQ();
  141. };
  142. qView_mc.b3_btn.onRelease = function()
  143. {
  144.    _root._quality = "HIGH";
  145.    viewQ();
  146. };
  147. qView_mc.b4_btn.onRelease = function()
  148. {
  149.    _root._quality = "BEST";
  150.    viewQ();
  151. };
  152.