Skip to main content
hartz
Inspiring
July 16, 2020
Question

Mute Toggle for multiple Audio tracks

  • July 16, 2020
  • 1 reply
  • 246 views

I have 5 videos that play on my timeline.  Each video has a separate audio track on a separate layer. (Forgive me, I'm still used to AS2 and this is how my brain works).  The audios are in the library.  I want 5 buttons to appear on the stage that will toggle each audio on or off.  So perhaps I will have 2 playing, 5 playing 1 playing 0 playing.  Can anyone help with the code for this?  The audios are called  Clip1Audio, Clip2Audio, etc.

 

 

    This topic has been closed for replies.

    1 reply

    Joseph Labrecque
    Community Expert
    Community Expert
    July 17, 2020

    Depends on the platform. Which are you targeting? If HTML5 Canvas, see the following documentation: https://createjs.com/docs/soundjs/modules/SoundJS.html