Access keys

EventMouse

Kind of class: class
Inherits from: EventDispatcher < CoreObject
Version: 10/18/06
Author: Aaron Clinger
Classpath: org.casaframework.mouse.EventMouse
File last modified: Thursday, 25 January 2007, 09:21:17
Dispatches mouse events to observers.
Should be used instead of Mouse.addListener.
Example:
function onMouseMove():Void {
    trace("Mouse position is x:" + _root._xmouse + " y:" + _root._ymouse + ".");
}

var mouseInstance:EventMouse = EventMouse.getInstance();
this.mouseInstance.addEventObserver(this, EventMouse.EVENT_MOUSE_MOVE);
Events broadcast to listeners:
onMouseDown = function () {}
onMouseMove = function () {}
onMouseUp = function () {}
onMouseWheel = function (delta:Number, scrollTarget:String) {}

Summary

Instance properties
Instance properties inherited from EventDispatcher
Instance properties inherited from CoreObject
Class methods

Class properties

EVENT_MOUSE_DOWN

static EVENT_MOUSE_DOWN:String = 'onMouseDown'
(read,write)

EVENT_MOUSE_MOVE

static EVENT_MOUSE_MOVE:String = 'onMouseMove'
(read,write)

EVENT_MOUSE_UP

static EVENT_MOUSE_UP:String = 'onMouseUp'
(read,write)

EVENT_MOUSE_WHEEL

static EVENT_MOUSE_WHEEL:String = 'onMouseWheel'
(read,write)

Class methods

getInstance

static function getInstance (
Returns:
EventMouse instance.