Mouse.hide(); this.onMouseMove = onMouseMoveHandler; function onMouseMoveHandler():Void { cursor._x = this._xmouse; cursor._y = this._ymouse; updateAfterEvent(); }