Custom Pause Button--I'm missing something in my Triggers
Mar 09, 2017
By
Jeremy Smith
Hi everyone - I know I could figure this out eventually, but my bandwidth is low and I am on a time crunch, and you guys are always amazing!
I added a custom pause button. Just a picture that I googled. I added the following triggers:
1. Pause timeline when the user clicks the picture
2. Change state of picture to pause when the user clicks
3. Resume timeline when the user clicks IF the picture is equal to paused
My problem is that it is pausing and un-pausing in the same action. In other words, I click once and you can hear it pause for a milli-second and un-pause as well. What am I missing?
Thanks!
11 Replies
change it up a little insert your picture and ad a selected state change image in selected state.
Add trigger to pause timeline when user clicks on condition state is not equal to selected
Add second trigger to resume timeline when user clicks on condition state is equal to selected ensure triggers are in that order
That worked! Thanks so much!
Glad you got it working!
One issue - for some reason, the first time you click on it on a slide, it wont pause. you have to click twice THE FIRST TIME ONLY (per slide) to get it to work. thoughts?
Try moving the order of the triggers I think I always have the initial state as selected so switching trigger order should fix it
Sent from my iPhone
Hello,
Is it the right place and the good time to ask for you help for the same topic ?
I've tried to follow your eplanations but il still doesn't work for me.
If needed, I can send you my .story file.
Thanks
If you read the original post carefully, you can see why it didn't work for Jeremy. All of the triggers that are connected to an action are executed every time the action occurs. So no matter the state of the picture when clicked, step 1 will always pause the timeline. If the picture is in any state other than pause, step2 will set it to "pause". If the picture is originally in the pause state, step 2 will leave it in pause. So no matter what state the picture is in when clicked, by the time you get to step 3, it will always be in pause state. Step 3 will always unpause it.
Phil's suggestion works because he used the magic of the built-in state "Selected". No matter the state of the picture when you click it, if it has a state named "Selected", it will automatically use its built-in magic to change to the other state. Then you can create a trigger to pause the timeline if the state is selected, and another one to unpause the timeline if the state is Normal. But it only works for these two state: "Normal" and "Selected", and only if you don't create triggers to change to or from the "Selected" state.
If that doesn't clear it up for you, it would help if you can send a file.
The problem is the same as Jeremy mentioned. I have succeeded in adding my triggers correctly in the right order, but i need to clck 2 times to make it work correctly.
Is it also possible to make the button change its state to normal when i click on it just after pausing the timeline ?
Sorry, the file is in French.
The first thing that happens when you click the button is that its state is set to selected, then the triggers you created are executed. So the first time you click it, it is = to Selected, and does not pause. After that, every click changes whether it is paused or playing. Reverse the conditions on the two triggers, and it will work the first click. Remember the state changes first, so the conditions don't find button in the state it was before the click, but after.
Once you click it, it changes to Visited state, which shows over both Normal and Selected, and is a persistent state. Delete the visited state, and you will be able to see it change from Selected to Normal.
Remember that clicking on the video will pause the video, but not the timeline.
Thank you for your help. It works indeed.
Thanks Virginie for popping back in to let us know that Walt was able to help you out here :)
Welcome to E-Learning Heroes as well!
This discussion is closed. You can start a new discussion or contact Articulate Support.