Try this:
<mx:Label mouseChildren="false" buttonMode="true" useHandCursor="true"
color="#0000FF" mouseOver="setStyle('textDecoration','underline')"
text="http://www.google.com" />
HTH,
-Ravi
On Aug 7, 3:09 pm, Mike learner <[email protected]> wrote:
> Hi Vishal,
>
> We will get the hand icon, when we move the mouse over. But, what I want is
> , along with hand icon , underlining of text should be there.
>
> Thanks,
> Mohan
>
> On Fri, Aug 7, 2009 at 12:00 PM, vishal lad <[email protected]> wrote:
> > Try this,
> > <mx:LinkButton label="Click here to visithttp://cisco.com/"
> > click="navigateToUrl('http://cisco.com',_blank)" /> something like this.
>
> > On Thu, Aug 6, 2009 at 8:14 PM, Mike learner <[email protected]>wrote:
>
> >> Hi,
>
> >> Like in HTML anchor (<a>) tag, we do not have a hyperlink component
> >> directly in flex. For this, I tried using mx:Text and htmlText property.
>
> >> *public* *var* htmlTexting:String = *"<a href=\"http://cisco.com\">Click
> >> here to visit cisco.com</a>"*;
>
> >> <mx:Text width="100%" id="mytext" color="blue" click="showMsg()"
> >> htmlText="{htmlTexting}" fontStyle="italic" fontSize="14">
>
> >> </mx:Text>
> >> When I use <u> along with the anchor, it always shows the underline.
>
> >> *public* *var* htmlTexting:String = *"<a href=\"http://cisco.com\"><u>Click
> >> here to visit cisco.com</u></a>"*;
>
> >> I want the link to be underlined, when we move the mouse over the
> >> text. Otherwise, it should look like a normal tex. In html, we can control
> >> it using css.
>
> >> The above piece of flex code will always show the hyperlink.
>
> >> Is there a way to do that in Flex.
>
> >> Thanks,
> >> Mohan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---