|
What I did for that same issue was extend the
mx.controls.Text component, and give a public property for
"highlightText". Everytime you set it, it'd highligh the word, if found,
in the text property with a hyperlink. Since it's normal text, the hand
cursor shows and works normally. You can additionally either throw some
asfunction code in the actual <a href to have it call a function, and thus
dispatch a "hyperlinkClicked" event.
----- Original Message -----
From: Tobias
Patton
Sent: Thursday, April 06, 2006 5:12 PM
Subject: RE: [flexcoders] Flex 2: How to get the hand
cursor? Thanks for the
reply. Sadly, this works for
some UI components but not others. It works for mx.controls.Button, for example,
but not for mx.controls.Label, which is where I need it to
work. LinkButton would work
for me, but its got some problems. Links are generally place in-line with other
text. When I place a LinkButton next to a other text in a Label control in an
HBox, two things become clear: 1) the baseline for the LinkButton is sunken wrt
to the Label and 2) the mouse-over effect is too loud for an in-line
link. Guess Ill roll my own
hyperlink control. From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Set a displayobject's buttonMode to
true, and useHandCursor to true. That'll use the built-in hand
cursor. For everything else, look into using
your own via mx.managers.CursorManager. ----- Original Message -----
From: Tobias
Patton Sent: Thursday,
April 06, 2006 4:43 PM Subject:
[flexcoders] Flex 2: How to get the hand
cursor? Hopefully this is an easy
one. The cursor manager only seems to
have one built-in cursor: the busy cursor. Is there a way to get a hand cursor,
like what you would use is a mouse-over effect for a hyperlink? Or do I have to
load find an icon and embed it? Thanks. Creo Inc., a subsidiary of
Kodak Tobias Patton |
Software Developer | Tel: +1.604.451.2700 ext: 5148 | mailto:[EMAIL PROTECTED]
| http://www.creo.com
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS
|
- Re: [flexcoders] Flex 2: How to get the hand cursor? JesterXL

