EventMouse
| Kind of class: | class |
|---|---|
| Inherits from: | EventDispatcher < CoreObject |
| Version: | 10/18/06 |
| Author: | Aaron Clinger |
| Classpath: | org.casaframework.mouse.EventMouse |
| File last modified: | Monday, 08 January 2007, 09:57:51 |
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
Class properties
Instance properties
Instance properties inherited from EventDispatcher
Instance properties inherited from CoreObject
Class methods
Instance methods
Instance methods inherited from EventDispatcher
Instance methods inherited from CoreObject
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)