2011年1月4日 星期二

[AS3][Tweener] Special property class_FilterShortcuts_BlurFilter

Tweener Documentation_Special property class__●FilterShortcuts

1000104_Tweener_FilterShortcuts_BlurFilter_1.swf




import caurina.transitions.Tweener;
import caurina.transitions.properties.FilterShortcuts;
FilterShortcuts.init();

//
click_mc.addEventListener(MouseEvent.ROLL_OVER, onEventRollOver);
click_mc.addEventListener(MouseEvent.ROLL_OUT, onEventRollOut);
//
function onEventRollOver(e:MouseEvent = null):void{
 Tweener.addTween(e.currentTarget,
 {
  _Blur_blurX :60,
  //_Blur_blurY :60,
  time   :1,
  transition :"easeOutExpo"
 });
}
//
function onEventRollOut(e:MouseEvent = null):void{
 Tweener.addTween(e.currentTarget,
 {
  _Blur_blurX :0,
  _Blur_blurY :60,
  time   :1,
  transition :"easeOutExpo",
  onComplete:nextTween
 });
}
//
function nextTween():void{
 Tweener.addTween(click_mc,
 {
  _Blur_blurX :0,
  _Blur_blurY :0,
  delay   :0.3,
  time   :1,
  transition :"easeOutExpo"
 });
}

沒有留言: