Trying to figure out a trigger to not play sound

May 15, 2013

I have a contents slide that has sound on it and will be visited a few times during the course. What would be the best way to add a trigger to not play sound on other than the first visit?

9 Replies
Antony Snow

Hi Jason,

You could add an off-screen shape to the slide that has the audio on and set the initial state to 'hidden'. Then you could add a trigger that changes the state of that shape to 'normal' when the user clicks on the 'next' button and finally add another trigger that stops the media when the timeline starts on the condition that the shape's state is normal.

When adding these triggers, you will need to ensure that the trigger to change the state of the shape from 'hidden' to 'normal' is above the trigger to jump to the next slide as you will need this action to happen BEFORE the next slide is displayed.

I hope this helps but please feel free to post back if you have any questions.

Antony

Brian Allen

Another option would be to create a variable that defaults to False, but is set to True the first time they view the page.  The trigger that plays the audio would be set to play automatically only if the variable value is False.  This way, when they revisit the page the variable will read True, since they have already been there, and the audio should not play automatically on subsequent visits.

For some help with using variables in triggers you can post back here, and there are some very nice tutorials around using them as well - http://community.articulate.com/tutorials/products/working-with-variables.aspx

sarit chaet

hello, Iv'e applied a similar solution which works.

The problem I still have is that if the audio did not complete playing in the first slide, on returning to the slide the audio plays again.

this is true also to the story file posted here above (just checked).

is there any reason for this behavior? Any way to solve it?

I'm using a "welcome" melody but there's a possibility that learners will not wait it out before jumping to the next slide. In this case, when returning to the menu slide the melody starts again...

Ashley Terwilliger-Pollard

Hi Sarit and welcome to Heroes! 

I'm not sure that Brian is still subscribed to this thread, but you may want to send him a private message. If you could share a bit more about how your Storyline file is set up, we may be able to offer suggestions for how you could pause your slide audio, and you may want to share the .story file here as well. 

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