Transform around Vector3D
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:s="library://ns.adobe.com/flex/spark">
<mx:Script>
import mx.core.UIComponent;
private var newAngle:Number = 0;
private function pushAround( evt:MouseEvent ):void
{
newAngle += 90;
btn2.transformAround( new Vector3D( btn2.width / 2, btn2.height / 2 ), null, null, null,
null, new Vector3D( 0, 0, newAngle ) );
}
</mx:Script>
<mx:VBox>
<mx:Button id="btn2" label="push around" click="pushAround(event);" />
</mx:VBox>
</mx:Application>
Related examples in the same category