I have a group of controls. In that group of controls is a button with an x on it, like the little x in the top right hand corner of my browser window.You cannot delete the object whose script holds a currently executing handler.
When I press the x I want the the button and the group it belongs to, to be deleted.
So I try to be clever and call commands on the card or on the stack that delete the group - but this doesn't work because "end mouseUp" in the script of the x button is the last thing to happen and therefore a "currently executing handler"
It would be easy just to set the visible to false but I actually want to delete it. Perhaps I just have to be creative about how my program works. But if anyone knows how to get something to delete itself please share