events that delete functions
Say I have a dragable object with something like
on(press){
startDrag("object");
}
on(release){
stopDrag();
}
How do I make it so that when the mouse button is released it makes it so the object can't be picked up any more (basically it removes the on(press) part)?