# Playing one sound while stopping the others

**URL:** <https://forum.kirupa.com/t/playing-one-sound-while-stopping-the-others/282776>\
**Category:** flash\
**Created:** [February 26, 2009, 10:23am UTC](https://forum.kirupa.com/t/playing-one-sound-while-stopping-the-others/282776 "2009-02-26T10:23:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![koneko](https://avatars.discourse-cdn.com/v4/letter/k/f6c823/32.png) [@koneko](https://forum.kirupa.com/u/koneko)\
**Post date:** [February 26, 2009, 10:23am UTC](https://forum.kirupa.com/t/playing-one-sound-while-stopping-the-others/282776/1 "2009-02-26T10:23:08Z")

</div>

Hi, I’m stuck while trying to playing some sound and stopping the others.  
What I do is : I’m using a linkage to get access to my sound. For example I have 5 linkage sound. I need to play just one specific sound and stop the others. I create a new Sound() and a new SoundChannel() for each one , and put it all in Array.  
But when I’m trying to stop the others by stopping it’s channel, it won’t work:  
The snippet is somewhat like this :

```auto
for(i=0;i<song_.length;i++)
{
       if(snd==song_*.clas)
           song_*.sound.play(0, loopz);
       else
           song_*.chanel.stop();
}

```

I have an array of object that have a sound and channel for each one.  
Anyone could help?  
tHx for any.
