Mega Code Archive

 
Categories / Flex / Container
 

HorizontalCenter and horizontalAlign

<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">     <mx:Panel y="10"                width="250"                height="200"                layout="vertical"                id="textPanel"                title="Design Mode"                horizontalCenter="0"                horizontalAlign="center"                verticalAlign="middle">         <mx:Label text="{labelInput.text}" id="daLabel"/>         <mx:Button label="Glow!" mouseDownEffect="Glow"/>         <mx:TextInput id="labelInput"/>     </mx:Panel> </mx:Application>