horizontalCenter and horizontalAlign : Panel Layout « Container « Flex






horizontalCenter and horizontalAlign

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>

   
    
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Use VerticalLayout to layout PanelUse VerticalLayout to layout Panel
2.Set Panel layout to horizontalSet Panel layout to horizontal
3.absolute layout with Panelabsolute layout with Panel
4.Toggle includeInLayoutToggle includeInLayout
5.Panel with statusPanel with status
6.Put control into a PanelPut control into a Panel
7.Change SpanElement color whenever the user clicks on any location within that SpanElement's paragraphChange SpanElement color whenever the user clicks on any location within that SpanElement's paragraph
8.Three Panel GroupsThree Panel Groups
9.Use percentage to control the width and height of a PanelUse percentage to control the width and height of a Panel