# AS3 Sound won't stop

**URL:** https://forum.kirupa.com/t/as3-sound-wont-stop/320722
**Category:** flash
**Created:** [March 31, 2011, 8:17am UTC](https://forum.kirupa.com/t/as3-sound-wont-stop/320722 "2011-03-31T08:17:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![IMPtheIMP](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@IMPtheIMP](https://forum.kirupa.com/u/IMPtheIMP)
#### Post date: [March 31, 2011, 8:17am UTC](https://forum.kirupa.com/t/as3-sound-wont-stop/320722/1 "2011-03-31T08:17:14Z")

</div>

Hey guys,

I have a problem concerning sound. Sound and AS3 to be more specific.

Please forgive my shoddy description of the problem, but here it is:

How do I stop() an AS3 INTERNAL sound from another movieclip?

This following Audio-code is on a movieclip within a (Base)movieclip. It stops playing/looping when a button is pressed that gotoAndStops on another frame within the same (Base)movieclip. But when a button is pressed outside the movieclip and (Base)movieclip, which gotoAndStops on another movieclip on the timeline, it continues playing.

> var mySound:Sound = new Squish3();  
> var myChannel:SoundChannel = new SoundChannel();  
> myChannel = mySound.play();

Here is my lame attempt at a visual aid, but I thought it may help explain where I’m coming from:

> Timeline \> A1 Movieclip \> B1 Movieclip  
> Sound plays, movieclip loops

Timeline \> A1 Movieclip \> Button1 (click)

Timeline \> A1 Movieclip \> B2 Movieclip  
Sound stops playing

But if I click the following button instead:

Timeline \> MenuMovieclip \> MenuButton2 (Click)

Timeline \> B1 Movieclip \> C1 Movieclip  
Sound continues to loop

Any suggestions would be greatly appreciated, as I am severely low on time.
