# Looping an mp3

**URL:** <https://forum.kirupa.com/t/looping-an-mp3/52072>\
**Category:** Uncategorized\
**Created:** [May 19, 2004, 5:46pm UTC](https://forum.kirupa.com/t/looping-an-mp3/52072 "2004-05-19T17:46:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tattered](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@Tattered](https://forum.kirupa.com/u/Tattered)\
**Post date:** [May 19, 2004, 5:46pm UTC](https://forum.kirupa.com/t/looping-an-mp3/52072/1 "2004-05-19T17:46:12Z")

</div>

How can I loop my mp3 in my main menu so that it keeps playing until a button is clicked. I have the buttons working I am just not sure how the looping works.  
Here is my code from what I have done.

```auto

mySong = new array("Ready For You - new.mp3");
mySound = new Sound(this);
mySound.loadSound(mySong, true);

function stopTrack() {
	mySound.stop();
}

```
