I have a problem while trying to send a "general" message to a reactor GUI from a server module.
Here is the server module code on RoomEvent.ADD_CLIENT event :
- Code: Select all
m_ctx.getServer().sendMessage("SYSTEM", "Welcome from the server module");
Here is the flex code using the reactor API on reactor ready listener :
- Code: Select all
reactor.getMessageManager().addMessageListener("SYSTEM", systemMessageListener);
and the systemMessageListener function :
- Code: Select all
protected function systemMessageListener (fromClient:IClient, messageType:String, messageText:String):void {
...
Alert(messageText);
...
}
Please what's wrong ?
Thanks for your help
Fred