A MouseEvent3D is dispatched when a mouse event occurs over a mouseEnabled object in View3D.


Inherited from Event.


Can be created using method new:

Lib.Away3D.Events.Mouse3DEvent.new(type)

Create a new MouseEvent3D object.

type - The type of the MouseEvent3D. String


Created MouseEvent3D object has properties:

altKey

Indicates whether the Alt key is active (true) or inactive (false). Boolean


bubbles

[override] [read-only] Boolean

ctrlKey

Indicates whether the Control key is active (true) or inactive (false). Boolean

delta

Indicates how many lines should be scrolled for each unit the user rotates the mouse wheel. Int

index

The index of the face where the event took place. Int

localNormal

The normal in object space where the event took place. (Vector3D)

localPosition

The position in object space where the event took place. (Vector3D)

material

The material of the 3d element inside which the event took place. (MaterialBase)

object

The 3d object inside which the event took place. (ObjectContainer3D)

renderable

The renderable inside which the event took place. (IRenderable) SegmentSet, SkyBox, Sprite3D, SubMesh

sceneNormal

[read-only] The normal in scene space where the event took place. (Vector3D)

scenePosition

[read-only] The position in scene space where the event took place. (Vector3D)

screenX

The horizontal coordinate at which the event occurred in view coordinates.

screenY

The vertical coordinate at which the event occurred in view coordinates.

shiftKey

Indicates whether the Shift key is active (true) or inactive (false). Boolean

subGeometryIndex

The index of the subGeometry where the event took place.

uv

The uv coordinate inside the draw primitive where the event took place. (Point)

view

The view object inside which the event took place. (View3D)


methods:

clone()

[override] Creates a copy of the MouseEvent3D object and sets the value of each property to match that of the original.


stopImmediatePropagation()

[override] Creates a copy of the MouseEvent3D object and sets the value of each property to match that of the original.


stopPropagation()

[override]



Static constants:

Lib.Away3D.Events.Mouse3DEvent.CLICK

Defines the value of the type property of a click3d event object.

Lib.Away3D.Events.Mouse3DEvent.DOUBLE_CLICK

Defines the value of the type property of a doubleClick3d event object.

Lib.Away3D.Events.Mouse3DEvent.MOUSE_DOWN

Defines the value of the type property of a mouseDown3d event object.

Lib.Away3D.Events.Mouse3DEvent.MOUSE_MOVE

Defines the value of the type property of a mouseMove3d event object.

Lib.Away3D.Events.Mouse3DEvent.MOUSE_OUT

Defines the value of the type property of a mouseOut3d event object.

Lib.Away3D.Events.Mouse3DEvent.MOUSE_OVER

Defines the value of the type property of a mouseOver3d event object.

Lib.Away3D.Events.Mouse3DEvent.MOUSE_UP

Defines the value of the type property of a mouseUp3d event object.

Lib.Away3D.Events.Mouse3DEvent.MOUSE_WHEEL

Defines the value of the type property of a mouseWheel3d event object.


Created with the Personal Edition of HelpNDoc: Easily create EPub books