# Looping sounds

**URL:** <https://forum.kirupa.com/t/looping-sounds/160312>\
**Category:** Uncategorized\
**Created:** [August 25, 2005, 12:56am UTC](https://forum.kirupa.com/t/looping-sounds/160312 "2005-08-25T00:56:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![funkyMonk](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/funkymonk/32/1684_2.png) [@funkyMonk](https://forum.kirupa.com/u/funkyMonk)\
**Post date:** [August 25, 2005, 12:56am UTC](https://forum.kirupa.com/t/looping-sounds/160312/1 "2005-08-25T00:56:06Z")

</div>

hey there,

i’m trying to create a website sound track by using one simple loop that plays itself immediately after it’s finished in order to sound seamless like it’s was just one big sample.

my problem is when i use a sound attached to the time line using gotoAndPlay(1); there is always a little hiccup before the sound starts again making it sound bad

i’m reading to use this code instead

```auto

mySound = new Sound(this); 
mySound.attachSound("loop1");
mySound.start();
mySound.onSoundComplete = function(){
	mySound.attachSound("loop1");
	mySound.start();
};

```

but it still has a hiccup EXACTLY like using the timeline does.

UGH!

any ideas?

thanks,

-mikey
