home *** CD-ROM | disk | FTP | other *** search
- function viewQ()
- {
- switch(_root._quality)
- {
- case "LOW":
- qView_mc.b1_mc._visible = true;
- qView_mc.b2_mc._visible = false;
- qView_mc.b3_mc._visible = false;
- qView_mc.b4_mc._visible = false;
- break;
- case "MEDIUM":
- qView_mc.b2_mc._visible = true;
- qView_mc.b1_mc._visible = false;
- qView_mc.b3_mc._visible = false;
- qView_mc.b4_mc._visible = false;
- break;
- case "HIGH":
- qView_mc.b3_mc._visible = true;
- qView_mc.b2_mc._visible = false;
- qView_mc.b1_mc._visible = false;
- qView_mc.b4_mc._visible = false;
- break;
- case "BEST":
- qView_mc.b4_mc._visible = true;
- qView_mc.b2_mc._visible = false;
- qView_mc.b3_mc._visible = false;
- qView_mc.b1_mc._visible = false;
- }
- }
- qView_mc._visible = false;
- if(_root.game.soundManage.isMusicPlay == true)
- {
- notmusic_mc._visible = false;
- }
- if(_root.game.soundManage.isSoundPlay == true)
- {
- notsound_mc._visible = false;
- }
- main_btn.onRelease = function()
- {
- if(return_mc._currentframe == 1)
- {
- return_mc.gotoAndStop(2);
- _root.game.isPause = true;
- }
- else if(return_mc._currentframe == 2)
- {
- return_mc.gotoAndStop(1);
- _root.game.isPause = false;
- }
- };
- p_btn.onRelease = function()
- {
- if(return_mc._currentframe == 1)
- {
- return_mc.gotoAndStop(3);
- _root.game.isPause = true;
- }
- else if(return_mc._currentframe == 3)
- {
- return_mc.gotoAndStop(1);
- _root.game.isPause = false;
- }
- };
- music_btn.onRelease = function()
- {
- if(_root.game.soundManage.isMusicPlay == true)
- {
- _root.game.soundManage.stopMusic();
- _root.game.soundManage.isMusicPlay = false;
- notmusic_mc._visible = true;
- }
- else
- {
- _root.game.soundManage.returnMusic();
- _root.game.soundManage.isMusicPlay = true;
- notmusic_mc._visible = false;
- }
- };
- sound_btn.onRelease = function()
- {
- trace("你点击了音效按钮!");
- if(_root.game.soundManage.isSoundPlay == true)
- {
- _root.game.soundManage.soundManage.stopSound();
- _root.game.soundManage.isSoundPlay = false;
- notsound_mc._visible = true;
- }
- else
- {
- _root.game.soundManage.soundManage.returnSound();
- _root.game.soundManage.isSoundPlay = true;
- notsound_mc._visible = false;
- }
- };
- sound_btn.onRelease = function()
- {
- trace("你点击了音效按钮!");
- if(_root.game.soundManage.isSoundPlay == true)
- {
- _root.game.soundManage.soundManage.stopSound();
- _root.game.soundManage.isSoundPlay = false;
- notsound_mc._visible = true;
- }
- else
- {
- _root.game.soundManage.soundManage.returnSound();
- _root.game.soundManage.isSoundPlay = true;
- notsound_mc._visible = false;
- }
- };
- q_btn.onRelease = function()
- {
- if(qView_mc._visible == false)
- {
- qView_mc._visible = true;
- qView_mc.onEnterFrame = function()
- {
- if(!this.hit_mc.hitTest(_root._xmouse,_root._ymouse,true))
- {
- this._visible = false;
- this.onEnterFrame = null;
- }
- };
- viewQ();
- }
- else
- {
- qView_mc._visible = false;
- }
- };
- qView_mc.b1_btn.onRelease = function()
- {
- _root._quality = "LOW";
- viewQ();
- };
- qView_mc.b2_btn.onRelease = function()
- {
- _root._quality = "MEDIUM";
- viewQ();
- };
- qView_mc.b3_btn.onRelease = function()
- {
- _root._quality = "HIGH";
- viewQ();
- };
- qView_mc.b4_btn.onRelease = function()
- {
- _root._quality = "BEST";
- viewQ();
- };
-