Use LinkButton in a ViewStack navigator container : LinkButton « Components « Flex






Use LinkButton in a ViewStack navigator container

Use LinkButton in a ViewStack navigator container
       
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:VBox>
        <mx:HBox>
            <mx:LinkButton label="Link1" click="viewStack.selectedIndex=0;" />
            <mx:LinkButton label="Link2" click="viewStack.selectedIndex=1;" />
            <mx:LinkButton label="Link3" click="viewStack.selectedIndex=2;" />
        </mx:HBox>
        <mx:ViewStack id="viewStack">
            <mx:VBox width="150">
                <mx:Label text="One" />
            </mx:VBox>
            <mx:VBox width="150">
                <mx:Label text="Two" />
            </mx:VBox>
            <mx:VBox width="150">
                <mx:Label text="Three" />
            </mx:VBox>
        </mx:ViewStack>
    </mx:VBox>
</mx:Application>

   
    
    
    
    
    
    
  








Related examples in the same category

1.Add space between LinkButton and ButtonAdd space between LinkButton and Button
2.Handle click event for LinkButton through click event from its containerHandle click event for LinkButton through click event from its container
3.Define a LinkButton with Define a LinkButton with <mx:LinkButton>
4.Use LinkButton to open a URL in a web browser windowUse LinkButton to open a URL in a web browser window
5.Navigate to a URL with LinkButtonNavigate to a URL with LinkButton
6.Change state in LinkButton click event handlerChange state in LinkButton click event handler
7.LinkButton click handlerLinkButton click handler
8.Set label for LinkButtonSet label for LinkButton
9.LinkButton for changing the stateLinkButton for changing the state
10.A single LinkButton control that opens a URL in a web browser windowA single LinkButton control that opens a URL in a web browser window
11.LinkButton controls for navigating in a ViewStack navigator containerLinkButton controls for navigating in a ViewStack navigator container