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

Tweenerの練習

初心者がTweenerの練習をしました.
参考:http://aquioux.blog48.fc2.com/blog-entry-280.html
Get Adobe Flash player
by kidaipu 16 Aug 2009
    Embed
/**
 * Copyright kidaipu ( http://wonderfl.net/user/kidaipu )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/6dIk
 */

//初心者がTweenerの練習をしました.
//参考:http://aquioux.blog48.fc2.com/blog-entry-280.html
package {
	import flash.display.*;
	import flash.filters.*;
    import flash.geom.*;
    import flash.events.MouseEvent;
	
	//Tweener
    import caurina.transitions.Tweener;
	import caurina.transitions.properties.ColorShortcuts; //色
	import caurina.transitions.properties.CurveModifiers; //カーブ
	import caurina.transitions.properties.DisplayShortcuts; //拡大
	import caurina.transitions.properties.FilterShortcuts; //フィルタ

    public class twetest extends Sprite 
	{
		//円
		private var Box:Sprite;
		private var click_num:int; //クリック回数
		
		//コンストラクタ
        public function twetest() 
		{
			//Tweener初期化
			ColorShortcuts.init(); //色
			CurveModifiers.init(); //カーブ
			DisplayShortcuts.init(); //拡大
			FilterShortcuts.init(); //フィルタ
			
			//ボックス
			Box = new Sprite();
			Box.graphics.beginFill(0x000000);
			Box.graphics.drawCircle(0,0,50);
			Box.graphics.endFill();
			addChild(Box);
			
			//移動
			Tweener.addTween(Box, { x:50, y:50, time:3, transition:"easeInOutCubic"} );
		    	//Tweener.addTween(Box, { x:50, y:100, time:3, transition:"easeInOutCubic"} );
		    	//Tweener.addTween(Box, { x:350, y:100, time:3, transition:"easeInOutCubic"} );
                 }
    }
}