Skip to main content
Inspiring
August 12, 2025
Question

Stop sound commands dont work after repeating same action 2 times

  • August 12, 2025
  • 1 reply
  • 112 views

Im making a huge html5 canvas project. I have noticed something. I have some sounds playing. One sound plays then when user clicks on the button another one plays. If i click back the second sound turns off and the first sound plays. If i repeat this 2 times the second sound dissappears for some reason. This occurs only when open the file locally. This is not happening when opening through Adobe Animate. Why? Should i provide which codes i use?

    1 reply

    kglad
    Community Expert
    Community Expert
    August 12, 2025

    there are browser restrictions if you open a html file locally. check the developer console to see.

    Inspiring
    August 15, 2025

    Will these browser restrictions dissappear if i publish my canvas online for everyone to see?

    kglad
    Community Expert
    Community Expert
    August 15, 2025

    if they're because of a cross-domain violation, yes.