Sounds on mouse clicks
Jun 21, 2012
I added a trigger to a button. The trigger plays media (a .wav file of a click sound) when the user clicks the mouse on the object (button). I can't seem to get the timing right. When I play the sample of the sound it sounds right. When I preview the file it works correctly. But when I preview the entire project and click on the button the presentation jumps to the next slide (another trigger on the button) but the sound doesn't play. It seems like I hear the sound after the next slide starts but I'm not positive about that because there's audio on that slide as well.
5 Replies
Hey, Steve -
You might want to make your button trigger a layer that relays an action when the timeline of the layer ends to make sure the sound plays before a new slide is loaded.
Example:
Button Triggers:
set variable bAction = 1
show layer soundRelay
on the sound relay layer:
1) Your audio
2) A trigger set that executes a command based on the value of bAction. For example, jump to page X when the timeline ends if bAction==1 -- show layer Y when the timeline ends if bAction == 2, etc..
This allows you to use the same layer to run your audio for different button functions.
Hi Steve S.,
You could also set the trigger to jump to the slide when the media completes (at the end of the click sound).
On that image the button 2 trigger is useless, you can just forget it.
Hope it helps, have a nice day!
Annie
That should work nicely. I was thinking of multiple buttons on a slide using the same sound. Multiple ways to pull it off. I like the simplicity of your suggested method
Well, thank you Steve,
You are right about using multiple buttons with multiple destinations... this solution would become rapidly overwhelming unless the first button and all its triggers is duplicated.
Have a nice day!
Thanks for all of the replies. Annie's suggestion worked but there are four buttons on the screen and each sends users to a different scene. Since I want to use the same sound for each button but send users to a different place I think I'll try Steve F's suggestion. It sounds like it will save some work.
This discussion is closed. You can start a new discussion or contact Articulate Support.