The
MessageListenerAdapter is a convenience call to create and pass
a
MessageListener to set
consumer.messageListener.
This convenience class implements the
MessageListener interface
with an individual named or anonymous function.
Example: function (msg:Message):void { trace(message.messageId+" received"); }
public function MessageListenerAdapter(messageListener:Function)
Creates a new MessageListenerAdapter to implement the MessageListener interface.
Anonymous or named functions can be passed to implement onMessage without creating an additional class.
Parameters
public function onMessage(message:Message):void
Called when a message is delivered to a consumer. See MessageListener.onMessage and
MessageConsumer.messageListener.
Parameters