Avatar

Level 1
Hi,



when i try the SimpleChatExample, i can log in as one guest
and one host and chat.



but in my own app, copied from the example, i cannot seem to
send a message. I help debugging what i am doing incorrectly.



in the



public function submitChat(str:String):void

{

chat_mesg_area.text += "\n called submit";

var cmd:ChatMessageDescriptor = new ChatMessageDescriptor();

cmd.displayName =
sess.userManager.getUserDescriptor(sess.userManager.myUserID).displayName;

cmd.msg = str;

chat_mesg_area.text += "\ngot user name " + cmd.displayName;

chatModel.sendMessage(cmd);

chat_mesg_area.text += "\n sent message";

chat_mesg_input.text = "";

}



i see log messages all the way to "got display name".



i dont see "sent message" in the logs. how do i get what the
error is from the sendMessage() function?