By Steve Werner in IndesignSecrets.com
How to create a button that appears to have two appearances and toggles two actions.
I’ve posted before about how to create a button which both shows and hides another object. Such an interactivity effect can be exported both in an interactive PDF file and in a SWF file which can be played in a web browser.
The method which I described is to give the trigger button two events. Events are mouse actions. I described giving an action to the On Roll Over event to show a picture, and giving the same button an action to hide the picture during the On Roll Off event. (Alternatively, you could have the picture show when the trigger button is clicked—the On Click event—and have it hide when the mouse button is released—the On Releaseevent.
But on the Adobe InDesign Forum, I saw this request:
Using InDesign CS5, I’m trying to create a button that when clicked, shows another button; when clicked again, hides the button that was previously shown. Like a toggle. I’ve not been able to do this.