9月
2
2
HydroSequenceで一気にtween
Filed under: Actionscript3, HydroTween | Tags: HydroSequence (17) | 9月 2nd, 2008
HydroSequenceに複数インスタンスのtweenをおまかせ。
連続したモーションの設定が手軽にできる。
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されているみたい。
