Control a ViewStack via a LinkBar : ViewStack « Container « Flex






Control a ViewStack via a LinkBar

Control a ViewStack via a LinkBar
         
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="800" height="600">
        <mx:LinkBar dataProvider="{viewStack}" direction="horizontal" labelField="name"/>
        <mx:ViewStack id="viewStack" y="60">
            <mx:Panel width="150" height="150" name="first" label="First Panel" title="First Panel">
                <mx:Label text="First label"/>
            </mx:Panel>
            <mx:Panel width="150" height="150" name="second" label="Second Panel" title="Second Panel">
                <mx:Label text="Second label"/>
            </mx:Panel>
            <mx:Panel width="150" height="150" name="third" label="Third Panel" title="Third Panel">
                <mx:Label text="Third label"/>
            </mx:Panel>
        </mx:ViewStack>
    </mx:Canvas>
</mx:Application>

   
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.ViewStack with three child containersViewStack with three child containers
2.Add solid border to ViewStackAdd solid border to ViewStack
3.Add Canvas to ViewStackAdd Canvas to ViewStack
4.Use LinkBar to control the ViewStackUse LinkBar to control the ViewStack
5.Panel inside ViewStackPanel inside ViewStack
6.LinkBar and ViewStackLinkBar and ViewStack
7.ViewStack is ususlly connected with LinkBarViewStack is ususlly connected with LinkBar
8.Bind the Selected Index of a ViewStack to a VariableBind the Selected Index of a ViewStack to a Variable
9.Define the ViewStack and the three child containersDefine the ViewStack and the three child containers
10.Create a LinkBar control to navigate the ViewStack containerCreate a LinkBar control to navigate the ViewStack container
11.Create a VGroup container so the container for the buttons appears above the ViewStack containerCreate a VGroup container so the container for the buttons appears above the ViewStack container
12.Creating a view stack using a Canvas for each layer
13.Mixing and matching containers in a view stack
14.Using a component as a container in a view stackUsing a component as a container in a view stack