FlashDevelop example


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.