Skip to main content
Spamhunter
Inspiring
February 21, 2018
Answered

Text captions with embedded audio, display/Play: close at end

  • February 21, 2018
  • 1 reply
  • 624 views

Hi,

I have several clickboxes on one slide that open textboxes with embedded audio. They are all configured identically, but I have a few issues -

  1. The textboxes don't close at the end of the audio, although their "Display for" time is set to the "Specific time" of the audio duration. (They're all set to "invisible").
  2. The audio doesn't stop playing if I click on a different clickbox, so I have two audios playing at once.
  3. Also, if I play e.g. from clickbox 4, the textbox won't close when I play from clickbox 3; there seems to be a hierarchy. How do I get all other clickbox actions to close when I click on a different clickbox?
  4. Once one textbox has played and finished, I can't play it again (although "infinite attempts" is ticked)

Any tips for any of the above will be appreciated.

    This topic has been closed for replies.
    Correct answer Lilybiri

    Can you tell me what your meaning is for a 'textbox'? Are you talking about a Text Caption, a shape filled with text or a Text Entry Box?

    Object audio cannot be stopped by any command, contrary to Play Audio command. If you don't want to have two audio clips at the same time, you have to replace the object audio by the commad 'Play Audio' which you can trigger in an advanced or shared action where you also show the text 'box'. An Audio clip started with that command will be stopped automatically when a new audio clip is started with a similar command.

    To hide all text containers when a new one is opened, there are two ways:

    • Group the text containers, and use these commands in an advanced (or shared) action
            Hide Group
            Show Text
            Play Audio
    • I have no idea which version you are using, but another approach is to use states within one shape with the different texts and change states when clicking instead of hiding and showing.

    You show for a specific time, but I strongly suspect that you have some issues with understanding the timeline. SInce you have several click boxes that can be clicked in any sequence, you cannot use the Timing panel, but will have to use the Delay Next actions command, and add the time to wait. Or add a close button, which can be a hyperlink as I explained in this blog post:

    More is in a...hyperlink - Close button - Captivate blog

    1 reply

    Lilybiri
    LilybiriCorrect answer
    Legend
    February 21, 2018

    Can you tell me what your meaning is for a 'textbox'? Are you talking about a Text Caption, a shape filled with text or a Text Entry Box?

    Object audio cannot be stopped by any command, contrary to Play Audio command. If you don't want to have two audio clips at the same time, you have to replace the object audio by the commad 'Play Audio' which you can trigger in an advanced or shared action where you also show the text 'box'. An Audio clip started with that command will be stopped automatically when a new audio clip is started with a similar command.

    To hide all text containers when a new one is opened, there are two ways:

    • Group the text containers, and use these commands in an advanced (or shared) action
            Hide Group
            Show Text
            Play Audio
    • I have no idea which version you are using, but another approach is to use states within one shape with the different texts and change states when clicking instead of hiding and showing.

    You show for a specific time, but I strongly suspect that you have some issues with understanding the timeline. SInce you have several click boxes that can be clicked in any sequence, you cannot use the Timing panel, but will have to use the Delay Next actions command, and add the time to wait. Or add a close button, which can be a hyperlink as I explained in this blog post:

    More is in a...hyperlink - Close button - Captivate blog

    Spamhunter
    Inspiring
    February 21, 2018

    Thanks. It's Captivate 10. Yes, they are Text Captions, set to display when the Clickbox is clicked.

    I can create a Group, with Hide Group, but should Show Text apply to Group too? Play Audio also requires a specific audio file. How do I make Play Audio apply to whichever Text Caption is activated?

    I understand that the Timeline doesn't apply as a sequence. I'll look for the Delay Next, but I don't think my client would want a close button, but it may be a necessary option.

    Lilybiri
    Legend
    February 21, 2018

    I posted that shared action as the most easy example many years ago in Dare to Share - part 1 - Captivate blog .

    I label it Hide1Show1. You first hide the group which means all the texts, than you show the appropriate text.  You don't show the group, although you could do that as well with the same shared action, but in this case that has no sense at all.

    Shared actiobn will be:

        Hide Group      group is the first parameter

        Show Text_x      Text_x is the second parameter

        ​Play Audio_x      Audio_x is the third parameter