Flashでこのインスタンスのモーションが終わったら次はこのモーションなんてのをActionscriptで作るのは面倒だけど、HydroSequenceを使うと連続したtweenも簡単に作れる。
[swfobj src=”http://www.inazumatv.com/contents/wp-content/uploads/2008/09/hydro-go-10x.swf” width=”550″ height=”200″ id=”HedroSequenceFig1″ name=”HedroSequenceFig1″ allowfullscreen=”false” required_player_version=”9.0.124″]
example
var goItem : HydroSequence = new HydroSequence( [{target:target, color:0x000000, duration:3}], {func:trace, args:["Complete"]}, [{target:target, x:400, color:0xFFFF00, duration:3}], {func:trace, args:["Complete"]}, [{target:target, color:0xFF0000, y:120, duration:3}], [{target:target, rotation:270, color:0xFFFF00, duration:3}], [{target:target, rotation:0, color:0x0000FF, duration:3}], {func:trace, args:["Complete"]}, [{target:target, x:30, duration:3,easing:Bounce.easeOut},{target:target, y:30, duration:3}], {func:trace, args:["Complete"]}, [{target:target, Blur_blurX:16, Blur_blurY:32, duration:3}], [{target:target, Blur_blurX:0, Blur_blurY:0, duration:3}], {func:trace, args:["Complete"]} ); goItem.start(); |