# Stopping a sound

**URL:** <https://forum.kirupa.com/t/stopping-a-sound/327983>\
**Category:** Uncategorized\
**Created:** [April 10, 2012, 10:05pm UTC](https://forum.kirupa.com/t/stopping-a-sound/327983 "2012-04-10T22:05:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ieuan](https://avatars.discourse-cdn.com/v4/letter/i/e8c25b/32.png) [@Ieuan](https://forum.kirupa.com/u/Ieuan)\
**Post date:** [April 10, 2012, 10:05pm UTC](https://forum.kirupa.com/t/stopping-a-sound/327983/1 "2012-04-10T22:05:24Z")

</div>

i’m using this a tutorial of republic of code to play sound and it works well for short sounds on there own however i’m trying to stop a song from playing when i click a button but i dont understand how it works. i know i have to use SoundChannel Class but i dont know what this is or how to use it.

i use this to play my sounds.

var mySound2:Sound = new BgSong();  
mySound2.play();

how would i get this to work using SoundChannel Class im confused. if anyone could point me in the direction it would be great.
