Packagealternativa.engine3d.events
Classpublic class MouseEvent3D
InheritanceMouseEvent3D Inheritance flash.events.Event

An event object which is dispatched when mouse interacts with objects rendered on a view.



Public Properties
 PropertyDefined by
  altKey : Boolean
On Windows, indicates whether the Alt key is active (true) or inactive (false).
MouseEvent3D
  ctrlKey : Boolean
On Windows, indicates whether the Ctrl 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
  face : Face
A face related to the event.
MouseEvent3D
  globalX : Number
X-coordinate of an interaction point in a scene.
MouseEvent3D
  globalY : Number
Y-coordinate of an interaction point in a scene.
MouseEvent3D
  globalZ : Number
Z-coordinate of an interaction point in a scene.
MouseEvent3D
  localX : Number
X-coordinate of an interaction point in the related object's coordinate system.
MouseEvent3D
  localY : Number
Y-coordinate of an interaction point in the related object's coordinate system.
MouseEvent3D
  localZ : Number
Z-coordinate of an interaction point in the related object's coordinate system.
MouseEvent3D
  object : Object3D
An object related to the event.
MouseEvent3D
  shiftKey : Boolean
On Windows, indicates whether the Shift key is active (true) or inactive (false).
MouseEvent3D
  surface : Surface
An surface related to the event.
MouseEvent3D
  u : Number
Texture coordinate U of an interaction point.
MouseEvent3D
  v : Number
Texture coordinate V of an interaction point.
MouseEvent3D
  view : View
A view related to the event.
MouseEvent3D
Public Methods
 MethodDefined by
  
MouseEvent3D(type:String, view:View, object:Object3D, surface:Surface, face:Face, globalX:Number, globalY:Number, globalZ:Number, localX:Number, localY:Number, localZ:Number, u:Number, v:Number, altKey:Boolean = false, ctrlKey:Boolean = false, shiftKey:Boolean = false, delta:int = 0)
Creates a new instance af an event object.
MouseEvent3D
  
clone():Event
Creates a clone of an event object.
MouseEvent3D
  
toString():String
String representation of an event object.
MouseEvent3D
Public Constants
 ConstantDefined by
  CLICK : String = "click"
[static] The value of the type property of a click event object.
MouseEvent3D
  MOUSE_DOWN : String = "mouseDown"
[static] The value of the type property of a mouseDown event object.
MouseEvent3D
  MOUSE_MOVE : String = "mouseMove"
[static] The value of the type property of a mouseMove event object.
MouseEvent3D
  MOUSE_OUT : String = "mouseOut"
[static] The value of the type property of a mouseOut event object.
MouseEvent3D
  MOUSE_OVER : String = "mouseOver"
[static] The value of the type property of a mouseOver event object.
MouseEvent3D
  MOUSE_UP : String = "mouseUp"
[static] The value of the type property of a mouseUp event object.
MouseEvent3D
  MOUSE_WHEEL : String = "mouseWheel"
[static] The value of the type property of a mouseWheel event object.
MouseEvent3D
Property detail
altKeyproperty
public var altKey:Boolean

On Windows, indicates whether the Alt key is active (true) or inactive (false).

ctrlKeyproperty 
public var ctrlKey:Boolean

On Windows, indicates whether the Ctrl 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.

faceproperty 
public var face:Face

A face related to the event.

globalXproperty 
public var globalX:Number

X-coordinate of an interaction point in a scene.

globalYproperty 
public var globalY:Number

Y-coordinate of an interaction point in a scene.

globalZproperty 
public var globalZ:Number

Z-coordinate of an interaction point in a scene.

localXproperty 
public var localX:Number

X-coordinate of an interaction point in the related object's coordinate system.

localYproperty 
public var localY:Number

Y-coordinate of an interaction point in the related object's coordinate system.

localZproperty 
public var localZ:Number

Z-coordinate of an interaction point in the related object's coordinate system.

objectproperty 
public var object:Object3D

An object related to the event.

shiftKeyproperty 
public var shiftKey:Boolean

On Windows, indicates whether the Shift key is active (true) or inactive (false).

surfaceproperty 
public var surface:Surface

An surface related to the event.

uproperty 
public var u:Number

Texture coordinate U of an interaction point.

vproperty 
public var v:Number

Texture coordinate V of an interaction point.

viewproperty 
public var view:View

A view related to the event.

Constructor detail
MouseEvent3D()constructor
public function MouseEvent3D(type:String, view:View, object:Object3D, surface:Surface, face:Face, globalX:Number, globalY:Number, globalZ:Number, localX:Number, localY:Number, localZ:Number, u:Number, v:Number, altKey:Boolean = false, ctrlKey:Boolean = false, shiftKey:Boolean = false, delta:int = 0)

Creates a new instance af an event object.

Parameters
type:Stringthe type of an event
 
view:Viewa view related to the event
 
object:Object3Dan object related to the event
 
surface:Surfacea surface related to the event
 
face:Facea face related to the event
 
globalX:NumberX-coordinate of an interaction point in a scene
 
globalY:NumberY-coordinate of an interaction point in a scene
 
globalZ:NumberZ-coordinate of an interaction point in a scene
 
localX:NumberX-coordinate of an interaction point in the related object's coordinate system
 
localY:NumberY-coordinate of an interaction point in the related object's coordinate system
 
localZ:NumberZ-coordinate of an interaction point in the related object's coordinate system
 
u:Numbertexture coordinate U of an interaction point
 
v:Numbertexture coordinate V of an interaction point
 
altKey:Boolean (default = false)
 
ctrlKey:Boolean (default = false)
 
shiftKey:Boolean (default = false)
 
delta:int (default = 0)
Method detail
clone()method
public override function clone():Event

Creates a clone of an event object.

Returns
Eventa clone of an event object
toString()method 
public override function toString():String

String representation of an event object.

Returns
Stringstring object representation
Constant detail
CLICKconstant
public static const CLICK:String = "click"

The value of the type property of a click event object.

MOUSE_DOWNconstant 
public static const MOUSE_DOWN:String = "mouseDown"

The value of the type property of a mouseDown event object.

MOUSE_MOVEconstant 
public static const MOUSE_MOVE:String = "mouseMove"

The value of the type property of a mouseMove event object.

MOUSE_OUTconstant 
public static const MOUSE_OUT:String = "mouseOut"

The value of the type property of a mouseOut event object.

MOUSE_OVERconstant 
public static const MOUSE_OVER:String = "mouseOver"

The value of the type property of a mouseOver event object.

MOUSE_UPconstant 
public static const MOUSE_UP:String = "mouseUp"

The value of the type property of a mouseUp event object.

MOUSE_WHEELconstant 
public static const MOUSE_WHEEL:String = "mouseWheel"

The value of the type property of a mouseWheel event object.