Skip to main content
Inspiring
Aug 12, 2025 2:32 PM UTC
Question

Stop sound commands dont work after repeating same action 2 times

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?

    5 replies

    kglad
    Community Expert
    Community Expert
    Aug 12, 2025 2:43 PM UTC

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

    Translate
    Inspiring
    Aug 15, 2025 10:46 PM UTC

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

    Translate
    kglad
    Community Expert
    Community Expert
    Aug 15, 2025 10:49 PM UTC

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

    Translate