flash.events
Class MouseEvent

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by flash.events.Event
          extended by flash.events.MouseEvent

public class MouseEvent
extends Event

Implemnents flash.events.MouseEvent


Constructor Summary
protected MouseEvent()
           
 
Method Summary
 int getDelta()
          Indicates how many lines should be scrolled for each unit the user rotates the mouse wheel.
 int getLocalX()
          The horizontal coordinate at which the event occurred relative to the containing sprite.
 int getLocalY()
          The vertical coordinate at which the event occurred relative to the containing sprite.
 InteractiveObject getRelatedObject()
          A reference to a display list object that is related to the event.
 int getStageX()
          The horizontal coordinate at which the event occurred in global Stage coordinates.
 int getStageY()
          The vertical coordinate at which the event occurred in global Stage coordinates.
 boolean isAltKey()
          Indicates whether the Alt key is active (true) or inactive (false).
 boolean isButtonDown()
          Indicates whether the primary mouse button is pressed (true) or not (false).
 boolean isCtrlKey()
          On Windows, indicates whether the Ctrl key is active (true) or inactive (false).
 boolean isShiftKey()
          Indicates whether the Shift key is active (true) or inactive (false).
 
Methods inherited from class flash.events.Event
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getType, isDefaultPrevented, preventDefault, stopImmediatePropagation, stopPropagation
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MouseEvent

protected MouseEvent()
Method Detail

isAltKey

public final boolean isAltKey()
Indicates whether the Alt key is active (true) or inactive (false).

Returns:

isButtonDown

public final boolean isButtonDown()
Indicates whether the primary mouse button is pressed (true) or not (false).

Returns:

isCtrlKey

public final boolean isCtrlKey()
On Windows, indicates whether the Ctrl key is active (true) or inactive (false).

Returns:

getDelta

public final int getDelta()
Indicates how many lines should be scrolled for each unit the user rotates the mouse wheel.

Returns:

getLocalX

public final int getLocalX()
The horizontal coordinate at which the event occurred relative to the containing sprite.

Returns:

getLocalY

public final int getLocalY()
The vertical coordinate at which the event occurred relative to the containing sprite.

Returns:

getRelatedObject

public final InteractiveObject getRelatedObject()
A reference to a display list object that is related to the event.

Returns:

isShiftKey

public final boolean isShiftKey()
Indicates whether the Shift key is active (true) or inactive (false).

Returns:

getStageX

public final int getStageX()
The horizontal coordinate at which the event occurred in global Stage coordinates.

Returns:

getStageY

public final int getStageY()
The vertical coordinate at which the event occurred in global Stage coordinates.

Returns:


Copyright © 2013. All Rights Reserved.