Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to make a multi-state object with buttons that toggle between states

Community Beginner ,
Dec 04, 2025 Dec 04, 2025

I'm working on a document to publish online (as a link). I'm trying to incorporate an image of a record player. The plan is that, when clicked, the image of the record player switches to a GIF with a spinning record. At the same time, it'll trigger the sound file I have on the page to play. Then, when the user clicks the GIF, the music pauses, and the GIF switches back to the record player PNG.

So far, I've tried this method:

1. Turn the record player PNG and GIF into buttons (PNG plays music, GIF pauses music).

2. Align the elements and turn them into a multi-state object.

This is where I'm stuck, as when I turn them into an MSO, they lose their interactivity. I can't turn the states into buttons or edit any button actions. Is there a way to achieve the effect I'm going for?

TOPICS
EPUB , Experiment , How to , Publish online
140
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 05, 2025 Dec 05, 2025

Sounds doable. This is off the top of my head so you may have to play around. 

 

First off, don't turn them into buttons. Instead, use an invisible button over them and set them to:

State one (contains PNG and invisible button)

Button set to go to next state

 

State two (contains GIF and MP3 set to play on state load)

Button set to Stop audio and go to next state

 

Let me know if that works.

 

Translate
Community Expert ,
Dec 04, 2025 Dec 04, 2025

Nikole,

To my knowledge, InDesign cannot publish an animated GIF. Have you experimented with an mp4 file for video motion?

Mike Witherell
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 04, 2025 Dec 04, 2025

Hi Mike,

From what I've seen in my experimentations, it can (likely since I'm publishing online). Unfortunately, I'm still struggling with making sure the PNG & GIF can simultaneously switch between states (state 1 = PNG, state 2= GIF) and control music. Have you come across a way to turn the individual states within a multi-state object into buttons? (Whilst remaining as an MSO)?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 05, 2025 Dec 05, 2025

Sounds doable. This is off the top of my head so you may have to play around. 

 

First off, don't turn them into buttons. Instead, use an invisible button over them and set them to:

State one (contains PNG and invisible button)

Button set to go to next state

 

State two (contains GIF and MP3 set to play on state load)

Button set to Stop audio and go to next state

 

Let me know if that works.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 06, 2025 Dec 06, 2025

It worked! Thank you so much for the help

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
3 hours ago 3 hours ago
LATEST

Great! I just didn't have time to test it the other day but I was pretty sure it would function properly.

If you're doing a lot of MSOs you might want to download and install this free script: Object States Assistant for Adobe InDesign – Automatication

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines