Package: pumpkin.events

CEvent


Description

Event base class.

Events can be abstracted or constructed eg. new Event("CUSTOMEVENT") or new CustomEvent( myArgs ).


Constructors

CEvent

Copy constructor.

CEvent

Create with type.

CEvent

Create with type, bubbles and cancelable.


Functions

toEvent< T >

Cast event to a abstracted type.

toTarget< T >

Cast target to type.

isCancelled

Returns true if event propagation was stoped.

isImmediateCancelled

Returns true if event propagation was stoped.

cancel

[dev]

cancelImmediate

[dev]


Variables

ENTER_FRAME

Enter frame event.

RESIZE

DisplayObject resize event.

COMPLETE

General completion event.

CHANGED

Changed event.

ADDED_TO_STAGE

Display object or one of its parents added to the stage.

REMOVED_FROM_STAGE

Display object or one of its parents removed from the stage.

type

Event type eg.

bubbles

Event bubbles up the display list hierarchy.

cancelable

Event is cancelable.

currentTarget

Current event target trigger or the object dispatchEvent() is bieng called ( use target instead ).

target

The target object dispatchEvent() is bieng called on.

used

Is the event used or consumed eg.

eventPhase

Current EventPhase id.