Tweener Extension, for Matrix Tweening.
I wrote simple Tweener Extension, MatrixShortcuts.as
This class provides mainly two group of special propertys.
One is simply tweening for transform.matrix properties of Display Object.
- _matrix_a
- _matrix_b
- _matrix_c
- _matrix_d
- _matrix_tx
- _matrix_ty
- _matrix
The other is more strong and powerful concept. Global coordinate control tweenings.
With these properties, you can tween complex nested DisplayObjects with global, stage coordinate.
- _global_matrix_a
- _global_matrix_b
- _global_matrix_c
- _global_matrix_d
- _global_matrix_tx
- _global_matrix_ty
- _global_matrix
- _global_x
- _global_y
- _global_rotation
- _global_scaleX
- _global_scaleY
- _global_scale
For example, with following code, even how complex matrix parents have, MovieClip always move to the center of stage.
MatrixShortcuts.init();
Tweener.addTween( myMC.myMC.myMC,
{
time:1,
_global_matrix: new Matrix(1,0,0,1,stage.stageWidth*0.5, stage.stageHeight*0.5);
}
);
Could be useful