Navigate to a URL with LinkButton : LinkButton « Components « Flex
- Flex
- Components
- 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