Packageorg.spicefactory.parsley.core.messaging.impl
Classpublic class MessageDispatcher
InheritanceMessageDispatcher Inheritance Object

Represents a reference to a message dispatcher function. To be used in MXML and XML configuration.



Public Methods
 MethodDefined By
  
MessageDispatcher(scopeManager:ScopeManager, scope:String = null, owner:Object = null)
Creates a new instance.
MessageDispatcher
  
disable():void
Disables this dispatcher so that calls to dispatchMessage get ignored.
MessageDispatcher
  
dispatchMessage(message:Object, selector:*):void
Dispatches the specified message through the ScopeManager associated with this reference.
MessageDispatcher
Constructor Detail
MessageDispatcher()Constructor
public function MessageDispatcher(scopeManager:ScopeManager, scope:String = null, owner:Object = null)

Creates a new instance.

Parameters
scopeManager:ScopeManager — the scope manager the message should be dispatched through
 
scope:String (default = null) — the scope the message should be dispatched to
 
owner:Object (default = null) — the owner of this dispatcher
Method Detail
disable()method
public function disable():void

Disables this dispatcher so that calls to dispatchMessage get ignored.

dispatchMessage()method 
public function dispatchMessage(message:Object, selector:*):void

Dispatches the specified message through the ScopeManager associated with this reference.

Parameters

message:Object — the message to dispatch
 
selector:* (default = NaN) — the selector to use if it cannot be determined from the message instance itself