# Sound object isn't powerfull enough?

**URL:** <https://forum.kirupa.com/t/sound-object-isnt-powerfull-enough/14646>\
**Category:** Uncategorized\
**Created:** [February 28, 2003, 9:36pm UTC](https://forum.kirupa.com/t/sound-object-isnt-powerfull-enough/14646 "2003-02-28T21:36:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![indojepang](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/indojepang/32/39_2.png) [@indojepang](https://forum.kirupa.com/u/indojepang)\
**Post date:** [February 28, 2003, 9:36pm UTC](https://forum.kirupa.com/t/sound-object-isnt-powerfull-enough/14646/1 "2003-02-28T21:36:48Z")

</div>

I attach & play 3 sounds on \_root, & call them in a button:

button.onRelease = function(){  
\_root.sound1.setVolume(100);  
\_root.sound2.setVolume(100);  
\_root.sound3.setVolume(20);  
}

why all the sounds get the same volume at(20)??

when I swap the action:

\_root.sound3.setVolume(20);  
\_root.sound1.setVolume(100);  
\_root.sound2.setVolume(100);

why all the sounds get the same volume at(100)??

Is sound object isn’t powerfull enough to do this, or just my mistake??

---

<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 28, 2003, 10:28pm UTC](https://forum.kirupa.com/t/sound-object-isnt-powerfull-enough/14646/2 "2003-02-28T22:28:23Z")

</div>

I’m guessing you are creating each of these sounds then as

sound1 = new Sound();  
sound2 = new Sound();  
sound3 = new Sound();

Then assigning sounds to them by using the loadSound method?

If so… it won’t work… The only way you can give each sound a distinctive volume is if they are in their own Movieclips as well… Try this out for size… Make the sound1, sound2, sound3 as movieclips… Then…

sound1.clip = new Sound();  
sound2.clip = new Sound();  
sound3.clip = new Sound();

Then set the volumes to the clips inside of those movieclips… You should have better success that way 😉

sound1.clip.setVolume(100);  
sound2.clip.setVolume(100);  
sound3.clip.setVolume(20);

Good Luck.

---

<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:** [March 1, 2003, 10:21am UTC](https://forum.kirupa.com/t/sound-object-isnt-powerfull-enough/14646/3 "2003-03-01T10:21:12Z")

</div>

I guess it will work!! thank’s a lot man!!!

---

<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:** [March 1, 2003, 12:10pm UTC](https://forum.kirupa.com/t/sound-object-isnt-powerfull-enough/14646/4 "2003-03-01T12:10:44Z")

</div>

help me again please… it’s not workin’

this.createEmptyMovieClip(“sound01”, 1);  
sound01.createEmptyMovieClip(“clip”,0);  
this.createEmptyMovieClip(“sound02”, 2);  
sound02.createEmptyMovieClip(“clip”,0);  
this.createEmptyMovieClip(“sound03”, 3);  
sound03.createEmptyMovieClip(“clip”,0);

trace(sound01.clip);  
trace(sound02.clip);  
trace(sound03.clip);

sound01.clip = new Sound();  
sound01.clip.attachSound(“backgroundMusic”);  
sound01.clip.start(0,999);  
sound01.clip.setVolume(20);

sound02.clip = new Sound();  
sound02.clip.attachSound(“rumbleLoop”);  
sound02.clip.start(0,999);  
sound02.clip.setVolume(100);

//sound01 and sound02 volume at(100) both…

---

<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:** [March 1, 2003, 12:21pm UTC](https://forum.kirupa.com/t/sound-object-isnt-powerfull-enough/14646/5 "2003-03-01T12:21:04Z")

</div>

don’t bother, I’ve got it!!!

//when I put

sound01.clip = new Sound(this.sound01);  
sound02.clip = new Sound(this.sound02);

//it solve the problem!!!

I wonder when will kirupa make a tutorial about advanced sound objects in MX …
