Navigate to a URL with LinkButton : LinkButton « Components « Flex






Navigate to a URL with LinkButton

Navigate to a URL with LinkButton
       
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Canvas id="myCanvas" height="200" width="200"
        borderStyle="solid" backgroundColor="white">
        <mx:LinkButton label="Search" x="10" y="30" click="navigateToURL(new URLRequest('http://google.com'))" />
    </mx:Canvas>
</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.Use LinkButton in a ViewStack navigator containerUse LinkButton in a ViewStack navigator container
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