Skip to main content
ReginaAeternam
Participating Frequently
Nov 29, 2018 3:56 AM UTC
Question

Stopping audio after changing scenes.

Hello,

I am trying to stop my audio from playing when I change a scene. My audio files are imported MP3 files into my library. I will admit that I am pretty lost on how to make them stop. I've tried changing it to a stream and that doesn't really work. Every post I have found about this kind of goes over my head or they don't post the code so I can't apply it to my own code. I don't how how to make a sound channel or how to edit the sound channel instance. Also, I know how crappy scenes are, you don't have to tell me.

Any help would be appreciated.

Thanks in advance!

This topic is closed to new replies. Start a new post to keep the conversation going.

12 replies

Participant
Apr 28, 2022 10:00 PM UTC

How did you solve this problem? I'm facing it right now 

Translate
Community Expert
May 12, 2022 1:00 AM UTC

Make sure you are using stream not event. After the sound plays it should stop on its own. 

Translate
kglad
Community Expert
Community Expert
Nov 29, 2018 2:29 PM UTC

you can always use:

SoundMixer.stopAll()

to stop all sounds.  this is especially helpful when you don't understand what you're doing and don't care to learn.

if that's not what you want to do and/or that doesn't apply to you, how is your sound added to your swf?  using code?  using the timeline?

Translate
ReginaAeternam
Participating Frequently
Nov 29, 2018 5:31 PM UTC

I have the sound in the timeline on it's own layer. I have tried that and it doesn't seem to work.

I would love to learn how to do this but I frankly don't have the time. This assignment that I am using this for is due in a few days.

Translate
kglad
Community Expert
Community Expert
Nov 29, 2018 7:11 PM UTC

as3 or javascript?

Translate