I have searched for a replay button that will work in 2019. I read Lilibri's blog post Replay (slide) button. The first replay didn't seen to work to reset the slide. I tried building the second option and I'm either assigning the wrong action to the wrong place or it just doesn't work for me.
Would appreciate any and all advice. The original AA for the replay that the customer used was Go to Previous Slide then the next line was Go to Next Slide. It seemed to work before but doesn't now.
I have one that works but is on a different computer. I will post it later today.
What do you mean by reset? Are you trying to reset a drag and drop or simply nav to the beginning of the timeline for a slide?
Do you need any variables to be reset as well?
I did attempt to use your Replay button blog post. But I either missed something or I assigned the wrong actions to the On Enter and the Replay button. We all know I'm not as smart as I'd like to be.
I'll try the 0.1 second slide.
It depends what you want to reset. I summarized what will be reset automatically. The dummy slide approach has been explained in this blog:
The On Enter action is mainly used to 'reset' items that are not reset automatically: objects that need to be hidden, variables that need to be reset etc. The Replay button with the micronavigation approach (to re-enter the slide which makes the Reset action to replay) will only navigate. In order to navigate to a frame little bit before the first frame of the slide to be reset, you need to assign the frame number to a user variable in the On Enter action as well.
There are plenty of example use cases on ly blog using either the dummy slide approach or the micro-navigation one.
Create an Advanced Action with this inside:
Expression cpCmndGotoSlide = cpInfoCurrentSlide - 1
David, that used to be working versions ago for SWF output. Now that expression will no longer be fundtional because it is NOT re-entering the slide, just restarts from frame 1. I cannot explain, just had that experience. That is the reason I use eitehr micro-navigation or the dummy very short slide with Go to Previous slide.
True it doesn't re-enter the slide, but it does replay the slide.
We don't use any onEnter actions so that's not an issue, all it does is actually replay.
The OP needs to re-enter the slide to reset things. In my blog about Replay slide, I have both scenarios described, without and with re-entering for reset reasons.
Perhaps I missed it but I am still wondering if there are any variables that also need to be reset in order for the slide to "play" correctly.
Simply re-entering the slide will not reset variables unless there is an action being triggered to set each variable back to the default value if that is what is needed.
Have explained that already, also in the blog. Some reset will happen automatically (Drag&Drop as KC slide, effects, states if Retain is not checked etc), other will need a real On Enter action: hiding, re-assigning values to variables....
I include the visibility scripts in all of the projects I develope.
Resetting variables per slide would be a nightmare as there isn't anything "under-the-hood" that tells where they are being used. You can reset them all easy enough.
I rarely use Hide/Show but replace it by multistate objects. Two reasons: no need for reset, and can be used in Fluid Boxes projects. I expected you to have a JS solution of course.
If you use shared acttions, and well-designed user variables, the reset On Enter actions are not that hard at all. At least to my experience. Of course based on many years of avoiding JS whenever possible. My clients can handle the shared/advanced actions, but rarely JS.
I agree, we use the states all the time now, just wish they could handle more and interactive objects.