Packagecom.threerings.util
Classpublic class Command

Contains a simple binding function to bind events to commands. TODO: be able to set up a Command object, and bind it to multiple functions



Public Methods
 MethodDefined by
  
bind(source:IEventDispatcher, eventType:String, cmdOrFn:Object, arg:Object = null):void
[static] Bind an event to a command.
Command
  
dispatch(source:IEventDispatcher, cmdOrFn:Object, arg:Object = null):void
[static] Convenience, since otherwise nobody usually needs to ever import CommandEvent.
Command
Method detail
bind()method
public static function bind(source:IEventDispatcher, eventType:String, cmdOrFn:Object, arg:Object = null):void

Bind an event to a command.

Parameters
source:IEventDispatcher
 
eventType:String
 
cmdOrFn:Object
 
arg:Object (default = null)
dispatch()method 
public static function dispatch(source:IEventDispatcher, cmdOrFn:Object, arg:Object = null):void

Convenience, since otherwise nobody usually needs to ever import CommandEvent.

Parameters
source:IEventDispatcher
 
cmdOrFn:Object
 
arg:Object (default = null)