Cabbage Logo
Back to Cabbage Site

Buttons and image states

I have an optionbutton that has 5 different options, and I was wonder, if it is possible, like how a slider can use a graphic to display its state, can an optionbutton also take a filmstrip and display a different frame of the filmstrip depending on the state of the button? Or do we need to programmatically do this? Should I break each of the frames out into separate files, and then swap them out on the fly?

(I suddenly had a craving to listen to the song “Frame by Frame” by King Crimson!)

Just place an image over the button with mouseInteraction set to 0. That will allow clicks to pass through. Then update the image on each button click.