| Package | system.events |
| Class | public dynamic class DynamicEvent |
| Inheritance | DynamicEvent BasicEvent flash.events.Event |
DynamicEvent to dispatch a dynamic event with dynamic properties.
Example :
import system.events.DynamicEvent ;
var e:DynamicEvent = new DynamicEvent("change") ;
e.test = "hello world" ; // dynamic property
trace( e.test ) ; // hello world
| Method | Defined By | ||
|---|---|---|---|
DynamicEvent(type:String, target:Object = null, context:* = null, bubbles:Boolean = false, cancelable:Boolean = false, time:Number = 0)
Creates a new DynamicEvent instance. | DynamicEvent | ||
clone():Event [override]
Returns the shallow copy of this event. | DynamicEvent | ||
![]() | dispatch(channel:String = null):void
Dispatch the event with the global event flow. | BasicEvent | |
![]() | toString():String [override]
Returns the string representation of this event. | BasicEvent | |
| DynamicEvent | () | Constructor |
public function DynamicEvent(type:String, target:Object = null, context:* = null, bubbles:Boolean = false, cancelable:Boolean = false, time:Number = 0)
Creates a new DynamicEvent instance.
type:String — the string type of the instance.
| |
target:Object (default = null) — the target of the event.
| |
context:* (default = null) — the optional context object of the event.
| |
bubbles:Boolean (default = false) — indicates if the event is a bubbling event.
| |
cancelable:Boolean (default = false) — indicates if the event is a cancelable event.
| |
time:Number (default = 0) — this optional parameter is used in the eden deserialization to copy the timestamp value of this event.
|
| clone | () | method |
override public function clone():EventReturns the shallow copy of this event.
ReturnsEvent — the shallow copy of this event.
|