If you downloaded my login chat flash, it would be more clear.
chat += “<br>”+Handle+"< font color="#FFFFFF">: "+input;
Chat is a dynamic tbox which reads from input text box after a user hits enter to submit. Handle is the name of another textbox they put in, their ‘username’.
Since ‘chat’`s text is a rendered as html it is supposed to read it… so what am I missing out :\
handle = username; //whatever you use for usernames
userText="<font color="#FFFFFF">:"+input+"</font>";
//sets layout of text by user.
//The field input refers to the textbox name.
chatBox = handle+userText; //write message
//chatBox is the main chat screen area.
These aren’t tested or anything. Just theory, since I have never made a chat program in Flash, so I don’t know for sure if they will work.
handle = username; //whatever you use for usernames
userText="<font color="#FFFFFF">:"+input+"</font>";
//sets layout of text by user.
//The field "input" refers to the textbox name.
chatBox.htmlText = handle+userText; //write message
//chatBox is the main chat screen text area.
That is the updated version, with the htmlText enabled “chatBox”.
After looking at the .fla I realized that if you want mulitple people to chat, you will need to combine this with some PHP/mySQL action, which I have no clue how to do.
I believe your data in the chat area should be loaded from an external .txt file and reloaded into the flash movie when the file is updated. Then to have multiple users at the same time, that requires the action of PHP/mySQL. Otherwise you will only be able to have one viewer at a time.