2011年1月5日 星期三

[AS3][Tweener] Special property class_FilterShortcuts_GrowFilter

1000104_Tweener_FilterShortcuts_GlowFilter_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,
 {
  scaleX:2.5,
  scaleY:2.5,
  //
  _Glow_alpha:0.5,
  _Glow_blurX:120,
  _Glow_blurY:120,
  _Glow_color:0xffff88,
  //_Glow_color_r:255,
  //_Glow_color_g:255,
  //_Glow_color_b:255,
  //_Glow_inner:true,
  //_Glow_knockout:true,
  _Glow_quality:6,
  _Glow_strength:4,
  //
  time   :2,
  transition :"easeOutExpo"
 });
}
//
function onEventRollOut(e:MouseEvent = null):void{
 Tweener.addTween(e.currentTarget,
 {
  scaleX:1.7,
  scaleY:1.7,
  //
  _Glow_alpha:0.5,
  _Glow_blurX:90,
  _Glow_blurY:90,
  _Glow_color:0xffff99,
  //_Glow_color_r:255,
  //_Glow_color_g:255,
  //_Glow_color_b:255,
  //_Glow_inner:true,
  //_Glow_knockout:true,
  _Glow_quality:6,
  _Glow_strength:4,
  //
  time   :2,
  transition :"easeOutExpo",
  onComplete:nextTween
 });
}
//
function nextTween():void{
 Tweener.addTween(click_mc,
 {
  scaleX:1.2,
  scaleY:1.2,
  //
  _Glow_alpha:0.6,
  _Glow_blurX:120,
  _Glow_blurY:120,
  _Glow_color:0xffff88,
  //_Glow_color_r:255,
  //_Glow_color_g:255,
  //_Glow_color_b:255,
  //_Glow_inner:true,
  //_Glow_knockout:true,
  _Glow_quality:8,
  _Glow_strength:5,
  //
  delay:0.5,
  time   :1,
  transition :"easeOutExpo"
 });
}








1000104_Tweener_FilterShortcuts_GlowFilter_2.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,
 {
  scaleX:2.5,
  scaleY:2.5,
  rotationX:180,
  rotationY:180,
  rotationZ:180,
  //
  _Glow_alpha:0.5,
  _Glow_blurX:120,
  _Glow_blurY:120,
  _Glow_color:0xffff88,
  //_Glow_color_r:255,
  //_Glow_color_g:255,
  //_Glow_color_b:255,
  //_Glow_inner:true,
  //_Glow_knockout:true,
  _Glow_quality:6,
  _Glow_strength:4,
  //
  time   :2,
  transition :"easeOutExpo"
 });
}
//
function onEventRollOut(e:MouseEvent = null):void{
 Tweener.addTween(e.currentTarget,
 {
  scaleX:1.7,
  scaleY:1.7,
  //
  _Glow_alpha:0.5,
  _Glow_blurX:90,
  _Glow_blurY:90,
  _Glow_color:0xffff99,
  //_Glow_color_r:255,
  //_Glow_color_g:255,
  //_Glow_color_b:255,
  //_Glow_inner:true,
  //_Glow_knockout:true,
  _Glow_quality:6,
  _Glow_strength:4,
  //
  time   :2,
  transition :"easeOutExpo",
  onComplete:nextTween
 });
}
//
function nextTween():void{
 Tweener.addTween(click_mc,
 {
  scaleX:1.2,
  scaleY:1.2,
  rotationX:360,
  rotationY:360,
  rotationZ:360,
  //
  _Glow_alpha:0.6,
  _Glow_blurX:120,
  _Glow_blurY:120,
  _Glow_color:0xffff88,
  //_Glow_color_r:255,
  //_Glow_color_g:255,
  //_Glow_color_b:255,
  //_Glow_inner:true,
  //_Glow_knockout:true,
  _Glow_quality:8,
  _Glow_strength:5,
  //
  delay:0.5,
  time   :2,
  transition :"easeOutExpo"
 });
}


沒有留言: