Tweensy - ease
Tweensy.to()/Tweensy.from()の第四引数とTweensy.fromTo()の第五引数にease:Functionって引数がある。Tweenerでいうtransitionで指定したようなイージングのカーブの指定をする引数と同様のものだ。
ease:Functionには、fl.motion.easingパッケージ内の各クラスのeaseIn/easeOut/easeInOut関数を渡してあげる。fl.motion.easingパッケージは
下のサンプルでは、全クラスのeaseIn/easeOut/easeInOutを試してみた。LinearクラスだけはeaseNone/easeIn/easeOut/easeInOutの四つの関数があるけど、計算内容は同じなのでeaseNoneを渡してある。
QuadraticクラスのeaseIn関数をTweensy.toの第四引数で渡すとこだけ例を挙げておく。
- ActionScript
- TestTweensy_4.as
- Source
Tweensy.to(box, { x: 500 }, 3, Quadratic.easeIn);- Tweensy.to(box, { x: 500 }, 3, Quadratic.easeIn);
About this entry
You’re currently reading “Tweensy - ease,” an entry on jp.ferv.blog
- Published:
- Thu, May 14th, 2009 at 12:51 AM
- Author:
- dsk
- Category:
- Web
- Tags:
- ActionScript 3.0, Tweensy

No comments
Jump to comment form | comments rss | trackback uri