# Looping Music In AS 2.O

**URL:** <https://forum.kirupa.com/t/looping-music-in-as-2-o/231031>\
**Category:** flash\
**Created:** [July 1, 2007, 12:52pm UTC](https://forum.kirupa.com/t/looping-music-in-as-2-o/231031 "2007-07-01T12:52:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xploside](https://avatars.discourse-cdn.com/v4/letter/x/74df32/32.png) [@Xploside](https://forum.kirupa.com/u/Xploside)\
**Post date:** [July 1, 2007, 12:52pm UTC](https://forum.kirupa.com/t/looping-music-in-as-2-o/231031/1 "2007-07-01T12:52:10Z")

</div>

This is the actionscript I have for a mute button. When clicked the sound waves (sound\_art) disapears and sound is stopped. All i need to know is what should i put were to make the “tune” loop itself. Thanks guys.

```auto
 on (release)
{
if (mute == false)
{
mute = true;
sound_art._visible = false;
stopAllSounds();
}

else
{
mute = false;
sound_art._visible = true;

music = new Sound(mute_btn);
music.attachSound("tune");
music.start (0,20);
}
}

```
