Class com.sekati.events.Event

Implemented Interfaces

IEvent

Description

SASAPI Base Event class, works similarly to the AS3 Event class

The Dispatcher class excepts an object with at least one property: 'type:String' which is the identifier of the event. This is either the listener's function that is called when the event is dispatched, or the link through Delegate to the function to be called. Other optional properties are:'target:Object', which is the source of the event & 'data:Object', which may contain any information you wish to pass along with the event.

Field Index

data, target, type

Method Index

new Event()
bubble()

Inherited from CoreObject

Constructor Detail

Event

public function Event(type:String, target:Object, data:Object)

Constructor creates an event object fit for dispatching Note: the contents of the data parameter are copied to the Event object for legacy support.

Parameters

type(String) type of event
target(Object) the object that dispatched this event.
data(Object) optional data to pass with the event

Return

Void

Field Detail

type

public type:String [Read Only]

target

public target:Object [Read Only]

data

public data:Object [Read Only]

Method Detail

bubble

public function bubble(newTarget:Object):Void