tweener使う

移転しました。

以下ページで「複数のアニメーションを追加する」を試していたら、

http://gihyo.jp/dev/feature/01/flash-sdk/0006?page=3

ReferenceError: Error #1069: flash.display.Sprite にプロパティ _blur_blurY が見つからず、デフォルト値もありません。

てでる(ToT)
ググってたら

http://m-nak.jp/?p=7

なページ発見。以下ソースで実行できた!

package {
    import flash.display.Sprite;
    import flash.events.MouseEvent; 
    import caurina.transitions.Tweener;
    import caurina.transitions.properties.FilterShortcuts;
        
	public class HelloWorld extends Sprite
	{
	    import flash.events.Event;
	    import flash.utils.Timer;
	    public function HelloWorld(){
	    	// クリックイベントを監視する
            stage.addEventListener("click", clickHandler);
	    }
        private function clickHandler(event:MouseEvent):void {
			FilterShortcuts.init();
            
            // 円を作成
            var s:Sprite = new Sprite();
            s.graphics.beginFill(Math.random() * 0x1000000);
            s.graphics.drawCircle(0, 0, 10);
            s.graphics.endFill();
            addChild(s);

            // 円をクリックされた位置に移動
            s.x = event.stageX;
            s.y = event.stageY;

		    s.scaleX = s.scaleY = 0;

            Tweener.addTween(s, {
                time: 1,    // 1秒間のアニメーション
                scaleX: 5,  // s の scaleX を 5 まで遷移
                scaleY: 5,   // s の scaleY を 5 まで遷移
                transition: "easeOutBounce"
            });
	        Tweener.addTween(s, {
			    time: 0.5,
			    delay: 1,
			    alpha: 0,
			    _Blur_blurX: 30,
			    _Blur_blurY: 30,
			    onComplete: function():void {
			        removeChild(s);
			    }
			});
		}
    }
}