Package: pumpkin.events

MouseEvent


Description

The MouseEvent class is used for all mouse and touch interactions.



Constructors

MouseEvent

Create new MouseEvent.

MouseEvent

Create new MouseEvent, bubbles and cancelable.


Variables

CLICK

Mouse click event.

MOUSE_DOWN

Mouse pressed down event.

MOUSE_UP

Mouse release event.

MOUSE_MOVE

Mouse moved event.

MOUSE_ENTER

Mouse entered event.

MOUSE_LEAVE

Mouse left event.

stageX

Local mouse x position in pixels.

stageY

Stage mouse y position in pixels.

buttonId

Mouse button ID.

touchId

Touch id of the touch event.

touch

Touch event that triggered the MouseEvent.

worldPos

World position of the mouse position. Represnts the click position in scene space, only valid for 3d movieclip,.


Inherited members

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.