cTween : Tweening at it's core.

February 5, 2009 by jared 

ctween

Get Adobe Flash player

Point A to Point B in 2 seconds

cTween.to(mc, {x:400, y:200}, 2);

Call a function when tween is done

cTween.to(mc, {x:200}, 2, doSomething);

Custom easing

import fl.transitions.easing.*;
cTween.to(mc, {alpha:0, y:200, ease:Bounce.easeOut}, 5);

Not another tween engine

Most other tween engines out there are feature packed with stuff, most of it seldom used. All I wanted was a simple and clean way to tween and I was pretty sure it could be done with a lot less code. cTween is a lightweight no nonsense tweening engine that performs only core tweening operations. If you’re looking for feature packed stuff, cTween isn’t for you.

C is for Simple

Download the sample.
Check out the (really short) code. (v1.0)

Comments

6 Responses to “cTween : Tweening at it's core.”

  1. Brian on February 8th, 2009 7:29 pm

    Awesome!

  2. AS3 XML Slideshow PRO | Simplistika on February 18th, 2009 5:25 am

    [...] Utilizes cTween [...]

  3. Nothing found for As3-xml-slideshow-v12 on February 19th, 2009 5:12 am

    [...] cTween 1.0 : Tweening Engine [...]

  4. Nick on April 29th, 2009 9:58 am

    Seriously awesome man. The tweening is so smooov.

  5. Aaron on May 30th, 2009 7:05 am

    Probably the lightest tween engine that exists! Would be great if you could specify the starting and ending parameter….

  6. jared on June 4th, 2009 9:30 pm

    i’ve actually modified the class to cater start and end parameters.. just a tiny change, will put it up soon.

Feel free to leave a comment...
and oh, if you want a pic to show with your comment, go get a gravatar!