Learn more and download the code and docs here:

http://magnus.te-consulting.dk/flash/index.html

 

Description

The TietoEnator Tweening classes extend the useful FMX Tween class, and allow the creation of complex sequences of:

Tweens,

Events,

Commands,

Delays and

SetValue commands.

 

The classes automatically collect starting values from target objects if none are supplied.

The classes are compatible and tested with FMX2004, and Flex 1.5

The classes support integer-only tweening, which lets you tween TextFields without blurring, or integer indices (scrollTop, selectedIndex, etc) seamlessly.

 

Note:Complete AS2Doc generated Documentation with extensive examples is included in the ZIP distribution.

There are two classes in this package:

TweenIT

This class allows you to quickly create a Tween. It has been designed to allow you to create the instance and execute the TweenIT in one line.

new TweenIt(myObj,callBackObj, easingEq).tweenTo(null,{_x:8,_y:27,_alpha:100},3000);

You can of course, specify starting values

new TweenIt(myObj,callBackObj, easingEq).tweenTo(,{_x:8,_y:800,_alpha:0},{_x:8,_y:27,_alpha:100},3000);

TweenSequence

This is the workhorse class, allowing you to string together complex sequences of actions.

some_ts=new TweenSequence(some_mc,this,Strong.easeOut);

some_ts.addTween(null,{_width:200},2000,Strong.easeOut);

some_ts.addDelay(500);

some_ts.addEvent({type:'click', var:10});

some_ts.addTween(null,{_width:400},2000,Elastic.easeOut);

some_ts.addSetValue(scopeObj,'_x',200);

some_ts.addCommand(scopeObj,'theFunction');

some_ts.play();

If you guys have comments, improvements, or questions, just send me a line.

 

Cheers,

Tor Kristensen

 

 



Yahoo! Groups Links

Reply via email to