EventMouse

Kind of class:class
Inherits from:EventDispatcher < CoreObject
Version:10/18/06
Author:Aaron Clinger
Classpath:org.casaframework.mouse.EventMouse
File last modified:Sunday, 19 August 2007, 13:43:30
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) {}

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 () : EventMouse
Returns:
EventMouse instance.