Packageaway3d.events
Classpublic class MouseEvent3D
InheritanceMouseEvent3D Inheritance flash.events.Event

A MouseEvent3D is dispatched when a mouse event occurs over a mouseEnabled object in View3D. todo: we don't have screenZ data, nor global coords, tho this should be easy to implement



Public Properties
 PropertyDefined By
  altKey : Boolean
Indicates whether the Alt key is active (true) or inactive (false).
MouseEvent3D
  bubbles : Boolean
[override] [read-only]
MouseEvent3D
  ctrlKey : Boolean
Indicates whether the Control key is active (true) or inactive (false).
MouseEvent3D
  delta : int
Indicates how many lines should be scrolled for each unit the user rotates the mouse wheel.
MouseEvent3D
  localNormal : Vector3D
The normal in object space where the event took place
MouseEvent3D
  localPosition : Vector3D
The position in object space where the event took place
MouseEvent3D
  material : MaterialBase
The material of the 3d element inside which the event took place.
MouseEvent3D
  object : ObjectContainer3D
The 3d object inside which the event took place.
MouseEvent3D
  renderable : IRenderable
The renderable inside which the event took place.
MouseEvent3D
  sceneNormal : Vector3D
[read-only] The normal in scene space where the event took place
MouseEvent3D
  scenePosition : Vector3D
[read-only] The position in scene space where the event took place
MouseEvent3D
  screenX : Number
The horizontal coordinate at which the event occurred in view coordinates.
MouseEvent3D
  screenY : Number
The vertical coordinate at which the event occurred in view coordinates.
MouseEvent3D
  shiftKey : Boolean
Indicates whether the Shift key is active (true) or inactive (false).
MouseEvent3D
  uv : Point
The uv coordinate inside the draw primitive where the event took place.
MouseEvent3D
  view : View3D
The view object inside which the event took place.
MouseEvent3D
Public Methods
 MethodDefined By
  
MouseEvent3D(type:String)
Create a new MouseEvent3D object.
MouseEvent3D
  
clone():Event
[override] Creates a copy of the MouseEvent3D object and sets the value of each property to match that of the original.
MouseEvent3D
  
[override]
MouseEvent3D
  
[override]
MouseEvent3D
Public Constants
 ConstantDefined By
  CLICK : String = click3d
[static] Defines the value of the type property of a click3d event object.
MouseEvent3D
  DOUBLE_CLICK : String = doubleClick3d
[static] Defines the value of the type property of a doubleClick3d event object.
MouseEvent3D
  MOUSE_DOWN : String = mouseDown3d
[static] Defines the value of the type property of a mouseDown3d event object.
MouseEvent3D
  MOUSE_MOVE : String = mouseMove3d
[static] Defines the value of the type property of a mouseMove3d event object.
MouseEvent3D
  MOUSE_OUT : String = mouseOut3d
[static] Defines the value of the type property of a mouseOut3d event object.
MouseEvent3D
  MOUSE_OVER : String = mouseOver3d
[static] Defines the value of the type property of a mouseOver3d event object.
MouseEvent3D
  MOUSE_UP : String = mouseUp3d
[static] Defines the value of the type property of a mouseUp3d event object.
MouseEvent3D
  MOUSE_WHEEL : String = mouseWheel3d
[static] Defines the value of the type property of a mouseWheel3d event object.
MouseEvent3D
Property Detail
altKeyproperty
public var altKey:Boolean

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

bubblesproperty 
bubbles:Boolean  [read-only] [override]


Implementation
    public function get bubbles():Boolean
ctrlKeyproperty 
public var ctrlKey:Boolean

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

deltaproperty 
public var delta:int

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

localNormalproperty 
public var localNormal:Vector3D

The normal in object space where the event took place

localPositionproperty 
public var localPosition:Vector3D

The position in object space where the event took place

materialproperty 
public var material:MaterialBase

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

objectproperty 
public var object:ObjectContainer3D

The 3d object inside which the event took place.

renderableproperty 
public var renderable:IRenderable

The renderable inside which the event took place.

sceneNormalproperty 
sceneNormal:Vector3D  [read-only]

The normal in scene space where the event took place


Implementation
    public function get sceneNormal():Vector3D
scenePositionproperty 
scenePosition:Vector3D  [read-only]

The position in scene space where the event took place


Implementation
    public function get scenePosition():Vector3D
screenXproperty 
public var screenX:Number

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

screenYproperty 
public var screenY:Number

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

shiftKeyproperty 
public var shiftKey:Boolean

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

uvproperty 
public var uv:Point

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

viewproperty 
public var view:View3D

The view object inside which the event took place.

Constructor Detail
MouseEvent3D()Constructor
public function MouseEvent3D(type:String)

Create a new MouseEvent3D object.

Parameters
type:String — The type of the MouseEvent3D.
Method Detail
clone()method
override public function clone():Event

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

Returns
Event
stopImmediatePropagation()method 
override public function stopImmediatePropagation():void

stopPropagation()method 
override public function stopPropagation():void

Constant Detail
CLICKConstant
public static const CLICK:String = click3d

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

DOUBLE_CLICKConstant 
public static const DOUBLE_CLICK:String = doubleClick3d

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

MOUSE_DOWNConstant 
public static const MOUSE_DOWN:String = mouseDown3d

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

MOUSE_MOVEConstant 
public static const MOUSE_MOVE:String = mouseMove3d

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

MOUSE_OUTConstant 
public static const MOUSE_OUT:String = mouseOut3d

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

MOUSE_OVERConstant 
public static const MOUSE_OVER:String = mouseOver3d

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

MOUSE_UPConstant 
public static const MOUSE_UP:String = mouseUp3d

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

MOUSE_WHEELConstant 
public static const MOUSE_WHEEL:String = mouseWheel3d

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