forked from: forked from: sample 1

by ir_77 forked from forked from: sample 1 (diff: 4)
♥0 | Line 25 | Modified 2010-07-09 17:08:40 | MIT License
play

ActionScript3 source code

/**
 * Copyright ir_77 ( http://wonderfl.net/user/ir_77 )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/kBvU
 */

// forked from soundkitchen's sample 1
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 = 225;
            ball.y = 400;

            //  丸を描画
            ball.graphics.beginFill(0x000000);
            ball.graphics.drawCircle(0, 0, 40);
            ball.graphics.endFill();

            //  ステージに配置
            addChild(ball);

            //  トゥイーンさせる
            Tweener.addTween(ball, {
                y: -500,
                x: -1,
                time: 3,
                transition: "easeInOutSine"
            });
        }
    }
}