flash on 2010-1-25
♥0 |
Line 17 |
Modified 2010-01-25 16:40:53 |
MIT License
archived:2017-03-20 01:45:27
ActionScript3 source code
/**
* Copyright nausicaa ( http://wonderfl.net/user/nausicaa )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/p3nj
*/
package {
import flash.display.Sprite;
import caurina.transitions.Tweener;
[SWF(width=465, height=465, backgroundColor=0xffffff, frameRate=30)]
public class FlashTest extends Sprite {
public function FlashTest() {
var ball:Sprite = new Sprite();
ball.x = 100;
ball.y = 100;
ball.graphics.beginFill(0x000000);
ball.graphics.drawCircle(0, 0, 40);
ball.graphics.endFill();
addChild(ball);
Tweener.addTween(ball, {x:300, time:2, transition:"easeInOutElastic"});
}
}
}