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

📄 buttonskin3d.as

📁 Flex三维特效 examples - see DistortionExamples.mxml bin - Use the included SWC component for productio
💻 AS
字号:
package view.distortion
{
	import com.adobe.ac.mxeffects.Distortion;
	import com.adobe.ac.mxeffects.DistortionConstants;
	
	import mx.skins.halo.ButtonSkin;
	
	public class ButtonSkin3D extends ButtonSkin
	{
		override protected function updateDisplayList( w : Number, h : Number ) : void
		{
			super.updateDisplayList( w, h );
			
			var distortion : Distortion = new Distortion( this );
			distortion.smooth = true;
			distortion.buildMode = DistortionConstants.OVERWRITE;
			
			switch ( name )
			{
				case "upSkin":
					
					distortion.openDoor( 25, DistortionConstants.BOTTOM );
					
					break;
				
				case "overSkin":

					distortion.openDoor( 15, DistortionConstants.BOTTOM );
			}
		}		
	}
}

⌨️ 快捷键说明

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