# Trying to stop a sound channel from a movieclip

**URL:** <https://forum.kirupa.com/t/trying-to-stop-a-sound-channel-from-a-movieclip/323917>\
**Category:** Uncategorized\
**Created:** [July 24, 2011, 8:36am UTC](https://forum.kirupa.com/t/trying-to-stop-a-sound-channel-from-a-movieclip/323917 "2011-07-24T08:36:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivant](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@sivant](https://forum.kirupa.com/u/sivant)\
**Post date:** [July 24, 2011, 8:36am UTC](https://forum.kirupa.com/t/trying-to-stop-a-sound-channel-from-a-movieclip/323917/1 "2011-07-24T08:36:00Z")

</div>

i created a sound channel that starts to play i sound when a movieclip opens:

```auto
var sound1:Sound1;
var _soundChannel2:SoundChannel;
sound1= new Sound1();
this.openPop_btn.addEventListener(MouseEvent.CLICK, pop1Handler);

function pop1Handler(event:MouseEvent):void
{
    event.target.alpha = 0;
    TweenIn = new Tween(popUP1_mc,"alpha",None.easeNone,0,1,1,true);
    _soundChannel2 = sound1.play();
    }

```

this code fades in a movieclip named ‘popUp1\_mc’. inside this Clip i have a close button that closes the clip:

```auto
function closeWindow(event:MouseEvent):void
{
    
    MovieClip(this.parent).openPop_btn.alpha = 1;
    MovieClip(this.parent).popUP1_mc.alpha = 0;
_soundChannel2 = sound1.play();
}

```

this:\_soundChannel2 = sound1.play(); is a mistake ! how do i connect with the sound  
from inside the Clip??  
:\*(
