Mouse utilities. It is necessary to call
MouseUtils.init() method before using this class methods.
public static function globalCoords(stageLimit:Boolean = true):PointGet global mouse coordinates.
Parameters
| stageLimit:Boolean (default = true) — to limit couse coordinates by stage size, or not |
Returns
| Point — global mouse coordinates |
Throws
| Error — if MouseUtility.init() was not called before |
public static function init(stage:Stage):voidClass initialization. It is necessary to call this method before using class methods.
Parameters
public static function localCoords(object:DisplayObject):PointGet local mouse coordinates on a specified object.
Parameters
| object:DisplayObject — object that is being used to get local mouse coordinates |
Returns
| Point — local mouse coordinates on a specified object. |