I have a presentation in which 2 kinds of users will have each a different document to sign.
They make their option In the first scene, and in the end, they will be presented with a final button to open the document.
I created 2 versions of the final button, each jumping to a different document, and a timeline to change them, and expected the user to be able to choose the right button in the first scene with custom behaviors, but I could not find out how.
Is there a way to do it with custom behaviors, or I will have to use some JavaScript?
In theory it could be done without JavaScript... probably something like:
Add a persistent symbol
In this persistent symbol have a (paused) timeline with two timeline actions spaced apart and a pause timeline action between them. The first timeline action would do something for user 1, the second timeline action would do the thing for user 2
Add a custom behavior that sets the time of timeline's playhead to be past the pause action and just before the action that corresponds for user two. (You don't need a custom behavior for user 1 since we'll assume that's the default and the playhead is in the right spot)
Trigger that custom behavior on your first scene's selection if it is user 2
Then have another custom behavior in the persistent symbol that will continue that timeline such that it will invoke the action
On your later scene, trigger that custom behavior
This is super convoluted though! JavaScript would be much more clear. I recommend doing JS instead .
Thank you very much Jonathan, I thought there was a much simpler solution than this, and I will go for JS, but on the other hand, I will surely try it later, if only to learn some Hype!