ballを右に動かす
♥0 |
Line 23 |
Modified 2010-03-30 22:13:21 |
MIT License
archived:2017-03-20 02:48:19
ActionScript3 source code
/**
* Copyright plus-tic ( http://wonderfl.net/user/plus-tic )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/p9Yf
*/
package {
import flash.display.Sprite;
import caurina.transitions.Tweener;
[SWF(width=465, height=465, frameRate=30, backgroundColor=0xFFFFFF)]
public class Sample extends Sprite
{
public function Sample()
{
//オブジェクトの作成
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:"easeInOutSine"
});
}
}
}