Friday, August 22, 2008

Create Custom Tween's for TweenLite

I wanted an easy way to create custom tweens with a visual guide, much like you can with LMC Tween and Fuse. Since I couldn't find anything out there that provided this I decided to create my own.

Here is the link http://rokkan.com/testing/tween/rokkan_bezierdefiner.swf .

To use this program I recommend downloading the accompanying class ZigoTween.as .


Example of creating a custom tween:


var zt:ZigoTween = new ZigoTween([{Mx:0,Nx:0,Ny:-1000,My:0,Px:500,Py:500},{Mx:500,My:-500}] );
TweenLite.to(mc,1,{x:200,ease:zt.ease});


This example assumes you have imported the ZigoTween.as class.

If anybody can help me make this a custom Flash Panel I would appreciate the help.