Playing audio after slide interaction is complete

Sep 22, 2014

I have a slide with 4 buttons that open up 4 different layers, all having a variable on them that sets to true when a learner opens the layer. When they get back to the base layer, I want narration to play "Select next to continue".

How would I set this up so that it only plays when all interaction as been completed?

37 Replies
Ashley Terwilliger-Pollard

Hi Katie,

You'll want to check the trigger order of your slides - and the "play media" trigger on your layers needs to appear before your "hide layer" triggers, or else the play media trigger will never execute. I made that minor adjustment on your file, and previewing the first slide after i viewed each layer and clicked the "close" button the sound played. 

Mike Enders

Hi Katie,

The key is to target the audio file(s) with a trigger so that you can control when they play.  In the attached file, I'm using a number variable that increments each time a slide layer is closed (signifying that it's been visited).  Once it reaches 4, there is a trigger that plays the 2nd piece of media.

When you target an audio file, you'll notice that it changes on the timeline to "recorded".

This means that it has been targeted by a trigger and is waiting to play.  Whereas Sound 1 in the above image is going to play automatically when the slide begins.

I hope the attached file helps!

Mike

Mike Enders

Hi Katie.

Lightboxes are a different animal.  I'd really recommend placing those slides on layers as it'll give you more control.   In the example I sent, I incremented the variable based upon the closing of the layer.  However, we don't have access to a "lightbox closes" type of trigger, so as a result, we have to increment the variable (as you did) via some other means such as when the timeline starts.   This causes issues then, because the variables have all changed, but the light box is still active (stopping the audio from playing on the main slide).  

Let me think on it and ping some folks to see if it's possible.  It might be, but it's just not jumping into my head at the moment!

Thanks,

Mike

Katie Evans

@Mike Enders -

If you have a number variable that's tracking how many times a learner clicks a button to open a layer on a slide (say 3) but clicks an already opened layer, does that still count as a click? Which will then trigger my second audio to play?

How would I get that to NOT count as a click?

Mike Enders

Katie,

You'd want to add a condition of some sort.  

So for example, let's say that your button has a normal and a visited state.  You could set up a trigger to do something like adjust variable add 1, when user clicks button x IF state of button x is normal.

This way, if they click when the button is visited, it won't increment again when they click that button.

Mike

Mike Enders

Katie,

Two things.

1. The variable incrementing triggers need to be on the base layer (versus the slide layers).  

2. The not equal to was only to be applied to the variable incrementing, not the audio playing.

I've updated the file with my recommended fixes.  Let me know if this does the trick!

Mike

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