I would like to programmatically change the image of a button when it is pressed. For an image, I can change its value through var.image = image.
For a button, it seems that there is a notion of state. I've tried all the types of states and could not succeed. Also, it seems that there is no method to retrieve the current state of a button?