this.onPress = function () { this._parent.startDrag(0, 0); }; this.onRelease = function () { stopDrag (); }; this.onReleaseOutside = function () { stopDrag (); };