This is what Adobe support had to say (btw, wow, they answer feature
requests! cool!):

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
<mx:Script>
        <![CDATA[
        public function callRO():void{
                ti.htmlText="<u>"+ti.text+"</u>";
        }
        public function callROT():void{
                ti.htmlText=ti.text;
        }
        ]]>
</mx:Script>
<mx:Label id="ti" text="Some Text" rollOver="callRO()"
rollOut="callROT()" />
</mx:Application>

So this is interesting, You could enhance this snippet to put a <u>
tag around any link like 

public function rollOverLinks():void{
    ti.htmlText=parseAndUnderline(someHTMLText);
}
public function rollOutLinks():void{
    ti.htmlText= someHTMLText;
}
private function parseAndUnderline:String(textToParse:String) {
    // do parsing, find hyperlinks and underline them here
    …
}

If You encapsulate this in a custom component, You just would bind
Your text to the component and it would work like a standard Text
component and behave as expected.

Nevertheless I would like to have a RichHTMLText component which
supports CSS 2.0.

-karsten






--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to