Posted By

jeffnehlsen on 02/03/11


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

thastyle


FlashDevelop example


 / Published in: ActionScript 3
 

  1. package
  2. {
  3. import flash.display.MovieClip;
  4. import flash.display.Sprite;
  5.  
  6. /**
  7. * ...
  8. * @author Jeff
  9. */
  10. public class MyTestProject extends MovieClip
  11. {
  12. // Placeholder for a ball Sprite from Flash Professional's Library.
  13. var ball:Sprite;
  14.  
  15. public function MyTestProject()
  16. {
  17. // Bring in a new instance of Ball
  18. ball = new Ball();
  19. ball.x = 100;
  20. ball.y = 100;
  21. addChild(ball);
  22.  
  23. TweenLite.to(ball, 1, {x:200, y:200, ease:Back.easeOut});
  24. }
  25.  
  26. }
  27.  
  28. }

Report this snippet  

You need to login to post a comment.