Put control into a Panel : Panel Layout « Container « Flex






Put control into a Panel

Put control into a Panel
            

<mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Canvas width="400" height="300">
        <mx:Panel left="40" right="40" top="40" id="topPanel">
            <mx:Label text="Label text"/>
        </mx:Panel>
        <mx:Panel left="140" right="40" bottom="40" id="bottomPanel">
            <mx:Label text="Label text"/>
        </mx:Panel>
    </mx:Canvas>
    
</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.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
7.Three Panel GroupsThree Panel Groups
8.horizontalCenter and horizontalAlignhorizontalCenter and horizontalAlign
9.Use percentage to control the width and height of a PanelUse percentage to control the width and height of a Panel