# Multiple streaming sound manipulation

**URL:** <https://forum.kirupa.com/t/multiple-streaming-sound-manipulation/63151>\
**Category:** flash\
**Created:** [September 3, 2004, 9:22am UTC](https://forum.kirupa.com/t/multiple-streaming-sound-manipulation/63151 "2004-09-03T09:22:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eskimostu](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@eskimostu](https://forum.kirupa.com/u/eskimostu)\
**Post date:** [September 3, 2004, 9:22am UTC](https://forum.kirupa.com/t/multiple-streaming-sound-manipulation/63151/1 "2004-09-03T09:22:47Z")

</div>

Hey there.  
I have a site where as you click links, you move forwards through a city. I want to fade sound files in and out, overlapping, depending on where you are in the city. (The site is [www.eskimojoe.net](http://www.eskimojoe.net))  
As yet, I can’t have two sounds playing at once.  
I have found a site with the effect I want, it’s at  
[www.sofake.com](http://www.sofake.com)  
(Great site, by the way)  
My code is as follows.  
I have two sound loops at the moment, one of cicadas, one of a city at night, both saved as separate .swf files, which I have loaded onto the main timeline on layers 14 and 15.  
The code for the two loops is:

**cicadas.swf, FRAME 1**

var volPercent = 20;  
cicadas = new Sound(cicadas);  
cicadas.setVolume(volPercent\*2);

**city.swf, FRAME 1**

var volPercent = 20;  
city = new Sound(cityMC);  
city.setVolume(volPercent\*2);

Once I load these two onto different levels, I get no sound.  
If I delete one, the other will play.  
I have tried loading the sound objects into empty movie clips, but then the entire file has to load before it will start playing. I need a way to stream multiple sound files, and have control over their volume. Is there a thread or tutorial out there that can solve my problem?  
Sorry if this post is long and convoluted, it’s hard to explain  
cheers,  
stu

---

<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:** [September 4, 2004, 7:36am UTC](https://forum.kirupa.com/t/multiple-streaming-sound-manipulation/63151/2 "2004-09-04T07:36:33Z")

</div>

Have you seen this one?  
[http://kennybellew.com/tutorial/](http://kennybellew.com/tutorial/)

scotty(-:

---

<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:** [September 4, 2004, 1:23pm UTC](https://forum.kirupa.com/t/multiple-streaming-sound-manipulation/63151/3 "2004-09-04T13:23:13Z")

</div>

Thanks Scotty.  
Bloody brilliant.

---

<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:** [September 4, 2004, 1:35pm UTC](https://forum.kirupa.com/t/multiple-streaming-sound-manipulation/63151/4 "2004-09-04T13:35:12Z")

</div>

welcome:thumb:

scotty(-:

---

<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:** [September 4, 2004, 3:04pm UTC](https://forum.kirupa.com/t/multiple-streaming-sound-manipulation/63151/5 "2004-09-04T15:04:35Z")

</div>

OK, that pretty much told me everything I needed to know about controlling sound files, EXCEPT, how do I loop a dynamically loaded streaming sound file…  
My code, as far as I have got, is:

cicada = new Sound(cicadaMC);  
cicada.loadSound(“sounds/cicadas.mp3”, true);  
\_root.cicada.start(0, 999);

If I delete the “true” condition, the sound will loop, but will not stream.  
I have read the tute back to front, still can’t figure it out.

HELP!
