| Package | vegas.events |
| Class | public class CommandEvent |
| Inheritance | CommandEvent BasicEvent flash.events.Event |
CommandEvent to dispatch an event with a Command object inside.
| Property | Defined by | ||
|---|---|---|---|
![]() | context : *
Returns the optional context of this event.
| BasicEvent | |
| RUN_COMMAND : String = "onRunCommand" [static]
The name of the event invoked to run a command.
| CommandEvent | ||
![]() | target : Object
Returns the event target.
| BasicEvent | |
![]() | timeStamp : Number
Returns the timestamp of the event.
| BasicEvent | |
![]() | type : String
Returns the type of event.
| BasicEvent | |
| Method | Defined by | ||
|---|---|---|---|
|
CommandEvent(type:String = null, co:Command = null, target:Object = null, context:Boolean = null, bubbles:Boolean = false, cancelable:Number = false, time:* = 0)
Creates a new
BooleanEvent instance. | CommandEvent | ||
|
clone():Event
Returns the shallow copy of this event.
| CommandEvent | ||
![]() |
dispatch(channel:String = null):void
Dispatch the event with the global event flow.
| BasicEvent | |
|
Returns the Command reference.
| CommandEvent | ||
![]() |
getContext():*
Returns the optional context of this event.
| BasicEvent | |
![]() |
getTarget():Object
Returns the event target.
| BasicEvent | |
![]() |
getTimeStamp():Number
Returns the timestamp of the event.
| BasicEvent | |
![]() |
getType():String
Returns the type of event.
| BasicEvent | |
|
setCommand(co:Command):void
Sets the Command reference.
| CommandEvent | ||
![]() |
setContext(context:*):void
Sets the optional context object of this event.
| BasicEvent | |
![]() |
setTarget(target:Object):void
Sets the event target.
| BasicEvent | |
![]() |
setType(type:String):void
Sets the event type of this event.
| BasicEvent | |
![]() |
toString():String
Returns the string representation of this event.
| BasicEvent | |
| RUN_COMMAND | property |
public static var RUN_COMMAND:String = "onRunCommand"The name of the event invoked to run a command.
| CommandEvent | () | constructor |
public function CommandEvent(type:String = null, co:Command = null, target:Object = null, context:Boolean = null, bubbles:Boolean = false, cancelable:Number = false, time:* = 0)
Creates a new BooleanEvent instance.
type:String (default = null) — the string type of the instance.
|
|
co:Command (default = null) — The Command of the event.
|
|
target:Object (default = null) — the target of the event.
|
|
context:Boolean (default = null) — the optional context object of the event.
|
|
bubbles:Boolean (default = false) — indicates if the event is a bubbling event.
|
|
cancelable:Number (default = false) — indicates if the event is a cancelable event.
|
|
time:* (default = 0) — this optional parameter is used in the eden deserialization to copy the timestamp value of this event.
|
| clone | () | method |
public override function clone():EventReturns the shallow copy of this event.
ReturnsEvent — the shallow copy of this event.
|
| getCommand | () | method |
public function getCommand():CommandReturns the Command reference.
ReturnsCommand —
the Command reference.
|
| setCommand | () | method |