Skip to main content
jamien80823847
Participating Frequently
February 5, 2019
Answered

Disable buttons while audio is playing for another button

  • February 5, 2019
  • 1 reply
  • 910 views

Hi Everyone,

I've created an interaction where participants can click 6 different buttons, each button allows a different object to appear and audio will play. Is there a way to disable the 5 other buttons while the audio for the clicked button is play and then enable them again when the audio is over and the object disappears again?

This topic has been closed for replies.
Correct answer Lilybiri

Which version are you using?  I suspect yoy are using a shared action for the buttons, something like:

    Show  Image

     Play Audio

Or are you using object audio, audio attached to the image?

You cannot disable a group, which is a pity, but you can hide a group. Is it really neessary that the buttons remain visible?

One of the solutions could be to use the Delay Next Actions command:

    Show Image

     Play Audio

     Hide Gr_Buttona

     Delay Next actions by  x  seconds        where x is the duration of the audio clip

     Show Gr_Buttons     

      Hide Image

If you want to have the buttons remaining visible, you have to replace the Hide command by Disable, one for each of the buttons, and the Show by Enable commands for the buttons.

1 reply

Lilybiri
LilybiriCorrect answer
Legend
February 5, 2019

Which version are you using?  I suspect yoy are using a shared action for the buttons, something like:

    Show  Image

     Play Audio

Or are you using object audio, audio attached to the image?

You cannot disable a group, which is a pity, but you can hide a group. Is it really neessary that the buttons remain visible?

One of the solutions could be to use the Delay Next Actions command:

    Show Image

     Play Audio

     Hide Gr_Buttona

     Delay Next actions by  x  seconds        where x is the duration of the audio clip

     Show Gr_Buttons     

      Hide Image

If you want to have the buttons remaining visible, you have to replace the Hide command by Disable, one for each of the buttons, and the Show by Enable commands for the buttons.

jamien80823847
Participating Frequently
February 5, 2019

I'm using captivate 9 and using the object audio with the button's action set to "show." Would the Delay Next Actions command work for this set up?

Lilybiri
Legend
February 5, 2019

Sorry, don't have CP9 anymore. Can you check in the Advanced Actions dialog box if it is available?