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;
}