/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
package { import flash.display.MovieClip; import flash.display.Sprite; /** * ... * @author Jeff */ public class MyTestProject extends MovieClip { // Placeholder for a ball Sprite from Flash Professional's Library. var ball:Sprite; public function MyTestProject() { // Bring in a new instance of Ball ball = new Ball(); ball.x = 100; ball.y = 100; addChild(ball); TweenLite.to(ball, 1, {x:200, y:200, ease:Back.easeOut}); } } }