2011年1月4日 星期二

[AS3][Tweener] Special property class_FilterShortcuts_DrapShadowFilter

Tweener Documentation_Special property class__●FilterShortcuts


1000104_Tweener_FilterShortcuts_DropShadowFilter_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,
  _DropShadow_alpha:0.3,
  _DropShadow_angle:60,
  _DropShadow_blurX:10,
  _DropShadow_blurY:10,
  _DropShadow_color:0x222222,
  _DropShadow_distance:15,
  _DropShadow_quality:1,
  _DropShadow_strength:3,
  //_DropShadow_hideObject:true,
  _DropShadow_inner:true,
  //_DropShadow_knockout:true,
  //
  time   :2,
  transition :"easeOutExpo"
 });
}
//
function onEventRollOut(e:MouseEvent = null):void{
 Tweener.addTween(e.currentTarget,
 {
  scaleX:1.5,
  scaleY:1.5,
  _Bevel_angle:320, 
  _Bevel_blurX:15, 
  _Bevel_blurY:15, 
  _Bevel_distance:8, 
  //
  _Bevel_highlightColor:0xffffff, 
  _Bevel_highlightAlpha:1, 
  
  _Bevel_knockout:false, 
  _Bevel_quality:2, 
  //
  _Bevel_shadowColor:0x000000, 
  _Bevel_shadowAlpha:1, 
  
  _Bevel_strength:1, 
  _Bevel_type:"inner", 
  //
  time   :2,
  transition :"easeOutExpo",
  onComplete:nextTween
 });
}
//
function nextTween():void{
 Tweener.addTween(click_mc,
 {
  scaleX:1,
  scaleY:1,
  _Bevel_angle:0, 
  _Bevel_blurX:0, 
  _Bevel_blurY:0, 
  _Bevel_distance:0, 
  //
  _Bevel_highlightColor:0xffffff, 
  _Bevel_highlightAlpha:0.6, 
  
  _Bevel_knockout:false, 
  _Bevel_quality:2, 
  //
  _Bevel_shadowColor:0x000000, 
  _Bevel_shadowAlpha:0.6, 
  
  _Bevel_strength:0, 
  _Bevel_type:"inner", 
  //
  delay:0.5,
  time   :1,
  transition :"easeOutExpo"
 });
}





1000104_Tweener_FilterShortcuts_DropShadowFilter_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,
  _DropShadow_alpha:0.3,
  _DropShadow_angle:120,
  _DropShadow_blurX:20,
  _DropShadow_blurY:20,
  _DropShadow_color:0x222222,
  _DropShadow_distance:30,
  _DropShadow_quality:1,
  _DropShadow_strength:4,
  //_DropShadow_hideObject:true,
  _DropShadow_inner:true,
  //_DropShadow_knockout:true,
  //
  time   :2,
  transition :"easeOutExpo"
 });
}
//
function onEventRollOut(e:MouseEvent = null):void{
 Tweener.addTween(e.currentTarget,
 {
  scaleX:1.7,
  scaleY:1.7,
  _DropShadow_alpha:0.3,
  _DropShadow_angle:20,
  _DropShadow_blurX:10,
  _DropShadow_blurY:10,
  _DropShadow_color:0x222222,
  _DropShadow_distance:15,
  _DropShadow_quality:1,
  _DropShadow_strength:3,
  //_DropShadow_hideObject:true,
  //_DropShadow_inner:true,
  //_DropShadow_knockout:true,
  //
  time   :2,
  transition :"easeOutExpo",
  onComplete:nextTween
 });
}
//
function nextTween():void{
 Tweener.addTween(click_mc,
 {
  scaleX:1.2,
  scaleY:1.2,
  _DropShadow_alpha:0.3,
  _DropShadow_angle:320,
  _DropShadow_blurX:10,
  _DropShadow_blurY:10,
  _DropShadow_color:0x222222,
  _DropShadow_distance:10,
  _DropShadow_quality:1,
  _DropShadow_strength:3,
  //_DropShadow_hideObject:true,
  //_DropShadow_inner:true,
  //_DropShadow_knockout:true,
  //
  delay:0.5,
  time   :1,
  transition :"easeOutExpo"
 });
}





1000104_Tweener_FilterShortcuts_DropShadowFilter_3.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,
  _DropShadow_alpha:0.2,
  _DropShadow_angle:120,
  _DropShadow_blurX:40,
  _DropShadow_blurY:40,
  _DropShadow_color:0x222222,
  _DropShadow_distance:40,
  _DropShadow_quality:1,
  _DropShadow_strength:1.5,
  //_DropShadow_hideObject:true,
  _DropShadow_inner:false,
  //_DropShadow_knockout:true,
  //
  time   :2,
  transition :"easeOutExpo"
 });
}
//
function onEventRollOut(e:MouseEvent = null):void{
 Tweener.addTween(e.currentTarget,
 {
  scaleX:1.7,
  scaleY:1.7,
  _DropShadow_alpha:0.25,
  _DropShadow_angle:120,
  _DropShadow_blurX:40,
  _DropShadow_blurY:40,
  _DropShadow_color:0x222222,
  _DropShadow_distance:20,
  _DropShadow_quality:1,
  _DropShadow_strength:2,
  //_DropShadow_hideObject:true,
  _DropShadow_inner:false,
  //_DropShadow_knockout:true,
  //
  time   :2,
  transition :"easeOutExpo",
  onComplete:nextTween
 });
}
//
function nextTween():void{
 Tweener.addTween(click_mc,
 {
  scaleX:1.2,
  scaleY:1.2,
  _DropShadow_alpha:0.3,
  _DropShadow_angle:120,
  _DropShadow_blurX:40,
  _DropShadow_blurY:40,
  _DropShadow_color:0x222222,
  _DropShadow_distance:8,
  _DropShadow_quality:1,
  _DropShadow_strength:3,
  //_DropShadow_hideObject:true,
  _DropShadow_inner:false,
  //_DropShadow_knockout:true,
  //
  delay:0.5,
  time   :1,
  transition :"easeOutExpo"
 });
}


沒有留言: