var s:Sound = new Sound(); s.setVolume(0);This will mute all sounds. The setVolume() parameter is given as percentage, so the value is between 0 and 100 where 0 is muted.
Sep 24, 2008
ActionScript: Controling volume of all sounds
By creating a sound object with no target on the highest level, you can control volume of all sounds on the stage.
Labels:
actionscript,
flash
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment