A sample of how to create a new
SpriteButton
class through subclassing. The subclass simply defines a
Sprite
(image strip) for the button’s various states.