# Loop sound with Actionscripts?

**URL:** https://forum.kirupa.com/t/loop-sound-with-actionscripts/542
**Category:** flash
**Created:** [July 22, 2002, 7:10am UTC](https://forum.kirupa.com/t/loop-sound-with-actionscripts/542 "2002-07-22T07:10:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![johan](https://avatars.discourse-cdn.com/v4/letter/j/dec6dc/32.png) [@johan](https://forum.kirupa.com/u/johan)
#### Post date: [July 22, 2002, 7:10am UTC](https://forum.kirupa.com/t/loop-sound-with-actionscripts/542/1 "2002-07-22T07:10:31Z")

</div>

Hi there,  
does anyone know how to loop sound (external mp3 file) with actionscripts?

my code are like this:

* * *

## mySound = new Sound(); mySound.loadSound(“bubblor.mp3”, true);

it works like a charm, then i tried to loop it with this:

* * *

## mySound.start(1,8)

but it aint working, does anybody knows why and how to loop it?

(maybe it isnt possible, i dont know.)

thanks for any advise/help.

/J

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 22, 2002, 8:37am UTC](https://forum.kirupa.com/t/loop-sound-with-actionscripts/542/2 "2002-07-22T08:37:35Z")

</div>

are you trying to loop it for infinity times or for a specific number of loop?

because under the properties panel, there is a place for you to set the number of loop for the sound.

if its for infinity, maybe you can try using gotoAndPlay() at the last frame of the audio.

hope it helps…not so sure myself…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 22, 2002, 2:55pm UTC](https://forum.kirupa.com/t/loop-sound-with-actionscripts/542/3 "2002-07-22T14:55:36Z")

</div>

Your code:

mySound.start(1,8)

This should start your sound with a 1 second delay (the “1”) and loop it 8 times. If you take the 1 and 8 out, does the sound start okay?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 23, 2002, 4:23am UTC](https://forum.kirupa.com/t/loop-sound-with-actionscripts/542/4 "2002-07-23T04:23:22Z")

</div>

You can’t use the start() method on streaming sounds. I don’t know if it is possible to do anything about it. I’ll check.

pom :asian:
