Groups | Blog | Home
all groups > flash actionscript > april 2004 >

flash actionscript : setVolume is changing all the sounds!


fahnesjh
4/4/2004 7:25:09 PM
I'm using a sound object.

RainOnHood = new Sound(this);
RainOnHood.attachSound("RainFX.aif");
RainOnHood.start();
RainOnHood.setVolume(10);

The set Volume is effecting the volume of all the sounds in the movie not just
the object RainOnHood and I don't know why. Any Answers?

Thanks,
J
Jack.
4/4/2004 9:05:20 PM
for individual control, tie the sound object to a movieclip timeline,

this.createEmptyMovieClip("roh",99);
RainOnHood = new Sound(roh);

hope this link helps,
http://www.kennybellew.com/tutorial/


fahnesjh
4/4/2004 10:24:07 PM
I knew it was something like that. Thanks it worked and now I'm groovy.

Thanks,
AddThis Social Bookmark Button