FuseKitを使う2 //AS2.0

前回のFuseKitを使う1 //AS2.0に引き続き、FuseKitです。
今回はFuseの動作の繰り返し方法です。

//ActionScript//////////////////////////////////////////////////////////////////

//test_mcの_alphaを1秒間で100にして、また元の値に1秒間で戻る
test_mc.alphaTo(100,1,"linear",{cycles:2})

//test_mcの_alphaを1秒間で100にして、また元の値に1秒間で戻る動作を永遠に続ける
test_mc.alphaTo(100,1,"linear",{cycles:0})

//test_mcの_scaleを1秒間で10にして、また元の値に1秒間で戻る
test_mc.scaleTo(10,1,"linear",{cycles:2})

//test_mcの_tint(色)を5秒待ってから、1秒間で白(#ffffff)にして、また元の色に1秒間で戻る
test_mc.tintTo(0xffffff,1,"linear",5,{cycles:2})
Bookmark and Share


ブックマークに追加