1 Reply Latest reply on Jan 6, 2011 11:58 AM by Gregory Lafrance

    How to underline text in a rollover

    K4Flex

      Hi,

       

      I would like to underline text (it's also a hyperlink)  that's inside mx:Text when the user does a rollover on the text.  The problem I'm having is that this mx:Text is part of an mx:List and inside of an itemRenderer.  I was trying to do a rollover inside the mx:Text and call a function inside that class, but there's seems to be a scope issue. How do I

          

      1.) underline upon rollover

      2.) access the mx:Text that's inside an itemRenderer

      3.) return to the normal text upon rollout

       

      TIA,

      K4Flex

        • 1. Re: How to underline text in a rollover
          Gregory Lafrance Level 6

          1.) underline upon rollover - set the htmlText property of the Text so the text is inside <ul></ul>

          2.) access the mx:Text that's inside an itemRenderer - access the dataProvider

          3.) return to the normal text upon rollout - set the htmlText property of the Text so the text is NOT inside <ul></ul>

           

          BTW, you may need to use a TextArea, and set the border thickness to 0, and focus thickness to 0, and set selectable and editable to false, and set the size, because a Text control cannot respond to user input.

           

          If this post answers your question or helps, please mark it as such. Thanks!

          http://www.stardustsystems.com
          Adobe Flex Development and Support Services