Category Archives: Tweener

Tweener Example

Tweener is a 3rd party library that allows developers to make awesome animations with very little code. I’ve heard many good things about this library and was thinking about using it in a Air Application that I’m making. I figure I do a test to get familiar with the library first, before using in my project.

import caurina.transitions.*;
import caurina.transitions.properties.*;
import caurina.transitions.properties.ColorShortcuts;
ColorShortcuts.init();

Tweener.addTween(square_mc, {x: 250, y:300, delay:2, time:6, transition:”easeInElastic”, _color_ab:-200});
Tweener.addTween(square2_mc, {x:30, y:300, delay:4, time:4, transition:”easeInOutBounce”, _color:0xFF6600});

With these six lines of code above, I was able to make some cool animations and transitions. You can see it live, if you click below.

Tweener animations by Griffins Designs

Tweener

Download Tweener: http://code.google.com/p/tweener/

Documentation for Tweener: http://hosted.zeh.com.br/tweener/docs/en-us/


Follow

Get every new post delivered to your Inbox.