a.onPress = function () { this.startDrag (); }; a.onRelease = function () { stopDrag (); }; a.onReleaseOutside = a.onRelease; b.onPress = ... c.onPress = ...