Sound object isn't powerfull enough?

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??

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 :wink:

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

Good Luck.

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

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…

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 …