I recreated something like you did and it works.
1. Created a button image in Photoshop PSD and placed on page
2. Made the image a button with NORMAL, ROLLOVER and CLICK, assigned, for example, GO TO NEXT PAGE.
3. For NORMAL, made the button transparent, so it only appears on rollover.
4. Applied animation effect FADE IN/OUT with 0.5s on ROLLOVER.
5. Exported SWF. Button appears again and again on rollover.
Sorry, I didnt do a good enough job explaining my issue/bug above. I can't attach a screen shot becuase of where I work and what this content is so I will do the best I can explaining it in text.
I have a row of buttons created in InDesign that have no effects, no rollovers and lets just call them Apple In, Apple Out, Orange In, Orange Out, Banana In, Banana Out, etc.
The Apple In button invokes an animation called Apple Fade In. Apple Out simply fades out the content animation. All of the other buttons function the same way. In my exported .swf I can click Apple In and I get my content as expected, I click Apple Out and away it goes. All other buttons work the same way, as expected. If I go through all my fruit and now I want to go back and display the Apples again. I click Apple In and NOTHING happens! If I click Apple Out the fade out animation works just fine, as many times as I want to click it, I get a flash of the content and it fades right out. The "In" buttons no longer work for any of the fruit after the initial "In" animation plays.
In the Animation Panel I have the animations set to Play Once and Dont Hide. In the Layers Panel I have a layer called Apple Fade. In that Layer Group/Set I have Apple Fade Hack which consists of a native ID square no stroke and no fill grouped with my Apple content on "the stage." Also in that Layer Group/ Set is a collection of bitmap images, text, and vectors called Apple. I created the content first on a layer Apple, when I created the group with the blank square ID bumped the original content group under the parent layer and added another sub-layer called Apple Fade Hack. These two are indented and under the top level Apple Layer. I could probably get away with attaching a screen shot of the timing, layer, and animation panels if I had to.
Why do you actually do such things in Indesign? There are better tools for such a task.
From what I understand in this confusing text, you have two buttons. One shall fade in a certain object, the other shall fade it out. As it seems, you can only apply one animation to an object and trigger it with a button.
If this is what you are looking for:
....it´s not very hard to make in InDesign... it took me just 5-10 minutes to put up that sample.
Key feature here is button´s action, you need to choose Animation/Options:play for in-button and Animation/Options:reverse for out-button...
You can use one animation per fruit, just create animation with fade in preset. With in-button you play that animation, and with out-button you reverse animation....
With little more effort you could make out-button´s initial state hidden, and make it visible only after in-button is clicked...
Feel free to study my original indd:
yep, not very difficult, here´s one with out-buttons that come visible only when fruit is visible...
now you could of course continue bit further, toggle in-button to out-button when fruit´s visibility changes....
Should be, I used CS6.
Action in your screenshot is not correct... You should choose Action: Animation for your button. Then you should see 2 dropdowns, with first one you select target animation (it´s wise to name animation properly in animations panel), and with second dropdown you choose what you would like to do with that animation; play, stop, reverse etc...
THANK YOU Petteri_Paananen!
The Reverse works perfectly! and thanks for the great add-on with the visibility toggle.
I see. It seems like we sometimes think too logical. The button is actually supposed to trigger an action like "let the image fade in" or like in my test INDD, "go to next page".
Tried Petteri_Paananen's solution and it worked, though IE10, playing the SWF, came up with an error at fade out button click.
ShawnNotSean, please mark Petteri_Paananen's solution as "Correct", so this topics is listed as solved.