| Package | vegas.events |
| Class | public class ArrayEvent |
| Inheritance | ArrayEvent BasicEvent flash.events.Event |
ArrayEvent to dispatch an event with an Array object.
Example :
var e:Event = new ArrayEvent("change", [2, 3, 4]) ;
trace( (e as ArrayEvent).getArray() ) ;
| Method | Defined by | ||
|---|---|---|---|
|
ArrayEvent(type:String, ar:Array = null, target:Object = null, context:Boolean = null, bubbles:Boolean = false, cancelable:Number = false, time:* = 0)
Creates a new
ArrayEvent instance. | ArrayEvent | ||
|
clone():Event
Returns the shallow copy of this event.
| ArrayEvent | ||
![]() |
dispatch(channel:String = null):void
Dispatch the event with the global event flow.
| BasicEvent | |
|
getArray():Array
Returns the array instance.
| ArrayEvent | ||
![]() |
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 | |
|
setArray(ar:Array):void
Sets the array instance.
| ArrayEvent | ||
![]() |
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 | |
| ArrayEvent | () | constructor |
public function ArrayEvent(type:String, ar:Array = null, target:Object = null, context:Boolean = null, bubbles:Boolean = false, cancelable:Number = false, time:* = 0)
Creates a new ArrayEvent instance.
type:String — the string type of the instance.
|
|
ar:Array (default = null) — the array 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.
|
| getArray | () | method |
public function getArray():ArrayReturns the array instance.
ReturnsArray — the array instance.
|
| setArray | () | method |
public function setArray(ar:Array):voidSets the array instance.
Parametersar:Array |