Packagekrewfw.core_internal
Classpublic class NotificationService
InheritanceNotificationService Inheritance Object



Public Properties
 PropertyDefined By
  MAX_LOOP_COUNT : int = 8
[static]
NotificationService
Public Methods
 MethodDefined By
  
NotificationService
  
addListener(listener:KrewGameObject, eventType:String, callback:Function):void
NotificationService
  
broadcastMessage(recallCount:int = 0):void
NotificationService
  
NotificationService
  
postMessage(eventType:String, eventArgs:Object):void
NotificationService
  
removeListener(listener:KrewGameObject, eventType:String):Boolean
NotificationService
Property Detail
MAX_LOOP_COUNTproperty
public static var MAX_LOOP_COUNT:int = 8

Constructor Detail
NotificationService()Constructor
public function NotificationService()



Method Detail
addListener()method
public function addListener(listener:KrewGameObject, eventType:String, callback:Function):void

Parameters

listener:KrewGameObject
 
eventType:String
 
callback:Function

broadcastMessage()method 
public function broadcastMessage(recallCount:int = 0):void

Parameters

recallCount:int (default = 0)

dumpMessageQueue()method 
public function dumpMessageQueue():void

postMessage()method 
public function postMessage(eventType:String, eventArgs:Object):void

Parameters

eventType:String
 
eventArgs:Object

removeListener()method 
public function removeListener(listener:KrewGameObject, eventType:String):Boolean

Parameters

listener:KrewGameObject
 
eventType:String

Returns
Boolean