Skip to main content
Participant
May 2, 2021
Answered

Play Audio only Drag Source is clicked

  • May 2, 2021
  • 1 reply
  • 316 views

Hello! 

I was wondering if there was anyway to trigger audio for a drag source only when you click on it. For example, there is an image of a dog when you press it the audio plays “dog”, then you proceed drag it to the drop target. I know there is a way to add audio after the drag source has successfully dropped to the target.

 

I’ve been able to get audio to appear when you click the drag source by putting audio in the properties tab. However this also causes audio to go off as soon as the slide image appears. I also tried placing a button under the drag source, but the button doesn't play if its underneath the drag source. 

I would appreciate any guidance at all, I’m trying to help a team member! 

This topic has been closed for replies.
Correct answer Lilybiri

You may ignore that all drag sources and drop targets have InBuilt states. One of those states for drag sources is 'DragStart'. If you add that state, you can use the Options tab for that state to add an audio. I have double-checked: clicking the drag source is apparently seens as start of dragging, so the audio will play. Prerry easy, right?

More about the InBuilt states for the D&D objects in:

Built in States for Drag&Drop objects - eLearning (adobe.com)

 

1 reply

Lilybiri
LilybiriCorrect answer
Legend
May 2, 2021

You may ignore that all drag sources and drop targets have InBuilt states. One of those states for drag sources is 'DragStart'. If you add that state, you can use the Options tab for that state to add an audio. I have double-checked: clicking the drag source is apparently seens as start of dragging, so the audio will play. Prerry easy, right?

More about the InBuilt states for the D&D objects in:

Built in States for Drag&Drop objects - eLearning (adobe.com)

 

Participant
May 2, 2021

Thank you so much that worked! I'm very new to captivate and I greatly appreciate your guidance. The article helped me a lot as well.

Lilybiri
Legend
May 3, 2021

To close the thread, if your question got an answer, please mark that answer as Correct answer!