# Sound looping question

**URL:** https://forum.kirupa.com/t/sound-looping-question/14328
**Category:** Uncategorized
**Created:** [February 25, 2003, 4:06am UTC](https://forum.kirupa.com/t/sound-looping-question/14328 "2003-02-25T04:06:13Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![pares101](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@pares101](https://forum.kirupa.com/u/pares101)
#### Post date: [February 25, 2003, 4:06am UTC](https://forum.kirupa.com/t/sound-looping-question/14328/1 "2003-02-25T04:06:13Z")

</div>

whats the actionscript code to tell a .mp3 to loop infinite times?

i want it to load and to loop infinite times

---

<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: [February 25, 2003, 4:16am UTC](https://forum.kirupa.com/t/sound-looping-question/14328/2 "2003-02-25T04:16:03Z")

</div>

I think you can only loop it up to 99 times or something.

---

<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: [February 25, 2003, 5:24am UTC](https://forum.kirupa.com/t/sound-looping-question/14328/3 "2003-02-25T05:24:50Z")

</div>

i don’t know if what **lost** stated is true or not but maybe …

```auto
mySound.onSoundComplete = function () {
	mySound.start();
}

```

---

<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: [February 25, 2003, 5:30am UTC](https://forum.kirupa.com/t/sound-looping-question/14328/4 "2003-02-25T05:30:25Z")

</div>

I don’t know if what I said is true either :-…LOL.

---

<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: [February 25, 2003, 5:32am UTC](https://forum.kirupa.com/t/sound-looping-question/14328/5 "2003-02-25T05:32:09Z")

</div>

lol … i’ll tell you then 😉

it works :beam:

---

<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: [February 25, 2003, 5:36am UTC](https://forum.kirupa.com/t/sound-looping-question/14328/6 "2003-02-25T05:36:28Z")

</div>

Hmm, I coulda swore there was no infinite way, because don’t you have to add parameters to the start()?

start(offset, loop#) ???

And I am not sure it only goes up to 99, you might be able to go past that, but looping infinitely I am not sure of.

---

<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: [February 25, 2003, 5:39am UTC](https://forum.kirupa.com/t/sound-looping-question/14328/7 "2003-02-25T05:39:57Z")

</div>

both **secondoffset** and **loop** are optional parameters 🙂

---

<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: [February 25, 2003, 5:44am UTC](https://forum.kirupa.com/t/sound-looping-question/14328/8 "2003-02-25T05:44:44Z")

</div>

Ok. Can you tell I never work with the sound object :sleep:

---

<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: [February 25, 2003, 5:48am UTC](https://forum.kirupa.com/t/sound-looping-question/14328/9 "2003-02-25T05:48:41Z")

</div>

ehmm … me neither 😛

but i like to open the as dictionary every now and then … =)

---

<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: [February 25, 2003, 5:51am UTC](https://forum.kirupa.com/t/sound-looping-question/14328/10 "2003-02-25T05:51:30Z")

</div>

Yeah me too, but the problem with that is a blew a ram chip today somehow and my comp is being retarded.

You try running a pc on 96mb of ram :-\ So I have been trying to avoid opening anything that doesn’t need to be open while I am using the computer.

---

<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: [February 25, 2003, 5:51am UTC](https://forum.kirupa.com/t/sound-looping-question/14328/11 "2003-02-25T05:51:36Z")

</div>

ok , thanks for the help now i have a question regarding the sound stuff… goto

[www.autodaze.com](http://www.autodaze.com)

its my first website so please 🙂 go easy 🙂

see how there is a choose a tune?  
(another flash movie)

and u here people talking in the background why is it when i click stop (its a hidden flash movie)

why is it when i click on the STOP the crowd also stops

for the choose a tune im using thise code

```php

mySound = new Sound();
mySound1 = new Sound();
mySound2 = new Sound();
mySound3 = new Sound();
mySound4 = new Sound();
mySound5 = new Sound();
mySound6 = new Sound();
mySound7 = new Sound();

```

heres the one for the STOP button

```php

on(press) {
if (playing==true) {
playing=false;

mySound.stop()
mySound1.stop()
mySound2.stop()
mySound3.stop()
mySound4.stop()
mySound5.stop()
mySound6.stop()
mySound7.stop()
}
}

```

the way i loaded the crowd is the original clicking the frame and inserting it. any suggestions??

---

<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: [February 25, 2003, 6:02am UTC](https://forum.kirupa.com/t/sound-looping-question/14328/12 "2003-02-25T06:02:51Z")

</div>

i clicked the stop button like one million times and the crowd never stopped :crazy:

> _posted by **lostinbeta** _  
> …  
> You try running a pc on 96mb of ram :-\ …

:-\ … i feel for you ☹

---

<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: [February 25, 2003, 6:05am UTC](https://forum.kirupa.com/t/sound-looping-question/14328/13 "2003-02-25T06:05:53Z")

</div>

well click on a song and then click on the stop itll stop!! watch!! :cyclops:

---

<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: [February 25, 2003, 6:24am UTC](https://forum.kirupa.com/t/sound-looping-question/14328/14 "2003-02-25T06:24:35Z")

</div>

oh … sorry 🙂

honestly … i have no idea 😛

what’s the code for the sound in the main swf ??

---

<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: [February 25, 2003, 6:26am UTC](https://forum.kirupa.com/t/sound-looping-question/14328/15 "2003-02-25T06:26:25Z")

</div>

there is no code, i just clicked on the frame and inserted it.

---

<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: [February 25, 2003, 6:44am UTC](https://forum.kirupa.com/t/sound-looping-question/14328/16 "2003-02-25T06:44:16Z")

</div>

:-\

then again … no idea ☹

… someone will come to the rescue [size=1]i hope[/size] 😉

---

<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: [February 25, 2003, 6:47am UTC](https://forum.kirupa.com/t/sound-looping-question/14328/17 "2003-02-25T06:47:39Z")

</div>

:hangover: :skull: man i sure someone come helps me soon!! 🙂

:q: :q: :q: any takers??

---

<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: [February 26, 2003, 12:14am UTC](https://forum.kirupa.com/t/sound-looping-question/14328/18 "2003-02-26T00:14:22Z")

</div>

HEEEEEEEEEEEEEEEEEEEEEELP MEEEEEEEEE PLEAAAAAAAAASE!!
