Three Panel Groups : Panel Layout « Container « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Container » Panel LayoutScreenshots 
Three Panel Groups
Three Panel Groups
            


<!--
Code from Flex Documentation "Using Adobe Flex 4".

This user guide is licensed for use under the terms of the Creative Commons Attribution 
Non-Commercial 3.0 License. 

This License allows users to copy, distribute, and transmit the user guide for noncommercial 
purposes only so long as 
  (1proper attribution to Adobe is given as the owner of the user guide; and 
  (2any reuse or distribution of the user guide contains a notice that use of the user guide is governed by these terms. 
The best way to provide notice is to include the following link. 
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/

-->



    <!-- states/ThreePanelGroups.mxml -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
    width="400">
    <!-- Define the two view states, in addition to the default state.-->
    <s:states>
        <s:State name="default" stateGroups="grpDefaultOne, grpDefaultTwo" />
        <s:State name="One" stateGroups="grpDefaultOne, grpOneTwo " />
        <s:State name="Two" stateGroups="grpDefaultTwo, grpDefaultTwo, grpOneTwo" />
    </s:states>
    <!-- Define the Group container holding the three Panel containers.-->
    <s:Group width="100%" height="100%">
        <s:Panel id="p1" title="One" x.grpDefaultTwo="0"
            y.grpDefaultTwo="0" x.One="110" y.One="0" width.grpDefaultTwo="100"
            height.grpDefaultTwo="100" width.One="200" height.One="210"
            click="currentState='One'">
            <s:Label fontSize="24" text="One" />
        </s:Panel>
        <s:Panel id="p2" title="Two" x="0" y="110" x.One="0" y.One="0"
            x.Two="110" y.Two="0" width.grpDefaultOne="100" height.grpDefaultOne="100"
            width.Two="200" height.Two="210" click="currentState='Two'">
            <s:Label fontSize="24" text="Two" />
        </s:Panel>
        <s:Panel id="p3" title="Three" x="110" y="0" x.grpOneTwo="0"
            y.grpOneTwo="110" width="200" height="210" width.grpOneTwo="100"
            height.grpOneTwo="100" click="currentState='default'">
            <s:Label fontSize="24" text="Three" />
        </s:Panel>
    </s:Group>
</s: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.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
w___ww.__j___av_a_2__s_.c___o_m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.