イナヅマTVログ

HydroSequenceで一気にtween

| 0件のコメント

HydroSequenceに複数インスタンスのtweenをおまかせ。
連続したモーションの設定が手軽にできる。
[swfobj src=”http://www.inazumatv.com/contents/wp-content/uploads/2008/09/hydro-seq-0b.swf” width=”600″ height=”300″ id=”hydro-seq-0b” name=”hydro-seq-0b” allowfullscreen=”false” required_player_version=”9.0.124″]

import com.hydrotik.go.*;
 
HydroTween.VERBOSE = false;
var goItem : HydroSequence = new HydroSequence(
	[
	 {target:target0, color:0xff0000},
	 {target:target1, color:0xff0000,delay:0.1},
	 {target:target2, color:0xff0000,delay:0.2},
	 {target:target3, color:0xff0000,delay:0.3},
	 {target:target4, color:0xff0000,delay:0.4},
	 {target:target5, color:0xff0000,delay:0.5},
	 {target:target6, color:0xff0000,delay:0.6},
	 {target:target7, color:0xff0000,delay:0.7},
	 {target:target8, color:0xff0000,delay:0.8},
	 {target:target9, color:0xff0000,delay:0.9}
	 ],
 
	[
	 {target:[target0,target1,target2,target3,target4,target5,target6,target7,target8,target9], 
	 y:230,rotation:360*3,duration:1.2,delay:0.2}
	 ],
 
	[
	 {target:target0, color:0xffff00},
	 {target:target1, color:0xffff00,delay:0.1},
	 {target:target2, color:0xffff00,delay:0.2},
	 {target:target3, color:0xffff00,delay:0.3},
	 {target:target4, color:0xffff00,delay:0.4},
	 {target:target5, color:0xffff00,delay:0.5},
	 {target:target6, color:0xffff00,delay:0.6},
	 {target:target7, color:0xffff00,delay:0.7},
	 {target:target8, color:0xffff00,delay:0.8},
	 {target:target9, color:0xffff00,delay:0.9}
	 ],
 
	[
	 {target:[target0,target1,target2,target3,target4,target5,target6,target7,target8,target9], 
	 alpha:0,delay:0.3}
	 ],
 
	[
	 {target:[target0,target1,target2,target3,target4,target5,target6,target7,target8,target9], 
	 alpha:1}
	 ],
 
	[
	 {target:target0, color:0xffffff,y:50,rotation:-720},
	 {target:target1, color:0xffffff,y:50,rotation:-720,delay:0.1},
	 {target:target2, color:0xffffff,y:50,rotation:-720,delay:0.2},
	 {target:target3, color:0xffffff,y:50,rotation:-720,delay:0.3},
	 {target:target4, color:0xffffff,y:50,rotation:-720,delay:0.4},
	 {target:target5, color:0xffffff,y:50,rotation:-720,delay:0.5},
	 {target:target6, color:0xffffff,y:50,rotation:-720,delay:0.6},
	 {target:target7, color:0xffffff,y:50,rotation:-720,delay:0.7},
	 {target:target8, color:0xffffff,y:50,rotation:-720,delay:0.8},
	 {target:target9, color:0xffffff,y:50,rotation:-720,delay:0.9}
	 ]
);
goItem.start();

複数ターゲットを配列で指定したときのバグはFixされているみたい。

コメントを残す

必須欄は * がついています


このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください