EventBroadcaster

EventDispatcher
EventBroadcaster

The ‘EventBroadcaster’ class is a singleton event dispatcher.  It can be used to easily broadcast events across an application.

Summary
EventBroadcasterThe ‘EventBroadcaster’ class is a singleton event dispatcher.
Variables
c_objInstanceStores the singleton instance of this class.
Functions
EventBroadcasterConstructor.
getInstanceGets the singleton instance of the event broadcaster.
SingletonEnforcerSimple class for enforcing the fact that the ‘EventBroadcaster’ class is to be used as a singleton.

Variables

c_objInstance

private static var c_objInstance: EventBroadcaster

Stores the singleton instance of this class.

Functions

EventBroadcaster

public function EventBroadcaster(objEnforcer: SingletonEnforcer)

Constructor. 

NOTE: The ‘EventBroadcaster’ class is intended to be used as a singleton.

Parameters

param objEnforcer The singleton enforcer. 

See Also

GetInstance

getInstance

public static function getInstance():EventBroadcaster

Gets the singleton instance of the event broadcaster.

Returns

The singleton instance of the event broadcaster. 

SingletonEnforcer

Simple class for enforcing the fact that the ‘EventBroadcaster’ class is to be used as a singleton.

private static var c_objInstance: EventBroadcaster
Stores the singleton instance of this class.
public function EventBroadcaster(objEnforcer: SingletonEnforcer)
Constructor.
public static function getInstance():EventBroadcaster
Gets the singleton instance of the event broadcaster.
Close