Macromedia Flash Server - Re: How to change color of Chat Text without Color

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > May 2005 > Re: How to change color of Chat Text without Color





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: How to change color of Chat Text without Color
Wouter van Vliet / webclusive

2005-05-26, 2:45 am

I'm not sure of the chat component thingie supports this (if it doesn't
you can probably enable it somewhere) but textfields in Flash support
basic HTML. So, you might want to go into:

var msg = 'some kind of message';
if (isStudent) msg = '<font color="#0000FF">' + msg + '</font>';
else msg = '<font color="#FF0000">' + msg + '</font>';

Wouter

Leonardo Opitz wrote:
> Hello,
>
>
>
> First, thank you all for all replys to my msg about PP2SWF.
>
>
>
> I have another question. I have two swf applications. One swf for students,
> and another for teachers.
>
>
>
> I would like that all students msgs in chat to have a blue color and all the
> msgs from teachers to have a
>
> Red color. How to I do this without using the color component? Is there any
> way like:
>
>
>
> Chat.setcolor(color);
>
>
>
> Thank you,
>
>
>
> Leonardo Opitz
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
>




=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com