Label.mouseEnabled = true;
Label.addEventListener(MouseEvent.CLICK, gotoURL);
Function gotoURL(evt:MouseEvent):void{
        //add logic here to do to the URL you want the user too
        //you may specify the target here too
}


My Thoughts Become My Words, My Words Become My Actions, My Actions Become
My Habits, My Habits Become My Character, and My Character Determines My
Destiny

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material. Any review, retransmission, dissemination or other use
of, or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all
computers. GA625

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Laurence
MacNeill
Sent: Saturday, April 11, 2009 6:32 PM
To: [email protected]
Subject: [AFFUG Discuss] "clickable" label on a form...

I'd like to create a label on a form, but I want that label to be 
"clickable" -- Lets suppose I want the label to display a vendor's 
name, but when you click on it, it will open up another browser 
window and take you to their web-page.  Basically it should work just 
like an HTML link.  (e.g. "<A HREF="vendorwebsite.com">Vendor Name</A>")

How would I do that in Flex?

Thanks,

Laurence MacNeill
Mableton, Georgia, USA



-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------




-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------


Reply via email to