In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

HelloTweener! ごくごく簡単なTweenerのサンプル。

クリックで丸が移動します。
Get Adobe Flash player
by paq 12 May 2009
//クリックで丸が移動します。

package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.events.MouseEvent;
    import caurina.transitions.Tweener; //Tweener

    public class HelloTweener extends Sprite {

        public function HelloTweener() {
            Wonderfl.capture(stage);
            var sprite:Sprite = new Sprite();
            sprite.graphics.beginFill(0x000000);
            sprite.graphics.drawCircle(0, 0, 10);
            sprite.graphics.endFill();

            addChild(sprite);
            stage.addEventListener(MouseEvent.CLICK, function(e:MouseEvent):void {
                Tweener.addTween(sprite, {x:mouseX, y:mouseY, time:1, transition:"easeOutElastic"});
            });
        }
    }
}