buttonskin3d.as
来自「Flex三维特效 examples - see DistortionExamp」· AS 代码 · 共 32 行
AS
32 行
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 + =
减小字号Ctrl + -
显示快捷键?