I modified one of the base examples slightly to reposition elements and now your user name isn't appearing before the chat text that gets posted in the chat_txt area. Your text appears fine, just not your name.
I have not screwed around with any of the code in frame 16, so I can't figure out why this part of the code (?) seems to be failing ...
Code: Select all
smartfox.onPublicMessage = function(msg:String, user:User)
{
chat_txt.htmlText += "<b>[ " + user.getName() + " ]:</b> " + msg
main_sb.setScrollPosition(chat_txt.maxscroll)
}
I think it's this part that's not showing up ...
<b>[ " + user.getName() + " ]:</b>
Any thoughts? Is there a value I need to change to set the max width of the chat_txt area?
Thanks.