Buttons, Triggers and Video
Nov 13, 2012
By
Luke Dart
Hi All
I'm looking for a solution to a problem that I just can't work out,
I have a button that I have set to a down state once clicked, if I let go of the button it returns to it's normal state. I also want to play a video when the button is in the down state and be paused as the button is let go. (the video is of a door opening if the button is pressed, if it is let go it needs to stop)
Does anyone have any ideas?
Thanks
14 Replies
Hi Luke,
How about this.
Add 2 triggers on your button
Trigger 1
Action: Play media
Media: your video
When: State (select your button)
is: Select Down
Trigger 2
Action: Pauze or Stop media
Media: your video
When: State (select your button)
is: Select Normal
Cheers
geert
I've run into this same problem before as well.
It works beautifully, one time. Press the button down, video plays, release the button and video pauses. After that it seems like the video does not respond to the down state of the button.
It seems like it would be (and should be) simple to set button state down = play, button state normal = pause, but I haven't been able to get it to work.
Thanks, I tried that but the video doesn't pause.
Any other thoughts?
Luke, I've been able to get it to work one time by removing the visited state of the button and just using button state = normal. Set the pause trigger on the video (pause media if button state = normal). Add the down state trigger to the button.
How about with a mouseover?
Great suggestion Gerry. Using a play media when mouse hovered over button trigger makes the video play everytime the mouse is over the button, and stops the video every time the mouse moves away from the button.
The only pain is that the video restarts from the beginning each time the mouse moves back over the button, but if this is what you were aiming for then this would work.
Don't know why I didn't think of using that before - great suggestion Gerry!
Hi Brian, I also have been able to get it to work once by adding a diffferent state unfortinuatly for what I need is a natural button feel by pressing it down and the video will play, releasing the button pauses it and continuing in that fashion.
Gerry, Thanks but a mouse over won't work for the reasons above, we need to get the most realistic feel possible.
Thanks for taking the time in helping me out, I have a couple more ideas to try now I have it working once but please keep thinking
I've actually had issues with the default button states. If something in the slide requires a button to be in a certain state and the default states are used then all sorts of weird stuff happens or the trigger doesn't work. I usually just remove the states and create my own uniquely named states.
Thanks!
How about with a layer that pauses the base layer?
On the base layer, the button opens the layer.
On the layer, it's just a copy of the button and covers up the same button on the base layer. Clicking that button on the layer just closes that layer.
If I can clarify, the video is of some doors opening while the button is pressed, if it is released the doors stop...you have to keep holding the button down for the doors to open fully.
But you have given me a Plan B which never crossed my mind so thanks
Interesting, thanks for the tip, I'll give it a go
Thanks for all your help guys, I have now come up with something that works.
I want to do something really basic. Click on the button and the video plays. I do not want the video to appear until the button is clicked. IF I set the button to play a trigger to play the video it appears on the screen
Hi Joesphine,
Why don't you put the video on a layer.
When you click your button you show the layer
Cheers
Geert
This discussion is closed. You can start a new discussion or contact Articulate Support.