- 2022.03.28 Monday
- スポンサーサイト
-
一定期間更新がないため広告を表示しています
- | スポンサードリンク | - | | - | - | pookmark |
- 2009.10.15 Thursday
- TweenLite.to とTweenLite.fomの違い
-
onCompliteの場合はこんなん
徐々に移動する
TweenLite.from(mc1, 2, {x:300})
移動後の場所からスタートする
TweenLite.from(mc1, 2, {x:300});
TweenLite.fromを使ってみる - Let’s continue the saga
//---- TweenMax ----//
import gs.*;
import gs.easing.*;
var goNum
var targetMC=this
TweenLite.to(targetMC,1,
{
y:8,
x:20,
ease:originEase_ExpoOut,
onComplete:onCompleteTweenTo,
onCompleteParams:[MovieClip(targetMC)]
});
function onCompleteTweenTo(mc:MovieClip){
TweenLite.to(mc,1, {y:100, x:200, ease:originEase_ExpoOut})
}
もしくは、
名前のないfunctionの場合はこんなん
//---- TweenMax ----//
import gs.*;
import gs.easing.*;
var goNum
var targetMC=this
TweenLite.to(targetMC,1,
{
y:8,
x:20,
ease:Strong.easeOut,
onComplete:function( mc:MovieClip ):void
{
mc.x=200
},
onCompleteParams:[MovieClip(targetMC)]
});
- | whaison | Progression | 21:46 | comments(0) | - | pookmark |
- Comment