Custom Pause Button--I'm missing something in my Triggers

Mar 09, 2017

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
Walt Hamilton

 

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.

Virginie Borras

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.

Walt Hamilton

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.

This discussion is closed. You can start a new discussion or contact Articulate Support.