?? buttonskin3d.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 + -