Audio auto stop when user selects a different object?

you'll need to know the current file that is playing, then you can put an action on the clicked object with Stop, then set the target to the currently playing audio file. If you have a lot on each page, you might want to incorporate the audio files into a Group, then you can just have one Stop action that stops the group.


So:


audioGroup which contains 5 audio files.


5 buttons, each button plays an audio file from the group.


First action on button,


On: Mouse Click


Action: Stop


Target: audioGroup


Add second action that then plays the file as normal: on: mouse click, Action: play, Target: audio1


 


 


Strangefruit said:I have a course in which each feedback the user can select contains audio...is there a way I can tell Lectora to immediately STOP playing one audio file when the user clicks somewhere else? What happens currently is I get both files playing simulaneously. Thanks.

Discussions have been disabled for this post