| Package | vegas.events |
| Class | public class DateEvent |
| Inheritance | DateEvent BasicEvent flash.events.Event |
DateEvent to dispatch an event with a Date object.
var e:Event = new DateEvent("change", new Date()) ;
trace( (e as DateEvent).getDate() ) ;
| Method | Defined by | ||
|---|---|---|---|
|
DateEvent(type:String, date:Date = null, target:Object = null, context:Boolean = null, bubbles:Boolean = false, cancelable:Number = false, time:* = 0)
Creates a new
DateEvent instance. | DateEvent | ||
|
clone():Event
Returns the shallow copy of this event.
| DateEvent | ||
![]() |
dispatch(channel:String = null):void
Dispatch the event with the global event flow.
| BasicEvent | |
![]() |
getContext():*
Returns the optional context of this event.
| BasicEvent | |
|
getDate():Date
Returns the Date value.
| DateEvent | ||
![]() |
getTarget():Object
Returns the event target.
| BasicEvent | |
![]() |
getTimeStamp():Number
Returns the timestamp of the event.
| BasicEvent | |
![]() |
getType():String
Returns the type of event.
| BasicEvent | |
![]() |
setContext(context:*):void
Sets the optional context object of this event.
| BasicEvent | |
|
setDate(date:Date):void
Sets the Date value.
| DateEvent | ||
![]() |
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 | |
| DateEvent | () | constructor |
public function DateEvent(type:String, date:Date = null, target:Object = null, context:Boolean = null, bubbles:Boolean = false, cancelable:Number = false, time:* = 0)
Creates a new DateEvent instance.
type:String — the string type of the instance.
|
|
date:Date (default = null) — the Date object of this 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.
|
| getDate | () | method |
public function getDate():DateReturns the Date value.
ReturnsDate — the Date value.
|
| setDate | () | method |
public function setDate(date:Date):voidSets the Date value.
Parametersdate:Date |