Skip to main content
Participating Frequently
November 29, 2016
Answered

I can't stop sound on html 5 canvas

  • November 29, 2016
  • 1 reply
  • 1384 views

hi

on my animation I ve a sound on all my movie... when I publish the movie the movie is looping but the sound don't stop and several sounds superimposed

Thanks for your answer

Best regards

    This topic has been closed for replies.
    Correct answer Colin Holgate

    Thinking about it, maybe that should be a publishing option: "Stop sounds on loop". There are going to be some number of people who are just making animations and don't want to type a single line of code.

    1 reply

    UDESCO
    Adobe Employee
    Adobe Employee
    November 29, 2016

    You can use the following code to stop all sounds playing at the last frame:

    createjs.Sound.stop();

    Colin Holgate
    Colin HolgateCorrect answer
    Inspiring
    November 29, 2016

    Thinking about it, maybe that should be a publishing option: "Stop sounds on loop". There are going to be some number of people who are just making animations and don't want to type a single line of code.

    Participating Frequently
    November 29, 2016

    the action " createjs.Sound.stop(); " is ok

    Thanks

    Yes it's sure it will be nice if I can do animation without code, I ve used flash with actionscript, but I use it with a minimal line of code. I don't want learn coding with animate on html canvas.

    Il will be great to have the main simple action on a visual editor for simple " motion designer" it will be a dream !