UI Controls aligned to center
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" verticalAlign="middle" horizontalAlign="center"> <mx:VBox> <mx:TextInput id="myText" /> <mx:Button label="Click" click="myText.text = 'Button Clicked!!!'" /> </mx:VBox> </mx:Application>