⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 playmenu.as

📁 国外强大的xml相册
💻 AS
📖 第 1 页 / 共 2 页
字号:
		//previous button
		var __prevBigBut:MovieClip = prevBigActivColorHolderMC;
		var __prevSmallBut:MovieClip = prevSmallActivColorHolderMC;
		// handCursor
		playButtonMC.useHandCursor = handCursorBehave;
		nextButtonMC.useHandCursor = handCursorBehave;
		prevButtonMC.useHandCursor = handCursorBehave;
		//end playbut
		//*************playbutton events******************
		playButtonMC.onRollOver = function() {
			__menu.PLAYOUT = false;
			if (!__menu.BLOCK) {
				__menu.setToActiv(__playBut, 100);
				//white bliks
				__menu.setToPacive(_whiteTop, halfActivOffset);
				__menu.setToPacive(_whiteBottom, halfActivOffset);
				// **********************************************HINT********************************************
				if (__PLAYPANELBEHAVE) {
					var hinttext:String = _global.PSS_UI.lib_play;
				} else {
					//**************************update hint language***********************
					__menu.updateHintLang();
					//****end*******************update hint language***********************
					var hinttext:String = __menu.bPlayHint;
				}
				if (!disablePlayHint) {
					Hint.labelText(hinttext);
				}
				// ****************end**************************HINT********************************************                        
			} else {
				var hinttext:String = _global.PSS_UI.lib_block;
				Hint.labelText(hinttext);
			}
		};
		playButtonMC.onRollOut = playButtonMC.onReleaseOutside=function () {
			__menu.PLAYOUT = true;
			// **********************************************KILL HINT********************************************
			Hint.killHint();
			// ****************end**************************KILL HINT********************************************
			if (!__menu.BLOCK) {
				// if browser is activ get from MENUHOLDER
				if (__MENUHOLDER.ActivBrowser) {
					__menu.setToPacive(__playBut, halfActivOffset);
				} else {
					__menu.setToPacive(__playBut, 0);
				}
				//white bliks 
				__menu.setToActiv(_whiteTop, 100);
				__menu.setToActiv(_whiteBottom, 100);
			}
		};
		//****end******playbutton events******************
		//*************next button events******************
		nextButtonMC.onRollOver = function() {
			__menu.NEXTOUT = false;
			if (!__menu.BLOCK) {
				__menu.setToActiv(__nextBigBut, 100);
				__menu.setToActiv(__nextSmallBut, 100);
				// **********************************************HINT********************************************
				updateHintLang();
				if (__PLAYPANELBEHAVE) {
					var hinttext:String = _global.PSS_UI.lib_next;
				} else {
					//**************************update hint language***********************
					__menu.updateHintLang();
					//****end*******************update hint language***********************
					var hinttext:String = __menu.bNextHint;
				}
				if (!disableNextHint) {
					Hint.labelText(hinttext);
				}
				// ****************end**************************HINT********************************************                
			} else {
				var hinttext:String = _global.PSS_UI.lib_block;
				Hint.labelText(hinttext);
			}
		};
		nextButtonMC.onRollOut = nextButtonMC.onReleaseOutside=function () {
			__menu.NEXTOUT = true;
			// **********************************************KILL HINT********************************************
			Hint.killHint();
			// ****************end**************************KILL HINT********************************************
			if (!__menu.BLOCK) {
				__menu.setToPacive(__nextBigBut, 0);
				__menu.setToPacive(__nextSmallBut, 0);
			}
		};
		//****end******nextbutton events******************
		//*************prev button events******************
		prevButtonMC.onRollOver = function() {
			__menu.PREVOUT = false;
			if (!__menu.BLOCK) {
				// **********************************************HINT********************************************
				if (__PLAYPANELBEHAVE) {
					var hinttext:String = _global.PSS_UI.lib_previous;
				} else {
					//**************************update hint language***********************
					__menu.updateHintLang();
					//****end*******************update hint language***********************
					var hinttext:String = __menu.bPrevHint;
				}
				Hint.labelText(hinttext);
				// ****************end**************************HINT********************************************
				__menu.setToActiv(__prevBigBut, 100);
				__menu.setToActiv(__prevSmallBut, 100);
			} else {
				var hinttext:String = _global.PSS_UI.lib_block;
				Hint.labelText(hinttext);
			}
		};
		prevButtonMC.onRollOut = prevButtonMC.onReleaseOutside=function () {
			__menu.PREVOUT = true;
			// **********************************************KILL HINT********************************************
			Hint.killHint();
			// ****************end**************************KILL HINT********************************************
			if (!__menu.BLOCK) {
				__menu.setToPacive(__prevBigBut, 0);
				__menu.setToPacive(__prevSmallBut, 0);
			}
		};
		//****end******prevbutton events******************
		//******************************************PRESS EVENTS************************************
		//******************PLAY
		playButtonMC.onRelease = function() {
			// **********************************************KILL HINT********************************************
			Hint.killHint();
			// ****************end**************************KILL HINT********************************************
			if (!__menu.BLOCK) {
				if (__PLAYPANELBEHAVE) {
					disablePlayHint = true;
				} else {
					disablePlayHint = false;
				}
				// *****************************INTRO ACTION*****************************************
				__menu.introAction();
				// *******end*****************INTRO ACTION*****************************************
			}
		};
		//***********************************next button******************
		nextButtonMC.onRelease = function() {
			// **********************************************KILL HINT********************************************
			Hint.killHint();
			// ****************end**************************KILL HINT********************************************
			if (!__menu.BLOCK) {
				// *****************************INTRO ACTION*****************************************
				__menu.nextIntroAction();
				// *******end*****************INTRO ACTION*****************************************
			}
		};
		//***********************************previus button******************
		prevButtonMC.onRelease = function() {
			// **********************************************KILL HINT********************************************
			Hint.killHint();
			// ****************end**************************KILL HINT********************************************
			if (!__menu.BLOCK) {
				// *****************************INTRO ACTION*****************************************
				__menu.prevIntroAction();
				// *******end*****************INTRO ACTION*****************************************
			}
		};
	}
	//*****************end events*****************************
	//*************************blok play menu***********************************
	public function block():Void {
		BLOCK = true;
	}
	public function unblock():Void {
		BLOCK = false;
		if (PLAYOUT) {
			__this.setToActiv(whiteTop, 100);
			__this.setToActiv(whiteBottom, 100);
			PLAYOUT = false;
		}
		if (NEXTOUT) {
			__this.setToPacive(nextBigActivColorHolderMC, 0);
			__this.setToPacive(nextSmallActivColorHolderMC, 0);
			NEXTOUT = false;
		}
		if (PREVOUT) {
			__this.setToPacive(prevBigActivColorHolderMC, 0);
			__this.setToPacive(prevSmallActivColorHolderMC, 0);
			PREVOUT = false;
		}
	}
	// ****************end class
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -