forked from: forked from: sample 1

by peacelife_wonder
♥0 | Line 24 | Modified 2010-02-15 17:38:57 | MIT License
play

ActionScript3 source code

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

// forked from peacelife_wonder's forked from: sample 1
// 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 = 100;
            ball.y = 100;

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

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

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