Copy link to clipboard
Copied
In my old clunky eLearning authoring tool, I could create a slide with multiple steps. You would click the Next Step button to display text and graphic. When you get to the last step, the Next Step button disappears, so you know you're done. How can I make this work with multi-state objects in Cap 9? I created a multi-state object with 3 states. I created a button with an action of Go to Next State. That's fine until you get to the last state. If you click the button again, it starts over with the first state.
Yes, I can create multiple buttons. But I really just want to have one button called Next Step that disappears after you display the last state. The user would know she had displayed all the steps.
Any suggestions are welcome. Thanks.
Jeanne M
Here is a script example:
This was set up for 6 states (for a text container, the Normal state was an empty shape).
There are 2 user variables:
The first decision "Done" checks if the counter has reached the maximum value (v_max). If that is the case all states have been shown and it should end the loop. That is why that decision will disable the button used to change states (SB_St
...Copy link to clipboard
Copied
Why not just hide the button after the last step?
Copy link to clipboard
Copied
??? How would you do that, Rod? OP wants only to use the simple action 'Go to Next State' triggered by that button. Indeed, it will loop through the states, and once you reach the last state, it will restart from the first state.
It would be a nice feature to add, but don't know if it is possible. My 'cheating' is to add a blank state as last state, and hope that the user will not continue to click the button.
Other approach is of course not to use the simple action, but a conditional action. Since there is no looping possible, and the action 'Go to Next State' is not available in the Advanced Actions dialog box, it will be more complicated because you'll have to use a counter and a decision for each state. It is then possible to disable or hide the Next button within the last decision. I understand that this seems to be rather complicated for what is thought to be a simple looping.
Copy link to clipboard
Copied
I know that's what he wants to do but I don't see the point of trying to use the Change State action when it seems much simpler to me to HIDE the entire button once you reach the last state.
Copy link to clipboard
Copied
Maybe I misunderstand the question totally. I thought that he has set up different states with different Text+Graphic and uses the Go to Next State action triggered by a button, to loop through the states. How would you realize this without using Go to Next State?
Copy link to clipboard
Copied
Lieve, I don't think you and I are on the same wavelength with this one.
He's quite OK to use the Go to Next State or Change State TO actions up until reaching the final step. But at that point his original post indicated with his previous tool he had the Next Step button DISAPPEAR and he wanted something similar to happen in Captivate.
In Captivate making things disappear is usually done with the HIDE action. I'm just saying that trying to use the actions for changing states makes no sense when what he REALLY seems to want is for the button to disappear.
Copy link to clipboard
Copied
Indeed, we do understand differently: which event would allow to hide that button?
Copy link to clipboard
Copied
Which event was being used to Go to Next State?
Copy link to clipboard
Copied
Success event of the button.
Copy link to clipboard
Copied
OK. So, if this even reaches the last step what's the problem with using that same event to execute more lines in the same Advanced Action to delays a few seconds and then hide the button itself?
Copy link to clipboard
Copied
Hi,
Thanks for the thoughtful responses to my question!
In answer to your question, the only "problem" is that I just learned how to use multi-state function in Cap 9. Haven't delved into Advanced Actions yet. Sounds like that's the solution, so I will endeavor to learn.
--JM
Copy link to clipboard
Copied
OK. I think I see where we are on a different path. The Go To Next State and Go to Previous State actions don't appear for Standard or Conditional Actions.
Copy link to clipboard
Copied
That is what I wrote in my first answer and why I was stupefied with your
answer. Moreover, you don't have control over the delay time at all.
Copy link to clipboard
Copied
Just found some Lynda.com training on advanced actions, so I'll bite the bullet and learn how to write scripts. Thanks.
Copy link to clipboard
Copied
I could write out a shared or advanced action (can be part of the book about actions that I'm working on), since it happens often that someone doesn't want to loop through states, but just loop through the available states. Can be useful in a global script library.
Copy link to clipboard
Copied
Sounds great!
Copy link to clipboard
Copied
Here is a script example:
This was set up for 6 states (for a text container, the Normal state was an empty shape).
There are 2 user variables:
The first decision "Done" checks if the counter has reached the maximum value (v_max). If that is the case all states have been shown and it should end the loop. That is why that decision will disable the button used to change states (SB_StateTrigger) and here also change its state to an invisible state (AfterLoop). When returning to the slide, the state will again be Normal (visible), and you only have to enable the button again. You can replace this by a single Hide action as well if you want.
If the first decision is not true, there are still states to be shown and the counter is incremented.
The other 6 decisions are all similar (I collapsed 2 of them): they will test the value of the counter and show the associated state. From state3 on I used a combinated criterion. That makes it possible to use exactly the same advanced action also if the total number of states is lower than 6. You only have to change the value of v_max.
Copy link to clipboard
Copied
Thanks a bunch! I will give this a try and report back.
--JM