/ Published in: ActionScript
URL: http://hosted.zeh.com.br/tweener/docs/en-us/
Expand |
Embed | Plain Text
import caurina.transitions.Tweener; // import //With Tweener, you write your code by adding new tweenings or transitions to the movie, using the method addTween. Tweener.addTween(myMovie, {_x:10, _y:10, time:1, transition:"linear"}); //The final value is an absolute value, not a relative one. This means that, if you want to, say, move myMovie 10 pixels to the right (instead of sliding it to column 10), you would do this Tweener.addTween(myMovie, {_x:myMovie._x+10, time:1, transition:"linear"}); //Also notice you can chain tweenings sequentially, creating complex animations, by using delays. For example, to move myMovie to column 10, then to column -10, you would do (in AS2): Tweener.addTween(myMovie, {_x:10, time:1, transition:"linear"}); Tweener.addTween(myMovie, {_x:-10, time:1, delay:1, transition:"linear"});
You need to login to post a comment.
