Packagecom.threerings.util
Classpublic class CommandEvent
InheritanceCommandEvent Inheritance flash.events.Event



Public Properties
 PropertyDefined by
  arg : Object
An optional argument.
CommandEvent
  command : String
The command.
CommandEvent
Protected Properties
 PropertyDefined by
  _blockConstructor : Boolean = true
[static] Used to prevent unauthorized construction.
CommandEvent
Public Methods
 MethodDefined by
  
CommandEvent(command:String, arg:Object)
Command events may not be directly constructed, use the dispatch method to do your work.
CommandEvent
  
clone():Event
CommandEvent
  
configureBridge(source:IEventDispatcher, target:IEventDispatcher):void
[static] Configure a bridge from something like a pop-up window to an alternate target.
CommandEvent
  
dispatch(disp:IEventDispatcher, cmdOrFn:Object, arg:Object = null):void
[static] Use this method to dispatch CommandEvents.
CommandEvent
  
Mark this command as handled, stopping its propagation up the hierarchy.
CommandEvent
  
toString():String
CommandEvent
Protected Methods
 MethodDefined by
  
create(cmd:String, arg:Object):CommandEvent
[static] A factory method for privately creating command events.
CommandEvent
Public Constants
 ConstantDefined by
  COMMAND : String = "commandEvt"
[static] The event type for all controller events.
CommandEvent
Property detail
argproperty
public var arg:Object

An optional argument.

_blockConstructorproperty 
protected static var _blockConstructor:Boolean = true

Used to prevent unauthorized construction.

commandproperty 
public var command:String

The command.

Constructor detail
CommandEvent()constructor
public function CommandEvent(command:String, arg:Object)

Command events may not be directly constructed, use the dispatch method to do your work.

Parameters
command:String
 
arg:Object
Method detail
clone()method
public override function clone():Event

Returns
Event
configureBridge()method 
public static function configureBridge(source:IEventDispatcher, target:IEventDispatcher):void

Configure a bridge from something like a pop-up window to an alternate target.

Parameters
source:IEventDispatcher
 
target:IEventDispatcher
create()method 
protected static function create(cmd:String, arg:Object):CommandEvent

A factory method for privately creating command events.

Parameters
cmd:String
 
arg:Object

Returns
CommandEvent
dispatch()method 
public static function dispatch(disp:IEventDispatcher, cmdOrFn:Object, arg:Object = null):void

Use this method to dispatch CommandEvents.

Parameters
disp:IEventDispatcher
 
cmdOrFn:Object
 
arg:Object (default = null)
markAsHandled()method 
public function markAsHandled():void

Mark this command as handled, stopping its propagation up the hierarchy.

toString()method 
public override function toString():String

Returns
String
Constant detail
COMMANDconstant
public static const COMMAND:String = "commandEvt"

The event type for all controller events.