Guest User

Untitled

a guest
Feb 19th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. package michael.anim {
  2.  
  3. import flash.display.MovieClip
  4. import caurina.transitions.Tweener
  5.  
  6. public class TweenerTest extends MovieClip {
  7.  
  8. public function TweenerTest() {
  9. first();
  10. }
  11.  
  12. public function first() {
  13. Tweener.addTween(this, {x:10, y:10, time:1, transition:"easeoutelastic", onComplete:second})
  14. }
  15.  
  16. public function second() {
  17. Tweener.addTween(this, {x:50, y:50, time:1, transition:"easeoutelastic", onComplete:first})
  18. }
  19. }
  20. }
Add Comment
Please, Sign In to add comment