Tweener Memo


Tweenerは開発終了しまったけど・・・。

参考サイト
Tweener Documentation and Language Reference
超訳:Tweenerドキュメント&言語リファレンス
Tweener 特殊プロパティ一覧 | SOOHEI.NET_BLOG
fladdict » Tweener拡張で、MovieClipをMatrixで超変形をできるようにした

下記をインポート

import caurina.transitions.Tweener;

通常の移動。onCompleteでTween完了後MyFunc実行。

//移動
Tweener.addTween(_BoxMc , { x:460 , time:1 , transition:"easeOut" } );
//delay
Tweener.addTween(_BoxMc , { y:180 , time:1 , delay:2 } );
//alpha→完了したらMyFunc実行
Tweener.addTween(_BoxMc , { alpha:0.1 , time:1 , delay:4, onComplete:MyFunc } );
 
private function MyFunc():void {
	Tweener.addTween(_BoxMc , { x:0, alpha:1 , time:1 , transition:"easeOut" } );
}

onStart:Tween開始したタイミングで実行
onComplete:Tween完了したタイミングで実行

FilterShortcuts

import caurina.transitions.properties.FilterShortcuts;
FilterShortcuts.init();
 
Tweener.addTween(_BoxMc , { _Blur_blurX:200 ,_Blur_blurY:200 , time:1 , transition:"easeOut" } );

ColorShortcuts

import caurina.transitions.properties.ColorShortcuts;
ColorShortcuts.init();
 
Tweener.addTween(_BoxMc , { _color:0xffdd33 , time:1 , transition:"easeOut" } );

DisplayShortcuts

import caurina.transitions.properties.DisplayShortcuts;
DisplayShortcuts.init();
 
Tweener.addTween( _BoxMc, {_scale:10 , time: 2 , delay: 2} );

fladdictさんのMatrix変形

import sketchbook.external.tweener.MatrixShortcuts;
MatrixShortcuts.init();
 
Tweener.addTween( _BoxMc, {
	time:1,
	_matrix_a : 5,
	_matrix_b : 1,
	_matrix_c : 1,
	_matrix_d : 2,
	_matrix_tx: 200,
	_matrix_ty: 100,
	delay: 2
});
カテゴリー: ActionScript3.0, Reference   パーマリンク

コメントを残す

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

*

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