Class fever.events.FeverController

Description

Front controller implementation for application events / commands.

FeverController is just a central place to put your event / command pair.
Remoting events are declared in FeverEventList

Take a look at Pixlib Front Controller API for more informations.

Basic command are already registred in controller like LockInteractionCommand with fever.events.FeverEventList#LOCK_INTERACTION} event.

See Also

Method Index

broadcastEvent(), fireEventType(), getInstance(), isRegistred(), toString()

Method Detail

getInstance

static public function getInstance():FeverController

Return

FeverController instance.

broadcastEvent

public function broadcastEvent(event:IEvent):Void

Broadcasts passed-in event
Executes registred command.

fireEventType

public function fireEventType(type:EventType):Void

Shortcut to broacast basic event type without any specific event structure.

Take a look at broadcastEvent() to disptach a custom event.

Parameters

typeEvent type to dispatch

isRegistred

public function isRegistred(type:EventType):Boolean

Returns true is passed-in event type has a registred command in current controller.

toString

public function toString():String

Returns string representation.