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
Steve Flowers

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.


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.

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