Sound objects associated with the same movie clip share their
properties (volume, etc.), so if you change the volume through one of
them, the change will be reflected by others, too. That is because in
fact sound properties belong to movie clips and not the Sound objects,
and Sound objects only reflect the sound settings of the associated movie
clip.

  Attila

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:    [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To:      flashcoders@chattyfig.figleaf.com <flashcoders@chattyfig.figleaf.com>
Date:    Friday, July 6, 2007, 4:44:25 PM
Subject: [Flashcoders] Controllingt he volume of multiple sound objects at the 
same time
--====----====----====----====----====----====----====----====----====----===--

Hey there. I am trying to control the volume of a number of sound objects that 
have their own individual volume levels. I want to be able to mute them or 
allow them to play at the volume that has been set for them. I was thinking 
that I could do this by storing the values in arrays and then looping through 
these each time the sound is muted/unmuted but I am sure there must be an 
easier way. 
Any suggestsions v gratefully received :)

Here is what I have so far:
var sound1:Sound = new Sound(this);
sound1.setVolume(60);
var sound2:Sound = new Sound(this);
sound2.setVolume(20);

sound1.loadSound('an.mp3', false);
sound2.loadSound('another.mp3', false);

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to