I guess I cannot do it the old way but by using occam's razor I just 
used plain old HTML for font coloring 

chatOutboundWindow.htmlText += "<font color='#ffffff'><b> " +
chatRoster.selectedItem.data + " said to: " +
connection.getJID().split("/")[1] + "</font></b><font color='#00FF99'>
" +thisXML.firstChild.childNodes[1].childNodes[0].nodeValue+"</font>";

I kind of wanted to stay with the old way via a CSS custom tag as seen 
below. 


--- In [email protected], "Dan Plesse" <[EMAIL PROTECTED]> wrote:
>
> hello flexers, 
> 
>   With my flash Jabber app the TextArea has different colors and fonts 
>  for each chat user and even the messages where color  coded using a 
>  CSS file which looked like this: 
> 
>   message {
>   color:#FF0000;
>   font-family:Verdana, Arial, Helvetica, sans-serif;
>   font-size: 12px;
>   display: block;
> } 
> 
> tofrom {
>   color:#FFFFFF;
>   font-family:Verdana, Arial, Helvetica, sans-serif;
>   font-size: 12px;
>   display: block;
>   background-color:#FFCCFF;
> }
> 
>  Could I do something like textArea.message?
> 
>  A Jabber message body looks like this: 
>  
>  textArea.text +="<tofrom>["+connection.getJID().split("/")[1]+"
> said:]</tofrom><message>"+hello2+"</message>";
> 
> I was wondering how this could be done inside a flex textArea GUI. 
> 
> Dan
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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