Mega Code Archive
Use Matrix3D to Apply Transformations Within a Layout
import mx.core.UIComponent;
[Bindable] private var rot:Number = 45;
private function rotate():void
{
var matrix:Matrix3D = button.getLayoutMatrix3D();
matrix.appendRotation( 45, Vector3D.Z_AXIS );
button.layoutMatrix3D = matrix;
rot += 45;
}