Skip to main content
Participating Frequently
November 17, 2013
Question

Playing Smart Shape Audio Only When Clicked

  • November 17, 2013
  • 1 reply
  • 1059 views

I’m working on a project in Captivate 6 that has a lot of audio usage. When a slide begins, an audio file plays automatically. There are also two visible buttons per slide, made from smart shapes, that each contain a different audio file. After the learner clicks one of the smart shape buttons, I need it to play an audio file in response to the learner’s answer.

The problem I’m having is that both the slide audio and the two buttons’ audio begin playing concurrently when the slide begins (an auditory triple exposure). Can an advanced action be created to pause the smart shape button audio so it won’t play until the button is clicked?

NOTE: I tried attaching the button audio files to success captions (which are connected to the smart shape buttons) to cause them to wait until clicked before playing. This worked successfully, but this also is problematic. If the second success caption is clicked before the audio from the first one is done playing, they both play at the same time. If there was a way to apply advanced actions to success captions to fix this, that would be great, but, I don’t see any options in the properties window.

Is there a solution to my problem?

This topic has been closed for replies.

1 reply

Legend
November 17, 2013

Hi

Execute the following advanced action on clicking the smartshape button.

Stop triggered audio

Play audi <audio file>

To stop the slide audio on clicking the smartshape button, select the Stop slide audio > When Clicked check box from the Audio accordion of smartshape buttons.

Sreekanth

Lilybiri
Legend
November 17, 2013

@Sreekanth  You have a superfluous command. No need to stop a triggered audio when you want to play another audio clip. Both statements/commands are designed so that you can only play one audio clip at the same time, which means that 'Play Audio...' will automatically stop the former audio clip. However the slide audio can not be stopped with Stop Triggered audio. Did you check your solution? Slide audio can not be controlled separately, you can only mute it with cpCmndMute. But that will mute all audio.

@5deMayo (significance of that nickname is puzzling?) If you want to be able to control the slide audio, you have to get rid of the slide audio and use the Play Audio command on entering the slide. Use that same command to add to the advanced action triggered by the shapes. No need to add the command Stop Triggered Audio, which is only necessary when you want to stop an audio clip without starting another one.

Have a look at: http://blog.lilybiri.com/statements-advanced-actions-in-captivate-6-li

Lilybiri

5deMayoAuthor
Participating Frequently
November 24, 2013

Thanks, Lieve. It helped a lot to read your description about the "Play Audio" action, and Stop Triggered Audio. I would like to add one note for anyone else that might be having the same problem I had.

While pondering what you and Sreekanth posted to help me, I realized that the solution for keeping the smartshapes from playing upon entering the slide was very simple. I needed to assign the "Play Audio" action to each smartshape that plays a file, and then select the desired audio file by clicking on the little folder icon to the lower right of the "On Success" dropdown menu. That action keeps the smartshape files from playing until they are clicked, and also, one stops when the other one is clicked. That's just what I needed. Thank You!