Copy link to clipboard
Copied
I'm trying to use a multi-state object to display text when a button is clicked. I have the regular rollover/down states, and a custom state "display text" that displays a text box when clicked.
I want to add audio that plays with the text when the state changes, which I've been able to do. I'm wondering though if it's possible to pause the audio when other buttons are clicked so they don't play over one another? In the past I've used advanced actions with lots of hide/show and to stop the audio I assign CpCmndPause with 1, which works great, but is very cumbersome to do over many slides. The object states simplifies that process so much more, but I don't know if the audio piece is possible.
Thanks!
I think you would find the answer in this blog post:
Pausing Captivate's Timeline - Captivate blog
What you use is Object audio. If you replace it by the Command 'Play Audio', when another audio clip is started, the first one will be stopped automatically which is not the case for Object audio. You will have to replace the simple action 'Change state of' to a short shared or advanced action:
Change state of...
Play audio....
Don't forget to take the audio away from the object.
Copy link to clipboard
Copied
You don't explain HOW you have that audio play? If you use 'Play Audio', it is sufficient to add the command 'Stop triggered audio' to the other buttons, at least if they are on the same slide.
Copy link to clipboard
Copied
Thanks for your reply, Lilybiri!
I have the audio attached to the object in the "display text" custom state. The button is assigned the action "change state of" to "display text." So when the button is clicked, the state changes and the audio plays. The problem is when I click on another button before the audio has had time to finish, then both audio clips play at the same time.
Is the only way around this to use advanced actions and to show/hide text boxes?
Copy link to clipboard
Copied
I think you would find the answer in this blog post:
Pausing Captivate's Timeline - Captivate blog
What you use is Object audio. If you replace it by the Command 'Play Audio', when another audio clip is started, the first one will be stopped automatically which is not the case for Object audio. You will have to replace the simple action 'Change state of' to a short shared or advanced action:
Change state of...
Play audio....
Don't forget to take the audio away from the object.
Copy link to clipboard
Copied
That makes sense, thanks so much!!!