WeCodeThings Library
Library of code bits
Glossary    Contact Us
Need a web designer? visit WeCodeThings.Com for more details
Search  
   
Browse by Category

WeCodeThings Library .: Flex .: Create Hyperlink to external or internal website in Flex 3 using LinkButton



Create Hyperlink to external or internal website in Flex 3 using LinkButton

The best way that I have found out to create a nice looking hyperlink within flex 3 is the use the LinkButton.
Here is how to use the link button to link to an external site:

<mx:LinkButton:id="button
        label="
WeCodeThings Code Library
        click="navigateToURL(
new URLRequest('http://www.wecodethings.com/'), '_blank')" />

Here is how to use the LinkButton to move throughout your flex site using a ViewStack:

<mx:LinkButton:id="programmers"
                             label="
All Programmers"
                             click="myViewStack.selectedChild=AllPanel;"
/>

The link button creates a nice button with clean rollover look to it.

 
Link Button



How helpful was this article to you?

Related Articles

article Flex 3 Create Remote Object Destination ColdFusion using ActionScript And MXML Flex 3
You can read more about Flex 3 and Remote...

(No rating)  4-30-2009    Views: 1034   
article CSS Change hyperlink A Link Visited Active and Hover Styles Colors Syntax
Standard syntax for setting up...

  4-27-2009    Views: 697   
article Create Flex 3 Remote Object ColdFusion with Result and Fault Handlers for Flex 3
More about creating a remote object and...

(No rating)  4-28-2009    Views: 1287   

User Comments

Add Comment
No comments have been posted.




.: Powered by Lore .:Code by WeCodeThings Website Design and Development