Packagecom.whirled.net
Interfacepublic interface MessageSubControl
ImplementorsAgentSubControl, GameSubControlServer, PlayerSubControlServer, RoomSubControlServer

Provides message passing functionality to a set of listener(s), e.g. other clients and/or the server agent, if one is employed.



Public Methods
 MethodDefined by
  
sendMessage(name:String, value:Object = null):void
Send a "message" to the listener(s) associated with this control.
MessageSubControl
Method detail
sendMessage()method
public function sendMessage(name:String, value:Object = null):void

Send a "message" to the listener(s) associated with this control. If the recipient is listening for messages, they can react to it. This is similar to setting a property, except the value is not automatically saved -- it will just be sent along with the message.

Parameters
name:String — The message to send.
 
value:Object (default = null) — The value to attach to the message.