multimedia design, Actionscript, Lingo, PHP, Perl, SQL
9月
2
Post

HydroSequenceに複数インスタンスのtweenをおまかせ。
連続したモーションの設定が手軽にできる。

The Flash plugin is required.


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されているみたい。

Bookmark and Share

コメントをどうぞ

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

*

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img localsrc="" alt=""> <pre lang="" line="" escaped="">